@hmcts/media-viewer 4.2.42-CME-776-dart-angular-20 → 4.2.42

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.
package/index.d.ts CHANGED
@@ -1,28 +1,45 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnDestroy, AfterContentInit, OnChanges, EventEmitter, ElementRef, SimpleChanges, AfterViewChecked, AfterViewInit, QueryList, AfterContentChecked, PipeTransform } from '@angular/core';
2
+ import { ElementRef, OnDestroy, OnInit, AfterContentInit, OnChanges, EventEmitter, SimpleChanges, QueryList, AfterViewChecked, ChangeDetectorRef, AfterViewInit, AfterContentChecked, PipeTransform } from '@angular/core';
3
3
  import * as rxjs from 'rxjs';
4
4
  import { BehaviorSubject, Subject, Observable, Subscription } from 'rxjs';
5
+ import * as _ngrx_store from '@ngrx/store';
6
+ import { Action, Store } from '@ngrx/store';
7
+ import { PDFViewer, DownloadManager } from 'pdfjs-dist/web/pdf_viewer.mjs';
5
8
  import { ArrayDataSource, SelectionModel } from '@angular/cdk/collections';
6
9
  import * as i28 from '@angular/cdk/tree';
7
10
  import { FlatTreeControl } from '@angular/cdk/tree';
8
11
  import * as i29$1 from '@angular/cdk/drag-drop';
9
12
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
13
+ import * as i25 from '@angular/common/http';
14
+ import { HttpClient } from '@angular/common/http';
10
15
  import * as i6 from '@angular/common';
11
16
  import { DatePipe } from '@angular/common';
12
- import * as i25 from '@angular/common/http';
13
17
  import * as i10 from '@angular/cdk/overlay';
14
18
  import { ConnectionPositionPair } from '@angular/cdk/overlay';
15
19
  import * as i7 from '@angular/forms';
16
- import { FormGroup, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
20
+ import { FormGroup, FormBuilder, UntypedFormControl, UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
17
21
  import * as i8 from '@angular/router';
18
22
  import * as i12 from 'rpx-xui-translation';
19
23
  import * as i22 from '@angular/cdk/a11y';
20
24
  import * as i26 from 'mutable-div';
21
25
  import * as i27 from 'ngx-chips';
22
26
  import * as i29 from '@swimlane/ngx-datatable';
23
- import * as _ngrx_store from '@ngrx/store';
24
- import { Action } from '@ngrx/store';
25
27
  import * as _ngrx_effects from '@ngrx/effects';
28
+ import { Actions } from '@ngrx/effects';
29
+
30
+ interface Outline {
31
+ bold: boolean;
32
+ color: Uint8ClampedArray;
33
+ count: number | undefined;
34
+ dest: string | Array<any> | null;
35
+ italic: boolean;
36
+ items: Outline[];
37
+ newWindow: boolean | undefined;
38
+ pageNumber?: number;
39
+ title: string;
40
+ unsafeUrl: string | undefined;
41
+ url: string | null;
42
+ }
26
43
 
27
44
  interface User {
28
45
  forename: string;
@@ -48,41 +65,6 @@ interface Rectangle extends ApiPersisted {
48
65
  y: number;
49
66
  }
50
67
 
51
- interface TagsModel {
52
- name: string;
53
- label: string;
54
- color?: string;
55
- id?: string;
56
- }
57
-
58
- interface Comment extends ApiPersisted {
59
- annotationId: string;
60
- content: string;
61
- tags: TagsModel[];
62
- page: number;
63
- pages: object;
64
- pageHeight: number;
65
- selected: boolean;
66
- editable: boolean;
67
- }
68
-
69
- interface Annotation extends ApiPersisted {
70
- annotationSetId?: string;
71
- annotationId?: string;
72
- page?: number;
73
- color?: string;
74
- comments?: Comment[];
75
- rectangles?: Rectangle[];
76
- type?: string;
77
- tags: TagsModel[];
78
- redactionId?: string;
79
- }
80
-
81
- interface AnnotationSet extends ApiPersisted {
82
- documentId: string;
83
- annotations: Annotation[];
84
- }
85
-
86
68
  interface RedactionSearch {
87
69
  page?: number;
88
70
  matchedIndex?: number;
@@ -94,6 +76,25 @@ interface RedactRectangle {
94
76
  rectangles?: Rectangle[];
95
77
  }
96
78
 
79
+ declare class IcpEventService {
80
+ enabled: BehaviorSubject<boolean>;
81
+ sessionLaunch: Subject<void>;
82
+ becomingPresenter: Subject<void>;
83
+ stoppingPresenting: Subject<void>;
84
+ leavingSession: BehaviorSubject<boolean>;
85
+ sessionExitConfirmed: Subject<void>;
86
+ participantsListVisible: BehaviorSubject<boolean>;
87
+ constructor();
88
+ launchSession: () => void;
89
+ enable: () => void;
90
+ becomePresenter: () => void;
91
+ stopPresenting: () => void;
92
+ leaveSession: () => void;
93
+ confirmExit: () => void;
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<IcpEventService, never>;
95
+ static ɵprov: i0.ɵɵInjectableDeclaration<IcpEventService>;
96
+ }
97
+
97
98
  interface SearchOperation {
98
99
  searchTerm: string;
99
100
  highlightAll: boolean;
@@ -117,6 +118,7 @@ interface SearchMode {
117
118
  }
118
119
  declare class ToolbarEventService {
119
120
  private icpEventService;
121
+ constructor(icpEventService: IcpEventService);
120
122
  readonly highlightModeSubject: BehaviorSubject<boolean>;
121
123
  readonly highlightToolbarSubject: BehaviorSubject<boolean>;
122
124
  readonly drawModeSubject: BehaviorSubject<boolean>;
@@ -183,6 +185,159 @@ declare class ToolbarEventService {
183
185
  static ɵprov: i0.ɵɵInjectableDeclaration<ToolbarEventService>;
184
186
  }
185
187
 
188
+ interface DocumentState {
189
+ convertedDocument: {
190
+ url: string;
191
+ error: string;
192
+ };
193
+ documentId: string;
194
+ pdfPosition: PdfPosition;
195
+ pages: {
196
+ [id: string]: DocumentPages;
197
+ };
198
+ hasDifferentPageSize: boolean;
199
+ rotation: number;
200
+ rotationLoaded: boolean;
201
+ loaded: boolean;
202
+ loading: boolean;
203
+ }
204
+ interface DocumentPages {
205
+ numberOfPages: number;
206
+ styles: {
207
+ left: number;
208
+ height: number;
209
+ width: number;
210
+ };
211
+ scaleRotation: {
212
+ scale: string;
213
+ rotation: string;
214
+ };
215
+ viewportScale: number;
216
+ }
217
+ interface PdfPosition {
218
+ pageNumber: number;
219
+ scale: number;
220
+ top: number;
221
+ left: number;
222
+ rotation: number;
223
+ }
224
+
225
+ declare class PdfJsWrapper {
226
+ private readonly pdfViewer;
227
+ private readonly downloadManager;
228
+ private readonly toolbarEvents;
229
+ readonly documentLoadInit: Subject<string>;
230
+ readonly documentLoadProgress: Subject<DocumentLoadProgress>;
231
+ readonly documentLoaded: Subject<any>;
232
+ readonly outlineLoaded: Subject<Outline[]>;
233
+ readonly documentLoadFailed: Subject<Error>;
234
+ readonly pageRendered: Subject<PageEvent[]>;
235
+ readonly positionUpdated: Subject<{
236
+ location: PdfPosition;
237
+ }>;
238
+ private zoomValue;
239
+ private documentTitle;
240
+ private documentOutline;
241
+ redactionPages: {
242
+ start: number;
243
+ end: number;
244
+ }[];
245
+ constructor(pdfViewer: PDFViewer, downloadManager: DownloadManager, toolbarEvents: ToolbarEventService, documentLoadInit: Subject<string>, documentLoadProgress: Subject<DocumentLoadProgress>, documentLoaded: Subject<any>, outlineLoaded: Subject<Outline[]>, documentLoadFailed: Subject<Error>, pageRendered: Subject<PageEvent[]>, positionUpdated: Subject<{
246
+ location: PdfPosition;
247
+ }>);
248
+ sendSearchDetails(event: any): void;
249
+ drawMissingPages(e: any): void;
250
+ onRedactionModeChanged(redactionMode: boolean): void;
251
+ private emitDocumentInfo;
252
+ loadDocument(documentUrl: string): Promise<void>;
253
+ private createLoadingTask;
254
+ private setOutlinePageNumbers;
255
+ private setNestedOutlinePageNumbers;
256
+ private getOutlinePageNumber;
257
+ downloadFile(url: string, filename: string): void;
258
+ setPageNumber(pageNumber: number): void;
259
+ getPageNumber(): number;
260
+ changePageNumber(numPages: number): void;
261
+ search(operation: SearchOperation): void;
262
+ clearSearch(): void;
263
+ navigateTo(destination: string | any[]): void;
264
+ nativeNavigate(destination: string | any[]): void;
265
+ setZoom(zoomValue: number): void;
266
+ stepZoom(zoomValue: number): void;
267
+ private getZoomValue;
268
+ rotate(rotation: number): number;
269
+ resetRotation(rotation: number): number;
270
+ getNormalisedPagesRotation(): number;
271
+ getCurrentPDFZoomValue(): number;
272
+ setCurrentPDFTitle(title: string): void;
273
+ getCurrentPDFTitle(): string;
274
+ }
275
+ interface DocumentLoadProgress {
276
+ loaded: number;
277
+ total: number;
278
+ }
279
+ interface PageEvent {
280
+ div: object;
281
+ scale: number;
282
+ rotation: number;
283
+ id: string;
284
+ viewportScale: number;
285
+ }
286
+
287
+ declare class PdfJsWrapperFactory {
288
+ private readonly toolbarEvents;
289
+ private linkService;
290
+ private eventBus;
291
+ private pdfJsWrapper;
292
+ constructor(toolbarEvents: ToolbarEventService);
293
+ create(container: ElementRef): PdfJsWrapper;
294
+ pdfWrapper(): PdfJsWrapper;
295
+ static ɵfac: i0.ɵɵFactoryDeclaration<PdfJsWrapperFactory, never>;
296
+ static ɵprov: i0.ɵɵInjectableDeclaration<PdfJsWrapperFactory>;
297
+ }
298
+
299
+ interface TagsModel {
300
+ name: string;
301
+ label: string;
302
+ color?: string;
303
+ id?: string;
304
+ }
305
+
306
+ interface Comment extends ApiPersisted {
307
+ annotationId: string;
308
+ content: string;
309
+ tags: TagsModel[];
310
+ page: number;
311
+ pages: object;
312
+ pageHeight: number;
313
+ selected: boolean;
314
+ editable: boolean;
315
+ }
316
+
317
+ interface Annotation extends ApiPersisted {
318
+ annotationSetId?: string;
319
+ annotationId?: string;
320
+ page?: number;
321
+ color?: string;
322
+ comments?: Comment[];
323
+ rectangles?: Rectangle[];
324
+ type?: string;
325
+ tags: TagsModel[];
326
+ redactionId?: string;
327
+ }
328
+
329
+ interface AnnotationSet extends ApiPersisted {
330
+ documentId: string;
331
+ annotations: Annotation[];
332
+ }
333
+
334
+ declare class PrintService {
335
+ printDocumentNatively(url: string): void;
336
+ printElementNatively(element: HTMLElement, width: number, height: number): void;
337
+ static ɵfac: i0.ɵɵFactoryDeclaration<PrintService, never>;
338
+ static ɵprov: i0.ɵɵInjectableDeclaration<PrintService>;
339
+ }
340
+
186
341
  declare enum ResponseType {
187
342
  SUCCESS = "SUCCESS",
188
343
  FAILURE = "FAILURE",
@@ -223,99 +378,525 @@ declare class ToolbarButtonVisibilityService {
223
378
  static ɵprov: i0.ɵɵInjectableDeclaration<ToolbarButtonVisibilityService>;
224
379
  }
225
380
 
226
- interface Outline {
227
- bold: boolean;
228
- color: Uint8ClampedArray;
229
- count: number | undefined;
230
- dest: string | Array<any> | null;
231
- italic: boolean;
232
- items: Outline[];
233
- newWindow: boolean | undefined;
234
- pageNumber?: number;
235
- title: string;
236
- unsafeUrl: string | undefined;
237
- url: string | null;
381
+ interface SelectionAnnotation {
382
+ annotationId: string;
383
+ editable: boolean;
384
+ selected: boolean;
238
385
  }
239
386
 
240
- declare class HighlightCreateDirective implements OnInit, OnDestroy {
241
- private element;
242
- private toolbarEvents;
243
- private viewerEvents;
244
- private highlightService;
245
- private store;
246
- pageHeight: number;
247
- pageWidth: number;
248
- zoom: number;
249
- rotate: number;
250
- allPages: object;
251
- private $subscriptions;
252
- ngOnInit(): void;
253
- ngOnDestroy(): void;
254
- private focusWithoutScrolling;
255
- onMouseUp(mouseEvent: MouseEvent): void;
256
- onKeyboardSelectionConfirmed(): void;
257
- private getCurrentPageFromSelection;
258
- private getRectanglesFromSelection;
259
- onPdfViewerClick(event: MouseEvent): void;
260
- private getRectangles;
261
- private getSelectionRectangles;
262
- private createTextRectangle;
263
- private removeEnhancedTextModeStyling;
264
- private setPageProperties;
265
- private processClientRects;
266
- static ɵfac: i0.ɵɵFactoryDeclaration<HighlightCreateDirective, never>;
267
- static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightCreateDirective, "[mvCreateTextHighlight]", never, {}, {}, never, never, false, never>;
387
+ interface Filters {
388
+ tagFilters?: {
389
+ [key: string]: any;
390
+ };
391
+ dateRangeFrom?: number | null;
392
+ dateRangeTo?: number | null;
268
393
  }
269
394
 
270
- declare class PdfViewerComponent implements AfterContentInit, OnChanges, OnDestroy {
271
- private store;
272
- private icpStore;
273
- private readonly pdfJsWrapperFactory;
274
- private readonly printService;
275
- readonly toolbarEvents: ToolbarEventService;
276
- private readonly viewerEvents;
277
- private icpService;
278
- readonly toolbarButtons: ToolbarButtonVisibilityService;
279
- private readonly icpEventService;
280
- mediaLoadStatus: EventEmitter<ResponseType>;
281
- pdfViewerException: EventEmitter<ViewerException>;
282
- documentTitle: EventEmitter<string>;
283
- downloadUrl: string;
284
- url: string;
285
- downloadFileName: string;
286
- enableAnnotations: boolean;
287
- enableRedactions: boolean;
288
- enableICP: boolean;
289
- annotationSet: AnnotationSet | null;
290
- enableRedactSearch: AnnotationSet | null;
291
- height: string;
292
- pageHeights: any[];
293
- rotation: number;
294
- zoom: number;
295
- caseId: string;
296
- highlightMode: Observable<boolean>;
297
- drawMode: BehaviorSubject<boolean>;
298
- documentOutline: Outline[];
299
- loadingDocument: boolean;
300
- loadingDocumentProgress: number;
301
- errorMessage: string;
302
- hasDifferentPageSize: boolean;
303
- viewerContainer: ElementRef<HTMLDivElement>;
304
- pdfViewer: ElementRef<HTMLDivElement>;
305
- highlightCreateDirective: HighlightCreateDirective;
306
- private pdfWrapper;
307
- private $subscription;
308
- private viewerException;
309
- showCommentsPanel: boolean;
310
- showIcpParticipantsList: boolean;
311
- enableGrabNDrag: boolean;
312
- showSelectionStartCursor: boolean;
313
- selectionStartCursorX: number;
314
- selectionStartCursorY: number;
395
+ declare const LOAD_ANNOTATION_SET = "[Annotations] Load Annotation Set";
396
+ declare const LOAD_ANNOTATION_SET_SUCCESS = "[Annotations] Load Annotation Set Success";
397
+ declare const LOAD_ANNOTATION_SET_FAIL = "[Annotations] Load Annotation Set Fail";
398
+ declare const SAVE_ANNOTATION_SET = "[Annotations] Save Annotation Set";
399
+ declare const SAVE_ANNOTATION_SET_SUCCESS = "[Annotations] Save Annotation Set Success";
400
+ declare const SAVE_ANNOTATION_SET_FAIL = "[Annotations] Save Annotation Set Fail";
401
+ declare const SAVE_ANNOTATION = "[Annotations] Save Annotation";
402
+ declare const SAVE_ANNOTATION_SUCCESS = "[Annotations] Save Annotation Success";
403
+ declare const SAVE_ANNOTATION_FAIL = "[Annotations] Save Annotation Fail";
404
+ declare const ADD_OR_EDIT_COMMENT = "[Annotations] Add or Edit Comment";
405
+ declare const DELETE_ANNOTATION = "[Annotations] Delete Annotation";
406
+ declare const DELETE_ANNOTATION_SUCCESS = "[Annotations] Delete Annotation Success";
407
+ declare const DELETE_ANNOTATION_FAIL = "[Annotations] Delete Annotation Fail";
408
+ declare const SELECT_ANNOTATION = "[Annotations] Select Annotation";
409
+ declare const SEARCH_COMMENT = "[Comments] Search Comments";
410
+ declare const APPLY_COMMENT_SUMMARY_FILTER = "[Comments] Apply Comment Summary Filter";
411
+ declare const CLEAR_COMMENT_SUMMARY_FILTER = "[Comments] Clear Comment Summary Filter";
412
+ declare class LoadAnnotationSet implements Action {
413
+ payload: string;
414
+ readonly type = "[Annotations] Load Annotation Set";
415
+ constructor(payload: string);
416
+ }
417
+ declare class SaveAnnotationSet implements Action {
418
+ payload: AnnotationSet;
419
+ readonly type = "[Annotations] Save Annotation Set";
420
+ constructor(payload: AnnotationSet);
421
+ }
422
+ declare class LoadAnnotationSetSucess implements Action {
423
+ payload: {
424
+ status: number;
425
+ body: AnnotationSet;
426
+ };
427
+ readonly type = "[Annotations] Load Annotation Set Success";
428
+ constructor(payload: {
429
+ status: number;
430
+ body: AnnotationSet;
431
+ });
432
+ }
433
+ declare class SaveAnnotationSetSuccess implements Action {
434
+ payload: AnnotationSet;
435
+ readonly type = "[Annotations] Save Annotation Set Success";
436
+ constructor(payload: AnnotationSet);
437
+ }
438
+ declare class LoadAnnotationSetFail implements Action {
439
+ payload: {
440
+ status: number;
441
+ body: any;
442
+ };
443
+ readonly type = "[Annotations] Load Annotation Set Fail";
444
+ constructor(payload: {
445
+ status: number;
446
+ body: any;
447
+ });
448
+ }
449
+ declare class SaveAnnotationSetFail implements Action {
450
+ payload: {
451
+ status: number;
452
+ body: any;
453
+ };
454
+ readonly type = "[Annotations] Save Annotation Set Fail";
455
+ constructor(payload: {
456
+ status: number;
457
+ body: any;
458
+ });
459
+ }
460
+ declare class SaveAnnotation implements Action {
461
+ payload: Annotation;
462
+ autoSelect?: boolean;
463
+ readonly type = "[Annotations] Save Annotation";
464
+ constructor(payload: Annotation, autoSelect?: boolean);
465
+ }
466
+ declare class SaveAnnotationSuccess implements Action {
467
+ payload: any;
468
+ readonly type = "[Annotations] Save Annotation Success";
469
+ constructor(payload: any);
470
+ }
471
+ declare class SaveAnnotationFail implements Action {
472
+ payload: Error;
473
+ readonly type = "[Annotations] Save Annotation Fail";
474
+ constructor(payload: Error);
475
+ }
476
+ declare class AddOrEditComment implements Action {
477
+ payload: Comment;
478
+ readonly type = "[Annotations] Add or Edit Comment";
479
+ constructor(payload: Comment);
480
+ }
481
+ declare class DeleteAnnotation implements Action {
482
+ payload: string;
483
+ readonly type = "[Annotations] Delete Annotation";
484
+ constructor(payload: string);
485
+ }
486
+ declare class DeleteAnnotationSuccess implements Action {
487
+ payload: string;
488
+ readonly type = "[Annotations] Delete Annotation Success";
489
+ constructor(payload: string);
490
+ }
491
+ declare class DeleteAnnotationFail implements Action {
492
+ payload: Error;
493
+ readonly type = "[Annotations] Delete Annotation Fail";
494
+ constructor(payload: Error);
495
+ }
496
+ declare class SelectedAnnotation implements Action {
497
+ payload: SelectionAnnotation;
498
+ readonly type = "[Annotations] Select Annotation";
499
+ constructor(payload: SelectionAnnotation);
500
+ }
501
+ declare class SearchComment implements Action {
502
+ payload: string;
503
+ readonly type = "[Comments] Search Comments";
504
+ constructor(payload: string);
505
+ }
506
+ declare class ApplyCommentSymmaryFilter implements Action {
507
+ payload: Filters;
508
+ readonly type = "[Comments] Apply Comment Summary Filter";
509
+ constructor(payload: Filters);
510
+ }
511
+ declare class ClearCommentSummaryFilters implements Action {
512
+ readonly type = "[Comments] Clear Comment Summary Filter";
513
+ }
514
+ type AnnotationsActions = LoadAnnotationSet | LoadAnnotationSetSucess | LoadAnnotationSetFail | SaveAnnotation | SaveAnnotationSuccess | SaveAnnotationFail | SaveAnnotationSetSuccess | AddOrEditComment | DeleteAnnotation | DeleteAnnotationSuccess | DeleteAnnotationFail | SelectedAnnotation | SearchComment | ApplyCommentSymmaryFilter | ClearCommentSummaryFilters;
515
+
516
+ interface AnnotationSetState {
517
+ annotationSet: any;
518
+ annotationEntities: {
519
+ [id: string]: any;
520
+ };
521
+ annotationPageEntities: {
522
+ [id: string]: Annotation[];
523
+ };
524
+ commentEntities: {
525
+ [id: string]: Comment;
526
+ };
527
+ selectedAnnotation: SelectionAnnotation;
528
+ commentSearchQueries: {
529
+ commentSearch: string;
530
+ };
531
+ commentSummaryFilters: {
532
+ hasFilter: boolean;
533
+ filters: Filters;
534
+ };
535
+ loaded: boolean;
536
+ loading: boolean;
537
+ }
538
+ declare const initialState: AnnotationSetState;
539
+ declare function reducer(state: AnnotationSetState, action: AnnotationsActions): AnnotationSetState;
540
+ declare const getAnnoSet: (state: AnnotationSetState) => any;
541
+ declare const getCommentEnts: (state: AnnotationSetState) => {
542
+ [id: string]: Comment;
543
+ };
544
+ declare const getAnnoPageEnt: (state: AnnotationSetState) => {
545
+ [id: string]: Annotation[];
546
+ };
547
+ declare const getAnnoEnt: (state: AnnotationSetState) => {
548
+ [id: string]: any;
549
+ };
550
+ declare const getSelectedAnno: (state: AnnotationSetState) => SelectionAnnotation;
551
+ declare const commentSearchQ: (state: AnnotationSetState) => {
552
+ commentSearch: string;
553
+ };
554
+ declare const getSummaryFilters: (state: AnnotationSetState) => {
555
+ hasFilter: boolean;
556
+ filters: Filters;
557
+ };
558
+
559
+ interface TagsState {
560
+ tagNameEnt: {
561
+ [id: string]: string[];
562
+ };
563
+ filteredComments: {
564
+ [id: string]: string[];
565
+ };
566
+ filteredPageEntities: {
567
+ [id: string]: Annotation[];
568
+ };
569
+ annotations: Annotation[];
570
+ formFilterState: {
571
+ [id: string]: boolean;
572
+ };
573
+ filters: string[];
574
+ }
575
+
576
+ interface Bookmark$1 {
577
+ id: string;
578
+ documentId: string;
579
+ name: string;
580
+ pageNumber: number;
581
+ xCoordinate: number;
582
+ yCoordinate: number;
583
+ children: any[];
584
+ previous: string;
585
+ index: number;
586
+ }
587
+ interface BookmarksPerPage {
588
+ bookmark: {
589
+ [id: string]: Bookmark$1;
590
+ };
591
+ styles: {
592
+ left: number;
593
+ height: number;
594
+ width: number;
595
+ };
596
+ }
597
+
598
+ interface BookmarksState {
599
+ bookmarks: Bookmark$1[];
600
+ bookmarkEntities: {
601
+ [id: string]: Bookmark$1;
602
+ };
603
+ bookmarkPageEntities: {
604
+ [id: string]: any;
605
+ };
606
+ editableBookmark: string;
607
+ loaded: boolean;
608
+ loading: boolean;
609
+ scrollTop?: number;
610
+ }
611
+
612
+ interface Redaction {
613
+ redactionId?: string;
614
+ documentId?: string;
615
+ page?: number;
616
+ rectangles?: Rectangle[];
617
+ }
618
+
619
+ interface RedactionState {
620
+ redactionEntities: {
621
+ [id: string]: Redaction;
622
+ };
623
+ redactionPageEntities: {
624
+ [id: string]: any;
625
+ };
626
+ selectedRedaction: SelectionAnnotation | {};
627
+ redactedDocumentInfo: {
628
+ blob: Blob;
629
+ filename: string;
630
+ };
631
+ documentId: string;
632
+ }
633
+
634
+ interface IcpState {
635
+ session: IcpSession;
636
+ presenter: IcpParticipant;
637
+ client: IcpParticipant;
638
+ participants: IcpParticipant[];
639
+ }
640
+ interface IcpSession {
641
+ sessionId: string;
642
+ documentId: string;
643
+ caseId: string;
644
+ dateOfHearing: Date;
645
+ connectionUrl: string;
646
+ }
647
+ interface IcpParticipant {
648
+ id: string;
649
+ username: string;
650
+ }
651
+ interface IcpScreenUpdate {
652
+ pdfPosition: PdfPosition;
653
+ document: string;
654
+ }
655
+
656
+ interface State {
657
+ document: DocumentState;
658
+ annotations: AnnotationSetState;
659
+ tags: TagsState;
660
+ bookmarks: BookmarksState;
661
+ redactions: RedactionState;
662
+ icp: IcpState;
663
+ }
664
+
665
+ interface Highlight {
666
+ page: number;
667
+ rectangles: Rectangle[];
668
+ }
669
+ declare class ViewerEventService {
670
+ readonly textHighlight: Subject<Highlight>;
671
+ readonly boxHighlight: Subject<Highlight>;
672
+ readonly ctxToolbarCleared: Subject<void>;
673
+ readonly navigationEvent: Subject<any[]>;
674
+ readonly navigationEventICP: Subject<any[]>;
675
+ constructor();
676
+ textSelected(selectionData: Highlight): void;
677
+ boxSelected(selectionData: Highlight): void;
678
+ clearCtxToolbar(): void;
679
+ goToDestination(destination: any[]): void;
680
+ goToDestinationICP(destination: any[]): void;
681
+ static ɵfac: i0.ɵɵFactoryDeclaration<ViewerEventService, never>;
682
+ static ɵprov: i0.ɵɵInjectableDeclaration<ViewerEventService>;
683
+ }
684
+
685
+ declare enum IcpEvents {
686
+ SESSION_JOINED = "IcpClientJoinedSession",
687
+ CLIENT_DISCONNECTED = "IcpClientDisconnectedFromSession",
688
+ NEW_PARTICIPANT_JOINED = "IcpNewParticipantJoinedSession",
689
+ REMOVE_PARTICIPANT = "IcpRemoveParticipantFromList",
690
+ PARTICIPANTS_UPDATED = "IcpParticipantsListUpdated",
691
+ UPDATE_PRESENTER = "IcpNewPresenterStartsPresenting",
692
+ PRESENTER_UPDATED = "IcpPresenterUpdated",
693
+ UPDATE_SCREEN = "IcpUpdateScreen",
694
+ SCREEN_UPDATED = "IcpScreenUpdated",
695
+ SESSION_JOIN = "IcpClientJoinSession",
696
+ SESSION_LEAVE = "IcpClientLeaveSession"
697
+ }
698
+
699
+ declare class SocketService implements OnDestroy {
700
+ private socket;
701
+ subscription: Subscription;
702
+ connected$: BehaviorSubject<boolean>;
703
+ sessionJoined$: Subject<void>;
704
+ presenterUpdated$: Subject<void>;
705
+ clientDisconnected$: Subject<void>;
706
+ participantUpdated$: Subject<void>;
707
+ newParticipantJoined$: Subject<void>;
708
+ screenUpdated$: Subject<void>;
709
+ constructor();
710
+ ngOnDestroy(): void;
711
+ connect(url: string, session: IcpSession): void;
712
+ connected(): Observable<boolean>;
713
+ join(session: any): void;
714
+ leave(session: any): void;
715
+ emit(event: string, data: any): void;
716
+ listen(event: IcpEvents): Observable<any>;
717
+ messageEventHandller(eventName: string, data: any): void;
718
+ getSocketClient(url: string): Observable<WebSocket>;
719
+ static ɵfac: i0.ɵɵFactoryDeclaration<SocketService, never>;
720
+ static ɵprov: i0.ɵɵInjectableDeclaration<SocketService>;
721
+ }
722
+
723
+ declare class IcpUpdateService {
724
+ private socket;
725
+ session: IcpSession;
726
+ constructor(socket: SocketService);
727
+ private joinSessionSubscription;
728
+ joinSession(username: string, session: IcpSession, token: string): rxjs.Observable<any>;
729
+ leaveSession(): void;
730
+ newParticipantJoined(): rxjs.Observable<any>;
731
+ clientDisconnected(): rxjs.Observable<any>;
732
+ removeParticipant(participantId: any): void;
733
+ participantListUpdated(): rxjs.Observable<any>;
734
+ updatePresenter(presenter: IcpParticipant): void;
735
+ presenterUpdated(): rxjs.Observable<any>;
736
+ updateScreen(screen: IcpScreenUpdate): void;
737
+ screenUpdated(): rxjs.Observable<any>;
738
+ static ɵfac: i0.ɵɵFactoryDeclaration<IcpUpdateService, never>;
739
+ static ɵprov: i0.ɵɵInjectableDeclaration<IcpUpdateService>;
740
+ }
741
+
742
+ declare class IcpPresenterService {
743
+ private readonly toolbarEvents;
744
+ private readonly socketService;
745
+ private store;
746
+ session: IcpSession;
747
+ presenter: IcpParticipant;
748
+ pdfPosition: PdfPosition;
749
+ $subscription: Subscription;
750
+ constructor(toolbarEvents: ToolbarEventService, socketService: IcpUpdateService, store: Store<IcpState>);
751
+ update(isPresenter: boolean): void;
752
+ subscribe(): void;
753
+ unsubscribe(): void;
754
+ onPositionUpdate(pdfPosition: PdfPosition): void;
755
+ onNewParticipantJoined(): void;
756
+ static ɵfac: i0.ɵɵFactoryDeclaration<IcpPresenterService, never>;
757
+ static ɵprov: i0.ɵɵInjectableDeclaration<IcpPresenterService>;
758
+ }
759
+
760
+ declare class IcpFollowerService {
761
+ private readonly toolbarEvents;
762
+ private readonly viewerEvents;
763
+ private readonly socketService;
764
+ private store;
765
+ session: IcpSession;
766
+ private previousRotation;
767
+ $subscription: Subscription;
768
+ constructor(toolbarEvents: ToolbarEventService, viewerEvents: ViewerEventService, socketService: IcpUpdateService, store: Store<IcpState>);
769
+ update(isFollower: boolean): void;
770
+ subscribe(): void;
771
+ unsubscribe(): void;
772
+ followScreenUpdate({ pdfPosition }: {
773
+ pdfPosition: any;
774
+ }): void;
775
+ static ɵfac: i0.ɵɵFactoryDeclaration<IcpFollowerService, never>;
776
+ static ɵprov: i0.ɵɵInjectableDeclaration<IcpFollowerService>;
777
+ }
778
+
779
+ declare class IcpService implements OnDestroy {
780
+ private readonly toolbarEvents;
781
+ private readonly viewerEvents;
782
+ private readonly socketService;
783
+ private readonly presenterSubscriptions;
784
+ private readonly followerSubscriptions;
785
+ private store;
786
+ private readonly icpEventService;
787
+ caseId: string;
788
+ client: IcpParticipant;
789
+ presenter: IcpParticipant;
790
+ isPresenter: boolean;
791
+ documentId: string;
792
+ subscription: Subscription;
793
+ sessionSubscription: Subscription;
794
+ constructor(toolbarEvents: ToolbarEventService, viewerEvents: ViewerEventService, socketService: IcpUpdateService, presenterSubscriptions: IcpPresenterService, followerSubscriptions: IcpFollowerService, store: Store<IcpState>, icpEventService: IcpEventService);
795
+ ngOnDestroy(): void;
796
+ launchSession(): void;
797
+ setUpSessionSubscriptions(): void;
798
+ unsubscribeSession(): void;
799
+ leavePresentation(): void;
800
+ stopPresenting(): void;
801
+ becomePresenter(): void;
802
+ clientDisconnected(client: any): void;
803
+ removeParticipant(participantId: any): void;
804
+ static ɵfac: i0.ɵɵFactoryDeclaration<IcpService, never>;
805
+ static ɵprov: i0.ɵɵInjectableDeclaration<IcpService>;
806
+ }
807
+
808
+ declare class HighlightCreateService {
809
+ private toolBarEvents;
810
+ private store;
811
+ constructor(toolBarEvents: ToolbarEventService, store: Store<AnnotationSetState>);
812
+ saveAnnotation(rectangles: Rectangle[], page: number, annotationId?: string): void;
813
+ saveAnnotationSet(searchRectangles: RedactRectangle[]): void;
814
+ applyRotation(pageHeight: any, pageWidth: any, offsetHeight: any, offsetWidth: any, offsetTop: any, offsetLeft: any, rotate: any, zoom: any): any;
815
+ resetHighlight(): void;
816
+ static ɵfac: i0.ɵɵFactoryDeclaration<HighlightCreateService, never>;
817
+ static ɵprov: i0.ɵɵInjectableDeclaration<HighlightCreateService>;
818
+ }
819
+
820
+ declare class HighlightCreateDirective implements OnInit, OnDestroy {
821
+ private element;
822
+ private toolbarEvents;
823
+ private viewerEvents;
824
+ private highlightService;
825
+ private store;
826
+ pageHeight: number;
827
+ pageWidth: number;
828
+ zoom: number;
829
+ rotate: number;
830
+ allPages: object;
831
+ private $subscriptions;
832
+ constructor(element: ElementRef<HTMLElement>, toolbarEvents: ToolbarEventService, viewerEvents: ViewerEventService, highlightService: HighlightCreateService, store: Store<AnnotationSetState>);
833
+ ngOnInit(): void;
834
+ ngOnDestroy(): void;
835
+ private focusWithoutScrolling;
836
+ onMouseUp(mouseEvent: MouseEvent): void;
837
+ onKeyboardSelectionConfirmed(): void;
838
+ private getCurrentPageFromSelection;
839
+ private getRectanglesFromSelection;
840
+ onPdfViewerClick(event: MouseEvent): void;
841
+ private getRectangles;
842
+ private getSelectionRectangles;
843
+ private createTextRectangle;
844
+ private removeEnhancedTextModeStyling;
845
+ private setPageProperties;
846
+ private processClientRects;
847
+ static ɵfac: i0.ɵɵFactoryDeclaration<HighlightCreateDirective, never>;
848
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HighlightCreateDirective, "[mvCreateTextHighlight]", never, {}, {}, never, never, false, never>;
849
+ }
850
+
851
+ declare class PdfViewerComponent implements AfterContentInit, OnChanges, OnDestroy {
852
+ private store;
853
+ private icpStore;
854
+ private readonly pdfJsWrapperFactory;
855
+ private readonly printService;
856
+ readonly toolbarEvents: ToolbarEventService;
857
+ private readonly viewerEvents;
858
+ private icpService;
859
+ readonly toolbarButtons: ToolbarButtonVisibilityService;
860
+ private readonly icpEventService;
861
+ mediaLoadStatus: EventEmitter<ResponseType>;
862
+ pdfViewerException: EventEmitter<ViewerException>;
863
+ documentTitle: EventEmitter<string>;
864
+ downloadUrl: string;
865
+ url: string;
866
+ downloadFileName: string;
867
+ enableAnnotations: boolean;
868
+ enableRedactions: boolean;
869
+ enableICP: boolean;
870
+ annotationSet: AnnotationSet | null;
871
+ enableRedactSearch: AnnotationSet | null;
872
+ height: string;
873
+ pageHeights: any[];
874
+ rotation: number;
875
+ zoom: number;
876
+ caseId: string;
877
+ highlightMode: Observable<boolean>;
878
+ drawMode: BehaviorSubject<boolean>;
879
+ documentOutline: Outline[];
880
+ loadingDocument: boolean;
881
+ loadingDocumentProgress: number;
882
+ errorMessage: string;
883
+ hasDifferentPageSize: boolean;
884
+ viewerContainer: ElementRef<HTMLDivElement>;
885
+ pdfViewer: ElementRef<HTMLDivElement>;
886
+ highlightCreateDirective: HighlightCreateDirective;
887
+ private pdfWrapper;
888
+ private $subscription;
889
+ private viewerException;
890
+ showCommentsPanel: boolean;
891
+ showIcpParticipantsList: boolean;
892
+ enableGrabNDrag: boolean;
893
+ showSelectionStartCursor: boolean;
894
+ selectionStartCursorX: number;
895
+ selectionStartCursorY: number;
315
896
  showSelectionEndCursor: boolean;
316
897
  selectionEndCursorX: number;
317
898
  selectionEndCursorY: number;
318
- constructor();
899
+ constructor(store: Store<AnnotationSetState>, icpStore: Store<IcpState>, pdfJsWrapperFactory: PdfJsWrapperFactory, printService: PrintService, toolbarEvents: ToolbarEventService, viewerEvents: ViewerEventService, icpService: IcpService, toolbarButtons: ToolbarButtonVisibilityService, icpEventService: IcpEventService);
319
900
  ngAfterContentInit(): Promise<void>;
320
901
  ngOnChanges(changes: SimpleChanges): Promise<void>;
321
902
  resetRotation(): void;
@@ -353,7 +934,7 @@ declare class PdfViewerComponent implements AfterContentInit, OnChanges, OnDestr
353
934
  static ɵcmp: i0.ɵɵComponentDeclaration<PdfViewerComponent, "mv-pdf-viewer", never, { "downloadUrl": { "alias": "downloadUrl"; "required": false; }; "url": { "alias": "url"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "enableAnnotations": { "alias": "enableAnnotations"; "required": false; }; "enableRedactions": { "alias": "enableRedactions"; "required": false; }; "enableICP": { "alias": "enableICP"; "required": false; }; "annotationSet": { "alias": "annotationSet"; "required": false; }; "enableRedactSearch": { "alias": "enableRedactSearch"; "required": false; }; "height": { "alias": "height"; "required": false; }; "caseId": { "alias": "caseId"; "required": false; }; "searchBarHidden": { "alias": "searchBarHidden"; "required": false; }; }, { "mediaLoadStatus": "mediaLoadStatus"; "pdfViewerException": "pdfViewerException"; "documentTitle": "documentTitle"; }, never, never, false, never>;
354
935
  }
355
936
 
356
- interface Bookmark$1 {
937
+ interface Bookmark {
357
938
  id: string;
358
939
  documentId: string;
359
940
  name: string;
@@ -363,7 +944,7 @@ interface Bookmark$1 {
363
944
  zoom: number;
364
945
  parent: string;
365
946
  previous: string;
366
- children: Bookmark$1[];
947
+ children: Bookmark[];
367
948
  index: number;
368
949
  }
369
950
  interface BookmarkNode {
@@ -372,58 +953,21 @@ interface BookmarkNode {
372
953
  children: string[];
373
954
  }
374
955
 
375
- interface DocumentState {
376
- convertedDocument: {
377
- url: string;
378
- error: string;
379
- };
380
- documentId: string;
381
- pdfPosition: PdfPosition;
382
- pages: {
383
- [id: string]: DocumentPages;
384
- };
385
- hasDifferentPageSize: boolean;
386
- rotation: number;
387
- rotationLoaded: boolean;
388
- loaded: boolean;
389
- loading: boolean;
390
- }
391
- interface DocumentPages {
392
- numberOfPages: number;
393
- styles: {
394
- left: number;
395
- height: number;
396
- width: number;
397
- };
398
- scaleRotation: {
399
- scale: string;
400
- rotation: string;
401
- };
402
- viewportScale: number;
403
- }
404
- interface PdfPosition {
405
- pageNumber: number;
406
- scale: number;
407
- top: number;
408
- left: number;
409
- rotation: number;
410
- }
411
-
412
956
  declare class BookmarksComponent implements OnInit, OnDestroy, OnChanges {
413
957
  private store;
414
- set bookmarkNodes(value: Bookmark$1[]);
415
- get bookmarkNodes(): Bookmark$1[];
958
+ set bookmarkNodes(value: Bookmark[]);
959
+ get bookmarkNodes(): Bookmark[];
416
960
  zoom: number;
417
961
  rotate: number;
418
962
  parentScrollTop: number;
419
963
  goToDestination: EventEmitter<any[]>;
420
964
  treeHasChanged: EventEmitter<boolean>;
421
965
  private _bookmarkNodes;
422
- datasource: ArrayDataSource<Bookmark$1>;
423
- treeControl: FlatTreeControl<Bookmark$1>;
424
- hoveredNode: Bookmark$1;
966
+ datasource: ArrayDataSource<Bookmark>;
967
+ treeControl: FlatTreeControl<Bookmark>;
968
+ hoveredNode: Bookmark;
425
969
  hoverHtmlElement: HTMLElement;
426
- expansionModel: SelectionModel<Bookmark$1>;
970
+ expansionModel: SelectionModel<Bookmark>;
427
971
  isDraggingOn: boolean;
428
972
  isUserdragging: boolean;
429
973
  expandTimeout: any;
@@ -447,14 +991,15 @@ declare class BookmarksComponent implements OnInit, OnDestroy, OnChanges {
447
991
  private sortMode;
448
992
  private readonly _customSort;
449
993
  private readonly _positionSort;
994
+ constructor(store: Store<BookmarksState | AnnotationSetState>);
450
995
  ngOnInit(): void;
451
996
  ngOnChanges(changes: SimpleChanges): void;
452
997
  ngOnDestroy(): void;
453
998
  editBookmark(id: any): void;
454
999
  onAddBookmarkClick(): void;
455
- deleteBookmark2(node: Bookmark$1): void;
456
- updateBookmark(bookmark: Bookmark$1, name: any): void;
457
- goToBookmark(bookmark: Bookmark$1): void;
1000
+ deleteBookmark2(node: Bookmark): void;
1001
+ updateBookmark(bookmark: Bookmark, name: any): void;
1002
+ goToBookmark(bookmark: Bookmark): void;
458
1003
  get customSort(): string;
459
1004
  get positionSort(): string;
460
1005
  sort(mode: string): void;
@@ -462,19 +1007,19 @@ declare class BookmarksComponent implements OnInit, OnDestroy, OnChanges {
462
1007
  private positionSortBookmarks;
463
1008
  private customSortBookmarks;
464
1009
  private scaledY;
465
- hasChild: (_: number, node: Bookmark$1) => boolean;
1010
+ hasChild: (_: number, node: Bookmark) => boolean;
466
1011
  getNode(bookmarks: any, parentId: any): any;
467
- drop(event: CdkDragDrop<Bookmark$1>): void;
1012
+ drop(event: CdkDragDrop<Bookmark>): void;
468
1013
  private getSiblingFromAllSibliings;
469
1014
  dragStart(): void;
470
1015
  dragEnd(): void;
471
- dragHover(event: any, node: Bookmark$1): void;
472
- dragHoverEnd(event: any, node: Bookmark$1): void;
473
- onNodeExpand(node: Bookmark$1): "toggle-children-wrapper-expanded" | "toggle-children-wrapper-collapsed";
474
- visibleNodes(bookmarks: Bookmark$1[]): Bookmark$1[];
1016
+ dragHover(event: any, node: Bookmark): void;
1017
+ dragHoverEnd(event: any, node: Bookmark): void;
1018
+ onNodeExpand(node: Bookmark): "toggle-children-wrapper-expanded" | "toggle-children-wrapper-collapsed";
1019
+ visibleNodes(bookmarks: Bookmark[]): Bookmark[];
475
1020
  findNodeSiblings(arr: Array<any>, id: string): Array<any>;
476
1021
  rebuildTreeForData(data: any): void;
477
- isToNodeChildOfFromNode(fromNodeChildren: Bookmark$1[], toNode: Bookmark$1): boolean;
1022
+ isToNodeChildOfFromNode(fromNodeChildren: Bookmark[], toNode: Bookmark): boolean;
478
1023
  static ɵfac: i0.ɵɵFactoryDeclaration<BookmarksComponent, never>;
479
1024
  static ɵcmp: i0.ɵɵComponentDeclaration<BookmarksComponent, "mv-bookmarks", never, { "bookmarkNodes": { "alias": "bookmarkNodes"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "parentScrollTop": { "alias": "parentScrollTop"; "required": false; }; }, { "goToDestination": "goToDestination"; "treeHasChanged": "treeHasChanged"; }, never, never, false, never>;
480
1025
  }
@@ -497,6 +1042,7 @@ declare class SideBarComponent implements OnInit, OnChanges, OnDestroy {
497
1042
  sidebarOpen: any;
498
1043
  private subscriptions;
499
1044
  sidebarDiv: any;
1045
+ constructor(viewerEvents: ViewerEventService, store: Store<BookmarksState>, toolbarEvents: ToolbarEventService);
500
1046
  ngOnInit(): void;
501
1047
  ngOnChanges(changes: SimpleChanges): void;
502
1048
  ngOnDestroy(): void;
@@ -527,6 +1073,14 @@ declare class OutlineItemComponent implements OnInit {
527
1073
  static ɵcmp: i0.ɵɵComponentDeclaration<OutlineItemComponent, "mv-outline-item", never, { "outline": { "alias": "outline"; "required": false; }; "currentPageNumber": { "alias": "currentPageNumber"; "required": false; }; "isCurrentSection": { "alias": "isCurrentSection"; "required": false; }; "endPage": { "alias": "endPage"; "required": false; }; }, { "navigationEvent": "navigationEvent"; }, never, never, false, never>;
528
1074
  }
529
1075
 
1076
+ declare class ViewerUtilService {
1077
+ private http;
1078
+ constructor(http: HttpClient);
1079
+ validateFile(url: string): rxjs.Observable<Object>;
1080
+ static ɵfac: i0.ɵɵFactoryDeclaration<ViewerUtilService, never>;
1081
+ static ɵprov: i0.ɵɵInjectableDeclaration<ViewerUtilService>;
1082
+ }
1083
+
530
1084
  declare class ImageViewerComponent implements OnInit, OnDestroy, OnChanges {
531
1085
  private store;
532
1086
  private readonly printService;
@@ -554,6 +1108,7 @@ declare class ImageViewerComponent implements OnInit, OnDestroy, OnChanges {
554
1108
  imageWidth: number;
555
1109
  imageLeft: number;
556
1110
  imageTop: number;
1111
+ constructor(store: Store<AnnotationSetState>, printService: PrintService, viewerUtilService: ViewerUtilService, toolbarEvents: ToolbarEventService, toolbarButtons: ToolbarButtonVisibilityService, viewerEvents: ViewerEventService);
557
1112
  ngOnInit(): void;
558
1113
  onImageViewerClick(event: MouseEvent): void;
559
1114
  ngOnDestroy(): void;
@@ -582,50 +1137,198 @@ declare class UnsupportedViewerComponent implements OnInit, OnDestroy {
582
1137
  unsupportedViewerException: EventEmitter<ViewerException>;
583
1138
  downloadLink: ElementRef;
584
1139
  private subscriptions;
585
- private viewerException;
586
- ngOnInit(): void;
587
- ngOnDestroy(): void;
588
- static ɵfac: i0.ɵɵFactoryDeclaration<UnsupportedViewerComponent, never>;
589
- static ɵcmp: i0.ɵɵComponentDeclaration<UnsupportedViewerComponent, "mv-unsupported-viewer", never, { "url": { "alias": "url"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "typeException": { "alias": "typeException"; "required": false; }; }, { "loadStatus": "loadStatus"; "unsupportedViewerException": "unsupportedViewerException"; }, never, never, false, never>;
590
- }
591
-
592
- declare class MultimediaPlayerComponent implements OnInit, OnChanges, OnDestroy {
593
- readonly toolbarEvents: ToolbarEventService;
594
- url: string;
595
- downloadFileName: string;
596
- multimediaOn: boolean;
597
- loadStatus: EventEmitter<ResponseType>;
598
- downloadLink: ElementRef;
599
- videoPlayer: ElementRef;
600
- playbackMsg: string;
601
- private subscription;
1140
+ private viewerException;
1141
+ constructor(toolbarEvents: ToolbarEventService, viewerUtilService: ViewerUtilService);
1142
+ ngOnInit(): void;
1143
+ ngOnDestroy(): void;
1144
+ static ɵfac: i0.ɵɵFactoryDeclaration<UnsupportedViewerComponent, never>;
1145
+ static ɵcmp: i0.ɵɵComponentDeclaration<UnsupportedViewerComponent, "mv-unsupported-viewer", never, { "url": { "alias": "url"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "typeException": { "alias": "typeException"; "required": false; }; }, { "loadStatus": "loadStatus"; "unsupportedViewerException": "unsupportedViewerException"; }, never, never, false, never>;
1146
+ }
1147
+
1148
+ declare class MultimediaPlayerComponent implements OnInit, OnChanges, OnDestroy {
1149
+ readonly toolbarEvents: ToolbarEventService;
1150
+ url: string;
1151
+ downloadFileName: string;
1152
+ multimediaOn: boolean;
1153
+ loadStatus: EventEmitter<ResponseType>;
1154
+ downloadLink: ElementRef;
1155
+ videoPlayer: ElementRef;
1156
+ playbackMsg: string;
1157
+ private subscription;
1158
+ constructor(toolbarEvents: ToolbarEventService);
1159
+ ngOnInit(): void;
1160
+ ngOnChanges(changes: SimpleChanges): void;
1161
+ ngOnDestroy(): void;
1162
+ reloadVideo(): void;
1163
+ onSuccess(): void;
1164
+ onError(): void;
1165
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultimediaPlayerComponent, never>;
1166
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultimediaPlayerComponent, "mv-multimedia-player", never, { "url": { "alias": "url"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "multimediaOn": { "alias": "multimediaOn"; "required": false; }; }, { "loadStatus": "loadStatus"; }, never, never, false, never>;
1167
+ }
1168
+
1169
+ declare class AnnotationApiService {
1170
+ private readonly httpClient;
1171
+ annotationApiUrl: string;
1172
+ private annotationSetBaseUrl;
1173
+ private annotationBaseUrl;
1174
+ constructor(httpClient: HttpClient);
1175
+ getAnnotationSet(documentId: string): Observable<any>;
1176
+ postAnnotationSet(body: Partial<AnnotationSet>): Observable<AnnotationSet>;
1177
+ getComments(annotationSet: Observable<AnnotationSet>): Observable<Comment[]>;
1178
+ /**
1179
+ * Sort the annotations in the response by page and then y position of their first rectangle
1180
+ */
1181
+ private sortAnnotations;
1182
+ private extractComments;
1183
+ deleteAnnotation(annotationId: string): Observable<null>;
1184
+ postAnnotation(annotation: Partial<Annotation>): Observable<Annotation>;
1185
+ get annotationSetsFullUrl(): string;
1186
+ get annotationFullsUrl(): string;
1187
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationApiService, never>;
1188
+ static ɵprov: i0.ɵɵInjectableDeclaration<AnnotationApiService>;
1189
+ }
1190
+
1191
+ declare class TagsServices {
1192
+ private http;
1193
+ tagItems: {
1194
+ [id: string]: TagsModel[];
1195
+ };
1196
+ constructor(http: HttpClient);
1197
+ getAllTags(createdBy: string): Observable<TagsModel[]>;
1198
+ getNewTags(annoid: string): TagsModel[];
1199
+ updateTagItems(items: Array<TagsModel>, annoId: string): void;
1200
+ private snakeCase;
1201
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagsServices, never>;
1202
+ static ɵprov: i0.ɵɵInjectableDeclaration<TagsServices>;
1203
+ }
1204
+
1205
+ declare class CommentComponent implements OnInit, OnDestroy, AfterContentInit {
1206
+ private store;
1207
+ private readonly commentService;
1208
+ private tagsServices;
1209
+ CHAR_LIMIT: number;
1210
+ lastUpdate: string;
1211
+ originalComment: string;
1212
+ fullComment: string;
1213
+ author: User;
1214
+ createdBy: string;
1215
+ editor: User;
1216
+ _comment: Comment;
1217
+ _editable: boolean;
1218
+ _rectangle: any;
1219
+ totalPrevPagesHeight: number;
1220
+ rectTop: any;
1221
+ rectLeft: any;
1222
+ pageHeight: number;
1223
+ hasUnsavedChanges: boolean;
1224
+ selected: boolean;
1225
+ searchString: string;
1226
+ tagItems: TagsModel[];
1227
+ marginToComment$: Observable<boolean>;
1228
+ commentClick: EventEmitter<SelectionAnnotation>;
1229
+ renderComments: EventEmitter<Comment>;
1230
+ delete: EventEmitter<Comment>;
1231
+ updated: EventEmitter<{
1232
+ comment: Comment;
1233
+ tags: TagsModel[];
1234
+ }>;
1235
+ changes: EventEmitter<boolean>;
1236
+ rotate: number;
1237
+ zoom: number;
1238
+ index: number;
1239
+ page: number;
1240
+ form: ElementRef;
1241
+ editableComment: ElementRef<HTMLElement>;
1242
+ private subscriptions;
1243
+ constructor(store: Store<AnnotationSetState>, commentService: CommentService, tagsServices: TagsServices);
1244
+ ngOnInit(): void;
1245
+ ngAfterContentInit(): void;
1246
+ ngOnDestroy(): void;
1247
+ set comment(comment: Comment);
1248
+ get comment(): Comment;
1249
+ set annotation(annotation: Annotation);
1250
+ get editable(): boolean;
1251
+ onCommentChange(updatedComment: any): void;
1252
+ deleteOrCancel(): void;
1253
+ editOrSave(): void;
1254
+ onCommentClick(): void;
1255
+ reRenderComments(): void;
1256
+ get commentTop(): number;
1257
+ get height(): number;
1258
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommentComponent, never>;
1259
+ static ɵcmp: i0.ɵɵComponentDeclaration<CommentComponent, "mv-anno-comment", never, { "rotate": { "alias": "rotate"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "index": { "alias": "index"; "required": false; }; "page": { "alias": "page"; "required": false; }; "comment": { "alias": "comment"; "required": false; }; "annotation": { "alias": "annotation"; "required": false; }; }, { "commentClick": "commentClick"; "renderComments": "renderComments"; "delete": "delete"; "updated": "updated"; "changes": "changes"; }, never, never, false, never>;
1260
+ }
1261
+
1262
+ declare class CommentSetRenderService {
1263
+ redrawComponents(commentComponents: CommentComponent[], pageHeights: any[], rotate: number, zoom: number): void;
1264
+ sortComponents(commentComponents: CommentComponent[], pageHeights: any[], rotate: number, zoom: number): CommentComponent[];
1265
+ private adjustIfOverlapping;
1266
+ private processSort;
1267
+ private onSameLine;
1268
+ private top;
1269
+ private height;
1270
+ private difference;
1271
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommentSetRenderService, never>;
1272
+ static ɵprov: i0.ɵɵInjectableDeclaration<CommentSetRenderService>;
1273
+ }
1274
+
1275
+ declare class CommentSetComponent implements OnInit, OnDestroy, OnChanges {
1276
+ private store;
1277
+ private readonly commentService;
1278
+ private readonly renderService;
1279
+ private readonly toolbarEvents;
1280
+ annotationSet: AnnotationSet;
1281
+ zoom: number;
1282
+ rotate: number;
1283
+ height: number;
1284
+ pageHeights: any[];
1285
+ contentScrollTop: number;
1286
+ comments: Comment[];
1287
+ tags: TagsModel[];
1288
+ private subscriptions;
1289
+ comments$: Observable<Annotation[]>;
1290
+ annoEntities$: Observable<{
1291
+ [id: string]: Annotation;
1292
+ }>;
1293
+ container: ElementRef<HTMLDivElement>;
1294
+ panel: ElementRef<HTMLDivElement>;
1295
+ commentComponents: QueryList<CommentComponent>;
1296
+ showCommentsPanel: boolean;
1297
+ constructor(store: Store<AnnotationSetState>, commentService: CommentService, renderService: CommentSetRenderService, toolbarEvents: ToolbarEventService);
602
1298
  ngOnInit(): void;
603
1299
  ngOnChanges(changes: SimpleChanges): void;
604
1300
  ngOnDestroy(): void;
605
- reloadVideo(): void;
606
- onSuccess(): void;
607
- onError(): void;
608
- static ɵfac: i0.ɵɵFactoryDeclaration<MultimediaPlayerComponent, never>;
609
- static ɵcmp: i0.ɵɵComponentDeclaration<MultimediaPlayerComponent, "mv-multimedia-player", never, { "url": { "alias": "url"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "multimediaOn": { "alias": "multimediaOn"; "required": false; }; }, { "loadStatus": "loadStatus"; }, never, never, false, never>;
1301
+ onSelect(annotationId: SelectionAnnotation): void;
1302
+ onCommentDelete(comment: Comment): void;
1303
+ redrawComments(): void;
1304
+ private rotateDocument;
1305
+ onCommentUpdate(payload: {
1306
+ comment: Comment;
1307
+ tags: TagsModel[];
1308
+ }): void;
1309
+ onAnnotationUpdate(annotation: Annotation): void;
1310
+ onContainerClick(e: any): void;
1311
+ clearSelection(): void;
1312
+ allCommentsSaved(): void;
1313
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommentSetComponent, never>;
1314
+ static ɵcmp: i0.ɵɵComponentDeclaration<CommentSetComponent, "mv-comment-set", never, { "annotationSet": { "alias": "annotationSet"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "height": { "alias": "height"; "required": false; }; "pageHeights": { "alias": "pageHeights"; "required": false; }; "contentScrollTop": { "alias": "contentScrollTop"; "required": false; }; }, {}, never, never, false, never>;
610
1315
  }
611
1316
 
612
- declare class IcpEventService {
613
- enabled: BehaviorSubject<boolean>;
614
- sessionLaunch: Subject<void>;
615
- becomingPresenter: Subject<void>;
616
- stoppingPresenting: Subject<void>;
617
- leavingSession: BehaviorSubject<boolean>;
618
- sessionExitConfirmed: Subject<void>;
619
- participantsListVisible: BehaviorSubject<boolean>;
620
- constructor();
621
- launchSession: () => void;
622
- enable: () => void;
623
- becomePresenter: () => void;
624
- stopPresenting: () => void;
625
- leaveSession: () => void;
626
- confirmExit: () => void;
627
- static ɵfac: i0.ɵɵFactoryDeclaration<IcpEventService, never>;
628
- static ɵprov: i0.ɵɵInjectableDeclaration<IcpEventService>;
1317
+ declare class CommentService {
1318
+ readonly unsavedChanges: Subject<boolean>;
1319
+ readonly marginToCommentEmitter: BehaviorSubject<boolean>;
1320
+ commentSetComponent: CommentSetComponent;
1321
+ setCommentSet(commentSetComponent: any): void;
1322
+ onCommentChange(changes: boolean): void;
1323
+ getUnsavedChanges(): Observable<boolean>;
1324
+ hasUnsavedComments(annotation: Annotation): boolean;
1325
+ updateUnsavedCommentsStatus(annotation: Annotation, hasUnsavedChanges: boolean): void;
1326
+ getComment(annotation: Annotation): CommentComponent;
1327
+ resetCommentSet(): void;
1328
+ allCommentsSaved(): void;
1329
+ createMarginToCommentEvent(margin: boolean): void;
1330
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommentService, never>;
1331
+ static ɵprov: i0.ɵɵInjectableDeclaration<CommentService>;
629
1332
  }
630
1333
 
631
1334
  declare class MediaViewerComponent implements OnChanges, OnDestroy, AfterContentInit, AfterViewChecked {
@@ -670,7 +1373,7 @@ declare class MediaViewerComponent implements OnChanges, OnDestroy, AfterContent
670
1373
  private $subscriptions;
671
1374
  private prevOffset;
672
1375
  private currentRegionIndex;
673
- constructor();
1376
+ constructor(store: Store<AnnotationSetState>, toolbarButtons: ToolbarButtonVisibilityService, toolbarEvents: ToolbarEventService, api: AnnotationApiService, commentService: CommentService, elRef: ElementRef, cdr: ChangeDetectorRef, icpEventService: IcpEventService);
674
1377
  ngAfterContentInit(): void;
675
1378
  ngAfterViewChecked(): void;
676
1379
  ngOnChanges(changes: SimpleChanges): void;
@@ -709,6 +1412,7 @@ declare class ConvertibleContentViewerComponent implements OnInit, OnDestroy, On
709
1412
  documentTitle: EventEmitter<string>;
710
1413
  private $subscription;
711
1414
  convertedUrl: string;
1415
+ constructor(store: Store<DocumentState>);
712
1416
  ngOnInit(): void;
713
1417
  ngOnChanges(changes: SimpleChanges): void;
714
1418
  ngOnDestroy(): void;
@@ -729,6 +1433,7 @@ declare class GrabNDragDirective {
729
1433
  private pointerDown;
730
1434
  dragEnabled: boolean;
731
1435
  dragX: Element;
1436
+ constructor(el: ElementRef);
732
1437
  onPointerDown(event: PointerEvent): void;
733
1438
  onPointerMove(event: PointerEvent): void;
734
1439
  onWindowPointerUp(): void;
@@ -745,6 +1450,7 @@ declare class RotationPersistDirective implements OnInit, OnDestroy {
745
1450
  rotation: number;
746
1451
  savedRotation: number;
747
1452
  $subscriptions: Subscription;
1453
+ constructor(el: ElementRef, store: Store<DocumentState>, toolbarButtons: ToolbarButtonVisibilityService, toolbarEvents: ToolbarEventService);
748
1454
  ngOnInit(): void;
749
1455
  ngOnDestroy(): void;
750
1456
  onMediaLoad(status: ResponseType): void;
@@ -792,7 +1498,7 @@ declare class KeyboardTextHighlightDirective implements OnDestroy {
792
1498
  private lastValidEndNode;
793
1499
  private lastValidEndOffset;
794
1500
  private static lastInteractionWasKeyboard;
795
- constructor();
1501
+ constructor(elementRef: ElementRef<HTMLElement>);
796
1502
  private static onGlobalKeyDown;
797
1503
  private static onGlobalMouseDown;
798
1504
  ngOnDestroy(): void;
@@ -818,6 +1524,7 @@ declare class KeyboardTextHighlightDirective implements OnDestroy {
818
1524
  declare class ConfirmActionDialogComponent implements AfterViewInit {
819
1525
  private icpEventService;
820
1526
  modalContainer: ElementRef;
1527
+ constructor(icpEventService: IcpEventService);
821
1528
  ngAfterViewInit(): void;
822
1529
  onCancel(): void;
823
1530
  onConfirm(): void;
@@ -825,19 +1532,6 @@ declare class ConfirmActionDialogComponent implements AfterViewInit {
825
1532
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmActionDialogComponent, "mv-confirm-action", never, {}, {}, never, never, false, never>;
826
1533
  }
827
1534
 
828
- interface SelectionAnnotation {
829
- annotationId: string;
830
- editable: boolean;
831
- selected: boolean;
832
- }
833
-
834
- interface Redaction {
835
- redactionId?: string;
836
- documentId?: string;
837
- page?: number;
838
- rectangles?: Rectangle[];
839
- }
840
-
841
1535
  declare class RedactionComponent implements OnInit, OnDestroy {
842
1536
  private store;
843
1537
  private readonly viewerEvents;
@@ -850,6 +1544,7 @@ declare class RedactionComponent implements OnInit, OnDestroy {
850
1544
  drawMode: boolean;
851
1545
  documentId: string;
852
1546
  private $subscription;
1547
+ constructor(store: Store<State>, viewerEvents: ViewerEventService, toolbarEvents: ToolbarEventService);
853
1548
  ngOnInit(): void;
854
1549
  ngOnDestroy(): void;
855
1550
  markTextRedaction(highlight: any): void;
@@ -869,58 +1564,19 @@ declare class RedactionComponent implements OnInit, OnDestroy {
869
1564
  static ɵcmp: i0.ɵɵComponentDeclaration<RedactionComponent, "mv-redactions", never, { "zoom": { "alias": "zoom"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; }, {}, never, never, false, never>;
870
1565
  }
871
1566
 
872
- interface Bookmark {
873
- id: string;
874
- documentId: string;
875
- name: string;
876
- pageNumber: number;
877
- xCoordinate: number;
878
- yCoordinate: number;
879
- children: any[];
880
- previous: string;
881
- index: number;
882
- }
883
- interface BookmarksPerPage {
884
- bookmark: {
885
- [id: string]: Bookmark;
886
- };
887
- styles: {
888
- left: number;
889
- height: number;
890
- width: number;
891
- };
892
- }
893
-
894
1567
  declare class BookmarkIconsComponent implements OnInit {
895
1568
  private store;
896
1569
  zoom: number;
897
1570
  rotate: number;
898
1571
  bookmarksPerPage$: Observable<BookmarksPerPage[]>;
899
- bookmarks: Bookmark[];
1572
+ bookmarks: Bookmark$1[];
900
1573
  documentId: string;
1574
+ constructor(store: Store<State>);
901
1575
  ngOnInit(): void;
902
1576
  static ɵfac: i0.ɵɵFactoryDeclaration<BookmarkIconsComponent, never>;
903
1577
  static ɵcmp: i0.ɵɵComponentDeclaration<BookmarkIconsComponent, "mv-bookmark-icons", never, { "zoom": { "alias": "zoom"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; }, {}, never, never, false, never>;
904
1578
  }
905
1579
 
906
- interface IcpState {
907
- session: IcpSession;
908
- presenter: IcpParticipant;
909
- client: IcpParticipant;
910
- participants: IcpParticipant[];
911
- }
912
- interface IcpSession {
913
- sessionId: string;
914
- documentId: string;
915
- caseId: string;
916
- dateOfHearing: Date;
917
- connectionUrl: string;
918
- }
919
- interface IcpParticipant {
920
- id: string;
921
- username: string;
922
- }
923
-
924
1580
  declare class ParticipantsListComponent implements OnInit, OnDestroy {
925
1581
  private readonly toolbarEvents;
926
1582
  private store;
@@ -930,6 +1586,7 @@ declare class ParticipantsListComponent implements OnInit, OnDestroy {
930
1586
  presenter$: Observable<IcpParticipant>;
931
1587
  isPresenter$: Observable<boolean>;
932
1588
  showParticipantsList: boolean;
1589
+ constructor(toolbarEvents: ToolbarEventService, store: Store<IcpState>, icpEventService: IcpEventService);
933
1590
  ngOnInit(): void;
934
1591
  ngOnDestroy(): void;
935
1592
  static ɵfac: i0.ɵɵFactoryDeclaration<ParticipantsListComponent, never>;
@@ -949,6 +1606,7 @@ declare class SearchBarComponent implements OnInit, OnDestroy, AfterViewInit {
949
1606
  resultCount: number;
950
1607
  private subscriptions;
951
1608
  advancedSearchVisible: boolean;
1609
+ constructor(toolbarButtons: ToolbarButtonVisibilityService, toolbarEvents: ToolbarEventService);
952
1610
  ngOnInit(): void;
953
1611
  ngAfterViewInit(): void;
954
1612
  ngOnDestroy(): void;
@@ -965,6 +1623,23 @@ declare class SearchBarComponent implements OnInit, OnDestroy, AfterViewInit {
965
1623
  static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "mv-search-bar", never, {}, {}, never, never, false, never>;
966
1624
  }
967
1625
 
1626
+ /**
1627
+ * Number Helper Service
1628
+ * */
1629
+ declare class NumberHelperService {
1630
+ constructor();
1631
+ isNumber(value: string | number): boolean;
1632
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberHelperService, never>;
1633
+ static ɵprov: i0.ɵɵInjectableDeclaration<NumberHelperService>;
1634
+ }
1635
+
1636
+ declare class ToolbarFocusService {
1637
+ focusToolbarButton(toolbarSelector: string, buttonId?: string, delay?: number): void;
1638
+ private focusWithoutScrolling;
1639
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarFocusService, never>;
1640
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToolbarFocusService>;
1641
+ }
1642
+
968
1643
  declare class MainToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
969
1644
  readonly toolbarEvents: ToolbarEventService;
970
1645
  readonly toolbarButtons: ToolbarButtonVisibilityService;
@@ -998,6 +1673,7 @@ declare class MainToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
998
1673
  widthRequiredForBtn: {
999
1674
  [id: string]: number;
1000
1675
  };
1676
+ constructor(toolbarEvents: ToolbarEventService, toolbarButtons: ToolbarButtonVisibilityService, cdr: ChangeDetectorRef, numberHelper: NumberHelperService, icpEventService: IcpEventService, toolbarFocusService: ToolbarFocusService);
1001
1677
  ngOnInit(): void;
1002
1678
  ngOnDestroy(): void;
1003
1679
  ngAfterViewInit(): void;
@@ -1048,6 +1724,7 @@ declare class RedactionToolbarComponent implements OnInit, OnDestroy {
1048
1724
  hasRedactions: boolean;
1049
1725
  private subscriptions;
1050
1726
  redactionAllInProgress: boolean;
1727
+ constructor(toolbarEventService: ToolbarEventService, toolbarButtons: ToolbarButtonVisibilityService, store: Store<AnnotationSetState>, toolbarFocusService: ToolbarFocusService);
1051
1728
  ngOnInit(): void;
1052
1729
  onRedactAllSearch(): void;
1053
1730
  toggleTextRedactionMode(): void;
@@ -1072,6 +1749,7 @@ declare class IcpToolbarComponent implements OnInit, OnDestroy {
1072
1749
  presenterName: string;
1073
1750
  isPresenter: boolean;
1074
1751
  private $subscription;
1752
+ constructor(toolbarEventService: ToolbarEventService, store: Store<IcpState>, icpEventService: IcpEventService);
1075
1753
  ngOnInit(): void;
1076
1754
  ngOnDestroy(): void;
1077
1755
  present(): void;
@@ -1082,17 +1760,6 @@ declare class IcpToolbarComponent implements OnInit, OnDestroy {
1082
1760
  static ɵcmp: i0.ɵɵComponentDeclaration<IcpToolbarComponent, "mv-icp-toolbar", never, {}, {}, never, never, false, never>;
1083
1761
  }
1084
1762
 
1085
- declare class HighlightCreateService {
1086
- private toolBarEvents;
1087
- private store;
1088
- saveAnnotation(rectangles: Rectangle[], page: number, annotationId?: string): void;
1089
- saveAnnotationSet(searchRectangles: RedactRectangle[]): void;
1090
- applyRotation(pageHeight: any, pageWidth: any, offsetHeight: any, offsetWidth: any, offsetTop: any, offsetLeft: any, rotate: any, zoom: any): any;
1091
- resetHighlight(): void;
1092
- static ɵfac: i0.ɵɵFactoryDeclaration<HighlightCreateService, never>;
1093
- static ɵprov: i0.ɵɵInjectableDeclaration<HighlightCreateService>;
1094
- }
1095
-
1096
1763
  declare class RedactionSearchBarComponent implements OnInit, OnDestroy {
1097
1764
  private store;
1098
1765
  readonly toolbarButtons: ToolbarButtonVisibilityService;
@@ -1121,6 +1788,7 @@ declare class RedactionSearchBarComponent implements OnInit, OnDestroy {
1121
1788
  private subscription;
1122
1789
  private documentId;
1123
1790
  advancedSearchVisible: boolean;
1791
+ constructor(store: Store<State>, toolbarButtons: ToolbarButtonVisibilityService, toolbarEvents: ToolbarEventService, highlightService: HighlightCreateService);
1124
1792
  ngOnInit(): void;
1125
1793
  ngOnDestroy(): void;
1126
1794
  onWindowKeyDown(e: KeyboardEvent): void;
@@ -1150,6 +1818,7 @@ declare class HighlightToolbarComponent implements OnInit, OnDestroy {
1150
1818
  private readonly toolbarFocusService;
1151
1819
  private subscriptions;
1152
1820
  redactionAllInProgress: boolean;
1821
+ constructor(toolbarEventService: ToolbarEventService, toolbarButtons: ToolbarButtonVisibilityService, toolbarFocusService: ToolbarFocusService);
1153
1822
  ngOnInit(): void;
1154
1823
  onAllSearch(): void;
1155
1824
  onHighlight(): void;
@@ -1166,6 +1835,7 @@ declare class HighlightToolbarComponent implements OnInit, OnDestroy {
1166
1835
 
1167
1836
  declare class TooltipDismissDirective {
1168
1837
  private el;
1838
+ constructor(el: ElementRef);
1169
1839
  onEscapeDismissTooltip(): void;
1170
1840
  onShowTooltip(): void;
1171
1841
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDismissDirective, never>;
@@ -1234,6 +1904,7 @@ declare class KeyboardNavDirective implements OnInit, OnDestroy {
1234
1904
  private currentFocusIndex;
1235
1905
  private mutationObserver;
1236
1906
  private isUsingArrowKeys;
1907
+ constructor(elementRef: ElementRef<HTMLElement>);
1237
1908
  ngOnInit(): void;
1238
1909
  ngOnDestroy(): void;
1239
1910
  private setupMutationObserver;
@@ -1263,11 +1934,6 @@ declare class ToolbarModule {
1263
1934
  static ɵinj: i0.ɵɵInjectorDeclaration<ToolbarModule>;
1264
1935
  }
1265
1936
 
1266
- interface Highlight {
1267
- page: number;
1268
- rectangles: Rectangle[];
1269
- }
1270
-
1271
1937
  declare class CtxToolbarComponent implements OnChanges {
1272
1938
  readonly defaultHeight: any;
1273
1939
  readonly defaultWidth: any;
@@ -1320,6 +1986,7 @@ declare class MetadataLayerComponent implements OnInit, OnDestroy {
1320
1986
  highlightPage: number;
1321
1987
  rectangles: Rectangle[];
1322
1988
  private $subscriptions;
1989
+ constructor(store: Store<AnnotationSetState>, highlightService: HighlightCreateService, toolbarEvents: ToolbarEventService, viewerEvents: ViewerEventService);
1323
1990
  ngOnInit(): void;
1324
1991
  ngOnDestroy(): void;
1325
1992
  showContextToolbar(highlight: Highlight): void;
@@ -1359,7 +2026,7 @@ declare class AnnotationViewComponent implements OnDestroy {
1359
2026
  ctxToolbar: ElementRef<HTMLElement>;
1360
2027
  private lastFocusedRectangle;
1361
2028
  private nextTabTarget;
1362
- constructor();
2029
+ constructor(toolbarEvents: ToolbarEventService, store: Store<AnnotationSetState>);
1363
2030
  ngOnDestroy(): void;
1364
2031
  private setShowToolbar;
1365
2032
  onSelect(): void;
@@ -1409,7 +2076,7 @@ declare class KeyboardBoxDrawDirective implements OnDestroy {
1409
2076
  private currentWidth;
1410
2077
  private currentHeight;
1411
2078
  private static lastInteractionWasKeyboard;
1412
- constructor();
2079
+ constructor(elementRef: ElementRef<HTMLElement>);
1413
2080
  private static onGlobalKeyDown;
1414
2081
  private static onGlobalMouseDown;
1415
2082
  ngOnDestroy(): void;
@@ -1471,6 +2138,7 @@ declare class BoxHighlightCreateComponent implements OnInit, OnDestroy {
1471
2138
  cursorY: number;
1472
2139
  showCursor: boolean;
1473
2140
  private subscriptions;
2141
+ constructor(toolbarEvents: ToolbarEventService, highlightService: HighlightCreateService);
1474
2142
  ngOnInit(): void;
1475
2143
  ngOnDestroy(): void;
1476
2144
  private isElementInViewport;
@@ -1500,6 +2168,7 @@ declare class AnnotationSetComponent implements OnInit {
1500
2168
  pageHeight: number;
1501
2169
  pageWidth: number;
1502
2170
  selectedAnnotation$: Observable<SelectionAnnotation>;
2171
+ constructor(store: Store<AnnotationSetState>, commentService: CommentService);
1503
2172
  ngOnInit(): void;
1504
2173
  onAnnotationUpdate(annotation: Annotation): void;
1505
2174
  onAnnotationDelete(annotation: Annotation): void;
@@ -1523,7 +2192,7 @@ declare class KeyboardBoxMoveDirective implements OnDestroy {
1523
2192
  private moveSubject;
1524
2193
  private moveSubscription;
1525
2194
  private isMoving;
1526
- constructor();
2195
+ constructor(elementRef: ElementRef<HTMLElement>);
1527
2196
  ngOnDestroy(): void;
1528
2197
  onKeyDown(event: KeyboardEvent): void;
1529
2198
  private moveBox;
@@ -1560,6 +2229,7 @@ declare class RectangleComponent implements OnChanges, AfterViewInit, OnDestroy
1560
2229
  _annoRect: Rectangle;
1561
2230
  set annoRect(annoRect: Rectangle);
1562
2231
  get annoRect(): Rectangle;
2232
+ constructor(toolbarEvents: ToolbarEventService, highlightService: HighlightCreateService);
1563
2233
  ngOnChanges(changes: SimpleChanges): void;
1564
2234
  ngAfterViewInit(): void;
1565
2235
  ngOnDestroy(): void;
@@ -1578,62 +2248,6 @@ declare class RectangleComponent implements OnChanges, AfterViewInit, OnDestroy
1578
2248
  static ɵcmp: i0.ɵɵComponentDeclaration<RectangleComponent, "mv-anno-rectangle", never, { "color": { "alias": "color"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "pageHeight": { "alias": "pageHeight"; "required": false; }; "pageWidth": { "alias": "pageWidth"; "required": false; }; "rectangleTabIndex": { "alias": "rectangleTabIndex"; "required": false; }; "annoRect": { "alias": "annoRect"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectEvent": "selectEvent"; "updateEvent": "updateEvent"; "deleteEvent": "deleteEvent"; "keyboardMovingChange": "keyboardMovingChange"; "tabToToolbar": "tabToToolbar"; }, never, never, false, never>;
1579
2249
  }
1580
2250
 
1581
- declare class CommentComponent implements OnInit, OnDestroy, AfterContentInit {
1582
- private store;
1583
- private readonly commentService;
1584
- private tagsServices;
1585
- CHAR_LIMIT: number;
1586
- lastUpdate: string;
1587
- originalComment: string;
1588
- fullComment: string;
1589
- author: User;
1590
- createdBy: string;
1591
- editor: User;
1592
- _comment: Comment;
1593
- _editable: boolean;
1594
- _rectangle: any;
1595
- totalPrevPagesHeight: number;
1596
- rectTop: any;
1597
- rectLeft: any;
1598
- pageHeight: number;
1599
- hasUnsavedChanges: boolean;
1600
- selected: boolean;
1601
- searchString: string;
1602
- tagItems: TagsModel[];
1603
- marginToComment$: Observable<boolean>;
1604
- commentClick: EventEmitter<SelectionAnnotation>;
1605
- renderComments: EventEmitter<Comment>;
1606
- delete: EventEmitter<Comment>;
1607
- updated: EventEmitter<{
1608
- comment: Comment;
1609
- tags: TagsModel[];
1610
- }>;
1611
- changes: EventEmitter<boolean>;
1612
- rotate: number;
1613
- zoom: number;
1614
- index: number;
1615
- page: number;
1616
- form: ElementRef;
1617
- editableComment: ElementRef<HTMLElement>;
1618
- private subscriptions;
1619
- ngOnInit(): void;
1620
- ngAfterContentInit(): void;
1621
- ngOnDestroy(): void;
1622
- set comment(comment: Comment);
1623
- get comment(): Comment;
1624
- set annotation(annotation: Annotation);
1625
- get editable(): boolean;
1626
- onCommentChange(updatedComment: any): void;
1627
- deleteOrCancel(): void;
1628
- editOrSave(): void;
1629
- onCommentClick(): void;
1630
- reRenderComments(): void;
1631
- get commentTop(): number;
1632
- get height(): number;
1633
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentComponent, never>;
1634
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentComponent, "mv-anno-comment", never, { "rotate": { "alias": "rotate"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "index": { "alias": "index"; "required": false; }; "page": { "alias": "page"; "required": false; }; "comment": { "alias": "comment"; "required": false; }; "annotation": { "alias": "annotation"; "required": false; }; }, { "commentClick": "commentClick"; "renderComments": "renderComments"; "delete": "delete"; "updated": "updated"; "changes": "changes"; }, never, never, false, never>;
1635
- }
1636
-
1637
2251
  declare class CommentSetHeaderComponent implements OnInit, OnDestroy {
1638
2252
  private store;
1639
2253
  private commentService;
@@ -1651,6 +2265,7 @@ declare class CommentSetHeaderComponent implements OnInit, OnDestroy {
1651
2265
  isFiltered: boolean;
1652
2266
  navigationList: Annotation[];
1653
2267
  $subscriptions: Subscription;
2268
+ constructor(store: Store<State>, commentService: CommentService, toolbarEvents: ToolbarEventService, icpEventService: IcpEventService);
1654
2269
  ngOnInit(): void;
1655
2270
  toggleCommentsSummary(): void;
1656
2271
  selectTab(tab: string): void;
@@ -1667,6 +2282,7 @@ declare class CommentSearchComponent implements AfterViewInit, OnDestroy {
1667
2282
  searchString: string;
1668
2283
  searchResults: Annotation[];
1669
2284
  searchIndex: number;
2285
+ constructor(store: Store<AnnotationSetState>);
1670
2286
  ngAfterViewInit(): void;
1671
2287
  ngOnDestroy(): void;
1672
2288
  searchComments(searchText: string): void;
@@ -1674,58 +2290,17 @@ declare class CommentSearchComponent implements AfterViewInit, OnDestroy {
1674
2290
  static ɵfac: i0.ɵɵFactoryDeclaration<CommentSearchComponent, never>;
1675
2291
  static ɵcmp: i0.ɵɵComponentDeclaration<CommentSearchComponent, "mv-comment-search", never, { "annotations": { "alias": "annotations"; "required": false; }; }, {}, never, never, false, never>;
1676
2292
  }
1677
-
1678
- declare class TextHighlightDirective implements AfterViewChecked {
1679
- private element;
1680
- textToHighlight: string;
1681
- ngAfterViewChecked(): void;
1682
- highlightInputText(textToHighlight: string): void;
1683
- resetHighlight(): void;
1684
- private highlightPattern;
1685
- static ɵfac: i0.ɵɵFactoryDeclaration<TextHighlightDirective, never>;
1686
- static ɵdir: i0.ɵɵDirectiveDeclaration<TextHighlightDirective, "[mvTextHighlight]", never, { "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, {}, never, never, false, never>;
1687
- }
1688
-
1689
- declare class CommentSetComponent implements OnInit, OnDestroy, OnChanges {
1690
- private store;
1691
- private readonly commentService;
1692
- private readonly renderService;
1693
- private readonly toolbarEvents;
1694
- annotationSet: AnnotationSet;
1695
- zoom: number;
1696
- rotate: number;
1697
- height: number;
1698
- pageHeights: any[];
1699
- contentScrollTop: number;
1700
- comments: Comment[];
1701
- tags: TagsModel[];
1702
- private subscriptions;
1703
- comments$: Observable<Annotation[]>;
1704
- annoEntities$: Observable<{
1705
- [id: string]: Annotation;
1706
- }>;
1707
- container: ElementRef<HTMLDivElement>;
1708
- panel: ElementRef<HTMLDivElement>;
1709
- commentComponents: QueryList<CommentComponent>;
1710
- showCommentsPanel: boolean;
1711
- constructor();
1712
- ngOnInit(): void;
1713
- ngOnChanges(changes: SimpleChanges): void;
1714
- ngOnDestroy(): void;
1715
- onSelect(annotationId: SelectionAnnotation): void;
1716
- onCommentDelete(comment: Comment): void;
1717
- redrawComments(): void;
1718
- private rotateDocument;
1719
- onCommentUpdate(payload: {
1720
- comment: Comment;
1721
- tags: TagsModel[];
1722
- }): void;
1723
- onAnnotationUpdate(annotation: Annotation): void;
1724
- onContainerClick(e: any): void;
1725
- clearSelection(): void;
1726
- allCommentsSaved(): void;
1727
- static ɵfac: i0.ɵɵFactoryDeclaration<CommentSetComponent, never>;
1728
- static ɵcmp: i0.ɵɵComponentDeclaration<CommentSetComponent, "mv-comment-set", never, { "annotationSet": { "alias": "annotationSet"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "height": { "alias": "height"; "required": false; }; "pageHeights": { "alias": "pageHeights"; "required": false; }; "contentScrollTop": { "alias": "contentScrollTop"; "required": false; }; }, {}, never, never, false, never>;
2293
+
2294
+ declare class TextHighlightDirective implements AfterViewChecked {
2295
+ private element;
2296
+ textToHighlight: string;
2297
+ constructor(element: ElementRef<HTMLElement>);
2298
+ ngAfterViewChecked(): void;
2299
+ highlightInputText(textToHighlight: string): void;
2300
+ resetHighlight(): void;
2301
+ private highlightPattern;
2302
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextHighlightDirective, never>;
2303
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextHighlightDirective, "[mvTextHighlight]", never, { "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, {}, never, never, false, never>;
1729
2304
  }
1730
2305
 
1731
2306
  declare class CommentsNavigateComponent implements OnChanges {
@@ -1735,6 +2310,7 @@ declare class CommentsNavigateComponent implements OnChanges {
1735
2310
  autoSelect: boolean;
1736
2311
  navigationList: any[];
1737
2312
  index: number;
2313
+ constructor(store: Store<AnnotationSetState>, toolbarEvents: ToolbarEventService);
1738
2314
  ngOnChanges(changes: SimpleChanges): void;
1739
2315
  initNavigationList(): void;
1740
2316
  sortComments(mappedCommentA: any, mappedCommentB: any): number;
@@ -1750,6 +2326,7 @@ declare class CommentsNavigateComponent implements OnChanges {
1750
2326
 
1751
2327
  declare class TextareaAutoExpandDirective implements AfterContentChecked {
1752
2328
  private el;
2329
+ constructor(el: ElementRef);
1753
2330
  ngAfterContentChecked(): void;
1754
2331
  onMouseDown(): void;
1755
2332
  adjustHeight(): void;
@@ -1777,6 +2354,7 @@ declare class CommentsSummaryComponent implements OnInit, OnDestroy {
1777
2354
  hasFilter: boolean;
1778
2355
  fromFilterValid: boolean;
1779
2356
  toFilterValid: boolean;
2357
+ constructor(store: Store<AnnotationSetState>, printService: PrintService, toolbarEvents: ToolbarEventService, fb: FormBuilder);
1780
2358
  ngOnInit(): void;
1781
2359
  buildCheckBoxForm(): void;
1782
2360
  onClearFilters(): void;
@@ -1804,6 +2382,7 @@ declare class TagsComponent {
1804
2382
  errorMessages: {
1805
2383
  [id: string]: string;
1806
2384
  };
2385
+ constructor(tagsServices: TagsServices);
1807
2386
  onUpdateTags(value: any): void;
1808
2387
  requestAutocompleteItems: (text: string) => Observable<any[]>;
1809
2388
  private minLength;
@@ -1834,6 +2413,7 @@ declare class CommentFilterComponent implements OnInit, OnDestroy {
1834
2413
  allTags$: Observable<any>;
1835
2414
  searchValue: string;
1836
2415
  isPreview: boolean;
2416
+ constructor(store: Store<State>, fb: UntypedFormBuilder);
1837
2417
  ngOnInit(): void;
1838
2418
  buildFrom(): void;
1839
2419
  onClearFilters(): void;
@@ -1868,254 +2448,6 @@ declare class MediaViewerModule {
1868
2448
  static ɵinj: i0.ɵɵInjectorDeclaration<MediaViewerModule>;
1869
2449
  }
1870
2450
 
1871
- declare class AnnotationApiService {
1872
- private readonly httpClient;
1873
- annotationApiUrl: string;
1874
- private annotationSetBaseUrl;
1875
- private annotationBaseUrl;
1876
- getAnnotationSet(documentId: string): Observable<any>;
1877
- postAnnotationSet(body: Partial<AnnotationSet>): Observable<AnnotationSet>;
1878
- getComments(annotationSet: Observable<AnnotationSet>): Observable<Comment[]>;
1879
- /**
1880
- * Sort the annotations in the response by page and then y position of their first rectangle
1881
- */
1882
- private sortAnnotations;
1883
- private extractComments;
1884
- deleteAnnotation(annotationId: string): Observable<null>;
1885
- postAnnotation(annotation: Partial<Annotation>): Observable<Annotation>;
1886
- get annotationSetsFullUrl(): string;
1887
- get annotationFullsUrl(): string;
1888
- static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationApiService, never>;
1889
- static ɵprov: i0.ɵɵInjectableDeclaration<AnnotationApiService>;
1890
- }
1891
-
1892
- interface Filters {
1893
- tagFilters?: {
1894
- [key: string]: any;
1895
- };
1896
- dateRangeFrom?: number | null;
1897
- dateRangeTo?: number | null;
1898
- }
1899
-
1900
- declare const LOAD_ANNOTATION_SET = "[Annotations] Load Annotation Set";
1901
- declare const LOAD_ANNOTATION_SET_SUCCESS = "[Annotations] Load Annotation Set Success";
1902
- declare const LOAD_ANNOTATION_SET_FAIL = "[Annotations] Load Annotation Set Fail";
1903
- declare const SAVE_ANNOTATION_SET = "[Annotations] Save Annotation Set";
1904
- declare const SAVE_ANNOTATION_SET_SUCCESS = "[Annotations] Save Annotation Set Success";
1905
- declare const SAVE_ANNOTATION_SET_FAIL = "[Annotations] Save Annotation Set Fail";
1906
- declare const SAVE_ANNOTATION = "[Annotations] Save Annotation";
1907
- declare const SAVE_ANNOTATION_SUCCESS = "[Annotations] Save Annotation Success";
1908
- declare const SAVE_ANNOTATION_FAIL = "[Annotations] Save Annotation Fail";
1909
- declare const ADD_OR_EDIT_COMMENT = "[Annotations] Add or Edit Comment";
1910
- declare const DELETE_ANNOTATION = "[Annotations] Delete Annotation";
1911
- declare const DELETE_ANNOTATION_SUCCESS = "[Annotations] Delete Annotation Success";
1912
- declare const DELETE_ANNOTATION_FAIL = "[Annotations] Delete Annotation Fail";
1913
- declare const SELECT_ANNOTATION = "[Annotations] Select Annotation";
1914
- declare const SEARCH_COMMENT = "[Comments] Search Comments";
1915
- declare const APPLY_COMMENT_SUMMARY_FILTER = "[Comments] Apply Comment Summary Filter";
1916
- declare const CLEAR_COMMENT_SUMMARY_FILTER = "[Comments] Clear Comment Summary Filter";
1917
- declare class LoadAnnotationSet implements Action {
1918
- payload: string;
1919
- readonly type = "[Annotations] Load Annotation Set";
1920
- constructor(payload: string);
1921
- }
1922
- declare class SaveAnnotationSet implements Action {
1923
- payload: AnnotationSet;
1924
- readonly type = "[Annotations] Save Annotation Set";
1925
- constructor(payload: AnnotationSet);
1926
- }
1927
- declare class LoadAnnotationSetSucess implements Action {
1928
- payload: {
1929
- status: number;
1930
- body: AnnotationSet;
1931
- };
1932
- readonly type = "[Annotations] Load Annotation Set Success";
1933
- constructor(payload: {
1934
- status: number;
1935
- body: AnnotationSet;
1936
- });
1937
- }
1938
- declare class SaveAnnotationSetSuccess implements Action {
1939
- payload: AnnotationSet;
1940
- readonly type = "[Annotations] Save Annotation Set Success";
1941
- constructor(payload: AnnotationSet);
1942
- }
1943
- declare class LoadAnnotationSetFail implements Action {
1944
- payload: {
1945
- status: number;
1946
- body: any;
1947
- };
1948
- readonly type = "[Annotations] Load Annotation Set Fail";
1949
- constructor(payload: {
1950
- status: number;
1951
- body: any;
1952
- });
1953
- }
1954
- declare class SaveAnnotationSetFail implements Action {
1955
- payload: {
1956
- status: number;
1957
- body: any;
1958
- };
1959
- readonly type = "[Annotations] Save Annotation Set Fail";
1960
- constructor(payload: {
1961
- status: number;
1962
- body: any;
1963
- });
1964
- }
1965
- declare class SaveAnnotation implements Action {
1966
- payload: Annotation;
1967
- autoSelect?: boolean;
1968
- readonly type = "[Annotations] Save Annotation";
1969
- constructor(payload: Annotation, autoSelect?: boolean);
1970
- }
1971
- declare class SaveAnnotationSuccess implements Action {
1972
- payload: any;
1973
- readonly type = "[Annotations] Save Annotation Success";
1974
- constructor(payload: any);
1975
- }
1976
- declare class SaveAnnotationFail implements Action {
1977
- payload: Error;
1978
- readonly type = "[Annotations] Save Annotation Fail";
1979
- constructor(payload: Error);
1980
- }
1981
- declare class AddOrEditComment implements Action {
1982
- payload: Comment;
1983
- readonly type = "[Annotations] Add or Edit Comment";
1984
- constructor(payload: Comment);
1985
- }
1986
- declare class DeleteAnnotation implements Action {
1987
- payload: string;
1988
- readonly type = "[Annotations] Delete Annotation";
1989
- constructor(payload: string);
1990
- }
1991
- declare class DeleteAnnotationSuccess implements Action {
1992
- payload: string;
1993
- readonly type = "[Annotations] Delete Annotation Success";
1994
- constructor(payload: string);
1995
- }
1996
- declare class DeleteAnnotationFail implements Action {
1997
- payload: Error;
1998
- readonly type = "[Annotations] Delete Annotation Fail";
1999
- constructor(payload: Error);
2000
- }
2001
- declare class SelectedAnnotation implements Action {
2002
- payload: SelectionAnnotation;
2003
- readonly type = "[Annotations] Select Annotation";
2004
- constructor(payload: SelectionAnnotation);
2005
- }
2006
- declare class SearchComment implements Action {
2007
- payload: string;
2008
- readonly type = "[Comments] Search Comments";
2009
- constructor(payload: string);
2010
- }
2011
- declare class ApplyCommentSymmaryFilter implements Action {
2012
- payload: Filters;
2013
- readonly type = "[Comments] Apply Comment Summary Filter";
2014
- constructor(payload: Filters);
2015
- }
2016
- declare class ClearCommentSummaryFilters implements Action {
2017
- readonly type = "[Comments] Clear Comment Summary Filter";
2018
- }
2019
- type AnnotationsActions = LoadAnnotationSet | LoadAnnotationSetSucess | LoadAnnotationSetFail | SaveAnnotation | SaveAnnotationSuccess | SaveAnnotationFail | SaveAnnotationSetSuccess | AddOrEditComment | DeleteAnnotation | DeleteAnnotationSuccess | DeleteAnnotationFail | SelectedAnnotation | SearchComment | ApplyCommentSymmaryFilter | ClearCommentSummaryFilters;
2020
-
2021
- interface AnnotationSetState {
2022
- annotationSet: any;
2023
- annotationEntities: {
2024
- [id: string]: any;
2025
- };
2026
- annotationPageEntities: {
2027
- [id: string]: Annotation[];
2028
- };
2029
- commentEntities: {
2030
- [id: string]: Comment;
2031
- };
2032
- selectedAnnotation: SelectionAnnotation;
2033
- commentSearchQueries: {
2034
- commentSearch: string;
2035
- };
2036
- commentSummaryFilters: {
2037
- hasFilter: boolean;
2038
- filters: Filters;
2039
- };
2040
- loaded: boolean;
2041
- loading: boolean;
2042
- }
2043
- declare const initialState: AnnotationSetState;
2044
- declare function reducer(state: AnnotationSetState, action: AnnotationsActions): AnnotationSetState;
2045
- declare const getAnnoSet: (state: AnnotationSetState) => any;
2046
- declare const getCommentEnts: (state: AnnotationSetState) => {
2047
- [id: string]: Comment;
2048
- };
2049
- declare const getAnnoPageEnt: (state: AnnotationSetState) => {
2050
- [id: string]: Annotation[];
2051
- };
2052
- declare const getAnnoEnt: (state: AnnotationSetState) => {
2053
- [id: string]: any;
2054
- };
2055
- declare const getSelectedAnno: (state: AnnotationSetState) => SelectionAnnotation;
2056
- declare const commentSearchQ: (state: AnnotationSetState) => {
2057
- commentSearch: string;
2058
- };
2059
- declare const getSummaryFilters: (state: AnnotationSetState) => {
2060
- hasFilter: boolean;
2061
- filters: Filters;
2062
- };
2063
-
2064
- interface TagsState {
2065
- tagNameEnt: {
2066
- [id: string]: string[];
2067
- };
2068
- filteredComments: {
2069
- [id: string]: string[];
2070
- };
2071
- filteredPageEntities: {
2072
- [id: string]: Annotation[];
2073
- };
2074
- annotations: Annotation[];
2075
- formFilterState: {
2076
- [id: string]: boolean;
2077
- };
2078
- filters: string[];
2079
- }
2080
-
2081
- interface BookmarksState {
2082
- bookmarks: Bookmark[];
2083
- bookmarkEntities: {
2084
- [id: string]: Bookmark;
2085
- };
2086
- bookmarkPageEntities: {
2087
- [id: string]: any;
2088
- };
2089
- editableBookmark: string;
2090
- loaded: boolean;
2091
- loading: boolean;
2092
- scrollTop?: number;
2093
- }
2094
-
2095
- interface RedactionState {
2096
- redactionEntities: {
2097
- [id: string]: Redaction;
2098
- };
2099
- redactionPageEntities: {
2100
- [id: string]: any;
2101
- };
2102
- selectedRedaction: SelectionAnnotation | {};
2103
- redactedDocumentInfo: {
2104
- blob: Blob;
2105
- filename: string;
2106
- };
2107
- documentId: string;
2108
- }
2109
-
2110
- interface State {
2111
- document: DocumentState;
2112
- annotations: AnnotationSetState;
2113
- tags: TagsState;
2114
- bookmarks: BookmarksState;
2115
- redactions: RedactionState;
2116
- icp: IcpState;
2117
- }
2118
-
2119
2451
  declare const getAnnotationsSetState: _ngrx_store.MemoizedSelector<object, AnnotationSetState, (s1: State) => AnnotationSetState>;
2120
2452
  declare const getAnnotationEntities: _ngrx_store.MemoizedSelector<object, {
2121
2453
  [id: string]: any;
@@ -2254,6 +2586,7 @@ declare const getFilteredAnnotations: _ngrx_store.MemoizedSelector<object, any[]
2254
2586
  declare class AnnotationEffects {
2255
2587
  private actions$;
2256
2588
  private annotationApiService;
2589
+ constructor(actions$: Actions, annotationApiService: AnnotationApiService);
2257
2590
  loadAnnotation$: rxjs.Observable<LoadAnnotationSetSucess | LoadAnnotationSetFail> & _ngrx_effects.CreateEffectMetadata;
2258
2591
  postAnnotation$: rxjs.Observable<SaveAnnotationSuccess | SaveAnnotationFail> & _ngrx_effects.CreateEffectMetadata;
2259
2592
  deleteAnnotation$: rxjs.Observable<DeleteAnnotationSuccess | DeleteAnnotationFail> & _ngrx_effects.CreateEffectMetadata;