@hmcts/media-viewer 2.7.7 → 2.7.11

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.
Files changed (40) hide show
  1. package/assets/sass/comment-set-header.scss +11 -0
  2. package/assets/sass/toolbar/main-toolbar.scss +3 -3
  3. package/assets/sass/toolbar/redaction-toolbar.scss +7 -0
  4. package/assets/sass/toolbar/search-bar.scss +8 -0
  5. package/bundles/hmcts-media-viewer.umd.js +75 -31
  6. package/bundles/hmcts-media-viewer.umd.js.map +1 -1
  7. package/bundles/hmcts-media-viewer.umd.min.js +1 -1
  8. package/bundles/hmcts-media-viewer.umd.min.js.map +1 -1
  9. package/esm2015/lib/annotations/comment-set/comment/comment.component.js +12 -12
  10. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +9 -3
  11. package/esm2015/lib/annotations/comment-set/comment-set-render.service.js +2 -2
  12. package/esm2015/lib/annotations/comment-set/comment-set.component.js +28 -3
  13. package/esm2015/lib/toolbar/main-toolbar/main-toolbar.component.js +2 -2
  14. package/esm2015/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +8 -2
  15. package/esm2015/lib/toolbar/search-bar/search-bar.component.js +8 -2
  16. package/esm2015/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +7 -2
  17. package/esm2015/lib/viewers/pdf-viewer/pdf-viewer.component.js +2 -20
  18. package/esm5/lib/annotations/comment-set/comment/comment.component.js +12 -12
  19. package/esm5/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +12 -3
  20. package/esm5/lib/annotations/comment-set/comment-set-render.service.js +2 -2
  21. package/esm5/lib/annotations/comment-set/comment-set.component.js +32 -3
  22. package/esm5/lib/toolbar/main-toolbar/main-toolbar.component.js +2 -2
  23. package/esm5/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +11 -2
  24. package/esm5/lib/toolbar/search-bar/search-bar.component.js +11 -2
  25. package/esm5/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +7 -2
  26. package/esm5/lib/viewers/pdf-viewer/pdf-viewer.component.js +2 -20
  27. package/fesm2015/hmcts-media-viewer.js +1316 -1285
  28. package/fesm2015/hmcts-media-viewer.js.map +1 -1
  29. package/fesm5/hmcts-media-viewer.js +3355 -3311
  30. package/fesm5/hmcts-media-viewer.js.map +1 -1
  31. package/hmcts-media-viewer-v2.7.11.tgz +0 -0
  32. package/hmcts-media-viewer.metadata.json +1 -1
  33. package/lib/annotations/comment-set/comment/comment.component.d.ts +2 -2
  34. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts +1 -0
  35. package/lib/annotations/comment-set/comment-set.component.d.ts +4 -1
  36. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts +1 -0
  37. package/lib/toolbar/search-bar/search-bar.component.d.ts +1 -0
  38. package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts +0 -3
  39. package/package.json +1 -1
  40. package/hmcts-media-viewer-v2.7.7.tgz +0 -0
@@ -12,7 +12,7 @@ export declare class CommentComponent implements OnInit, OnDestroy, AfterContent
12
12
  private store;
13
13
  private readonly commentService;
14
14
  private tagsServices;
15
- COMMENT_CHAR_LIMIT: number;
15
+ CHAR_LIMIT: number;
16
16
  lastUpdate: string;
17
17
  originalComment: string;
18
18
  fullComment: string;
@@ -22,7 +22,7 @@ export declare class CommentComponent implements OnInit, OnDestroy, AfterContent
22
22
  _comment: Comment;
23
23
  _editable: boolean;
24
24
  _rectangle: any;
25
- totalPreviousPagesHeight: number;
25
+ totalPrevPagesHeight: number;
26
26
  rectTop: any;
27
27
  rectLeft: any;
28
28
  pageHeight: number;
@@ -21,5 +21,6 @@ export declare class CommentSetHeaderComponent implements OnInit, OnDestroy {
21
21
  ngOnInit(): void;
22
22
  toggleCommentsSummary(): void;
23
23
  selectTab(tab: string): void;
24
+ toggleCommentsPanel(): void;
24
25
  ngOnDestroy(): void;
25
26
  }
@@ -21,6 +21,7 @@ export declare class CommentSetComponent implements OnInit, OnDestroy, OnChanges
21
21
  rotate: number;
22
22
  height: number;
23
23
  pageHeights: any[];
24
+ contentScrollTop: number;
24
25
  comments: Comment[];
25
26
  tags: TagsModel[];
26
27
  private subscriptions;
@@ -28,7 +29,8 @@ export declare class CommentSetComponent implements OnInit, OnDestroy, OnChanges
28
29
  annoEntities$: Observable<{
29
30
  [id: string]: Annotation;
30
31
  }>;
31
- container: ElementRef;
32
+ container: ElementRef<HTMLDivElement>;
33
+ panel: ElementRef<HTMLDivElement>;
32
34
  commentComponents: QueryList<CommentComponent>;
33
35
  showCommentsPanel: boolean;
34
36
  constructor(store: Store<fromStore.AnnotationSetState>, commentService: CommentService, renderService: CommentSetRenderService, toolbarEvents: ToolbarEventService);
@@ -38,6 +40,7 @@ export declare class CommentSetComponent implements OnInit, OnDestroy, OnChanges
38
40
  onSelect(annotationId: SelectionAnnotation): void;
39
41
  onCommentDelete(comment: Comment): void;
40
42
  redrawComments(): void;
43
+ private rotateDocument;
41
44
  onCommentUpdate(payload: {
42
45
  comment: Comment;
43
46
  tags: TagsModel[];
@@ -18,5 +18,6 @@ export declare class RedactionToolbarComponent implements OnInit, OnDestroy {
18
18
  togglePreview(): void;
19
19
  unmarkAll(): void;
20
20
  redact(): void;
21
+ toggleRedactBar(): void;
21
22
  ngOnDestroy(): void;
22
23
  }
@@ -24,4 +24,5 @@ export declare class SearchBarComponent implements OnInit, OnDestroy {
24
24
  onEscapeKeyPress(e: KeyboardEvent): void;
25
25
  onEnterKeyPress(e: KeyboardEvent): void;
26
26
  toggleAdvancedSearch(): void;
27
+ toggleSearchBar(): void;
27
28
  }
@@ -7,7 +7,6 @@ import { ToolbarEventService } from '../../toolbar/toolbar-event.service';
7
7
  import { PrintService } from '../../print.service';
8
8
  import { ResponseType, ViewerException } from '../viewer-exception.model';
9
9
  import { ToolbarButtonVisibilityService } from '../../toolbar/toolbar-button-visibility.service';
10
- import { CommentSetComponent } from '../../annotations/comment-set/comment-set.component';
11
10
  import { Outline } from './side-bar/outline-item/outline.model';
12
11
  import * as fromStore from '../../store/reducers/reducers';
13
12
  import { IcpState } from '../../icp/icp.interfaces';
@@ -44,8 +43,6 @@ export declare class PdfViewerComponent implements AfterContentInit, OnChanges,
44
43
  hasDifferentPageSize: boolean;
45
44
  viewerContainer: ElementRef<HTMLDivElement>;
46
45
  pdfViewer: ElementRef<HTMLDivElement>;
47
- commentsPanel: CommentSetComponent;
48
- scrollTwo: ElementRef<HTMLDivElement>;
49
46
  private pdfWrapper;
50
47
  private $subscription;
51
48
  private viewerException;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/media-viewer",
3
- "version": "2.7.7",
3
+ "version": "2.7.11",
4
4
  "description": "Media Viewer",
5
5
  "keywords": [
6
6
  "Angular",
Binary file