@hmcts/media-viewer 2.7.22 → 2.7.24
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/assets/sass/outline-attachment.scss +6 -1
- package/bundles/hmcts-media-viewer.umd.js +5082 -4779
- package/bundles/hmcts-media-viewer.umd.js.map +1 -1
- package/bundles/hmcts-media-viewer.umd.min.js +1 -1
- package/bundles/hmcts-media-viewer.umd.min.js.map +1 -1
- package/esm2015/hmcts-media-viewer.js +20 -20
- package/esm2015/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +8 -2
- package/esm2015/lib/icp/icp-update.service.js +22 -40
- package/esm2015/lib/icp/icp.events.js +20 -0
- package/esm2015/lib/icp/icp.interfaces.js +3 -1
- package/esm2015/lib/icp/socket.service.js +133 -43
- package/esm2015/lib/media-viewer.component.js +2 -2
- package/esm2015/lib/store/selectors/annotation.selectors.js +10 -2
- package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +56 -2
- package/esm2015/lib/viewers/pdf-viewer/pdf-viewer.component.js +18 -3
- package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +33 -2
- package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +3 -1
- package/esm2015/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +22 -3
- package/esm5/hmcts-media-viewer.js +20 -20
- package/esm5/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +8 -2
- package/esm5/lib/icp/icp-update.service.js +23 -40
- package/esm5/lib/icp/icp.events.js +20 -0
- package/esm5/lib/icp/icp.interfaces.js +3 -1
- package/esm5/lib/icp/socket.service.js +143 -45
- package/esm5/lib/media-viewer.component.js +2 -2
- package/esm5/lib/store/selectors/annotation.selectors.js +10 -2
- package/esm5/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +126 -16
- package/esm5/lib/viewers/pdf-viewer/pdf-viewer.component.js +20 -3
- package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +45 -2
- package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +3 -1
- package/esm5/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +31 -3
- package/fesm2015/hmcts-media-viewer.js +4308 -4094
- package/fesm2015/hmcts-media-viewer.js.map +1 -1
- package/fesm5/hmcts-media-viewer.js +5212 -4910
- package/fesm5/hmcts-media-viewer.js.map +1 -1
- package/hmcts-media-viewer-v2.7.24.tgz +0 -0
- package/hmcts-media-viewer.d.ts +19 -19
- package/hmcts-media-viewer.metadata.json +1 -1
- package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts +4 -3
- package/lib/icp/icp-update.service.d.ts +0 -9
- package/lib/icp/icp.events.d.ts +13 -0
- package/lib/icp/icp.interfaces.d.ts +1 -0
- package/lib/icp/socket.service.d.ts +13 -4
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts +3 -0
- package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts +4 -1
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts +6 -0
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts +2 -1
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts +3 -0
- package/package.json +1 -1
- package/hmcts-media-viewer-v2.7.22.tgz +0 -0
|
@@ -39,9 +39,10 @@ export declare class BoxHighlightCreateComponent implements OnInit, OnDestroy {
|
|
|
39
39
|
offsetX: any;
|
|
40
40
|
offsetY: any;
|
|
41
41
|
}): void;
|
|
42
|
-
updateHighlight({
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
updateHighlight({ currentTarget, clientX, clientY }: {
|
|
43
|
+
currentTarget: any;
|
|
44
|
+
clientX: any;
|
|
45
|
+
clientY: any;
|
|
45
46
|
}): void;
|
|
46
47
|
createHighlight(): void;
|
|
47
48
|
private resetHighlight;
|
|
@@ -2,15 +2,6 @@ import { SocketService } from './socket.service';
|
|
|
2
2
|
import { IcpParticipant, IcpScreenUpdate, IcpSession } from './icp.interfaces';
|
|
3
3
|
export declare class IcpUpdateService {
|
|
4
4
|
private socket;
|
|
5
|
-
SESSION_JOINED: string;
|
|
6
|
-
CLIENT_DISCONNECTED: string;
|
|
7
|
-
NEW_PARTICIPANT_JOINED: string;
|
|
8
|
-
REMOVE_PARTICIPANT: string;
|
|
9
|
-
PARTICIPANTS_UPDATED: string;
|
|
10
|
-
UPDATE_PRESENTER: string;
|
|
11
|
-
PRESENTER_UPDATED: string;
|
|
12
|
-
UPDATE_SCREEN: string;
|
|
13
|
-
SCREEN_UPDATED: string;
|
|
14
5
|
session: IcpSession;
|
|
15
6
|
constructor(socket: SocketService);
|
|
16
7
|
joinSession(username: string, session: IcpSession): import("rxjs").Observable<any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum IcpEvents {
|
|
2
|
+
SESSION_JOINED = "IcpClientJoinedSession",
|
|
3
|
+
CLIENT_DISCONNECTED = "IcpClientDisconnectedFromSession",
|
|
4
|
+
NEW_PARTICIPANT_JOINED = "IcpNewParticipantJoinedSession",
|
|
5
|
+
REMOVE_PARTICIPANT = "IcpRemoveParticipantFromList",
|
|
6
|
+
PARTICIPANTS_UPDATED = "IcpParticipantsListUpdated",
|
|
7
|
+
UPDATE_PRESENTER = "IcpNewPresenterStartsPresenting",
|
|
8
|
+
PRESENTER_UPDATED = "IcpPresenterUpdated",
|
|
9
|
+
UPDATE_SCREEN = "IcpUpdateScreen",
|
|
10
|
+
SCREEN_UPDATED = "IcpScreenUpdated",
|
|
11
|
+
SESSION_JOIN = "IcpClientJoinSession",
|
|
12
|
+
SESSION_LEAVE = "IcpClientLeaveSession"
|
|
13
|
+
}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
2
|
+
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
3
|
+
import { IcpEvents } from './icp.events';
|
|
3
4
|
export declare class SocketService implements OnDestroy {
|
|
4
5
|
private socket;
|
|
5
6
|
subscription: Subscription;
|
|
6
7
|
connected$: BehaviorSubject<boolean>;
|
|
8
|
+
sessionJoined$: Subject<{}>;
|
|
9
|
+
presenterUpdated$: Subject<{}>;
|
|
10
|
+
clientDisconnected$: Subject<{}>;
|
|
11
|
+
participantUpdated$: Subject<{}>;
|
|
12
|
+
newParticipantJoined$: Subject<{}>;
|
|
13
|
+
screenUpdated$: Subject<{}>;
|
|
7
14
|
constructor();
|
|
8
15
|
ngOnDestroy(): void;
|
|
9
|
-
connect():
|
|
16
|
+
connect(url: string): Subscription;
|
|
17
|
+
connected(): Observable<boolean>;
|
|
10
18
|
join(session: any): void;
|
|
11
19
|
leave(session: any): void;
|
|
12
20
|
emit(event: string, data: any): void;
|
|
13
|
-
listen(event:
|
|
14
|
-
|
|
21
|
+
listen(event: IcpEvents): Observable<any>;
|
|
22
|
+
messageEventHandller(eventName: string, data: any): void;
|
|
23
|
+
getSocketClient(url: string): Observable<WebSocket>;
|
|
15
24
|
}
|
|
@@ -25,6 +25,9 @@ export declare class PdfJsWrapper {
|
|
|
25
25
|
}>);
|
|
26
26
|
private emitDocumentInfo;
|
|
27
27
|
loadDocument(documentUrl: string): Promise<void>;
|
|
28
|
+
private setOutlinePageNumbers;
|
|
29
|
+
private setNestedOutlinePageNumbers;
|
|
30
|
+
private getOutlinePageNumber;
|
|
28
31
|
downloadFile(url: string, filename: string): void;
|
|
29
32
|
setPageNumber(pageNumber: number): void;
|
|
30
33
|
getPageNumber(): number;
|
|
@@ -11,6 +11,7 @@ import { Outline } from './side-bar/outline-item/outline.model';
|
|
|
11
11
|
import * as fromStore from '../../store/reducers/reducers';
|
|
12
12
|
import { IcpState } from '../../icp/icp.interfaces';
|
|
13
13
|
import { ViewerEventService } from '../viewer-event.service';
|
|
14
|
+
import { IcpService } from '../../icp/icp.service';
|
|
14
15
|
export declare class PdfViewerComponent implements AfterContentInit, OnChanges, OnDestroy {
|
|
15
16
|
private store;
|
|
16
17
|
private icpStore;
|
|
@@ -18,6 +19,7 @@ export declare class PdfViewerComponent implements AfterContentInit, OnChanges,
|
|
|
18
19
|
private readonly printService;
|
|
19
20
|
readonly toolbarEvents: ToolbarEventService;
|
|
20
21
|
private readonly viewerEvents;
|
|
22
|
+
private icpService;
|
|
21
23
|
readonly toolbarButtons: ToolbarButtonVisibilityService;
|
|
22
24
|
mediaLoadStatus: EventEmitter<ResponseType>;
|
|
23
25
|
pdfViewerException: EventEmitter<ViewerException>;
|
|
@@ -49,7 +51,7 @@ export declare class PdfViewerComponent implements AfterContentInit, OnChanges,
|
|
|
49
51
|
showCommentsPanel: boolean;
|
|
50
52
|
showIcpParticipantsList: boolean;
|
|
51
53
|
enableGrabNDrag: boolean;
|
|
52
|
-
constructor(store: Store<fromStore.AnnotationSetState>, icpStore: Store<IcpState>, pdfJsWrapperFactory: PdfJsWrapperFactory, printService: PrintService, toolbarEvents: ToolbarEventService, viewerEvents: ViewerEventService, toolbarButtons: ToolbarButtonVisibilityService);
|
|
54
|
+
constructor(store: Store<fromStore.AnnotationSetState>, icpStore: Store<IcpState>, pdfJsWrapperFactory: PdfJsWrapperFactory, printService: PrintService, toolbarEvents: ToolbarEventService, viewerEvents: ViewerEventService, icpService: IcpService, toolbarButtons: ToolbarButtonVisibilityService);
|
|
53
55
|
ngAfterContentInit(): Promise<void>;
|
|
54
56
|
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
55
57
|
resetRotation(): void;
|
|
@@ -68,4 +70,5 @@ export declare class PdfViewerComponent implements AfterContentInit, OnChanges,
|
|
|
68
70
|
setPageHeights(): void;
|
|
69
71
|
calculateZoomValue(zoomValue: any, increment?: number): number;
|
|
70
72
|
private goToDestination;
|
|
73
|
+
getCurrentPageNumber(): number;
|
|
71
74
|
}
|
|
@@ -2,9 +2,15 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { Outline } from './outline.model';
|
|
3
3
|
export declare class OutlineItemComponent implements OnInit {
|
|
4
4
|
outline: Outline;
|
|
5
|
+
currentPageNumber: Number;
|
|
6
|
+
isCurrentSection: boolean;
|
|
7
|
+
endPage: Number;
|
|
5
8
|
navigationEvent: EventEmitter<{}>;
|
|
6
9
|
showOutlineItems: boolean;
|
|
7
10
|
ngOnInit(): void;
|
|
8
11
|
goToDestination(destination: any): void;
|
|
9
12
|
toggleOutline(): void;
|
|
13
|
+
isViewedItem(current: Outline, next: Outline): boolean;
|
|
14
|
+
findEndPage(next: Outline): number;
|
|
15
|
+
showHighlightOutlineCss(): "highlightedOutlineItem" | "outlineItem";
|
|
10
16
|
}
|
|
@@ -13,6 +13,7 @@ export declare class SideBarComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
13
13
|
url: string;
|
|
14
14
|
zoom: number;
|
|
15
15
|
rotate: number;
|
|
16
|
+
currentPageNumber: number;
|
|
16
17
|
selectedView: string;
|
|
17
18
|
bookmarkNodes$: Observable<BookmarkNode[]>;
|
|
18
19
|
$subscription: Subscription;
|
|
@@ -23,4 +24,6 @@ export declare class SideBarComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
23
24
|
goToDestination(destination: any[]): void;
|
|
24
25
|
toggleSidebarView(sidebarView: string): void;
|
|
25
26
|
onAddBookmarkClick(): void;
|
|
27
|
+
isViewedItem(current: Outline, next: Outline): boolean;
|
|
28
|
+
findEndPage(next: Outline): number;
|
|
26
29
|
}
|
package/package.json
CHANGED
|
Binary file
|