@hmcts/media-viewer 2.8.2 → 2.9.2

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 (565) hide show
  1. package/README.md +0 -1
  2. package/assets/images/icon-page.svg +52 -0
  3. package/assets/sass/comment.scss +1 -1
  4. package/assets/sass/outline-attachment.scss +6 -1
  5. package/assets/sass/participants-list.scss +1 -1
  6. package/assets/sass/rectangle.scss +1 -4
  7. package/assets/sass/toolbar/main-toolbar.scss +8 -8
  8. package/assets/sass/toolbar/redaction-toolbar.scss +10 -0
  9. package/bundles/hmcts-media-viewer.umd.js +3392 -10778
  10. package/bundles/hmcts-media-viewer.umd.js.map +1 -1
  11. package/bundles/hmcts-media-viewer.umd.min.js +1 -16
  12. package/bundles/hmcts-media-viewer.umd.min.js.map +1 -1
  13. package/esm2015/hmcts-media-viewer.js +20 -24
  14. package/esm2015/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +24 -103
  15. package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.js +14 -111
  16. package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.js +4 -49
  17. package/esm2015/lib/annotations/annotation-set/annotation-set.component.js +2 -51
  18. package/esm2015/lib/annotations/annotation-set/annotation-set.model.js +2 -15
  19. package/esm2015/lib/annotations/annotation-set/annotation-view/annotation-view.component.js +4 -74
  20. package/esm2015/lib/annotations/annotation-set/annotation-view/annotation.model.js +2 -29
  21. package/esm2015/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.js +5 -114
  22. package/esm2015/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.js +2 -21
  23. package/esm2015/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.js +8 -85
  24. package/esm2015/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.js +9 -105
  25. package/esm2015/lib/annotations/annotations.module.js +1 -5
  26. package/esm2015/lib/annotations/comment-set/comment/comment.component.js +4 -152
  27. package/esm2015/lib/annotations/comment-set/comment/comment.model.js +2 -27
  28. package/esm2015/lib/annotations/comment-set/comment/comment.service.js +3 -53
  29. package/esm2015/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.js +1 -37
  30. package/esm2015/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.js +1 -25
  31. package/esm2015/lib/annotations/comment-set/comment-navigate/comments-navigate.component.js +5 -63
  32. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.js +10 -76
  33. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.js +5 -53
  34. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +6 -63
  35. package/esm2015/lib/annotations/comment-set/comment-set-render.service.js +5 -73
  36. package/esm2015/lib/annotations/comment-set/comment-set.component.js +11 -154
  37. package/esm2015/lib/annotations/comments-summary/comments-summary.component.js +8 -111
  38. package/esm2015/lib/annotations/models/api-persisted.model.js +2 -25
  39. package/esm2015/lib/annotations/models/event-select.model.js +2 -17
  40. package/esm2015/lib/annotations/models/tags.model.js +2 -19
  41. package/esm2015/lib/annotations/models/user.model.js +2 -17
  42. package/esm2015/lib/annotations/pipes/date/date.pipe.js +1 -12
  43. package/esm2015/lib/annotations/pipes/filter/filter.pipe.js +3 -17
  44. package/esm2015/lib/annotations/pipes/unsnake/unsnake.pipe.js +1 -9
  45. package/esm2015/lib/annotations/services/annotation-api/annotation-api.service.js +6 -93
  46. package/esm2015/lib/annotations/services/bookmarks-api/bookmarks-api.service.js +6 -69
  47. package/esm2015/lib/annotations/services/tags/tags.services.js +6 -54
  48. package/esm2015/lib/annotations/tags/tags.component.js +4 -50
  49. package/esm2015/lib/bookmark/components/bookmark-icons.component.js +2 -29
  50. package/esm2015/lib/icp/confirm-exit/confirm-action-dialog.component.js +2 -22
  51. package/esm2015/lib/icp/icp-follower.service.js +4 -63
  52. package/esm2015/lib/icp/icp-presenter.service.js +6 -69
  53. package/esm2015/lib/icp/icp-session-api.service.js +2 -26
  54. package/esm2015/lib/icp/icp-update.service.js +18 -92
  55. package/esm2015/lib/icp/icp.events.js +15 -0
  56. package/esm2015/lib/icp/icp.interfaces.js +2 -51
  57. package/esm2015/lib/icp/icp.service.js +18 -155
  58. package/esm2015/lib/icp/participants-list/participants-list.component.js +3 -43
  59. package/esm2015/lib/icp/socket.service.js +92 -86
  60. package/esm2015/lib/media-viewer.component.js +24 -196
  61. package/esm2015/lib/media-viewer.module.js +3 -7
  62. package/esm2015/lib/print.service.js +2 -18
  63. package/esm2015/lib/redaction/components/redaction.component.js +13 -127
  64. package/esm2015/lib/redaction/services/redaction-api.service.js +6 -75
  65. package/esm2015/lib/redaction/services/redaction.model.js +2 -19
  66. package/esm2015/lib/shared/gov-uk-date/gov-uk-date.component.js +2 -14
  67. package/esm2015/lib/shared/gov-uk-error-message/gov-uk-error-message.component.js +3 -14
  68. package/esm2015/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.js +2 -17
  69. package/esm2015/lib/shared/gov-uk-label/gov-uk-label.component.js +3 -12
  70. package/esm2015/lib/shared/shared.module.js +1 -5
  71. package/esm2015/lib/shared/util/helpers/html-templates.helper.js +1 -10
  72. package/esm2015/lib/shared/util/services/number.helper.service.js +4 -14
  73. package/esm2015/lib/store/actions/annotation.actions.js +1 -140
  74. package/esm2015/lib/store/actions/bookmark.actions.js +1 -150
  75. package/esm2015/lib/store/actions/document.actions.js +1 -130
  76. package/esm2015/lib/store/actions/icp.actions.js +1 -80
  77. package/esm2015/lib/store/actions/redaction.actions.js +1 -155
  78. package/esm2015/lib/store/actions/tag.actions.js +1 -30
  79. package/esm2015/lib/store/bookmarks-store-utils.js +17 -69
  80. package/esm2015/lib/store/effects/annotation.effects.js +16 -90
  81. package/esm2015/lib/store/effects/bookmarks.effects.js +12 -127
  82. package/esm2015/lib/store/effects/document.effects.js +16 -97
  83. package/esm2015/lib/store/effects/icp.effects.js +5 -63
  84. package/esm2015/lib/store/effects/index.js +1 -6
  85. package/esm2015/lib/store/effects/redaction.effects.js +26 -137
  86. package/esm2015/lib/store/models/bookmarks.interface.js +2 -57
  87. package/esm2015/lib/store/models/filters.interface.js +2 -17
  88. package/esm2015/lib/store/reducers/annotations.reducer.js +14 -129
  89. package/esm2015/lib/store/reducers/bookmarks.reducer.js +12 -99
  90. package/esm2015/lib/store/reducers/document.reducer.js +10 -129
  91. package/esm2015/lib/store/reducers/icp.reducer.js +6 -47
  92. package/esm2015/lib/store/reducers/redaction.reducer.js +7 -73
  93. package/esm2015/lib/store/reducers/reducers.js +7 -31
  94. package/esm2015/lib/store/reducers/tags.reducer.js +12 -102
  95. package/esm2015/lib/store/selectors/annotation.selectors.js +29 -118
  96. package/esm2015/lib/store/selectors/bookmark.selectors.js +12 -51
  97. package/esm2015/lib/store/selectors/document.selectors.js +5 -26
  98. package/esm2015/lib/store/selectors/icp.selectors.js +9 -38
  99. package/esm2015/lib/store/selectors/redaction.selectors.js +10 -45
  100. package/esm2015/lib/store/selectors/tag.selectors.js +6 -28
  101. package/esm2015/lib/store/store-utils.js +26 -156
  102. package/esm2015/lib/toolbar/icp-event.service.js +13 -48
  103. package/esm2015/lib/toolbar/icp-toolbar/icp-toolbar.component.js +4 -56
  104. package/esm2015/lib/toolbar/main-toolbar/main-toolbar.component.js +10 -177
  105. package/esm2015/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +9 -59
  106. package/esm2015/lib/toolbar/search-bar/search-bar.component.js +11 -85
  107. package/esm2015/lib/toolbar/toolbar-button-visibility.service.js +2 -46
  108. package/esm2015/lib/toolbar/toolbar-event.service.js +17 -174
  109. package/esm2015/lib/toolbar/toolbar.module.js +1 -5
  110. package/esm2015/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +5 -75
  111. package/esm2015/lib/viewers/convertible-content-viewer/document-conversion-api.service.js +3 -34
  112. package/esm2015/lib/viewers/grab-n-drag.directive.js +1 -38
  113. package/esm2015/lib/viewers/image-viewer/image-viewer.component.js +29 -196
  114. package/esm2015/lib/viewers/multimedia-player/multimedia-player.component.js +3 -55
  115. package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +61 -240
  116. package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.js +2 -40
  117. package/esm2015/lib/viewers/pdf-viewer/pdf-viewer.component.js +34 -302
  118. package/esm2015/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.js +12 -107
  119. package/esm2015/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.js +2 -39
  120. package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +16 -25
  121. package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +2 -31
  122. package/esm2015/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +16 -73
  123. package/esm2015/lib/viewers/rotation-persist/rotation-api.service.js +2 -35
  124. package/esm2015/lib/viewers/rotation-persist/rotation-persist.directive.js +8 -87
  125. package/esm2015/lib/viewers/rotation-persist/rotation.model.js +2 -15
  126. package/esm2015/lib/viewers/unsupported-viewer/unsupported-viewer.component.js +4 -60
  127. package/esm2015/lib/viewers/viewer-event.service.js +2 -41
  128. package/esm2015/lib/viewers/viewer-exception.model.js +7 -32
  129. package/esm2015/lib/viewers/viewer-util.service.js +2 -20
  130. package/esm2015/public_api.js +28 -32
  131. package/fesm2015/hmcts-media-viewer.js +1566 -8060
  132. package/fesm2015/hmcts-media-viewer.js.map +1 -1
  133. package/hmcts-media-viewer-v2.9.2.tgz +0 -0
  134. package/hmcts-media-viewer.d.ts +19 -18
  135. package/hmcts-media-viewer.d.ts.map +1 -0
  136. package/hmcts-media-viewer.metadata.json +1 -1
  137. package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts +7 -3
  138. package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts.map +1 -0
  139. package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.ngfactory.d.ts.map +1 -0
  140. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts +1 -0
  141. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts.map +1 -0
  142. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.ngfactory.d.ts.map +1 -0
  143. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts +1 -0
  144. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts.map +1 -0
  145. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.ngfactory.d.ts.map +1 -0
  146. package/lib/annotations/annotation-set/annotation-set.component.d.ts +1 -0
  147. package/lib/annotations/annotation-set/annotation-set.component.d.ts.map +1 -0
  148. package/lib/annotations/annotation-set/annotation-set.component.ngfactory.d.ts.map +1 -0
  149. package/lib/annotations/annotation-set/annotation-set.model.d.ts +1 -0
  150. package/lib/annotations/annotation-set/annotation-set.model.d.ts.map +1 -0
  151. package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts +4 -3
  152. package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts.map +1 -0
  153. package/lib/annotations/annotation-set/annotation-view/annotation-view.component.ngfactory.d.ts.map +1 -0
  154. package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts +1 -0
  155. package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts.map +1 -0
  156. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts +5 -2
  157. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts.map +1 -0
  158. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.ngfactory.d.ts.map +1 -0
  159. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts +1 -0
  160. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts.map +1 -0
  161. package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts +3 -1
  162. package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts.map +1 -0
  163. package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.ngfactory.d.ts.map +1 -0
  164. package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts +1 -0
  165. package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts.map +1 -0
  166. package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.ngfactory.d.ts.map +1 -0
  167. package/lib/annotations/annotations.module.d.ts +1 -0
  168. package/lib/annotations/annotations.module.d.ts.map +1 -0
  169. package/lib/annotations/annotations.module.ngfactory.d.ts.map +1 -0
  170. package/lib/annotations/comment-set/comment/comment.component.d.ts +7 -5
  171. package/lib/annotations/comment-set/comment/comment.component.d.ts.map +1 -0
  172. package/lib/annotations/comment-set/comment/comment.component.ngfactory.d.ts.map +1 -0
  173. package/lib/annotations/comment-set/comment/comment.model.d.ts +1 -0
  174. package/lib/annotations/comment-set/comment/comment.model.d.ts.map +1 -0
  175. package/lib/annotations/comment-set/comment/comment.service.d.ts +1 -0
  176. package/lib/annotations/comment-set/comment/comment.service.d.ts.map +1 -0
  177. package/lib/annotations/comment-set/comment/comment.service.ngfactory.d.ts.map +1 -0
  178. package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts +1 -0
  179. package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts.map +1 -0
  180. package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.ngfactory.d.ts.map +1 -0
  181. package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts +1 -0
  182. package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts.map +1 -0
  183. package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.ngfactory.d.ts.map +1 -0
  184. package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts +1 -0
  185. package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts.map +1 -0
  186. package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.ngfactory.d.ts.map +1 -0
  187. package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts +1 -0
  188. package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts.map +1 -0
  189. package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.ngfactory.d.ts.map +1 -0
  190. package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts +1 -0
  191. package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts.map +1 -0
  192. package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.ngfactory.d.ts.map +1 -0
  193. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts +1 -0
  194. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts.map +1 -0
  195. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.ngfactory.d.ts.map +1 -0
  196. package/lib/annotations/comment-set/comment-set-render.service.d.ts +1 -0
  197. package/lib/annotations/comment-set/comment-set-render.service.d.ts.map +1 -0
  198. package/lib/annotations/comment-set/comment-set-render.service.ngfactory.d.ts.map +1 -0
  199. package/lib/annotations/comment-set/comment-set.component.d.ts +1 -0
  200. package/lib/annotations/comment-set/comment-set.component.d.ts.map +1 -0
  201. package/lib/annotations/comment-set/comment-set.component.ngfactory.d.ts.map +1 -0
  202. package/lib/annotations/comments-summary/comments-summary.component.d.ts +1 -1
  203. package/lib/annotations/comments-summary/comments-summary.component.d.ts.map +1 -0
  204. package/lib/annotations/comments-summary/comments-summary.component.ngfactory.d.ts.map +1 -0
  205. package/lib/annotations/models/api-persisted.model.d.ts +1 -0
  206. package/lib/annotations/models/api-persisted.model.d.ts.map +1 -0
  207. package/lib/annotations/models/event-select.model.d.ts +1 -0
  208. package/lib/annotations/models/event-select.model.d.ts.map +1 -0
  209. package/lib/annotations/models/tags.model.d.ts +1 -0
  210. package/lib/annotations/models/tags.model.d.ts.map +1 -0
  211. package/lib/annotations/models/user.model.d.ts +1 -0
  212. package/lib/annotations/models/user.model.d.ts.map +1 -0
  213. package/lib/annotations/pipes/date/date.pipe.d.ts +2 -1
  214. package/lib/annotations/pipes/date/date.pipe.d.ts.map +1 -0
  215. package/lib/annotations/pipes/date/date.pipe.ngfactory.d.ts.map +1 -0
  216. package/lib/annotations/pipes/filter/filter.pipe.d.ts +1 -0
  217. package/lib/annotations/pipes/filter/filter.pipe.d.ts.map +1 -0
  218. package/lib/annotations/pipes/filter/filter.pipe.ngfactory.d.ts.map +1 -0
  219. package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts +1 -0
  220. package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts.map +1 -0
  221. package/lib/annotations/pipes/unsnake/unsnake.pipe.ngfactory.d.ts.map +1 -0
  222. package/lib/annotations/services/annotation-api/annotation-api.service.d.ts +3 -2
  223. package/lib/annotations/services/annotation-api/annotation-api.service.d.ts.map +1 -0
  224. package/lib/annotations/services/annotation-api/annotation-api.service.ngfactory.d.ts.map +1 -0
  225. package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts +1 -0
  226. package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts.map +1 -0
  227. package/lib/annotations/services/bookmarks-api/bookmarks-api.service.ngfactory.d.ts.map +1 -0
  228. package/lib/annotations/services/tags/tags.services.d.ts +1 -0
  229. package/lib/annotations/services/tags/tags.services.d.ts.map +1 -0
  230. package/lib/annotations/services/tags/tags.services.ngfactory.d.ts.map +1 -0
  231. package/lib/annotations/tags/tags.component.d.ts +3 -2
  232. package/lib/annotations/tags/tags.component.d.ts.map +1 -0
  233. package/lib/annotations/tags/tags.component.ngfactory.d.ts.map +1 -0
  234. package/lib/bookmark/components/bookmark-icons.component.d.ts +1 -0
  235. package/lib/bookmark/components/bookmark-icons.component.d.ts.map +1 -0
  236. package/lib/bookmark/components/bookmark-icons.component.ngfactory.d.ts.map +1 -0
  237. package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts +1 -0
  238. package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts.map +1 -0
  239. package/lib/icp/confirm-exit/confirm-action-dialog.component.ngfactory.d.ts.map +1 -0
  240. package/lib/icp/icp-follower.service.d.ts +1 -0
  241. package/lib/icp/icp-follower.service.d.ts.map +1 -0
  242. package/lib/icp/icp-follower.service.ngfactory.d.ts.map +1 -0
  243. package/lib/icp/icp-presenter.service.d.ts +1 -0
  244. package/lib/icp/icp-presenter.service.d.ts.map +1 -0
  245. package/lib/icp/icp-presenter.service.ngfactory.d.ts.map +1 -0
  246. package/lib/icp/icp-session-api.service.d.ts +1 -0
  247. package/lib/icp/icp-session-api.service.d.ts.map +1 -0
  248. package/lib/icp/icp-session-api.service.ngfactory.d.ts.map +1 -0
  249. package/lib/icp/icp-update.service.d.ts +1 -9
  250. package/lib/icp/icp-update.service.d.ts.map +1 -0
  251. package/lib/icp/icp-update.service.ngfactory.d.ts.map +1 -0
  252. package/lib/icp/icp.events.d.ts +14 -0
  253. package/lib/icp/icp.events.d.ts.map +1 -0
  254. package/lib/icp/icp.interfaces.d.ts +2 -0
  255. package/lib/icp/icp.interfaces.d.ts.map +1 -0
  256. package/lib/icp/icp.service.d.ts +1 -0
  257. package/lib/icp/icp.service.d.ts.map +1 -0
  258. package/lib/icp/icp.service.ngfactory.d.ts.map +1 -0
  259. package/lib/icp/participants-list/participants-list.component.d.ts +1 -0
  260. package/lib/icp/participants-list/participants-list.component.d.ts.map +1 -0
  261. package/lib/icp/participants-list/participants-list.component.ngfactory.d.ts.map +1 -0
  262. package/lib/icp/socket.service.d.ts +14 -4
  263. package/lib/icp/socket.service.d.ts.map +1 -0
  264. package/lib/icp/socket.service.ngfactory.d.ts.map +1 -0
  265. package/lib/media-viewer.component.d.ts +1 -0
  266. package/lib/media-viewer.component.d.ts.map +1 -0
  267. package/lib/media-viewer.component.ngfactory.d.ts.map +1 -0
  268. package/lib/media-viewer.module.d.ts +1 -0
  269. package/lib/media-viewer.module.d.ts.map +1 -0
  270. package/lib/media-viewer.module.ngfactory.d.ts.map +1 -0
  271. package/lib/print.service.d.ts +1 -0
  272. package/lib/print.service.d.ts.map +1 -0
  273. package/lib/print.service.ngfactory.d.ts.map +1 -0
  274. package/lib/redaction/components/redaction.component.d.ts +1 -0
  275. package/lib/redaction/components/redaction.component.d.ts.map +1 -0
  276. package/lib/redaction/components/redaction.component.ngfactory.d.ts.map +1 -0
  277. package/lib/redaction/services/redaction-api.service.d.ts +1 -0
  278. package/lib/redaction/services/redaction-api.service.d.ts.map +1 -0
  279. package/lib/redaction/services/redaction-api.service.ngfactory.d.ts.map +1 -0
  280. package/lib/redaction/services/redaction.model.d.ts +1 -0
  281. package/lib/redaction/services/redaction.model.d.ts.map +1 -0
  282. package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts +1 -0
  283. package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts.map +1 -0
  284. package/lib/shared/gov-uk-date/gov-uk-date.component.ngfactory.d.ts.map +1 -0
  285. package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts +1 -0
  286. package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts.map +1 -0
  287. package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.ngfactory.d.ts.map +1 -0
  288. package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +1 -0
  289. package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts.map +1 -0
  290. package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.ngfactory.d.ts.map +1 -0
  291. package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts +1 -0
  292. package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts.map +1 -0
  293. package/lib/shared/gov-uk-label/gov-uk-label.component.ngfactory.d.ts.map +1 -0
  294. package/lib/shared/shared.module.d.ts +1 -0
  295. package/lib/shared/shared.module.d.ts.map +1 -0
  296. package/lib/shared/shared.module.ngfactory.d.ts.map +1 -0
  297. package/lib/shared/util/helpers/html-templates.helper.d.ts +1 -0
  298. package/lib/shared/util/helpers/html-templates.helper.d.ts.map +1 -0
  299. package/lib/shared/util/services/number.helper.service.d.ts +1 -0
  300. package/lib/shared/util/services/number.helper.service.d.ts.map +1 -0
  301. package/lib/shared/util/services/number.helper.service.ngfactory.d.ts.map +1 -0
  302. package/lib/store/actions/annotation.actions.d.ts +1 -0
  303. package/lib/store/actions/annotation.actions.d.ts.map +1 -0
  304. package/lib/store/actions/bookmark.actions.d.ts +1 -0
  305. package/lib/store/actions/bookmark.actions.d.ts.map +1 -0
  306. package/lib/store/actions/document.actions.d.ts +1 -0
  307. package/lib/store/actions/document.actions.d.ts.map +1 -0
  308. package/lib/store/actions/icp.actions.d.ts +1 -0
  309. package/lib/store/actions/icp.actions.d.ts.map +1 -0
  310. package/lib/store/actions/redaction.actions.d.ts +1 -0
  311. package/lib/store/actions/redaction.actions.d.ts.map +1 -0
  312. package/lib/store/actions/tag.actions.d.ts +1 -0
  313. package/lib/store/actions/tag.actions.d.ts.map +1 -0
  314. package/lib/store/bookmarks-store-utils.d.ts +1 -0
  315. package/lib/store/bookmarks-store-utils.d.ts.map +1 -0
  316. package/lib/store/effects/annotation.effects.d.ts +1 -0
  317. package/lib/store/effects/annotation.effects.d.ts.map +1 -0
  318. package/lib/store/effects/annotation.effects.ngfactory.d.ts.map +1 -0
  319. package/lib/store/effects/bookmarks.effects.d.ts +1 -0
  320. package/lib/store/effects/bookmarks.effects.d.ts.map +1 -0
  321. package/lib/store/effects/bookmarks.effects.ngfactory.d.ts.map +1 -0
  322. package/lib/store/effects/document.effects.d.ts +1 -0
  323. package/lib/store/effects/document.effects.d.ts.map +1 -0
  324. package/lib/store/effects/document.effects.ngfactory.d.ts.map +1 -0
  325. package/lib/store/effects/icp.effects.d.ts +1 -0
  326. package/lib/store/effects/icp.effects.d.ts.map +1 -0
  327. package/lib/store/effects/icp.effects.ngfactory.d.ts.map +1 -0
  328. package/lib/store/effects/index.d.ts +1 -0
  329. package/lib/store/effects/index.d.ts.map +1 -0
  330. package/lib/store/effects/redaction.effects.d.ts +1 -0
  331. package/lib/store/effects/redaction.effects.d.ts.map +1 -0
  332. package/lib/store/effects/redaction.effects.ngfactory.d.ts.map +1 -0
  333. package/lib/store/models/bookmarks.interface.d.ts +1 -0
  334. package/lib/store/models/bookmarks.interface.d.ts.map +1 -0
  335. package/lib/store/models/filters.interface.d.ts +1 -0
  336. package/lib/store/models/filters.interface.d.ts.map +1 -0
  337. package/lib/store/reducers/annotations.reducer.d.ts +1 -0
  338. package/lib/store/reducers/annotations.reducer.d.ts.map +1 -0
  339. package/lib/store/reducers/bookmarks.reducer.d.ts +1 -0
  340. package/lib/store/reducers/bookmarks.reducer.d.ts.map +1 -0
  341. package/lib/store/reducers/document.reducer.d.ts +1 -0
  342. package/lib/store/reducers/document.reducer.d.ts.map +1 -0
  343. package/lib/store/reducers/icp.reducer.d.ts +1 -0
  344. package/lib/store/reducers/icp.reducer.d.ts.map +1 -0
  345. package/lib/store/reducers/redaction.reducer.d.ts +1 -0
  346. package/lib/store/reducers/redaction.reducer.d.ts.map +1 -0
  347. package/lib/store/reducers/reducers.d.ts +2 -1
  348. package/lib/store/reducers/reducers.d.ts.map +1 -0
  349. package/lib/store/reducers/tags.reducer.d.ts +1 -0
  350. package/lib/store/reducers/tags.reducer.d.ts.map +1 -0
  351. package/lib/store/selectors/annotation.selectors.d.ts +54 -15
  352. package/lib/store/selectors/annotation.selectors.d.ts.map +1 -0
  353. package/lib/store/selectors/bookmark.selectors.d.ts +18 -7
  354. package/lib/store/selectors/bookmark.selectors.d.ts.map +1 -0
  355. package/lib/store/selectors/document.selectors.d.ts +15 -9
  356. package/lib/store/selectors/document.selectors.d.ts.map +1 -0
  357. package/lib/store/selectors/icp.selectors.d.ts +9 -8
  358. package/lib/store/selectors/icp.selectors.d.ts.map +1 -0
  359. package/lib/store/selectors/redaction.selectors.d.ts +18 -7
  360. package/lib/store/selectors/redaction.selectors.d.ts.map +1 -0
  361. package/lib/store/selectors/tag.selectors.d.ts +16 -6
  362. package/lib/store/selectors/tag.selectors.d.ts.map +1 -0
  363. package/lib/store/store-utils.d.ts +1 -0
  364. package/lib/store/store-utils.d.ts.map +1 -0
  365. package/lib/toolbar/icp-event.service.d.ts +1 -0
  366. package/lib/toolbar/icp-event.service.d.ts.map +1 -0
  367. package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts +1 -0
  368. package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts.map +1 -0
  369. package/lib/toolbar/icp-toolbar/icp-toolbar.component.ngfactory.d.ts.map +1 -0
  370. package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts +1 -0
  371. package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts.map +1 -0
  372. package/lib/toolbar/main-toolbar/main-toolbar.component.ngfactory.d.ts.map +1 -0
  373. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts +2 -0
  374. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts.map +1 -0
  375. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.ngfactory.d.ts.map +1 -0
  376. package/lib/toolbar/search-bar/search-bar.component.d.ts +2 -0
  377. package/lib/toolbar/search-bar/search-bar.component.d.ts.map +1 -0
  378. package/lib/toolbar/search-bar/search-bar.component.ngfactory.d.ts.map +1 -0
  379. package/lib/toolbar/toolbar-button-visibility.service.d.ts +1 -0
  380. package/lib/toolbar/toolbar-button-visibility.service.d.ts.map +1 -0
  381. package/lib/toolbar/toolbar-button-visibility.service.ngfactory.d.ts.map +1 -0
  382. package/lib/toolbar/toolbar-event.service.d.ts +3 -0
  383. package/lib/toolbar/toolbar-event.service.d.ts.map +1 -0
  384. package/lib/toolbar/toolbar-event.service.ngfactory.d.ts.map +1 -0
  385. package/lib/toolbar/toolbar.module.d.ts +1 -0
  386. package/lib/toolbar/toolbar.module.d.ts.map +1 -0
  387. package/lib/toolbar/toolbar.module.ngfactory.d.ts.map +1 -0
  388. package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts +1 -0
  389. package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts.map +1 -0
  390. package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.ngfactory.d.ts.map +1 -0
  391. package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts +1 -0
  392. package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts.map +1 -0
  393. package/lib/viewers/convertible-content-viewer/document-conversion-api.service.ngfactory.d.ts.map +1 -0
  394. package/lib/viewers/grab-n-drag.directive.d.ts +1 -0
  395. package/lib/viewers/grab-n-drag.directive.d.ts.map +1 -0
  396. package/lib/viewers/grab-n-drag.directive.ngfactory.d.ts.map +1 -0
  397. package/lib/viewers/image-viewer/image-viewer.component.d.ts +5 -1
  398. package/lib/viewers/image-viewer/image-viewer.component.d.ts.map +1 -0
  399. package/lib/viewers/image-viewer/image-viewer.component.ngfactory.d.ts.map +1 -0
  400. package/lib/viewers/multimedia-player/multimedia-player.component.d.ts +1 -0
  401. package/lib/viewers/multimedia-player/multimedia-player.component.d.ts.map +1 -0
  402. package/lib/viewers/multimedia-player/multimedia-player.component.ngfactory.d.ts.map +1 -0
  403. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts +5 -0
  404. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts.map +1 -0
  405. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts +1 -0
  406. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts.map +1 -0
  407. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.ngfactory.d.ts.map +1 -0
  408. package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts +6 -2
  409. package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts.map +1 -0
  410. package/lib/viewers/pdf-viewer/pdf-viewer.component.ngfactory.d.ts.map +1 -0
  411. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts +2 -1
  412. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts.map +1 -0
  413. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.ngfactory.d.ts.map +1 -0
  414. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts +1 -0
  415. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts.map +1 -0
  416. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts +7 -0
  417. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts.map +1 -0
  418. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.ngfactory.d.ts.map +1 -0
  419. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts +3 -1
  420. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts.map +1 -0
  421. package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts +4 -0
  422. package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts.map +1 -0
  423. package/lib/viewers/pdf-viewer/side-bar/side-bar.component.ngfactory.d.ts.map +1 -0
  424. package/lib/viewers/rotation-persist/rotation-api.service.d.ts +1 -0
  425. package/lib/viewers/rotation-persist/rotation-api.service.d.ts.map +1 -0
  426. package/lib/viewers/rotation-persist/rotation-api.service.ngfactory.d.ts.map +1 -0
  427. package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts +1 -0
  428. package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts.map +1 -0
  429. package/lib/viewers/rotation-persist/rotation-persist.directive.ngfactory.d.ts.map +1 -0
  430. package/lib/viewers/rotation-persist/rotation.model.d.ts +1 -0
  431. package/lib/viewers/rotation-persist/rotation.model.d.ts.map +1 -0
  432. package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts +1 -0
  433. package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts.map +1 -0
  434. package/lib/viewers/unsupported-viewer/unsupported-viewer.component.ngfactory.d.ts.map +1 -0
  435. package/lib/viewers/viewer-event.service.d.ts +1 -0
  436. package/lib/viewers/viewer-event.service.d.ts.map +1 -0
  437. package/lib/viewers/viewer-event.service.ngfactory.d.ts.map +1 -0
  438. package/lib/viewers/viewer-exception.model.d.ts +1 -0
  439. package/lib/viewers/viewer-exception.model.d.ts.map +1 -0
  440. package/lib/viewers/viewer-util.service.d.ts +1 -0
  441. package/lib/viewers/viewer-util.service.d.ts.map +1 -0
  442. package/lib/viewers/viewer-util.service.ngfactory.d.ts.map +1 -0
  443. package/package.json +16 -17
  444. package/public_api.d.ts +1 -0
  445. package/public_api.d.ts.map +1 -0
  446. package/esm5/hmcts-media-viewer.js +0 -67
  447. package/esm5/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +0 -215
  448. package/esm5/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.js +0 -236
  449. package/esm5/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.js +0 -125
  450. package/esm5/lib/annotations/annotation-set/annotation-set.component.js +0 -109
  451. package/esm5/lib/annotations/annotation-set/annotation-set.model.js +0 -15
  452. package/esm5/lib/annotations/annotation-set/annotation-view/annotation-view.component.js +0 -177
  453. package/esm5/lib/annotations/annotation-set/annotation-view/annotation.model.js +0 -29
  454. package/esm5/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.js +0 -250
  455. package/esm5/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.js +0 -21
  456. package/esm5/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.js +0 -216
  457. package/esm5/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.js +0 -200
  458. package/esm5/lib/annotations/annotations.module.js +0 -109
  459. package/esm5/lib/annotations/comment-set/comment/comment.component.js +0 -353
  460. package/esm5/lib/annotations/comment-set/comment/comment.model.js +0 -27
  461. package/esm5/lib/annotations/comment-set/comment/comment.service.js +0 -125
  462. package/esm5/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.js +0 -98
  463. package/esm5/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.js +0 -63
  464. package/esm5/lib/annotations/comment-set/comment-navigate/comments-navigate.component.js +0 -174
  465. package/esm5/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.js +0 -145
  466. package/esm5/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.js +0 -117
  467. package/esm5/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +0 -131
  468. package/esm5/lib/annotations/comment-set/comment-set-render.service.js +0 -177
  469. package/esm5/lib/annotations/comment-set/comment-set.component.js +0 -295
  470. package/esm5/lib/annotations/comments-summary/comments-summary.component.js +0 -239
  471. package/esm5/lib/annotations/models/api-persisted.model.js +0 -25
  472. package/esm5/lib/annotations/models/event-select.model.js +0 -17
  473. package/esm5/lib/annotations/models/tags.model.js +0 -19
  474. package/esm5/lib/annotations/models/user.model.js +0 -17
  475. package/esm5/lib/annotations/pipes/date/date.pipe.js +0 -48
  476. package/esm5/lib/annotations/pipes/filter/filter.pipe.js +0 -52
  477. package/esm5/lib/annotations/pipes/unsnake/unsnake.pipe.js +0 -28
  478. package/esm5/lib/annotations/services/annotation-api/annotation-api.service.js +0 -188
  479. package/esm5/lib/annotations/services/bookmarks-api/bookmarks-api.service.js +0 -132
  480. package/esm5/lib/annotations/services/tags/tags.services.js +0 -102
  481. package/esm5/lib/annotations/tags/tags.component.js +0 -112
  482. package/esm5/lib/bookmark/components/bookmark-icons.component.js +0 -55
  483. package/esm5/lib/icp/confirm-exit/confirm-action-dialog.component.js +0 -50
  484. package/esm5/lib/icp/icp-follower.service.js +0 -135
  485. package/esm5/lib/icp/icp-presenter.service.js +0 -135
  486. package/esm5/lib/icp/icp-session-api.service.js +0 -49
  487. package/esm5/lib/icp/icp-update.service.js +0 -165
  488. package/esm5/lib/icp/icp.interfaces.js +0 -51
  489. package/esm5/lib/icp/icp.service.js +0 -261
  490. package/esm5/lib/icp/participants-list/participants-list.component.js +0 -77
  491. package/esm5/lib/icp/socket.service.js +0 -142
  492. package/esm5/lib/media-viewer.component.js +0 -424
  493. package/esm5/lib/media-viewer.module.js +0 -110
  494. package/esm5/lib/print.service.js +0 -53
  495. package/esm5/lib/redaction/components/redaction.component.js +0 -247
  496. package/esm5/lib/redaction/services/redaction-api.service.js +0 -133
  497. package/esm5/lib/redaction/services/redaction.model.js +0 -19
  498. package/esm5/lib/shared/gov-uk-date/gov-uk-date.component.js +0 -37
  499. package/esm5/lib/shared/gov-uk-error-message/gov-uk-error-message.component.js +0 -36
  500. package/esm5/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -49
  501. package/esm5/lib/shared/gov-uk-label/gov-uk-label.component.js +0 -33
  502. package/esm5/lib/shared/shared.module.js +0 -42
  503. package/esm5/lib/shared/util/helpers/html-templates.helper.js +0 -36
  504. package/esm5/lib/shared/util/services/number.helper.service.js +0 -39
  505. package/esm5/lib/store/actions/annotation.actions.js +0 -226
  506. package/esm5/lib/store/actions/bookmark.actions.js +0 -242
  507. package/esm5/lib/store/actions/document.actions.js +0 -210
  508. package/esm5/lib/store/actions/icp.actions.js +0 -130
  509. package/esm5/lib/store/actions/redaction.actions.js +0 -255
  510. package/esm5/lib/store/actions/tag.actions.js +0 -50
  511. package/esm5/lib/store/bookmarks-store-utils.js +0 -110
  512. package/esm5/lib/store/effects/annotation.effects.js +0 -128
  513. package/esm5/lib/store/effects/bookmarks.effects.js +0 -193
  514. package/esm5/lib/store/effects/document.effects.js +0 -138
  515. package/esm5/lib/store/effects/icp.effects.js +0 -97
  516. package/esm5/lib/store/effects/index.js +0 -12
  517. package/esm5/lib/store/effects/redaction.effects.js +0 -190
  518. package/esm5/lib/store/models/bookmarks.interface.js +0 -57
  519. package/esm5/lib/store/models/filters.interface.js +0 -17
  520. package/esm5/lib/store/reducers/annotations.reducer.js +0 -231
  521. package/esm5/lib/store/reducers/bookmarks.reducer.js +0 -170
  522. package/esm5/lib/store/reducers/document.reducer.js +0 -222
  523. package/esm5/lib/store/reducers/icp.reducer.js +0 -83
  524. package/esm5/lib/store/reducers/redaction.reducer.js +0 -134
  525. package/esm5/lib/store/reducers/reducers.js +0 -47
  526. package/esm5/lib/store/reducers/tags.reducer.js +0 -159
  527. package/esm5/lib/store/selectors/annotation.selectors.js +0 -175
  528. package/esm5/lib/store/selectors/bookmark.selectors.js +0 -78
  529. package/esm5/lib/store/selectors/document.selectors.js +0 -37
  530. package/esm5/lib/store/selectors/icp.selectors.js +0 -47
  531. package/esm5/lib/store/selectors/redaction.selectors.js +0 -65
  532. package/esm5/lib/store/selectors/tag.selectors.js +0 -40
  533. package/esm5/lib/store/store-utils.js +0 -296
  534. package/esm5/lib/toolbar/icp-event.service.js +0 -65
  535. package/esm5/lib/toolbar/icp-toolbar/icp-toolbar.component.js +0 -112
  536. package/esm5/lib/toolbar/main-toolbar/main-toolbar.component.js +0 -408
  537. package/esm5/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +0 -130
  538. package/esm5/lib/toolbar/search-bar/search-bar.component.js +0 -226
  539. package/esm5/lib/toolbar/toolbar-button-visibility.service.js +0 -146
  540. package/esm5/lib/toolbar/toolbar-event.service.js +0 -416
  541. package/esm5/lib/toolbar/toolbar.module.js +0 -50
  542. package/esm5/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +0 -168
  543. package/esm5/lib/viewers/convertible-content-viewer/document-conversion-api.service.js +0 -57
  544. package/esm5/lib/viewers/grab-n-drag.directive.js +0 -98
  545. package/esm5/lib/viewers/image-viewer/image-viewer.component.js +0 -402
  546. package/esm5/lib/viewers/multimedia-player/multimedia-player.component.js +0 -125
  547. package/esm5/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +0 -446
  548. package/esm5/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.js +0 -87
  549. package/esm5/lib/viewers/pdf-viewer/pdf-viewer.component.js +0 -582
  550. package/esm5/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.js +0 -251
  551. package/esm5/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.js +0 -39
  552. package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +0 -62
  553. package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +0 -31
  554. package/esm5/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +0 -146
  555. package/esm5/lib/viewers/rotation-persist/rotation-api.service.js +0 -68
  556. package/esm5/lib/viewers/rotation-persist/rotation-persist.directive.js +0 -163
  557. package/esm5/lib/viewers/rotation-persist/rotation.model.js +0 -15
  558. package/esm5/lib/viewers/unsupported-viewer/unsupported-viewer.component.js +0 -120
  559. package/esm5/lib/viewers/viewer-event.service.js +0 -86
  560. package/esm5/lib/viewers/viewer-exception.model.js +0 -36
  561. package/esm5/lib/viewers/viewer-util.service.js +0 -44
  562. package/esm5/public_api.js +0 -35
  563. package/fesm5/hmcts-media-viewer.js +0 -14160
  564. package/fesm5/hmcts-media-viewer.js.map +0 -1
  565. package/hmcts-media-viewer-v2.8.2.tgz +0 -0
@@ -1,131 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { __assign, __read, __spread } from "tslib";
6
- import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
7
- import { select, Store } from '@ngrx/store';
8
- import * as fromTagSelectors from '../../../store/selectors/tag.selectors';
9
- import * as fromAnnoSelector from '../../../store/selectors/annotation.selectors';
10
- import { combineLatest } from 'rxjs';
11
- import { ToolbarEventService } from '../../../toolbar/toolbar-event.service';
12
- var CommentSetHeaderComponent = /** @class */ (function () {
13
- function CommentSetHeaderComponent(store, toolbarEvents) {
14
- this.store = store;
15
- this.toolbarEvents = toolbarEvents;
16
- this.showCommentSummaryDialog = new EventEmitter();
17
- this.tabs = [];
18
- this.tabSelected = '';
19
- }
20
- /**
21
- * @return {?}
22
- */
23
- CommentSetHeaderComponent.prototype.ngOnInit = /**
24
- * @return {?}
25
- */
26
- function () {
27
- var _this = this;
28
- /** @type {?} */
29
- var tagFilter$ = this.store.pipe(select(fromTagSelectors.getTagFilters));
30
- /** @type {?} */
31
- var filteredAnnotation$ = this.store.pipe(select(fromAnnoSelector.getFilteredAnnotations));
32
- this.$subscriptions = combineLatest([tagFilter$, filteredAnnotation$]).subscribe((/**
33
- * @param {?} __0
34
- * @return {?}
35
- */
36
- function (_a) {
37
- var _b = __read(_a, 2), formData = _b[0], filteredAnno = _b[1];
38
- _this.navigationList = filteredAnno;
39
- _this.tabs = _this.navigationList.length > 0 ?
40
- [{ label: 'comments' }, { label: 'filter' }, { label: 'search' }] : [{ label: 'comments' }];
41
- _this.isFiltered = !formData.length;
42
- _this.tabs = __spread(_this.tabs).map((/**
43
- * @param {?} tab
44
- * @return {?}
45
- */
46
- function (tab) {
47
- return !_this.isFiltered && tab.label === 'filter' ? __assign(__assign({}, tab), { isFiltered: true }) : __assign(__assign({}, tab), { isFiltered: false });
48
- }));
49
- }));
50
- };
51
- /**
52
- * @return {?}
53
- */
54
- CommentSetHeaderComponent.prototype.toggleCommentsSummary = /**
55
- * @return {?}
56
- */
57
- function () {
58
- this.showCommentSummaryDialog.emit();
59
- };
60
- /**
61
- * @param {?} tab
62
- * @return {?}
63
- */
64
- CommentSetHeaderComponent.prototype.selectTab = /**
65
- * @param {?} tab
66
- * @return {?}
67
- */
68
- function (tab) {
69
- this.tabSelected = tab !== this.tabSelected ? tab : undefined;
70
- };
71
- /**
72
- * @return {?}
73
- */
74
- CommentSetHeaderComponent.prototype.toggleCommentsPanel = /**
75
- * @return {?}
76
- */
77
- function () {
78
- this.toolbarEvents.toggleCommentsPanel(!this.toolbarEvents.commentsPanelVisible.getValue());
79
- };
80
- /**
81
- * @return {?}
82
- */
83
- CommentSetHeaderComponent.prototype.ngOnDestroy = /**
84
- * @return {?}
85
- */
86
- function () {
87
- this.$subscriptions.unsubscribe();
88
- };
89
- CommentSetHeaderComponent.decorators = [
90
- { type: Component, args: [{
91
- selector: 'mv-comment-set-header',
92
- template: "<div class=\"govuk-tabs commentSummaryHeader\" [ngClass]=\"{'icp-mode': toolbarEvents.icp.enabled | async}\" data-module=\"govuk-tabs\">\n <ul class=\"govuk-tabs__list\">\n <li *ngFor=\"let tab of tabs; let i = index\" class=\"govuk-tabs__list-item govuk-tabs__list-item\"\n [ngClass]=\"{'govuk-tabs__list-item--selected': tabSelected === tab.label}\">\n <a id=\"commentSubPane{{ i }}\" (click)=\"selectTab(tab.label)\" [routerLink]=\"\" [ngClass]=\"{'govuk-tabs__list-item--filtered': tab.isFiltered}\"\n class=\"govuk-tabs__tab\">\n {{ tab.label | titlecase }}\n </a>\n </li>\n <li>\n <button id=\"mvCloseBtn\" #mvCloseBtn class=\"mv-button commentSummaryHeader-button--close\"\n title=\"Close Comments\" (click)=\"toggleCommentsPanel()\">\n </button>\n </li>\n </ul>\n <div class=\"govuk-tabs__panel\" [hidden]=\"!tabSelected\">\n <ng-container *ngIf=\"tabSelected === 'comments'\">\n <div style=\"width: 100%\">\n <div class=\"hmcts-banner\" *ngIf=\"navigationList?.length === 0\">\n <svg class=\"hmcts-banner__icon\" fill=\"currentColor\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\nC13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\" /></svg>\n <div class=\"hmcts-banner__message\">\n <span class=\"hmcts-banner__assistive\">information</span>\n Select text to add a comment or highlight.\n </div>\n </div>\n <button type=\"button\" class=\"govuk-button\"\n id=\"commentSummary\" tabindex=\"0\"\n data-l10n-id=\"commentSummary\"\n title=\"Open collate summary\"\n (click)=\"toggleCommentsSummary()\">Collate comments</button>\n </div>\n <ng-container *ngIf=\"navigationList?.length > 0\">\n <mv-comments-navigate\n [annotationList]=\"navigationList\">\n </mv-comments-navigate>\n </ng-container>\n <p class=\"aui-comment__private-text\">\n <span class=\"aui-comment__private\">private</span>\n All comments can only be seen by you\n </p>\n </ng-container>\n <div [hidden]=\"tabSelected !== 'filter'\">\n <div class=\"govuk-tabs__panel--container\">\n <mv-comment-filter></mv-comment-filter>\n <mv-comments-navigate\n *ngIf=\"navigationList?.length > 0\"\n [annotationList]=\"navigationList\">\n </mv-comments-navigate>\n </div>\n </div>\n\n <div [hidden]=\"tabSelected !== 'search'\">\n <mv-comment-search [annotations]=\"navigationList\"></mv-comment-search>\n </div>\n </div>\n</div>\n",
93
- encapsulation: ViewEncapsulation.None
94
- }] }
95
- ];
96
- /** @nocollapse */
97
- CommentSetHeaderComponent.ctorParameters = function () { return [
98
- { type: Store },
99
- { type: ToolbarEventService }
100
- ]; };
101
- CommentSetHeaderComponent.propDecorators = {
102
- showCommentSummary: [{ type: Input }],
103
- showCommentSummaryDialog: [{ type: Output }]
104
- };
105
- return CommentSetHeaderComponent;
106
- }());
107
- export { CommentSetHeaderComponent };
108
- if (false) {
109
- /** @type {?} */
110
- CommentSetHeaderComponent.prototype.showCommentSummary;
111
- /** @type {?} */
112
- CommentSetHeaderComponent.prototype.showCommentSummaryDialog;
113
- /** @type {?} */
114
- CommentSetHeaderComponent.prototype.tabs;
115
- /** @type {?} */
116
- CommentSetHeaderComponent.prototype.tabSelected;
117
- /** @type {?} */
118
- CommentSetHeaderComponent.prototype.isFiltered;
119
- /** @type {?} */
120
- CommentSetHeaderComponent.prototype.navigationList;
121
- /** @type {?} */
122
- CommentSetHeaderComponent.prototype.$subscriptions;
123
- /**
124
- * @type {?}
125
- * @private
126
- */
127
- CommentSetHeaderComponent.prototype.store;
128
- /** @type {?} */
129
- CommentSetHeaderComponent.prototype.toolbarEvents;
130
- }
131
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVudC1zZXQtaGVhZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9tZWRpYS12aWV3ZXIvIiwic291cmNlcyI6WyJsaWIvYW5ub3RhdGlvbnMvY29tbWVudC1zZXQvY29tbWVudC1zZXQtaGVhZGVyL2NvbW1lbnQtc2V0LWhlYWRlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQXFCLE1BQU0sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUU3RyxPQUFPLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUU1QyxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sd0NBQXdDLENBQUM7QUFDM0UsT0FBTyxLQUFLLGdCQUFnQixNQUFNLCtDQUErQyxDQUFDO0FBQ2xGLE9BQU8sRUFBRSxhQUFhLEVBQWdCLE1BQU0sTUFBTSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBRTdFO0lBZ0JFLG1DQUFvQixLQUE2QixFQUM5QixhQUFrQztRQURqQyxVQUFLLEdBQUwsS0FBSyxDQUF3QjtRQUM5QixrQkFBYSxHQUFiLGFBQWEsQ0FBcUI7UUFUM0IsNkJBQXdCLEdBQUcsSUFBSSxZQUFZLEVBQUUsQ0FBQztRQUV4RSxTQUFJLEdBQTRDLEVBQUUsQ0FBQztRQUNuR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YmFyRXZlbnRzLmNvbW1lbnRzUGFuZWxWaXNpYmxlLmdldFZhbHVlKCkpO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy4kc3Vic2NyaXB0aW9ucy51bnN1YnNjcmliZSgpO1xuICB9XG59XG4iXX0=
@@ -1,177 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Injectable } from '@angular/core';
6
- var CommentSetRenderService = /** @class */ (function () {
7
- function CommentSetRenderService() {
8
- }
9
- /**
10
- * @param {?} commentComponents
11
- * @param {?} pageHeights
12
- * @param {?} rotate
13
- * @param {?} zoom
14
- * @return {?}
15
- */
16
- CommentSetRenderService.prototype.redrawComponents = /**
17
- * @param {?} commentComponents
18
- * @param {?} pageHeights
19
- * @param {?} rotate
20
- * @param {?} zoom
21
- * @return {?}
22
- */
23
- function (commentComponents, pageHeights, rotate, zoom) {
24
- var _this = this;
25
- /** @type {?} */
26
- var prevComment;
27
- this.sortComponents(commentComponents, pageHeights, rotate, zoom).forEach((/**
28
- * @param {?} comment
29
- * @return {?}
30
- */
31
- function (comment) {
32
- _this.adjustIfOverlapping(comment, prevComment, zoom);
33
- prevComment = comment;
34
- }));
35
- };
36
- /**
37
- * @param {?} commentComponents
38
- * @param {?} pageHeights
39
- * @param {?} rotate
40
- * @param {?} zoom
41
- * @return {?}
42
- */
43
- CommentSetRenderService.prototype.sortComponents = /**
44
- * @param {?} commentComponents
45
- * @param {?} pageHeights
46
- * @param {?} rotate
47
- * @param {?} zoom
48
- * @return {?}
49
- */
50
- function (commentComponents, pageHeights, rotate, zoom) {
51
- var _this = this;
52
- return commentComponents.sort((/**
53
- * @param {?} a
54
- * @param {?} b
55
- * @return {?}
56
- */
57
- function (a, b) {
58
- a.rectTop = _this.top(a._rectangle, pageHeights[a.page - 1], rotate, zoom);
59
- b.rectTop = _this.top(b._rectangle, pageHeights[b.page - 1], rotate, zoom);
60
- return _this.processSort(a, b);
61
- }));
62
- };
63
- /**
64
- * @private
65
- * @param {?} comment
66
- * @param {?} prevComment
67
- * @param {?} zoom
68
- * @return {?}
69
- */
70
- CommentSetRenderService.prototype.adjustIfOverlapping = /**
71
- * @private
72
- * @param {?} comment
73
- * @param {?} prevComment
74
- * @param {?} zoom
75
- * @return {?}
76
- */
77
- function (comment, prevComment, zoom) {
78
- if (prevComment) {
79
- /** @type {?} */
80
- var endOfPrevComment = prevComment.commentTop + this.height(prevComment);
81
- if (comment.commentTop <= endOfPrevComment) {
82
- comment.rectTop = (endOfPrevComment - comment.totalPrevPagesHeight) / zoom;
83
- }
84
- }
85
- };
86
- /**
87
- * @private
88
- * @param {?} a
89
- * @param {?} b
90
- * @return {?}
91
- */
92
- CommentSetRenderService.prototype.processSort = /**
93
- * @private
94
- * @param {?} a
95
- * @param {?} b
96
- * @return {?}
97
- */
98
- function (a, b) {
99
- if (this.onSameLine(a, b)) {
100
- return a.rectLeft >= b.rectLeft ? 1 : -1;
101
- }
102
- return a.commentTop >= b.commentTop ? 1 : -1;
103
- };
104
- /**
105
- * @private
106
- * @param {?} a
107
- * @param {?} b
108
- * @return {?}
109
- */
110
- CommentSetRenderService.prototype.onSameLine = /**
111
- * @private
112
- * @param {?} a
113
- * @param {?} b
114
- * @return {?}
115
- */
116
- function (a, b) {
117
- return this.difference(a.commentTop, b.commentTop) === 0;
118
- };
119
- /**
120
- * @private
121
- * @param {?} rectangle
122
- * @param {?} height
123
- * @param {?} rotate
124
- * @param {?} zoom
125
- * @return {?}
126
- */
127
- CommentSetRenderService.prototype.top = /**
128
- * @private
129
- * @param {?} rectangle
130
- * @param {?} height
131
- * @param {?} rotate
132
- * @param {?} zoom
133
- * @return {?}
134
- */
135
- function (rectangle, height, rotate, zoom) {
136
- /** @type {?} */
137
- var actualHeight = height / zoom;
138
- switch (rotate) {
139
- case 90: return rectangle.x;
140
- case 180: return actualHeight - (rectangle.y + rectangle.height);
141
- case 270: return actualHeight - (rectangle.x + rectangle.width);
142
- default: return rectangle.y;
143
- }
144
- };
145
- /**
146
- * @private
147
- * @param {?} element
148
- * @return {?}
149
- */
150
- CommentSetRenderService.prototype.height = /**
151
- * @private
152
- * @param {?} element
153
- * @return {?}
154
- */
155
- function (element) {
156
- return element.form.nativeElement.getBoundingClientRect().height;
157
- };
158
- /**
159
- * @private
160
- * @param {?} a
161
- * @param {?} b
162
- * @return {?}
163
- */
164
- CommentSetRenderService.prototype.difference = /**
165
- * @private
166
- * @param {?} a
167
- * @param {?} b
168
- * @return {?}
169
- */
170
- function (a, b) { return Math.abs(a - b); };
171
- CommentSetRenderService.decorators = [
172
- { type: Injectable }
173
- ];
174
- return CommentSetRenderService;
175
- }());
176
- export { CommentSetRenderService };
177
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVudC1zZXQtcmVuZGVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvbWVkaWEtdmlld2VyLyIsInNvdXJjZXMiOlsibGliL2Fubm90YXRpb25zL2NvbW1lbnQtc2V0L2NvbW1lbnQtc2V0LXJlbmRlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzNDO0lBQUE7SUFzREEsQ0FBQzs7Ozs7Ozs7SUFuREMsa0RBQWdCOzs7Ozs7O0lBQWhCLFVBQWlCLGlCQUFxQyxFQUFFLFdBQWtCLEVBQUUsTUFBYyxFQUFFLElBQVk7UUFBeEcsaUJBTUM7O1lBTEssV0FBNkI7UUFDakMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxpQkFBaUIsRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLElBQUksQ0FBQyxDQUFDLE9BQU87Ozs7UUFBQyxVQUFD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UgMTgwOiByZXR1cm4gYWN0dWFsSGVpZ2h0IC0gKHJlY3RhbmdsZS55ICsgcmVjdGFuZ2xlLmhlaWdodCk7XG4gICAgICBjYXNlIDI3MDogcmV0dXJuIGFjdHVhbEhlaWdodCAtIChyZWN0YW5nbGUueCArIHJlY3RhbmdsZS53aWR0aCk7XG4gICAgICBkZWZhdWx0OiByZXR1cm4gcmVjdGFuZ2xlLnk7XG4gICAgfVxuICB9XG5cbiAgcHJpdmF0ZSBoZWlnaHQoZWxlbWVudDogYW55KSB7XG4gICAgcmV0dXJuIGVsZW1lbnQuZm9ybS5uYXRpdmVFbGVtZW50LmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpLmhlaWdodDtcbiAgfVxuXG4gIHByaXZhdGUgZGlmZmVyZW5jZShhOiBudW1iZXIsIGI6IG51bWJlcik6IG51bWJlciB7IHJldHVybiBNYXRoLmFicyhhIC0gYik7IH1cbn1cbiJdfQ==
@@ -1,295 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { __assign } from "tslib";
6
- import { Component, ElementRef, Input, QueryList, ViewChild, ViewChildren, } from '@angular/core';
7
- import { select, Store } from '@ngrx/store';
8
- import { CommentService } from './comment/comment.service';
9
- import { CommentSetRenderService } from './comment-set-render.service';
10
- import * as fromActions from '../../store/actions/annotation.actions';
11
- import * as fromSelectors from '../../store/selectors/annotation.selectors';
12
- import { ToolbarEventService } from '../../toolbar/toolbar-event.service';
13
- var CommentSetComponent = /** @class */ (function () {
14
- function CommentSetComponent(store, commentService, renderService, toolbarEvents) {
15
- this.store = store;
16
- this.commentService = commentService;
17
- this.renderService = renderService;
18
- this.toolbarEvents = toolbarEvents;
19
- this.pageHeights = [];
20
- this.subscriptions = [];
21
- this.clearSelection();
22
- }
23
- /**
24
- * @return {?}
25
- */
26
- CommentSetComponent.prototype.ngOnInit = /**
27
- * @return {?}
28
- */
29
- function () {
30
- var _this = this;
31
- this.comments$ = this.store.pipe(select(fromSelectors.getCommentsArray));
32
- this.annoEntities$ = this.store.pipe(select(fromSelectors.getAnnotationEntities));
33
- this.subscriptions.push(this.toolbarEvents.commentsPanelVisible.subscribe((/**
34
- * @param {?} toggle
35
- * @return {?}
36
- */
37
- function (toggle) {
38
- _this.redrawComments();
39
- _this.showCommentsPanel = toggle;
40
- })));
41
- this.subscriptions.push(this.toolbarEvents.rotateSubject.subscribe((/**
42
- * @param {?} rotate
43
- * @return {?}
44
- */
45
- function (rotate) { return _this.rotateDocument(); })));
46
- };
47
- /**
48
- * @param {?} changes
49
- * @return {?}
50
- */
51
- CommentSetComponent.prototype.ngOnChanges = /**
52
- * @param {?} changes
53
- * @return {?}
54
- */
55
- function (changes) {
56
- if (changes.annotationSet) {
57
- this.commentService.setCommentSet(this);
58
- }
59
- if (changes.contentScrollTop) {
60
- if (this.container) {
61
- this.container.nativeElement.scrollTo(0, this.contentScrollTop);
62
- }
63
- }
64
- };
65
- /**
66
- * @return {?}
67
- */
68
- CommentSetComponent.prototype.ngOnDestroy = /**
69
- * @return {?}
70
- */
71
- function () {
72
- if (this.subscriptions.length > 0) {
73
- this.subscriptions.forEach((/**
74
- * @param {?} subscription
75
- * @return {?}
76
- */
77
- function (subscription) { return subscription.unsubscribe(); }));
78
- }
79
- };
80
- /**
81
- * @param {?} annotationId
82
- * @return {?}
83
- */
84
- CommentSetComponent.prototype.onSelect = /**
85
- * @param {?} annotationId
86
- * @return {?}
87
- */
88
- function (annotationId) {
89
- this.store.dispatch(new fromActions.SelectedAnnotation(annotationId));
90
- };
91
- /**
92
- * @param {?} comment
93
- * @return {?}
94
- */
95
- CommentSetComponent.prototype.onCommentDelete = /**
96
- * @param {?} comment
97
- * @return {?}
98
- */
99
- function (comment) {
100
- /** @type {?} */
101
- var annotation = this.annotationSet.annotations.find((/**
102
- * @param {?} anno
103
- * @return {?}
104
- */
105
- function (anno) { return anno.id === comment.annotationId; }));
106
- /** @type {?} */
107
- var comments = [];
108
- /** @type {?} */
109
- var annot = __assign(__assign({}, annotation), { comments: comments });
110
- this.onAnnotationUpdate(annot);
111
- this.redrawComments();
112
- };
113
- /**
114
- * @return {?}
115
- */
116
- CommentSetComponent.prototype.redrawComments = /**
117
- * @return {?}
118
- */
119
- function () {
120
- var _this = this;
121
- setTimeout((/**
122
- * @return {?}
123
- */
124
- function () {
125
- /** @type {?} */
126
- var componentList = _this.commentComponents.map((/**
127
- * @param {?} comment
128
- * @return {?}
129
- */
130
- function (comment) { return comment; }));
131
- _this.renderService.redrawComponents(componentList, _this.pageHeights, _this.rotate, _this.zoom);
132
- }), 0);
133
- };
134
- /**
135
- * @private
136
- * @return {?}
137
- */
138
- CommentSetComponent.prototype.rotateDocument = /**
139
- * @private
140
- * @return {?}
141
- */
142
- function () {
143
- if (this.panel) {
144
- this.panel.nativeElement.style.height = '0';
145
- }
146
- };
147
- /**
148
- * @param {?} payload
149
- * @return {?}
150
- */
151
- CommentSetComponent.prototype.onCommentUpdate = /**
152
- * @param {?} payload
153
- * @return {?}
154
- */
155
- function (payload) {
156
- /** @type {?} */
157
- var annotation = this.annotationSet.annotations.find((/**
158
- * @param {?} anno
159
- * @return {?}
160
- */
161
- function (anno) { return anno.id === payload.comment.annotationId; }));
162
- /** @type {?} */
163
- var comments = [payload.comment];
164
- /** @type {?} */
165
- var tags = payload.tags;
166
- /** @type {?} */
167
- var annot = __assign(__assign({}, annotation), { comments: comments,
168
- tags: tags });
169
- this.onAnnotationUpdate(annot);
170
- };
171
- /**
172
- * @param {?} annotation
173
- * @return {?}
174
- */
175
- CommentSetComponent.prototype.onAnnotationUpdate = /**
176
- * @param {?} annotation
177
- * @return {?}
178
- */
179
- function (annotation) {
180
- this.store.dispatch(new fromActions.SaveAnnotation(annotation));
181
- };
182
- /**
183
- * @param {?} e
184
- * @return {?}
185
- */
186
- CommentSetComponent.prototype.onContainerClick = /**
187
- * @param {?} e
188
- * @return {?}
189
- */
190
- function (e) {
191
- if (e.path && e.path[0] === this.panel.nativeElement) {
192
- this.clearSelection();
193
- }
194
- };
195
- /**
196
- * @return {?}
197
- */
198
- CommentSetComponent.prototype.clearSelection = /**
199
- * @return {?}
200
- */
201
- function () {
202
- this.store.dispatch(new fromActions.SelectedAnnotation({ annotationId: '', editable: false, selected: false }));
203
- };
204
- /**
205
- * @return {?}
206
- */
207
- CommentSetComponent.prototype.allCommentsSaved = /**
208
- * @return {?}
209
- */
210
- function () {
211
- this.commentService.allCommentsSaved();
212
- };
213
- CommentSetComponent.decorators = [
214
- { type: Component, args: [{
215
- selector: 'mv-comment-set',
216
- template: "<div #container [ngClass]=\"{'comments': showCommentsPanel}\">\n <div #panel [ngClass]=\"{ 'comments-panel comment-container': true, 'expanded': showCommentsPanel }\"\n [style.height.px]=\"height\"\n (click)=\"onContainerClick($event)\">\n <ng-container *ngFor=\"let comment of (comments$ | async); let i = index;\">\n <mv-anno-comment\n [ngStyle]=\"showCommentsPanel ? {} : {'display':'none'}\"\n #commentComponent\n (commentClick)=\"onSelect($event)\"\n (delete)=\"onCommentDelete($event)\"\n (updated)=\"onCommentUpdate($event)\"\n (changes)=\"allCommentsSaved()\"\n [zoom]=\"zoom\"\n [rotate]=\"rotate\"\n [index]=\"i\"\n [page]=\"comment.page\"\n [comment]=\"comment\"\n [annotation]=\"(annoEntities$ | async)[comment.annotationId]\"\n (renderComments)=\"redrawComments()\">\n </mv-anno-comment>\n </ng-container>\n </div>\n</div>\n"
217
- }] }
218
- ];
219
- /** @nocollapse */
220
- CommentSetComponent.ctorParameters = function () { return [
221
- { type: Store },
222
- { type: CommentService },
223
- { type: CommentSetRenderService },
224
- { type: ToolbarEventService }
225
- ]; };
226
- CommentSetComponent.propDecorators = {
227
- annotationSet: [{ type: Input }],
228
- zoom: [{ type: Input }],
229
- rotate: [{ type: Input }],
230
- height: [{ type: Input }],
231
- pageHeights: [{ type: Input }],
232
- contentScrollTop: [{ type: Input }],
233
- container: [{ type: ViewChild, args: ['container', { static: false },] }],
234
- panel: [{ type: ViewChild, args: ['panel', { static: false },] }],
235
- commentComponents: [{ type: ViewChildren, args: ['commentComponent',] }]
236
- };
237
- return CommentSetComponent;
238
- }());
239
- export { CommentSetComponent };
240
- if (false) {
241
- /** @type {?} */
242
- CommentSetComponent.prototype.annotationSet;
243
- /** @type {?} */
244
- CommentSetComponent.prototype.zoom;
245
- /** @type {?} */
246
- CommentSetComponent.prototype.rotate;
247
- /** @type {?} */
248
- CommentSetComponent.prototype.height;
249
- /** @type {?} */
250
- CommentSetComponent.prototype.pageHeights;
251
- /** @type {?} */
252
- CommentSetComponent.prototype.contentScrollTop;
253
- /** @type {?} */
254
- CommentSetComponent.prototype.comments;
255
- /** @type {?} */
256
- CommentSetComponent.prototype.tags;
257
- /**
258
- * @type {?}
259
- * @private
260
- */
261
- CommentSetComponent.prototype.subscriptions;
262
- /** @type {?} */
263
- CommentSetComponent.prototype.comments$;
264
- /** @type {?} */
265
- CommentSetComponent.prototype.annoEntities$;
266
- /** @type {?} */
267
- CommentSetComponent.prototype.container;
268
- /** @type {?} */
269
- CommentSetComponent.prototype.panel;
270
- /** @type {?} */
271
- CommentSetComponent.prototype.commentComponents;
272
- /** @type {?} */
273
- CommentSetComponent.prototype.showCommentsPanel;
274
- /**
275
- * @type {?}
276
- * @private
277
- */
278
- CommentSetComponent.prototype.store;
279
- /**
280
- * @type {?}
281
- * @private
282
- */
283
- CommentSetComponent.prototype.commentService;
284
- /**
285
- * @type {?}
286
- * @private
287
- */
288
- CommentSetComponent.prototype.renderService;
289
- /**
290
- * @type {?}
291
- * @private
292
- */
293
- CommentSetComponent.prototype.toolbarEvents;
294
- }
295
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVudC1zZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGhtY3RzL21lZGlhLXZpZXdlci8iLCJzb3VyY2VzIjpbImxpYi9hbm5vdGF0aW9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