@hmcts/media-viewer 4.2.44 → 4.2.45
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/.yarn/install-state.gz +0 -0
- package/README.md +5 -5
- package/assets/all.scss +27 -29
- package/assets/sass/comment-filter.scss +6 -2
- package/assets/sass/comment-search.scss +2 -0
- package/assets/sass/comment-set-header.scss +2 -0
- package/assets/sass/comment.scss +9 -3
- package/assets/sass/comments-summary-dialog.scss +2 -2
- package/assets/sass/document.scss +37 -25
- package/assets/sass/participants-list.scss +6 -2
- package/assets/sass/settings.scss +10 -2
- package/assets/sass/tabs.scss +2 -0
- package/assets/sass/tags.scss +4 -4
- package/assets/sass/toolbar/main.scss +15 -15
- package/assets/sass/toolbar/search-bar.scss +6 -2
- package/fesm2022/hmcts-media-viewer.mjs +2749 -2748
- package/fesm2022/hmcts-media-viewer.mjs.map +1 -1
- package/index.d.ts +607 -940
- package/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/package.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -1,45 +1,28 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { OnInit, OnDestroy, AfterContentInit, OnChanges, EventEmitter, ElementRef, SimpleChanges, AfterViewChecked, AfterViewInit, QueryList, 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';
|
|
8
5
|
import { ArrayDataSource, SelectionModel } from '@angular/cdk/collections';
|
|
9
6
|
import * as i28 from '@angular/cdk/tree';
|
|
10
7
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
11
8
|
import * as i29$1 from '@angular/cdk/drag-drop';
|
|
12
9
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
13
|
-
import * as i25 from '@angular/common/http';
|
|
14
|
-
import { HttpClient } from '@angular/common/http';
|
|
15
10
|
import * as i6 from '@angular/common';
|
|
16
11
|
import { DatePipe } from '@angular/common';
|
|
12
|
+
import * as i25 from '@angular/common/http';
|
|
17
13
|
import * as i10 from '@angular/cdk/overlay';
|
|
18
14
|
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
19
15
|
import * as i7 from '@angular/forms';
|
|
20
|
-
import { FormGroup,
|
|
16
|
+
import { FormGroup, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
|
21
17
|
import * as i8 from '@angular/router';
|
|
22
18
|
import * as i12 from 'rpx-xui-translation';
|
|
23
19
|
import * as i22 from '@angular/cdk/a11y';
|
|
24
20
|
import * as i26 from 'mutable-div';
|
|
25
21
|
import * as i27 from 'ngx-chips';
|
|
26
22
|
import * as i29 from '@swimlane/ngx-datatable';
|
|
23
|
+
import * as _ngrx_store from '@ngrx/store';
|
|
24
|
+
import { Action } from '@ngrx/store';
|
|
27
25
|
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
|
-
}
|
|
43
26
|
|
|
44
27
|
interface User {
|
|
45
28
|
forename: string;
|
|
@@ -65,6 +48,41 @@ interface Rectangle extends ApiPersisted {
|
|
|
65
48
|
y: number;
|
|
66
49
|
}
|
|
67
50
|
|
|
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
|
+
|
|
68
86
|
interface RedactionSearch {
|
|
69
87
|
page?: number;
|
|
70
88
|
matchedIndex?: number;
|
|
@@ -76,25 +94,6 @@ interface RedactRectangle {
|
|
|
76
94
|
rectangles?: Rectangle[];
|
|
77
95
|
}
|
|
78
96
|
|
|
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
|
-
|
|
98
97
|
interface SearchOperation {
|
|
99
98
|
searchTerm: string;
|
|
100
99
|
highlightAll: boolean;
|
|
@@ -118,7 +117,6 @@ interface SearchMode {
|
|
|
118
117
|
}
|
|
119
118
|
declare class ToolbarEventService {
|
|
120
119
|
private icpEventService;
|
|
121
|
-
constructor(icpEventService: IcpEventService);
|
|
122
120
|
readonly highlightModeSubject: BehaviorSubject<boolean>;
|
|
123
121
|
readonly highlightToolbarSubject: BehaviorSubject<boolean>;
|
|
124
122
|
readonly drawModeSubject: BehaviorSubject<boolean>;
|
|
@@ -185,159 +183,6 @@ declare class ToolbarEventService {
|
|
|
185
183
|
static ɵprov: i0.ɵɵInjectableDeclaration<ToolbarEventService>;
|
|
186
184
|
}
|
|
187
185
|
|
|
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
|
-
|
|
341
186
|
declare enum ResponseType {
|
|
342
187
|
SUCCESS = "SUCCESS",
|
|
343
188
|
FAILURE = "FAILURE",
|
|
@@ -378,474 +223,48 @@ declare class ToolbarButtonVisibilityService {
|
|
|
378
223
|
static ɵprov: i0.ɵɵInjectableDeclaration<ToolbarButtonVisibilityService>;
|
|
379
224
|
}
|
|
380
225
|
|
|
381
|
-
interface
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
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;
|
|
385
238
|
}
|
|
386
239
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
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>;
|
|
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>;
|
|
849
268
|
}
|
|
850
269
|
|
|
851
270
|
declare class PdfViewerComponent implements AfterContentInit, OnChanges, OnDestroy {
|
|
@@ -896,7 +315,7 @@ declare class PdfViewerComponent implements AfterContentInit, OnChanges, OnDestr
|
|
|
896
315
|
showSelectionEndCursor: boolean;
|
|
897
316
|
selectionEndCursorX: number;
|
|
898
317
|
selectionEndCursorY: number;
|
|
899
|
-
constructor(
|
|
318
|
+
constructor();
|
|
900
319
|
ngAfterContentInit(): Promise<void>;
|
|
901
320
|
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
902
321
|
resetRotation(): void;
|
|
@@ -934,7 +353,7 @@ declare class PdfViewerComponent implements AfterContentInit, OnChanges, OnDestr
|
|
|
934
353
|
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>;
|
|
935
354
|
}
|
|
936
355
|
|
|
937
|
-
interface Bookmark {
|
|
356
|
+
interface Bookmark$1 {
|
|
938
357
|
id: string;
|
|
939
358
|
documentId: string;
|
|
940
359
|
name: string;
|
|
@@ -944,7 +363,7 @@ interface Bookmark {
|
|
|
944
363
|
zoom: number;
|
|
945
364
|
parent: string;
|
|
946
365
|
previous: string;
|
|
947
|
-
children: Bookmark[];
|
|
366
|
+
children: Bookmark$1[];
|
|
948
367
|
index: number;
|
|
949
368
|
}
|
|
950
369
|
interface BookmarkNode {
|
|
@@ -953,21 +372,58 @@ interface BookmarkNode {
|
|
|
953
372
|
children: string[];
|
|
954
373
|
}
|
|
955
374
|
|
|
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
|
+
|
|
956
412
|
declare class BookmarksComponent implements OnInit, OnDestroy, OnChanges {
|
|
957
413
|
private store;
|
|
958
|
-
set bookmarkNodes(value: Bookmark[]);
|
|
959
|
-
get bookmarkNodes(): Bookmark[];
|
|
414
|
+
set bookmarkNodes(value: Bookmark$1[]);
|
|
415
|
+
get bookmarkNodes(): Bookmark$1[];
|
|
960
416
|
zoom: number;
|
|
961
417
|
rotate: number;
|
|
962
418
|
parentScrollTop: number;
|
|
963
419
|
goToDestination: EventEmitter<any[]>;
|
|
964
420
|
treeHasChanged: EventEmitter<boolean>;
|
|
965
421
|
private _bookmarkNodes;
|
|
966
|
-
datasource: ArrayDataSource<Bookmark>;
|
|
967
|
-
treeControl: FlatTreeControl<Bookmark>;
|
|
968
|
-
hoveredNode: Bookmark;
|
|
422
|
+
datasource: ArrayDataSource<Bookmark$1>;
|
|
423
|
+
treeControl: FlatTreeControl<Bookmark$1>;
|
|
424
|
+
hoveredNode: Bookmark$1;
|
|
969
425
|
hoverHtmlElement: HTMLElement;
|
|
970
|
-
expansionModel: SelectionModel<Bookmark>;
|
|
426
|
+
expansionModel: SelectionModel<Bookmark$1>;
|
|
971
427
|
isDraggingOn: boolean;
|
|
972
428
|
isUserdragging: boolean;
|
|
973
429
|
expandTimeout: any;
|
|
@@ -991,15 +447,14 @@ declare class BookmarksComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
991
447
|
private sortMode;
|
|
992
448
|
private readonly _customSort;
|
|
993
449
|
private readonly _positionSort;
|
|
994
|
-
constructor(store: Store<BookmarksState | AnnotationSetState>);
|
|
995
450
|
ngOnInit(): void;
|
|
996
451
|
ngOnChanges(changes: SimpleChanges): void;
|
|
997
452
|
ngOnDestroy(): void;
|
|
998
453
|
editBookmark(id: any): void;
|
|
999
454
|
onAddBookmarkClick(): void;
|
|
1000
|
-
deleteBookmark2(node: Bookmark): void;
|
|
1001
|
-
updateBookmark(bookmark: Bookmark, name: any): void;
|
|
1002
|
-
goToBookmark(bookmark: Bookmark): void;
|
|
455
|
+
deleteBookmark2(node: Bookmark$1): void;
|
|
456
|
+
updateBookmark(bookmark: Bookmark$1, name: any): void;
|
|
457
|
+
goToBookmark(bookmark: Bookmark$1): void;
|
|
1003
458
|
get customSort(): string;
|
|
1004
459
|
get positionSort(): string;
|
|
1005
460
|
sort(mode: string): void;
|
|
@@ -1007,19 +462,19 @@ declare class BookmarksComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
1007
462
|
private positionSortBookmarks;
|
|
1008
463
|
private customSortBookmarks;
|
|
1009
464
|
private scaledY;
|
|
1010
|
-
hasChild: (_: number, node: Bookmark) => boolean;
|
|
465
|
+
hasChild: (_: number, node: Bookmark$1) => boolean;
|
|
1011
466
|
getNode(bookmarks: any, parentId: any): any;
|
|
1012
|
-
drop(event: CdkDragDrop<Bookmark>): void;
|
|
467
|
+
drop(event: CdkDragDrop<Bookmark$1>): void;
|
|
1013
468
|
private getSiblingFromAllSibliings;
|
|
1014
469
|
dragStart(): void;
|
|
1015
470
|
dragEnd(): void;
|
|
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[];
|
|
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[];
|
|
1020
475
|
findNodeSiblings(arr: Array<any>, id: string): Array<any>;
|
|
1021
476
|
rebuildTreeForData(data: any): void;
|
|
1022
|
-
isToNodeChildOfFromNode(fromNodeChildren: Bookmark[], toNode: Bookmark): boolean;
|
|
477
|
+
isToNodeChildOfFromNode(fromNodeChildren: Bookmark$1[], toNode: Bookmark$1): boolean;
|
|
1023
478
|
static ɵfac: i0.ɵɵFactoryDeclaration<BookmarksComponent, never>;
|
|
1024
479
|
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>;
|
|
1025
480
|
}
|
|
@@ -1042,7 +497,6 @@ declare class SideBarComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
1042
497
|
sidebarOpen: any;
|
|
1043
498
|
private subscriptions;
|
|
1044
499
|
sidebarDiv: any;
|
|
1045
|
-
constructor(viewerEvents: ViewerEventService, store: Store<BookmarksState>, toolbarEvents: ToolbarEventService);
|
|
1046
500
|
ngOnInit(): void;
|
|
1047
501
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1048
502
|
ngOnDestroy(): void;
|
|
@@ -1073,14 +527,6 @@ declare class OutlineItemComponent implements OnInit {
|
|
|
1073
527
|
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>;
|
|
1074
528
|
}
|
|
1075
529
|
|
|
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
|
-
|
|
1084
530
|
declare class ImageViewerComponent implements OnInit, OnDestroy, OnChanges {
|
|
1085
531
|
private store;
|
|
1086
532
|
private readonly printService;
|
|
@@ -1108,7 +554,6 @@ declare class ImageViewerComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
1108
554
|
imageWidth: number;
|
|
1109
555
|
imageLeft: number;
|
|
1110
556
|
imageTop: number;
|
|
1111
|
-
constructor(store: Store<AnnotationSetState>, printService: PrintService, viewerUtilService: ViewerUtilService, toolbarEvents: ToolbarEventService, toolbarButtons: ToolbarButtonVisibilityService, viewerEvents: ViewerEventService);
|
|
1112
557
|
ngOnInit(): void;
|
|
1113
558
|
onImageViewerClick(event: MouseEvent): void;
|
|
1114
559
|
ngOnDestroy(): void;
|
|
@@ -1122,213 +567,65 @@ declare class ImageViewerComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
1122
567
|
onLoadError(url: any): void;
|
|
1123
568
|
onLoad(img: any): void;
|
|
1124
569
|
initAnnoPage(img: any): void;
|
|
1125
|
-
toggleCommentsSummary(): void;
|
|
1126
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageViewerComponent, never>;
|
|
1127
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageViewerComponent, "mv-image-viewer", never, { "url": { "alias": "url"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "enableAnnotations": { "alias": "enableAnnotations"; "required": false; }; "annotationSet": { "alias": "annotationSet"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "mediaLoadStatus": "mediaLoadStatus"; "imageViewerException": "imageViewerException"; }, never, never, false, never>;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
declare class UnsupportedViewerComponent implements OnInit, OnDestroy {
|
|
1131
|
-
readonly toolbarEvents: ToolbarEventService;
|
|
1132
|
-
private readonly viewerUtilService;
|
|
1133
|
-
url: string;
|
|
1134
|
-
downloadFileName: string;
|
|
1135
|
-
typeException: boolean;
|
|
1136
|
-
loadStatus: EventEmitter<ResponseType>;
|
|
1137
|
-
unsupportedViewerException: EventEmitter<ViewerException>;
|
|
1138
|
-
downloadLink: ElementRef;
|
|
1139
|
-
private subscriptions;
|
|
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>;
|
|
570
|
+
toggleCommentsSummary(): void;
|
|
571
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageViewerComponent, never>;
|
|
572
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageViewerComponent, "mv-image-viewer", never, { "url": { "alias": "url"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "enableAnnotations": { "alias": "enableAnnotations"; "required": false; }; "annotationSet": { "alias": "annotationSet"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "mediaLoadStatus": "mediaLoadStatus"; "imageViewerException": "imageViewerException"; }, never, never, false, never>;
|
|
1260
573
|
}
|
|
1261
574
|
|
|
1262
|
-
declare class
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
575
|
+
declare class UnsupportedViewerComponent implements OnInit, OnDestroy {
|
|
576
|
+
readonly toolbarEvents: ToolbarEventService;
|
|
577
|
+
private readonly viewerUtilService;
|
|
578
|
+
url: string;
|
|
579
|
+
downloadFileName: string;
|
|
580
|
+
typeException: boolean;
|
|
581
|
+
loadStatus: EventEmitter<ResponseType>;
|
|
582
|
+
unsupportedViewerException: EventEmitter<ViewerException>;
|
|
583
|
+
downloadLink: ElementRef;
|
|
584
|
+
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>;
|
|
1273
590
|
}
|
|
1274
591
|
|
|
1275
|
-
declare class
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
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);
|
|
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;
|
|
1298
602
|
ngOnInit(): void;
|
|
1299
603
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1300
604
|
ngOnDestroy(): void;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
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>;
|
|
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>;
|
|
1315
610
|
}
|
|
1316
611
|
|
|
1317
|
-
declare class
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
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>;
|
|
1332
629
|
}
|
|
1333
630
|
|
|
1334
631
|
declare class MediaViewerComponent implements OnChanges, OnDestroy, AfterContentInit, AfterViewChecked {
|
|
@@ -1373,7 +670,7 @@ declare class MediaViewerComponent implements OnChanges, OnDestroy, AfterContent
|
|
|
1373
670
|
private $subscriptions;
|
|
1374
671
|
private prevOffset;
|
|
1375
672
|
private currentRegionIndex;
|
|
1376
|
-
constructor(
|
|
673
|
+
constructor();
|
|
1377
674
|
ngAfterContentInit(): void;
|
|
1378
675
|
ngAfterViewChecked(): void;
|
|
1379
676
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1412,7 +709,6 @@ declare class ConvertibleContentViewerComponent implements OnInit, OnDestroy, On
|
|
|
1412
709
|
documentTitle: EventEmitter<string>;
|
|
1413
710
|
private $subscription;
|
|
1414
711
|
convertedUrl: string;
|
|
1415
|
-
constructor(store: Store<DocumentState>);
|
|
1416
712
|
ngOnInit(): void;
|
|
1417
713
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1418
714
|
ngOnDestroy(): void;
|
|
@@ -1433,7 +729,6 @@ declare class GrabNDragDirective {
|
|
|
1433
729
|
private pointerDown;
|
|
1434
730
|
dragEnabled: boolean;
|
|
1435
731
|
dragX: Element;
|
|
1436
|
-
constructor(el: ElementRef);
|
|
1437
732
|
onPointerDown(event: PointerEvent): void;
|
|
1438
733
|
onPointerMove(event: PointerEvent): void;
|
|
1439
734
|
onWindowPointerUp(): void;
|
|
@@ -1450,7 +745,6 @@ declare class RotationPersistDirective implements OnInit, OnDestroy {
|
|
|
1450
745
|
rotation: number;
|
|
1451
746
|
savedRotation: number;
|
|
1452
747
|
$subscriptions: Subscription;
|
|
1453
|
-
constructor(el: ElementRef, store: Store<DocumentState>, toolbarButtons: ToolbarButtonVisibilityService, toolbarEvents: ToolbarEventService);
|
|
1454
748
|
ngOnInit(): void;
|
|
1455
749
|
ngOnDestroy(): void;
|
|
1456
750
|
onMediaLoad(status: ResponseType): void;
|
|
@@ -1498,7 +792,7 @@ declare class KeyboardTextHighlightDirective implements OnDestroy {
|
|
|
1498
792
|
private lastValidEndNode;
|
|
1499
793
|
private lastValidEndOffset;
|
|
1500
794
|
private static lastInteractionWasKeyboard;
|
|
1501
|
-
constructor(
|
|
795
|
+
constructor();
|
|
1502
796
|
private static onGlobalKeyDown;
|
|
1503
797
|
private static onGlobalMouseDown;
|
|
1504
798
|
ngOnDestroy(): void;
|
|
@@ -1524,7 +818,6 @@ declare class KeyboardTextHighlightDirective implements OnDestroy {
|
|
|
1524
818
|
declare class ConfirmActionDialogComponent implements AfterViewInit {
|
|
1525
819
|
private icpEventService;
|
|
1526
820
|
modalContainer: ElementRef;
|
|
1527
|
-
constructor(icpEventService: IcpEventService);
|
|
1528
821
|
ngAfterViewInit(): void;
|
|
1529
822
|
onCancel(): void;
|
|
1530
823
|
onConfirm(): void;
|
|
@@ -1532,6 +825,19 @@ declare class ConfirmActionDialogComponent implements AfterViewInit {
|
|
|
1532
825
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmActionDialogComponent, "mv-confirm-action", never, {}, {}, never, never, false, never>;
|
|
1533
826
|
}
|
|
1534
827
|
|
|
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
|
+
|
|
1535
841
|
declare class RedactionComponent implements OnInit, OnDestroy {
|
|
1536
842
|
private store;
|
|
1537
843
|
private readonly viewerEvents;
|
|
@@ -1544,7 +850,6 @@ declare class RedactionComponent implements OnInit, OnDestroy {
|
|
|
1544
850
|
drawMode: boolean;
|
|
1545
851
|
documentId: string;
|
|
1546
852
|
private $subscription;
|
|
1547
|
-
constructor(store: Store<State>, viewerEvents: ViewerEventService, toolbarEvents: ToolbarEventService);
|
|
1548
853
|
ngOnInit(): void;
|
|
1549
854
|
ngOnDestroy(): void;
|
|
1550
855
|
markTextRedaction(highlight: any): void;
|
|
@@ -1564,19 +869,58 @@ declare class RedactionComponent implements OnInit, OnDestroy {
|
|
|
1564
869
|
static ɵcmp: i0.ɵɵComponentDeclaration<RedactionComponent, "mv-redactions", never, { "zoom": { "alias": "zoom"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; }, {}, never, never, false, never>;
|
|
1565
870
|
}
|
|
1566
871
|
|
|
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
|
+
|
|
1567
894
|
declare class BookmarkIconsComponent implements OnInit {
|
|
1568
895
|
private store;
|
|
1569
896
|
zoom: number;
|
|
1570
897
|
rotate: number;
|
|
1571
898
|
bookmarksPerPage$: Observable<BookmarksPerPage[]>;
|
|
1572
|
-
bookmarks: Bookmark
|
|
899
|
+
bookmarks: Bookmark[];
|
|
1573
900
|
documentId: string;
|
|
1574
|
-
constructor(store: Store<State>);
|
|
1575
901
|
ngOnInit(): void;
|
|
1576
902
|
static ɵfac: i0.ɵɵFactoryDeclaration<BookmarkIconsComponent, never>;
|
|
1577
903
|
static ɵcmp: i0.ɵɵComponentDeclaration<BookmarkIconsComponent, "mv-bookmark-icons", never, { "zoom": { "alias": "zoom"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; }, {}, never, never, false, never>;
|
|
1578
904
|
}
|
|
1579
905
|
|
|
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
|
+
|
|
1580
924
|
declare class ParticipantsListComponent implements OnInit, OnDestroy {
|
|
1581
925
|
private readonly toolbarEvents;
|
|
1582
926
|
private store;
|
|
@@ -1586,7 +930,6 @@ declare class ParticipantsListComponent implements OnInit, OnDestroy {
|
|
|
1586
930
|
presenter$: Observable<IcpParticipant>;
|
|
1587
931
|
isPresenter$: Observable<boolean>;
|
|
1588
932
|
showParticipantsList: boolean;
|
|
1589
|
-
constructor(toolbarEvents: ToolbarEventService, store: Store<IcpState>, icpEventService: IcpEventService);
|
|
1590
933
|
ngOnInit(): void;
|
|
1591
934
|
ngOnDestroy(): void;
|
|
1592
935
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParticipantsListComponent, never>;
|
|
@@ -1606,7 +949,6 @@ declare class SearchBarComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
1606
949
|
resultCount: number;
|
|
1607
950
|
private subscriptions;
|
|
1608
951
|
advancedSearchVisible: boolean;
|
|
1609
|
-
constructor(toolbarButtons: ToolbarButtonVisibilityService, toolbarEvents: ToolbarEventService);
|
|
1610
952
|
ngOnInit(): void;
|
|
1611
953
|
ngAfterViewInit(): void;
|
|
1612
954
|
ngOnDestroy(): void;
|
|
@@ -1623,23 +965,6 @@ declare class SearchBarComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
1623
965
|
static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "mv-search-bar", never, {}, {}, never, never, false, never>;
|
|
1624
966
|
}
|
|
1625
967
|
|
|
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
|
-
|
|
1643
968
|
declare class MainToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
1644
969
|
readonly toolbarEvents: ToolbarEventService;
|
|
1645
970
|
readonly toolbarButtons: ToolbarButtonVisibilityService;
|
|
@@ -1673,7 +998,6 @@ declare class MainToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
1673
998
|
widthRequiredForBtn: {
|
|
1674
999
|
[id: string]: number;
|
|
1675
1000
|
};
|
|
1676
|
-
constructor(toolbarEvents: ToolbarEventService, toolbarButtons: ToolbarButtonVisibilityService, cdr: ChangeDetectorRef, numberHelper: NumberHelperService, icpEventService: IcpEventService, toolbarFocusService: ToolbarFocusService);
|
|
1677
1001
|
ngOnInit(): void;
|
|
1678
1002
|
ngOnDestroy(): void;
|
|
1679
1003
|
ngAfterViewInit(): void;
|
|
@@ -1724,7 +1048,6 @@ declare class RedactionToolbarComponent implements OnInit, OnDestroy {
|
|
|
1724
1048
|
hasRedactions: boolean;
|
|
1725
1049
|
private subscriptions;
|
|
1726
1050
|
redactionAllInProgress: boolean;
|
|
1727
|
-
constructor(toolbarEventService: ToolbarEventService, toolbarButtons: ToolbarButtonVisibilityService, store: Store<AnnotationSetState>, toolbarFocusService: ToolbarFocusService);
|
|
1728
1051
|
ngOnInit(): void;
|
|
1729
1052
|
onRedactAllSearch(): void;
|
|
1730
1053
|
toggleTextRedactionMode(): void;
|
|
@@ -1749,7 +1072,6 @@ declare class IcpToolbarComponent implements OnInit, OnDestroy {
|
|
|
1749
1072
|
presenterName: string;
|
|
1750
1073
|
isPresenter: boolean;
|
|
1751
1074
|
private $subscription;
|
|
1752
|
-
constructor(toolbarEventService: ToolbarEventService, store: Store<IcpState>, icpEventService: IcpEventService);
|
|
1753
1075
|
ngOnInit(): void;
|
|
1754
1076
|
ngOnDestroy(): void;
|
|
1755
1077
|
present(): void;
|
|
@@ -1760,6 +1082,17 @@ declare class IcpToolbarComponent implements OnInit, OnDestroy {
|
|
|
1760
1082
|
static ɵcmp: i0.ɵɵComponentDeclaration<IcpToolbarComponent, "mv-icp-toolbar", never, {}, {}, never, never, false, never>;
|
|
1761
1083
|
}
|
|
1762
1084
|
|
|
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
|
+
|
|
1763
1096
|
declare class RedactionSearchBarComponent implements OnInit, OnDestroy {
|
|
1764
1097
|
private store;
|
|
1765
1098
|
readonly toolbarButtons: ToolbarButtonVisibilityService;
|
|
@@ -1788,7 +1121,6 @@ declare class RedactionSearchBarComponent implements OnInit, OnDestroy {
|
|
|
1788
1121
|
private subscription;
|
|
1789
1122
|
private documentId;
|
|
1790
1123
|
advancedSearchVisible: boolean;
|
|
1791
|
-
constructor(store: Store<State>, toolbarButtons: ToolbarButtonVisibilityService, toolbarEvents: ToolbarEventService, highlightService: HighlightCreateService);
|
|
1792
1124
|
ngOnInit(): void;
|
|
1793
1125
|
ngOnDestroy(): void;
|
|
1794
1126
|
onWindowKeyDown(e: KeyboardEvent): void;
|
|
@@ -1818,7 +1150,6 @@ declare class HighlightToolbarComponent implements OnInit, OnDestroy {
|
|
|
1818
1150
|
private readonly toolbarFocusService;
|
|
1819
1151
|
private subscriptions;
|
|
1820
1152
|
redactionAllInProgress: boolean;
|
|
1821
|
-
constructor(toolbarEventService: ToolbarEventService, toolbarButtons: ToolbarButtonVisibilityService, toolbarFocusService: ToolbarFocusService);
|
|
1822
1153
|
ngOnInit(): void;
|
|
1823
1154
|
onAllSearch(): void;
|
|
1824
1155
|
onHighlight(): void;
|
|
@@ -1835,7 +1166,6 @@ declare class HighlightToolbarComponent implements OnInit, OnDestroy {
|
|
|
1835
1166
|
|
|
1836
1167
|
declare class TooltipDismissDirective {
|
|
1837
1168
|
private el;
|
|
1838
|
-
constructor(el: ElementRef);
|
|
1839
1169
|
onEscapeDismissTooltip(): void;
|
|
1840
1170
|
onShowTooltip(): void;
|
|
1841
1171
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDismissDirective, never>;
|
|
@@ -1904,7 +1234,6 @@ declare class KeyboardNavDirective implements OnInit, OnDestroy {
|
|
|
1904
1234
|
private currentFocusIndex;
|
|
1905
1235
|
private mutationObserver;
|
|
1906
1236
|
private isUsingArrowKeys;
|
|
1907
|
-
constructor(elementRef: ElementRef<HTMLElement>);
|
|
1908
1237
|
ngOnInit(): void;
|
|
1909
1238
|
ngOnDestroy(): void;
|
|
1910
1239
|
private setupMutationObserver;
|
|
@@ -1934,6 +1263,11 @@ declare class ToolbarModule {
|
|
|
1934
1263
|
static ɵinj: i0.ɵɵInjectorDeclaration<ToolbarModule>;
|
|
1935
1264
|
}
|
|
1936
1265
|
|
|
1266
|
+
interface Highlight {
|
|
1267
|
+
page: number;
|
|
1268
|
+
rectangles: Rectangle[];
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1937
1271
|
declare class CtxToolbarComponent implements OnChanges {
|
|
1938
1272
|
readonly defaultHeight: any;
|
|
1939
1273
|
readonly defaultWidth: any;
|
|
@@ -1986,7 +1320,6 @@ declare class MetadataLayerComponent implements OnInit, OnDestroy {
|
|
|
1986
1320
|
highlightPage: number;
|
|
1987
1321
|
rectangles: Rectangle[];
|
|
1988
1322
|
private $subscriptions;
|
|
1989
|
-
constructor(store: Store<AnnotationSetState>, highlightService: HighlightCreateService, toolbarEvents: ToolbarEventService, viewerEvents: ViewerEventService);
|
|
1990
1323
|
ngOnInit(): void;
|
|
1991
1324
|
ngOnDestroy(): void;
|
|
1992
1325
|
showContextToolbar(highlight: Highlight): void;
|
|
@@ -2026,7 +1359,7 @@ declare class AnnotationViewComponent implements OnDestroy {
|
|
|
2026
1359
|
ctxToolbar: ElementRef<HTMLElement>;
|
|
2027
1360
|
private lastFocusedRectangle;
|
|
2028
1361
|
private nextTabTarget;
|
|
2029
|
-
constructor(
|
|
1362
|
+
constructor();
|
|
2030
1363
|
ngOnDestroy(): void;
|
|
2031
1364
|
private setShowToolbar;
|
|
2032
1365
|
onSelect(): void;
|
|
@@ -2076,7 +1409,7 @@ declare class KeyboardBoxDrawDirective implements OnDestroy {
|
|
|
2076
1409
|
private currentWidth;
|
|
2077
1410
|
private currentHeight;
|
|
2078
1411
|
private static lastInteractionWasKeyboard;
|
|
2079
|
-
constructor(
|
|
1412
|
+
constructor();
|
|
2080
1413
|
private static onGlobalKeyDown;
|
|
2081
1414
|
private static onGlobalMouseDown;
|
|
2082
1415
|
ngOnDestroy(): void;
|
|
@@ -2138,7 +1471,6 @@ declare class BoxHighlightCreateComponent implements OnInit, OnDestroy {
|
|
|
2138
1471
|
cursorY: number;
|
|
2139
1472
|
showCursor: boolean;
|
|
2140
1473
|
private subscriptions;
|
|
2141
|
-
constructor(toolbarEvents: ToolbarEventService, highlightService: HighlightCreateService);
|
|
2142
1474
|
ngOnInit(): void;
|
|
2143
1475
|
ngOnDestroy(): void;
|
|
2144
1476
|
private isElementInViewport;
|
|
@@ -2168,7 +1500,6 @@ declare class AnnotationSetComponent implements OnInit {
|
|
|
2168
1500
|
pageHeight: number;
|
|
2169
1501
|
pageWidth: number;
|
|
2170
1502
|
selectedAnnotation$: Observable<SelectionAnnotation>;
|
|
2171
|
-
constructor(store: Store<AnnotationSetState>, commentService: CommentService);
|
|
2172
1503
|
ngOnInit(): void;
|
|
2173
1504
|
onAnnotationUpdate(annotation: Annotation): void;
|
|
2174
1505
|
onAnnotationDelete(annotation: Annotation): void;
|
|
@@ -2192,7 +1523,7 @@ declare class KeyboardBoxMoveDirective implements OnDestroy {
|
|
|
2192
1523
|
private moveSubject;
|
|
2193
1524
|
private moveSubscription;
|
|
2194
1525
|
private isMoving;
|
|
2195
|
-
constructor(
|
|
1526
|
+
constructor();
|
|
2196
1527
|
ngOnDestroy(): void;
|
|
2197
1528
|
onKeyDown(event: KeyboardEvent): void;
|
|
2198
1529
|
private moveBox;
|
|
@@ -2229,7 +1560,6 @@ declare class RectangleComponent implements OnChanges, AfterViewInit, OnDestroy
|
|
|
2229
1560
|
_annoRect: Rectangle;
|
|
2230
1561
|
set annoRect(annoRect: Rectangle);
|
|
2231
1562
|
get annoRect(): Rectangle;
|
|
2232
|
-
constructor(toolbarEvents: ToolbarEventService, highlightService: HighlightCreateService);
|
|
2233
1563
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2234
1564
|
ngAfterViewInit(): void;
|
|
2235
1565
|
ngOnDestroy(): void;
|
|
@@ -2248,6 +1578,62 @@ declare class RectangleComponent implements OnChanges, AfterViewInit, OnDestroy
|
|
|
2248
1578
|
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>;
|
|
2249
1579
|
}
|
|
2250
1580
|
|
|
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
|
+
|
|
2251
1637
|
declare class CommentSetHeaderComponent implements OnInit, OnDestroy {
|
|
2252
1638
|
private store;
|
|
2253
1639
|
private commentService;
|
|
@@ -2265,7 +1651,6 @@ declare class CommentSetHeaderComponent implements OnInit, OnDestroy {
|
|
|
2265
1651
|
isFiltered: boolean;
|
|
2266
1652
|
navigationList: Annotation[];
|
|
2267
1653
|
$subscriptions: Subscription;
|
|
2268
|
-
constructor(store: Store<State>, commentService: CommentService, toolbarEvents: ToolbarEventService, icpEventService: IcpEventService);
|
|
2269
1654
|
ngOnInit(): void;
|
|
2270
1655
|
toggleCommentsSummary(): void;
|
|
2271
1656
|
selectTab(tab: string): void;
|
|
@@ -2282,7 +1667,6 @@ declare class CommentSearchComponent implements AfterViewInit, OnDestroy {
|
|
|
2282
1667
|
searchString: string;
|
|
2283
1668
|
searchResults: Annotation[];
|
|
2284
1669
|
searchIndex: number;
|
|
2285
|
-
constructor(store: Store<AnnotationSetState>);
|
|
2286
1670
|
ngAfterViewInit(): void;
|
|
2287
1671
|
ngOnDestroy(): void;
|
|
2288
1672
|
searchComments(searchText: string): void;
|
|
@@ -2294,7 +1678,6 @@ declare class CommentSearchComponent implements AfterViewInit, OnDestroy {
|
|
|
2294
1678
|
declare class TextHighlightDirective implements AfterViewChecked {
|
|
2295
1679
|
private element;
|
|
2296
1680
|
textToHighlight: string;
|
|
2297
|
-
constructor(element: ElementRef<HTMLElement>);
|
|
2298
1681
|
ngAfterViewChecked(): void;
|
|
2299
1682
|
highlightInputText(textToHighlight: string): void;
|
|
2300
1683
|
resetHighlight(): void;
|
|
@@ -2303,6 +1686,48 @@ declare class TextHighlightDirective implements AfterViewChecked {
|
|
|
2303
1686
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TextHighlightDirective, "[mvTextHighlight]", never, { "textToHighlight": { "alias": "textToHighlight"; "required": false; }; }, {}, never, never, false, never>;
|
|
2304
1687
|
}
|
|
2305
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>;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
2306
1731
|
declare class CommentsNavigateComponent implements OnChanges {
|
|
2307
1732
|
private store;
|
|
2308
1733
|
readonly toolbarEvents: ToolbarEventService;
|
|
@@ -2310,7 +1735,6 @@ declare class CommentsNavigateComponent implements OnChanges {
|
|
|
2310
1735
|
autoSelect: boolean;
|
|
2311
1736
|
navigationList: any[];
|
|
2312
1737
|
index: number;
|
|
2313
|
-
constructor(store: Store<AnnotationSetState>, toolbarEvents: ToolbarEventService);
|
|
2314
1738
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2315
1739
|
initNavigationList(): void;
|
|
2316
1740
|
sortComments(mappedCommentA: any, mappedCommentB: any): number;
|
|
@@ -2326,7 +1750,6 @@ declare class CommentsNavigateComponent implements OnChanges {
|
|
|
2326
1750
|
|
|
2327
1751
|
declare class TextareaAutoExpandDirective implements AfterContentChecked {
|
|
2328
1752
|
private el;
|
|
2329
|
-
constructor(el: ElementRef);
|
|
2330
1753
|
ngAfterContentChecked(): void;
|
|
2331
1754
|
onMouseDown(): void;
|
|
2332
1755
|
adjustHeight(): void;
|
|
@@ -2354,7 +1777,6 @@ declare class CommentsSummaryComponent implements OnInit, OnDestroy {
|
|
|
2354
1777
|
hasFilter: boolean;
|
|
2355
1778
|
fromFilterValid: boolean;
|
|
2356
1779
|
toFilterValid: boolean;
|
|
2357
|
-
constructor(store: Store<AnnotationSetState>, printService: PrintService, toolbarEvents: ToolbarEventService, fb: FormBuilder);
|
|
2358
1780
|
ngOnInit(): void;
|
|
2359
1781
|
buildCheckBoxForm(): void;
|
|
2360
1782
|
onClearFilters(): void;
|
|
@@ -2382,7 +1804,6 @@ declare class TagsComponent {
|
|
|
2382
1804
|
errorMessages: {
|
|
2383
1805
|
[id: string]: string;
|
|
2384
1806
|
};
|
|
2385
|
-
constructor(tagsServices: TagsServices);
|
|
2386
1807
|
onUpdateTags(value: any): void;
|
|
2387
1808
|
requestAutocompleteItems: (text: string) => Observable<any[]>;
|
|
2388
1809
|
private minLength;
|
|
@@ -2413,7 +1834,6 @@ declare class CommentFilterComponent implements OnInit, OnDestroy {
|
|
|
2413
1834
|
allTags$: Observable<any>;
|
|
2414
1835
|
searchValue: string;
|
|
2415
1836
|
isPreview: boolean;
|
|
2416
|
-
constructor(store: Store<State>, fb: UntypedFormBuilder);
|
|
2417
1837
|
ngOnInit(): void;
|
|
2418
1838
|
buildFrom(): void;
|
|
2419
1839
|
onClearFilters(): void;
|
|
@@ -2448,6 +1868,254 @@ declare class MediaViewerModule {
|
|
|
2448
1868
|
static ɵinj: i0.ɵɵInjectorDeclaration<MediaViewerModule>;
|
|
2449
1869
|
}
|
|
2450
1870
|
|
|
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
|
+
|
|
2451
2119
|
declare const getAnnotationsSetState: _ngrx_store.MemoizedSelector<object, AnnotationSetState, (s1: State) => AnnotationSetState>;
|
|
2452
2120
|
declare const getAnnotationEntities: _ngrx_store.MemoizedSelector<object, {
|
|
2453
2121
|
[id: string]: any;
|
|
@@ -2586,7 +2254,6 @@ declare const getFilteredAnnotations: _ngrx_store.MemoizedSelector<object, any[]
|
|
|
2586
2254
|
declare class AnnotationEffects {
|
|
2587
2255
|
private actions$;
|
|
2588
2256
|
private annotationApiService;
|
|
2589
|
-
constructor(actions$: Actions, annotationApiService: AnnotationApiService);
|
|
2590
2257
|
loadAnnotation$: rxjs.Observable<LoadAnnotationSetSucess | LoadAnnotationSetFail> & _ngrx_effects.CreateEffectMetadata;
|
|
2591
2258
|
postAnnotation$: rxjs.Observable<SaveAnnotationSuccess | SaveAnnotationFail> & _ngrx_effects.CreateEffectMetadata;
|
|
2592
2259
|
deleteAnnotation$: rxjs.Observable<DeleteAnnotationSuccess | DeleteAnnotationFail> & _ngrx_effects.CreateEffectMetadata;
|