@hmcts/media-viewer 2.8.1 → 2.9.1

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 (562) hide show
  1. package/README.md +0 -1
  2. package/assets/sass/comment.scss +1 -1
  3. package/assets/sass/outline-attachment.scss +6 -1
  4. package/assets/sass/participants-list.scss +1 -1
  5. package/assets/sass/rectangle.scss +1 -4
  6. package/bundles/hmcts-media-viewer.umd.js +3367 -10784
  7. package/bundles/hmcts-media-viewer.umd.js.map +1 -1
  8. package/bundles/hmcts-media-viewer.umd.min.js +1 -16
  9. package/bundles/hmcts-media-viewer.umd.min.js.map +1 -1
  10. package/esm2015/hmcts-media-viewer.js +20 -24
  11. package/esm2015/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +9 -103
  12. package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.js +14 -111
  13. package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.js +4 -49
  14. package/esm2015/lib/annotations/annotation-set/annotation-set.component.js +2 -51
  15. package/esm2015/lib/annotations/annotation-set/annotation-set.model.js +2 -15
  16. package/esm2015/lib/annotations/annotation-set/annotation-view/annotation-view.component.js +4 -74
  17. package/esm2015/lib/annotations/annotation-set/annotation-view/annotation.model.js +2 -29
  18. package/esm2015/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.js +5 -114
  19. package/esm2015/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.js +2 -21
  20. package/esm2015/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.js +8 -85
  21. package/esm2015/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.js +9 -105
  22. package/esm2015/lib/annotations/annotations.module.js +1 -5
  23. package/esm2015/lib/annotations/comment-set/comment/comment.component.js +4 -152
  24. package/esm2015/lib/annotations/comment-set/comment/comment.model.js +2 -27
  25. package/esm2015/lib/annotations/comment-set/comment/comment.service.js +3 -53
  26. package/esm2015/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.js +1 -37
  27. package/esm2015/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.js +1 -25
  28. package/esm2015/lib/annotations/comment-set/comment-navigate/comments-navigate.component.js +5 -63
  29. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.js +10 -76
  30. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.js +5 -53
  31. package/esm2015/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +6 -63
  32. package/esm2015/lib/annotations/comment-set/comment-set-render.service.js +5 -73
  33. package/esm2015/lib/annotations/comment-set/comment-set.component.js +11 -154
  34. package/esm2015/lib/annotations/comments-summary/comments-summary.component.js +8 -111
  35. package/esm2015/lib/annotations/models/api-persisted.model.js +2 -25
  36. package/esm2015/lib/annotations/models/event-select.model.js +2 -17
  37. package/esm2015/lib/annotations/models/tags.model.js +2 -19
  38. package/esm2015/lib/annotations/models/user.model.js +2 -17
  39. package/esm2015/lib/annotations/pipes/date/date.pipe.js +1 -12
  40. package/esm2015/lib/annotations/pipes/filter/filter.pipe.js +3 -17
  41. package/esm2015/lib/annotations/pipes/unsnake/unsnake.pipe.js +1 -9
  42. package/esm2015/lib/annotations/services/annotation-api/annotation-api.service.js +6 -93
  43. package/esm2015/lib/annotations/services/bookmarks-api/bookmarks-api.service.js +6 -69
  44. package/esm2015/lib/annotations/services/tags/tags.services.js +6 -54
  45. package/esm2015/lib/annotations/tags/tags.component.js +4 -50
  46. package/esm2015/lib/bookmark/components/bookmark-icons.component.js +2 -29
  47. package/esm2015/lib/icp/confirm-exit/confirm-action-dialog.component.js +2 -22
  48. package/esm2015/lib/icp/icp-follower.service.js +4 -63
  49. package/esm2015/lib/icp/icp-presenter.service.js +6 -69
  50. package/esm2015/lib/icp/icp-session-api.service.js +2 -26
  51. package/esm2015/lib/icp/icp-update.service.js +18 -92
  52. package/esm2015/lib/icp/icp.events.js +15 -0
  53. package/esm2015/lib/icp/icp.interfaces.js +2 -51
  54. package/esm2015/lib/icp/icp.service.js +18 -155
  55. package/esm2015/lib/icp/participants-list/participants-list.component.js +3 -43
  56. package/esm2015/lib/icp/socket.service.js +92 -86
  57. package/esm2015/lib/media-viewer.component.js +29 -199
  58. package/esm2015/lib/media-viewer.module.js +3 -7
  59. package/esm2015/lib/print.service.js +2 -18
  60. package/esm2015/lib/redaction/components/redaction.component.js +13 -127
  61. package/esm2015/lib/redaction/services/redaction-api.service.js +6 -75
  62. package/esm2015/lib/redaction/services/redaction.model.js +2 -19
  63. package/esm2015/lib/shared/gov-uk-date/gov-uk-date.component.js +2 -14
  64. package/esm2015/lib/shared/gov-uk-error-message/gov-uk-error-message.component.js +3 -14
  65. package/esm2015/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.js +2 -17
  66. package/esm2015/lib/shared/gov-uk-label/gov-uk-label.component.js +3 -12
  67. package/esm2015/lib/shared/shared.module.js +1 -5
  68. package/esm2015/lib/shared/util/helpers/html-templates.helper.js +1 -10
  69. package/esm2015/lib/shared/util/services/number.helper.service.js +4 -14
  70. package/esm2015/lib/store/actions/annotation.actions.js +1 -140
  71. package/esm2015/lib/store/actions/bookmark.actions.js +1 -150
  72. package/esm2015/lib/store/actions/document.actions.js +1 -130
  73. package/esm2015/lib/store/actions/icp.actions.js +1 -80
  74. package/esm2015/lib/store/actions/redaction.actions.js +1 -155
  75. package/esm2015/lib/store/actions/tag.actions.js +1 -30
  76. package/esm2015/lib/store/bookmarks-store-utils.js +17 -69
  77. package/esm2015/lib/store/effects/annotation.effects.js +16 -90
  78. package/esm2015/lib/store/effects/bookmarks.effects.js +12 -127
  79. package/esm2015/lib/store/effects/document.effects.js +16 -97
  80. package/esm2015/lib/store/effects/icp.effects.js +5 -63
  81. package/esm2015/lib/store/effects/index.js +1 -6
  82. package/esm2015/lib/store/effects/redaction.effects.js +26 -137
  83. package/esm2015/lib/store/models/bookmarks.interface.js +2 -57
  84. package/esm2015/lib/store/models/filters.interface.js +2 -17
  85. package/esm2015/lib/store/reducers/annotations.reducer.js +14 -129
  86. package/esm2015/lib/store/reducers/bookmarks.reducer.js +12 -99
  87. package/esm2015/lib/store/reducers/document.reducer.js +10 -129
  88. package/esm2015/lib/store/reducers/icp.reducer.js +6 -47
  89. package/esm2015/lib/store/reducers/redaction.reducer.js +7 -73
  90. package/esm2015/lib/store/reducers/reducers.js +7 -31
  91. package/esm2015/lib/store/reducers/tags.reducer.js +12 -102
  92. package/esm2015/lib/store/selectors/annotation.selectors.js +29 -118
  93. package/esm2015/lib/store/selectors/bookmark.selectors.js +12 -51
  94. package/esm2015/lib/store/selectors/document.selectors.js +5 -26
  95. package/esm2015/lib/store/selectors/icp.selectors.js +9 -38
  96. package/esm2015/lib/store/selectors/redaction.selectors.js +10 -45
  97. package/esm2015/lib/store/selectors/tag.selectors.js +6 -28
  98. package/esm2015/lib/store/store-utils.js +26 -156
  99. package/esm2015/lib/toolbar/icp-event.service.js +13 -48
  100. package/esm2015/lib/toolbar/icp-toolbar/icp-toolbar.component.js +4 -56
  101. package/esm2015/lib/toolbar/main-toolbar/main-toolbar.component.js +9 -176
  102. package/esm2015/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +4 -58
  103. package/esm2015/lib/toolbar/search-bar/search-bar.component.js +11 -85
  104. package/esm2015/lib/toolbar/toolbar-button-visibility.service.js +2 -46
  105. package/esm2015/lib/toolbar/toolbar-event.service.js +2 -173
  106. package/esm2015/lib/toolbar/toolbar.module.js +1 -5
  107. package/esm2015/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +5 -75
  108. package/esm2015/lib/viewers/convertible-content-viewer/document-conversion-api.service.js +3 -34
  109. package/esm2015/lib/viewers/grab-n-drag.directive.js +1 -38
  110. package/esm2015/lib/viewers/image-viewer/image-viewer.component.js +29 -196
  111. package/esm2015/lib/viewers/multimedia-player/multimedia-player.component.js +3 -55
  112. package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +61 -240
  113. package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.js +2 -40
  114. package/esm2015/lib/viewers/pdf-viewer/pdf-viewer.component.js +34 -302
  115. package/esm2015/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.js +12 -107
  116. package/esm2015/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.js +2 -39
  117. package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +16 -25
  118. package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +2 -31
  119. package/esm2015/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +16 -73
  120. package/esm2015/lib/viewers/rotation-persist/rotation-api.service.js +2 -35
  121. package/esm2015/lib/viewers/rotation-persist/rotation-persist.directive.js +8 -87
  122. package/esm2015/lib/viewers/rotation-persist/rotation.model.js +2 -15
  123. package/esm2015/lib/viewers/unsupported-viewer/unsupported-viewer.component.js +4 -60
  124. package/esm2015/lib/viewers/viewer-event.service.js +2 -41
  125. package/esm2015/lib/viewers/viewer-exception.model.js +7 -32
  126. package/esm2015/lib/viewers/viewer-util.service.js +2 -20
  127. package/esm2015/public_api.js +28 -32
  128. package/fesm2015/hmcts-media-viewer.js +1540 -8065
  129. package/fesm2015/hmcts-media-viewer.js.map +1 -1
  130. package/hmcts-media-viewer-v2.9.1.tgz +0 -0
  131. package/hmcts-media-viewer.d.ts +19 -18
  132. package/hmcts-media-viewer.d.ts.map +1 -0
  133. package/hmcts-media-viewer.metadata.json +1 -1
  134. package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts +5 -3
  135. package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts.map +1 -0
  136. package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.ngfactory.d.ts.map +1 -0
  137. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts +1 -0
  138. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts.map +1 -0
  139. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.ngfactory.d.ts.map +1 -0
  140. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts +1 -0
  141. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts.map +1 -0
  142. package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.ngfactory.d.ts.map +1 -0
  143. package/lib/annotations/annotation-set/annotation-set.component.d.ts +1 -0
  144. package/lib/annotations/annotation-set/annotation-set.component.d.ts.map +1 -0
  145. package/lib/annotations/annotation-set/annotation-set.component.ngfactory.d.ts.map +1 -0
  146. package/lib/annotations/annotation-set/annotation-set.model.d.ts +1 -0
  147. package/lib/annotations/annotation-set/annotation-set.model.d.ts.map +1 -0
  148. package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts +4 -3
  149. package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts.map +1 -0
  150. package/lib/annotations/annotation-set/annotation-view/annotation-view.component.ngfactory.d.ts.map +1 -0
  151. package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts +1 -0
  152. package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts.map +1 -0
  153. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts +5 -2
  154. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts.map +1 -0
  155. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.ngfactory.d.ts.map +1 -0
  156. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts +1 -0
  157. package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts.map +1 -0
  158. package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts +3 -1
  159. package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts.map +1 -0
  160. package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.ngfactory.d.ts.map +1 -0
  161. package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts +1 -0
  162. package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts.map +1 -0
  163. package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.ngfactory.d.ts.map +1 -0
  164. package/lib/annotations/annotations.module.d.ts +1 -0
  165. package/lib/annotations/annotations.module.d.ts.map +1 -0
  166. package/lib/annotations/annotations.module.ngfactory.d.ts.map +1 -0
  167. package/lib/annotations/comment-set/comment/comment.component.d.ts +7 -5
  168. package/lib/annotations/comment-set/comment/comment.component.d.ts.map +1 -0
  169. package/lib/annotations/comment-set/comment/comment.component.ngfactory.d.ts.map +1 -0
  170. package/lib/annotations/comment-set/comment/comment.model.d.ts +1 -0
  171. package/lib/annotations/comment-set/comment/comment.model.d.ts.map +1 -0
  172. package/lib/annotations/comment-set/comment/comment.service.d.ts +1 -0
  173. package/lib/annotations/comment-set/comment/comment.service.d.ts.map +1 -0
  174. package/lib/annotations/comment-set/comment/comment.service.ngfactory.d.ts.map +1 -0
  175. package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts +1 -0
  176. package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts.map +1 -0
  177. package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.ngfactory.d.ts.map +1 -0
  178. package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts +1 -0
  179. package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts.map +1 -0
  180. package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.ngfactory.d.ts.map +1 -0
  181. package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts +1 -0
  182. package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts.map +1 -0
  183. package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.ngfactory.d.ts.map +1 -0
  184. package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts +1 -0
  185. package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts.map +1 -0
  186. package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.ngfactory.d.ts.map +1 -0
  187. package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts +1 -0
  188. package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts.map +1 -0
  189. package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.ngfactory.d.ts.map +1 -0
  190. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts +1 -0
  191. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts.map +1 -0
  192. package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.ngfactory.d.ts.map +1 -0
  193. package/lib/annotations/comment-set/comment-set-render.service.d.ts +1 -0
  194. package/lib/annotations/comment-set/comment-set-render.service.d.ts.map +1 -0
  195. package/lib/annotations/comment-set/comment-set-render.service.ngfactory.d.ts.map +1 -0
  196. package/lib/annotations/comment-set/comment-set.component.d.ts +1 -0
  197. package/lib/annotations/comment-set/comment-set.component.d.ts.map +1 -0
  198. package/lib/annotations/comment-set/comment-set.component.ngfactory.d.ts.map +1 -0
  199. package/lib/annotations/comments-summary/comments-summary.component.d.ts +1 -1
  200. package/lib/annotations/comments-summary/comments-summary.component.d.ts.map +1 -0
  201. package/lib/annotations/comments-summary/comments-summary.component.ngfactory.d.ts.map +1 -0
  202. package/lib/annotations/models/api-persisted.model.d.ts +1 -0
  203. package/lib/annotations/models/api-persisted.model.d.ts.map +1 -0
  204. package/lib/annotations/models/event-select.model.d.ts +1 -0
  205. package/lib/annotations/models/event-select.model.d.ts.map +1 -0
  206. package/lib/annotations/models/tags.model.d.ts +1 -0
  207. package/lib/annotations/models/tags.model.d.ts.map +1 -0
  208. package/lib/annotations/models/user.model.d.ts +1 -0
  209. package/lib/annotations/models/user.model.d.ts.map +1 -0
  210. package/lib/annotations/pipes/date/date.pipe.d.ts +2 -1
  211. package/lib/annotations/pipes/date/date.pipe.d.ts.map +1 -0
  212. package/lib/annotations/pipes/date/date.pipe.ngfactory.d.ts.map +1 -0
  213. package/lib/annotations/pipes/filter/filter.pipe.d.ts +1 -0
  214. package/lib/annotations/pipes/filter/filter.pipe.d.ts.map +1 -0
  215. package/lib/annotations/pipes/filter/filter.pipe.ngfactory.d.ts.map +1 -0
  216. package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts +1 -0
  217. package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts.map +1 -0
  218. package/lib/annotations/pipes/unsnake/unsnake.pipe.ngfactory.d.ts.map +1 -0
  219. package/lib/annotations/services/annotation-api/annotation-api.service.d.ts +3 -2
  220. package/lib/annotations/services/annotation-api/annotation-api.service.d.ts.map +1 -0
  221. package/lib/annotations/services/annotation-api/annotation-api.service.ngfactory.d.ts.map +1 -0
  222. package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts +1 -0
  223. package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts.map +1 -0
  224. package/lib/annotations/services/bookmarks-api/bookmarks-api.service.ngfactory.d.ts.map +1 -0
  225. package/lib/annotations/services/tags/tags.services.d.ts +1 -0
  226. package/lib/annotations/services/tags/tags.services.d.ts.map +1 -0
  227. package/lib/annotations/services/tags/tags.services.ngfactory.d.ts.map +1 -0
  228. package/lib/annotations/tags/tags.component.d.ts +3 -2
  229. package/lib/annotations/tags/tags.component.d.ts.map +1 -0
  230. package/lib/annotations/tags/tags.component.ngfactory.d.ts.map +1 -0
  231. package/lib/bookmark/components/bookmark-icons.component.d.ts +1 -0
  232. package/lib/bookmark/components/bookmark-icons.component.d.ts.map +1 -0
  233. package/lib/bookmark/components/bookmark-icons.component.ngfactory.d.ts.map +1 -0
  234. package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts +1 -0
  235. package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts.map +1 -0
  236. package/lib/icp/confirm-exit/confirm-action-dialog.component.ngfactory.d.ts.map +1 -0
  237. package/lib/icp/icp-follower.service.d.ts +1 -0
  238. package/lib/icp/icp-follower.service.d.ts.map +1 -0
  239. package/lib/icp/icp-follower.service.ngfactory.d.ts.map +1 -0
  240. package/lib/icp/icp-presenter.service.d.ts +1 -0
  241. package/lib/icp/icp-presenter.service.d.ts.map +1 -0
  242. package/lib/icp/icp-presenter.service.ngfactory.d.ts.map +1 -0
  243. package/lib/icp/icp-session-api.service.d.ts +1 -0
  244. package/lib/icp/icp-session-api.service.d.ts.map +1 -0
  245. package/lib/icp/icp-session-api.service.ngfactory.d.ts.map +1 -0
  246. package/lib/icp/icp-update.service.d.ts +1 -9
  247. package/lib/icp/icp-update.service.d.ts.map +1 -0
  248. package/lib/icp/icp-update.service.ngfactory.d.ts.map +1 -0
  249. package/lib/icp/icp.events.d.ts +14 -0
  250. package/lib/icp/icp.events.d.ts.map +1 -0
  251. package/lib/icp/icp.interfaces.d.ts +2 -0
  252. package/lib/icp/icp.interfaces.d.ts.map +1 -0
  253. package/lib/icp/icp.service.d.ts +1 -0
  254. package/lib/icp/icp.service.d.ts.map +1 -0
  255. package/lib/icp/icp.service.ngfactory.d.ts.map +1 -0
  256. package/lib/icp/participants-list/participants-list.component.d.ts +1 -0
  257. package/lib/icp/participants-list/participants-list.component.d.ts.map +1 -0
  258. package/lib/icp/participants-list/participants-list.component.ngfactory.d.ts.map +1 -0
  259. package/lib/icp/socket.service.d.ts +14 -4
  260. package/lib/icp/socket.service.d.ts.map +1 -0
  261. package/lib/icp/socket.service.ngfactory.d.ts.map +1 -0
  262. package/lib/media-viewer.component.d.ts +2 -0
  263. package/lib/media-viewer.component.d.ts.map +1 -0
  264. package/lib/media-viewer.component.ngfactory.d.ts.map +1 -0
  265. package/lib/media-viewer.module.d.ts +1 -0
  266. package/lib/media-viewer.module.d.ts.map +1 -0
  267. package/lib/media-viewer.module.ngfactory.d.ts.map +1 -0
  268. package/lib/print.service.d.ts +1 -0
  269. package/lib/print.service.d.ts.map +1 -0
  270. package/lib/print.service.ngfactory.d.ts.map +1 -0
  271. package/lib/redaction/components/redaction.component.d.ts +1 -0
  272. package/lib/redaction/components/redaction.component.d.ts.map +1 -0
  273. package/lib/redaction/components/redaction.component.ngfactory.d.ts.map +1 -0
  274. package/lib/redaction/services/redaction-api.service.d.ts +1 -0
  275. package/lib/redaction/services/redaction-api.service.d.ts.map +1 -0
  276. package/lib/redaction/services/redaction-api.service.ngfactory.d.ts.map +1 -0
  277. package/lib/redaction/services/redaction.model.d.ts +1 -0
  278. package/lib/redaction/services/redaction.model.d.ts.map +1 -0
  279. package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts +1 -0
  280. package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts.map +1 -0
  281. package/lib/shared/gov-uk-date/gov-uk-date.component.ngfactory.d.ts.map +1 -0
  282. package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts +1 -0
  283. package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts.map +1 -0
  284. package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.ngfactory.d.ts.map +1 -0
  285. package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +1 -0
  286. package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts.map +1 -0
  287. package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.ngfactory.d.ts.map +1 -0
  288. package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts +1 -0
  289. package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts.map +1 -0
  290. package/lib/shared/gov-uk-label/gov-uk-label.component.ngfactory.d.ts.map +1 -0
  291. package/lib/shared/shared.module.d.ts +1 -0
  292. package/lib/shared/shared.module.d.ts.map +1 -0
  293. package/lib/shared/shared.module.ngfactory.d.ts.map +1 -0
  294. package/lib/shared/util/helpers/html-templates.helper.d.ts +1 -0
  295. package/lib/shared/util/helpers/html-templates.helper.d.ts.map +1 -0
  296. package/lib/shared/util/services/number.helper.service.d.ts +1 -0
  297. package/lib/shared/util/services/number.helper.service.d.ts.map +1 -0
  298. package/lib/shared/util/services/number.helper.service.ngfactory.d.ts.map +1 -0
  299. package/lib/store/actions/annotation.actions.d.ts +1 -0
  300. package/lib/store/actions/annotation.actions.d.ts.map +1 -0
  301. package/lib/store/actions/bookmark.actions.d.ts +1 -0
  302. package/lib/store/actions/bookmark.actions.d.ts.map +1 -0
  303. package/lib/store/actions/document.actions.d.ts +1 -0
  304. package/lib/store/actions/document.actions.d.ts.map +1 -0
  305. package/lib/store/actions/icp.actions.d.ts +1 -0
  306. package/lib/store/actions/icp.actions.d.ts.map +1 -0
  307. package/lib/store/actions/redaction.actions.d.ts +1 -0
  308. package/lib/store/actions/redaction.actions.d.ts.map +1 -0
  309. package/lib/store/actions/tag.actions.d.ts +1 -0
  310. package/lib/store/actions/tag.actions.d.ts.map +1 -0
  311. package/lib/store/bookmarks-store-utils.d.ts +1 -0
  312. package/lib/store/bookmarks-store-utils.d.ts.map +1 -0
  313. package/lib/store/effects/annotation.effects.d.ts +1 -0
  314. package/lib/store/effects/annotation.effects.d.ts.map +1 -0
  315. package/lib/store/effects/annotation.effects.ngfactory.d.ts.map +1 -0
  316. package/lib/store/effects/bookmarks.effects.d.ts +1 -0
  317. package/lib/store/effects/bookmarks.effects.d.ts.map +1 -0
  318. package/lib/store/effects/bookmarks.effects.ngfactory.d.ts.map +1 -0
  319. package/lib/store/effects/document.effects.d.ts +1 -0
  320. package/lib/store/effects/document.effects.d.ts.map +1 -0
  321. package/lib/store/effects/document.effects.ngfactory.d.ts.map +1 -0
  322. package/lib/store/effects/icp.effects.d.ts +1 -0
  323. package/lib/store/effects/icp.effects.d.ts.map +1 -0
  324. package/lib/store/effects/icp.effects.ngfactory.d.ts.map +1 -0
  325. package/lib/store/effects/index.d.ts +1 -0
  326. package/lib/store/effects/index.d.ts.map +1 -0
  327. package/lib/store/effects/redaction.effects.d.ts +1 -0
  328. package/lib/store/effects/redaction.effects.d.ts.map +1 -0
  329. package/lib/store/effects/redaction.effects.ngfactory.d.ts.map +1 -0
  330. package/lib/store/models/bookmarks.interface.d.ts +1 -0
  331. package/lib/store/models/bookmarks.interface.d.ts.map +1 -0
  332. package/lib/store/models/filters.interface.d.ts +1 -0
  333. package/lib/store/models/filters.interface.d.ts.map +1 -0
  334. package/lib/store/reducers/annotations.reducer.d.ts +1 -0
  335. package/lib/store/reducers/annotations.reducer.d.ts.map +1 -0
  336. package/lib/store/reducers/bookmarks.reducer.d.ts +1 -0
  337. package/lib/store/reducers/bookmarks.reducer.d.ts.map +1 -0
  338. package/lib/store/reducers/document.reducer.d.ts +1 -0
  339. package/lib/store/reducers/document.reducer.d.ts.map +1 -0
  340. package/lib/store/reducers/icp.reducer.d.ts +1 -0
  341. package/lib/store/reducers/icp.reducer.d.ts.map +1 -0
  342. package/lib/store/reducers/redaction.reducer.d.ts +1 -0
  343. package/lib/store/reducers/redaction.reducer.d.ts.map +1 -0
  344. package/lib/store/reducers/reducers.d.ts +2 -1
  345. package/lib/store/reducers/reducers.d.ts.map +1 -0
  346. package/lib/store/reducers/tags.reducer.d.ts +1 -0
  347. package/lib/store/reducers/tags.reducer.d.ts.map +1 -0
  348. package/lib/store/selectors/annotation.selectors.d.ts +54 -15
  349. package/lib/store/selectors/annotation.selectors.d.ts.map +1 -0
  350. package/lib/store/selectors/bookmark.selectors.d.ts +18 -7
  351. package/lib/store/selectors/bookmark.selectors.d.ts.map +1 -0
  352. package/lib/store/selectors/document.selectors.d.ts +15 -9
  353. package/lib/store/selectors/document.selectors.d.ts.map +1 -0
  354. package/lib/store/selectors/icp.selectors.d.ts +9 -8
  355. package/lib/store/selectors/icp.selectors.d.ts.map +1 -0
  356. package/lib/store/selectors/redaction.selectors.d.ts +18 -7
  357. package/lib/store/selectors/redaction.selectors.d.ts.map +1 -0
  358. package/lib/store/selectors/tag.selectors.d.ts +16 -6
  359. package/lib/store/selectors/tag.selectors.d.ts.map +1 -0
  360. package/lib/store/store-utils.d.ts +1 -0
  361. package/lib/store/store-utils.d.ts.map +1 -0
  362. package/lib/toolbar/icp-event.service.d.ts +1 -0
  363. package/lib/toolbar/icp-event.service.d.ts.map +1 -0
  364. package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts +1 -0
  365. package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts.map +1 -0
  366. package/lib/toolbar/icp-toolbar/icp-toolbar.component.ngfactory.d.ts.map +1 -0
  367. package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts +1 -0
  368. package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts.map +1 -0
  369. package/lib/toolbar/main-toolbar/main-toolbar.component.ngfactory.d.ts.map +1 -0
  370. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts +1 -0
  371. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts.map +1 -0
  372. package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.ngfactory.d.ts.map +1 -0
  373. package/lib/toolbar/search-bar/search-bar.component.d.ts +2 -0
  374. package/lib/toolbar/search-bar/search-bar.component.d.ts.map +1 -0
  375. package/lib/toolbar/search-bar/search-bar.component.ngfactory.d.ts.map +1 -0
  376. package/lib/toolbar/toolbar-button-visibility.service.d.ts +1 -0
  377. package/lib/toolbar/toolbar-button-visibility.service.d.ts.map +1 -0
  378. package/lib/toolbar/toolbar-button-visibility.service.ngfactory.d.ts.map +1 -0
  379. package/lib/toolbar/toolbar-event.service.d.ts +1 -0
  380. package/lib/toolbar/toolbar-event.service.d.ts.map +1 -0
  381. package/lib/toolbar/toolbar-event.service.ngfactory.d.ts.map +1 -0
  382. package/lib/toolbar/toolbar.module.d.ts +1 -0
  383. package/lib/toolbar/toolbar.module.d.ts.map +1 -0
  384. package/lib/toolbar/toolbar.module.ngfactory.d.ts.map +1 -0
  385. package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts +1 -0
  386. package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts.map +1 -0
  387. package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.ngfactory.d.ts.map +1 -0
  388. package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts +1 -0
  389. package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts.map +1 -0
  390. package/lib/viewers/convertible-content-viewer/document-conversion-api.service.ngfactory.d.ts.map +1 -0
  391. package/lib/viewers/grab-n-drag.directive.d.ts +1 -0
  392. package/lib/viewers/grab-n-drag.directive.d.ts.map +1 -0
  393. package/lib/viewers/grab-n-drag.directive.ngfactory.d.ts.map +1 -0
  394. package/lib/viewers/image-viewer/image-viewer.component.d.ts +5 -1
  395. package/lib/viewers/image-viewer/image-viewer.component.d.ts.map +1 -0
  396. package/lib/viewers/image-viewer/image-viewer.component.ngfactory.d.ts.map +1 -0
  397. package/lib/viewers/multimedia-player/multimedia-player.component.d.ts +1 -0
  398. package/lib/viewers/multimedia-player/multimedia-player.component.d.ts.map +1 -0
  399. package/lib/viewers/multimedia-player/multimedia-player.component.ngfactory.d.ts.map +1 -0
  400. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts +5 -0
  401. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts.map +1 -0
  402. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts +1 -0
  403. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts.map +1 -0
  404. package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.ngfactory.d.ts.map +1 -0
  405. package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts +6 -2
  406. package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts.map +1 -0
  407. package/lib/viewers/pdf-viewer/pdf-viewer.component.ngfactory.d.ts.map +1 -0
  408. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts +2 -1
  409. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts.map +1 -0
  410. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.ngfactory.d.ts.map +1 -0
  411. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts +1 -0
  412. package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts.map +1 -0
  413. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts +7 -0
  414. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts.map +1 -0
  415. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.ngfactory.d.ts.map +1 -0
  416. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts +3 -1
  417. package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts.map +1 -0
  418. package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts +4 -0
  419. package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts.map +1 -0
  420. package/lib/viewers/pdf-viewer/side-bar/side-bar.component.ngfactory.d.ts.map +1 -0
  421. package/lib/viewers/rotation-persist/rotation-api.service.d.ts +1 -0
  422. package/lib/viewers/rotation-persist/rotation-api.service.d.ts.map +1 -0
  423. package/lib/viewers/rotation-persist/rotation-api.service.ngfactory.d.ts.map +1 -0
  424. package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts +1 -0
  425. package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts.map +1 -0
  426. package/lib/viewers/rotation-persist/rotation-persist.directive.ngfactory.d.ts.map +1 -0
  427. package/lib/viewers/rotation-persist/rotation.model.d.ts +1 -0
  428. package/lib/viewers/rotation-persist/rotation.model.d.ts.map +1 -0
  429. package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts +1 -0
  430. package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts.map +1 -0
  431. package/lib/viewers/unsupported-viewer/unsupported-viewer.component.ngfactory.d.ts.map +1 -0
  432. package/lib/viewers/viewer-event.service.d.ts +1 -0
  433. package/lib/viewers/viewer-event.service.d.ts.map +1 -0
  434. package/lib/viewers/viewer-event.service.ngfactory.d.ts.map +1 -0
  435. package/lib/viewers/viewer-exception.model.d.ts +1 -0
  436. package/lib/viewers/viewer-exception.model.d.ts.map +1 -0
  437. package/lib/viewers/viewer-util.service.d.ts +1 -0
  438. package/lib/viewers/viewer-util.service.d.ts.map +1 -0
  439. package/lib/viewers/viewer-util.service.ngfactory.d.ts.map +1 -0
  440. package/package.json +16 -17
  441. package/public_api.d.ts +1 -0
  442. package/public_api.d.ts.map +1 -0
  443. package/esm5/hmcts-media-viewer.js +0 -67
  444. package/esm5/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +0 -215
  445. package/esm5/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.js +0 -236
  446. package/esm5/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.js +0 -125
  447. package/esm5/lib/annotations/annotation-set/annotation-set.component.js +0 -109
  448. package/esm5/lib/annotations/annotation-set/annotation-set.model.js +0 -15
  449. package/esm5/lib/annotations/annotation-set/annotation-view/annotation-view.component.js +0 -177
  450. package/esm5/lib/annotations/annotation-set/annotation-view/annotation.model.js +0 -29
  451. package/esm5/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.js +0 -250
  452. package/esm5/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.js +0 -21
  453. package/esm5/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.js +0 -216
  454. package/esm5/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.js +0 -200
  455. package/esm5/lib/annotations/annotations.module.js +0 -109
  456. package/esm5/lib/annotations/comment-set/comment/comment.component.js +0 -353
  457. package/esm5/lib/annotations/comment-set/comment/comment.model.js +0 -27
  458. package/esm5/lib/annotations/comment-set/comment/comment.service.js +0 -125
  459. package/esm5/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.js +0 -98
  460. package/esm5/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.js +0 -63
  461. package/esm5/lib/annotations/comment-set/comment-navigate/comments-navigate.component.js +0 -174
  462. package/esm5/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.js +0 -145
  463. package/esm5/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.js +0 -117
  464. package/esm5/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +0 -131
  465. package/esm5/lib/annotations/comment-set/comment-set-render.service.js +0 -177
  466. package/esm5/lib/annotations/comment-set/comment-set.component.js +0 -295
  467. package/esm5/lib/annotations/comments-summary/comments-summary.component.js +0 -239
  468. package/esm5/lib/annotations/models/api-persisted.model.js +0 -25
  469. package/esm5/lib/annotations/models/event-select.model.js +0 -17
  470. package/esm5/lib/annotations/models/tags.model.js +0 -19
  471. package/esm5/lib/annotations/models/user.model.js +0 -17
  472. package/esm5/lib/annotations/pipes/date/date.pipe.js +0 -48
  473. package/esm5/lib/annotations/pipes/filter/filter.pipe.js +0 -52
  474. package/esm5/lib/annotations/pipes/unsnake/unsnake.pipe.js +0 -28
  475. package/esm5/lib/annotations/services/annotation-api/annotation-api.service.js +0 -188
  476. package/esm5/lib/annotations/services/bookmarks-api/bookmarks-api.service.js +0 -132
  477. package/esm5/lib/annotations/services/tags/tags.services.js +0 -102
  478. package/esm5/lib/annotations/tags/tags.component.js +0 -112
  479. package/esm5/lib/bookmark/components/bookmark-icons.component.js +0 -55
  480. package/esm5/lib/icp/confirm-exit/confirm-action-dialog.component.js +0 -50
  481. package/esm5/lib/icp/icp-follower.service.js +0 -135
  482. package/esm5/lib/icp/icp-presenter.service.js +0 -135
  483. package/esm5/lib/icp/icp-session-api.service.js +0 -49
  484. package/esm5/lib/icp/icp-update.service.js +0 -165
  485. package/esm5/lib/icp/icp.interfaces.js +0 -51
  486. package/esm5/lib/icp/icp.service.js +0 -261
  487. package/esm5/lib/icp/participants-list/participants-list.component.js +0 -77
  488. package/esm5/lib/icp/socket.service.js +0 -142
  489. package/esm5/lib/media-viewer.component.js +0 -422
  490. package/esm5/lib/media-viewer.module.js +0 -110
  491. package/esm5/lib/print.service.js +0 -53
  492. package/esm5/lib/redaction/components/redaction.component.js +0 -247
  493. package/esm5/lib/redaction/services/redaction-api.service.js +0 -133
  494. package/esm5/lib/redaction/services/redaction.model.js +0 -19
  495. package/esm5/lib/shared/gov-uk-date/gov-uk-date.component.js +0 -37
  496. package/esm5/lib/shared/gov-uk-error-message/gov-uk-error-message.component.js +0 -36
  497. package/esm5/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -49
  498. package/esm5/lib/shared/gov-uk-label/gov-uk-label.component.js +0 -33
  499. package/esm5/lib/shared/shared.module.js +0 -42
  500. package/esm5/lib/shared/util/helpers/html-templates.helper.js +0 -36
  501. package/esm5/lib/shared/util/services/number.helper.service.js +0 -39
  502. package/esm5/lib/store/actions/annotation.actions.js +0 -226
  503. package/esm5/lib/store/actions/bookmark.actions.js +0 -242
  504. package/esm5/lib/store/actions/document.actions.js +0 -210
  505. package/esm5/lib/store/actions/icp.actions.js +0 -130
  506. package/esm5/lib/store/actions/redaction.actions.js +0 -255
  507. package/esm5/lib/store/actions/tag.actions.js +0 -50
  508. package/esm5/lib/store/bookmarks-store-utils.js +0 -110
  509. package/esm5/lib/store/effects/annotation.effects.js +0 -128
  510. package/esm5/lib/store/effects/bookmarks.effects.js +0 -193
  511. package/esm5/lib/store/effects/document.effects.js +0 -138
  512. package/esm5/lib/store/effects/icp.effects.js +0 -97
  513. package/esm5/lib/store/effects/index.js +0 -12
  514. package/esm5/lib/store/effects/redaction.effects.js +0 -190
  515. package/esm5/lib/store/models/bookmarks.interface.js +0 -57
  516. package/esm5/lib/store/models/filters.interface.js +0 -17
  517. package/esm5/lib/store/reducers/annotations.reducer.js +0 -231
  518. package/esm5/lib/store/reducers/bookmarks.reducer.js +0 -170
  519. package/esm5/lib/store/reducers/document.reducer.js +0 -222
  520. package/esm5/lib/store/reducers/icp.reducer.js +0 -83
  521. package/esm5/lib/store/reducers/redaction.reducer.js +0 -134
  522. package/esm5/lib/store/reducers/reducers.js +0 -47
  523. package/esm5/lib/store/reducers/tags.reducer.js +0 -159
  524. package/esm5/lib/store/selectors/annotation.selectors.js +0 -175
  525. package/esm5/lib/store/selectors/bookmark.selectors.js +0 -78
  526. package/esm5/lib/store/selectors/document.selectors.js +0 -37
  527. package/esm5/lib/store/selectors/icp.selectors.js +0 -47
  528. package/esm5/lib/store/selectors/redaction.selectors.js +0 -65
  529. package/esm5/lib/store/selectors/tag.selectors.js +0 -40
  530. package/esm5/lib/store/store-utils.js +0 -296
  531. package/esm5/lib/toolbar/icp-event.service.js +0 -65
  532. package/esm5/lib/toolbar/icp-toolbar/icp-toolbar.component.js +0 -112
  533. package/esm5/lib/toolbar/main-toolbar/main-toolbar.component.js +0 -408
  534. package/esm5/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +0 -130
  535. package/esm5/lib/toolbar/search-bar/search-bar.component.js +0 -226
  536. package/esm5/lib/toolbar/toolbar-button-visibility.service.js +0 -146
  537. package/esm5/lib/toolbar/toolbar-event.service.js +0 -416
  538. package/esm5/lib/toolbar/toolbar.module.js +0 -50
  539. package/esm5/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +0 -168
  540. package/esm5/lib/viewers/convertible-content-viewer/document-conversion-api.service.js +0 -57
  541. package/esm5/lib/viewers/grab-n-drag.directive.js +0 -98
  542. package/esm5/lib/viewers/image-viewer/image-viewer.component.js +0 -402
  543. package/esm5/lib/viewers/multimedia-player/multimedia-player.component.js +0 -125
  544. package/esm5/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +0 -446
  545. package/esm5/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.js +0 -87
  546. package/esm5/lib/viewers/pdf-viewer/pdf-viewer.component.js +0 -582
  547. package/esm5/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.js +0 -251
  548. package/esm5/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.js +0 -39
  549. package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +0 -62
  550. package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +0 -31
  551. package/esm5/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +0 -146
  552. package/esm5/lib/viewers/rotation-persist/rotation-api.service.js +0 -68
  553. package/esm5/lib/viewers/rotation-persist/rotation-persist.directive.js +0 -163
  554. package/esm5/lib/viewers/rotation-persist/rotation.model.js +0 -15
  555. package/esm5/lib/viewers/unsupported-viewer/unsupported-viewer.component.js +0 -120
  556. package/esm5/lib/viewers/viewer-event.service.js +0 -86
  557. package/esm5/lib/viewers/viewer-exception.model.js +0 -36
  558. package/esm5/lib/viewers/viewer-util.service.js +0 -44
  559. package/esm5/public_api.js +0 -35
  560. package/fesm5/hmcts-media-viewer.js +0 -14158
  561. package/fesm5/hmcts-media-viewer.js.map +0 -1
  562. package/hmcts-media-viewer-v2.8.1.tgz +0 -0
@@ -1,163 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Directive, ElementRef, HostListener } from '@angular/core';
6
- import * as fromDocumentActions from '../../store/actions/document.actions';
7
- import { select, Store } from '@ngrx/store';
8
- import * as fromDocuments from '../../store/selectors/document.selectors';
9
- import { filter, take } from 'rxjs/operators';
10
- import { ResponseType } from '../viewer-exception.model';
11
- import { ToolbarEventService } from '../../toolbar/toolbar-event.service';
12
- import { ToolbarButtonVisibilityService } from '../../toolbar/toolbar-button-visibility.service';
13
- var RotationPersistDirective = /** @class */ (function () {
14
- function RotationPersistDirective(el, store, toolbarButtons, toolbarEvents) {
15
- this.el = el;
16
- this.store = store;
17
- this.toolbarButtons = toolbarButtons;
18
- this.toolbarEvents = toolbarEvents;
19
- this.rotation = 0;
20
- this.savedRotation = 0;
21
- }
22
- /**
23
- * @return {?}
24
- */
25
- RotationPersistDirective.prototype.ngOnInit = /**
26
- * @return {?}
27
- */
28
- function () {
29
- var _this = this;
30
- this.$subscriptions = this.toolbarEvents.rotateSubject.subscribe((/**
31
- * @param {?} rotation
32
- * @return {?}
33
- */
34
- function (rotation) { return _this.onRotate(rotation); }));
35
- this.$subscriptions
36
- .add(this.toolbarEvents.saveRotationSubject.subscribe((/**
37
- * @return {?}
38
- */
39
- function () { return _this.saveRotation(); })))
40
- .add(this.store.pipe(select(fromDocuments.getRotation))
41
- .subscribe((/**
42
- * @param {?} rotation
43
- * @return {?}
44
- */
45
- function (rotation) { return _this.savedRotation = rotation; })))
46
- .add(this.store.pipe(select(fromDocuments.getDocumentId))
47
- .subscribe((/**
48
- * @param {?} documentId
49
- * @return {?}
50
- */
51
- function (documentId) { return _this.documentId = documentId; })));
52
- };
53
- /**
54
- * @return {?}
55
- */
56
- RotationPersistDirective.prototype.ngOnDestroy = /**
57
- * @return {?}
58
- */
59
- function () {
60
- this.$subscriptions.unsubscribe();
61
- };
62
- /**
63
- * @param {?} status
64
- * @return {?}
65
- */
66
- RotationPersistDirective.prototype.onMediaLoad = /**
67
- * @param {?} status
68
- * @return {?}
69
- */
70
- function (status) {
71
- var _this = this;
72
- this.rotation = 0;
73
- this.store.dispatch(new fromDocumentActions.LoadRotation(this.documentId));
74
- this.store.pipe(select(fromDocuments.rotationLoaded), filter((/**
75
- * @param {?} value
76
- * @return {?}
77
- */
78
- function (value) { return !!value; })), take(1))
79
- .subscribe((/**
80
- * @return {?}
81
- */
82
- function () {
83
- if (_this.savedRotation) {
84
- _this.toolbarEvents.rotateSubject.next(_this.savedRotation);
85
- }
86
- }));
87
- };
88
- /**
89
- * @private
90
- * @param {?} rotation
91
- * @return {?}
92
- */
93
- RotationPersistDirective.prototype.onRotate = /**
94
- * @private
95
- * @param {?} rotation
96
- * @return {?}
97
- */
98
- function (rotation) {
99
- this.rotation = (this.rotation + rotation) % 360;
100
- this.toolbarButtons.showSaveRotationButton = this.savedRotation !== this.rotation;
101
- };
102
- /**
103
- * @private
104
- * @return {?}
105
- */
106
- RotationPersistDirective.prototype.saveRotation = /**
107
- * @private
108
- * @return {?}
109
- */
110
- function () {
111
- /** @type {?} */
112
- var payload = {
113
- documentId: this.documentId,
114
- rotationAngle: this.rotation
115
- };
116
- this.store.dispatch(new fromDocumentActions.SaveRotation(payload));
117
- };
118
- RotationPersistDirective.decorators = [
119
- { type: Directive, args: [{
120
- selector: '[mvRotationPersist]'
121
- },] }
122
- ];
123
- /** @nocollapse */
124
- RotationPersistDirective.ctorParameters = function () { return [
125
- { type: ElementRef },
126
- { type: Store },
127
- { type: ToolbarButtonVisibilityService },
128
- { type: ToolbarEventService }
129
- ]; };
130
- RotationPersistDirective.propDecorators = {
131
- onMediaLoad: [{ type: HostListener, args: ['mediaLoadStatus', ['$event'],] }]
132
- };
133
- return RotationPersistDirective;
134
- }());
135
- export { RotationPersistDirective };
136
- if (false) {
137
- /** @type {?} */
138
- RotationPersistDirective.prototype.documentId;
139
- /** @type {?} */
140
- RotationPersistDirective.prototype.rotation;
141
- /** @type {?} */
142
- RotationPersistDirective.prototype.savedRotation;
143
- /** @type {?} */
144
- RotationPersistDirective.prototype.$subscriptions;
145
- /**
146
- * @type {?}
147
- * @private
148
- */
149
- RotationPersistDirective.prototype.el;
150
- /**
151
- * @type {?}
152
- * @private
153
- */
154
- RotationPersistDirective.prototype.store;
155
- /** @type {?} */
156
- RotationPersistDirective.prototype.toolbarButtons;
157
- /**
158
- * @type {?}
159
- * @private
160
- */
161
- RotationPersistDirective.prototype.toolbarEvents;
162
- }
163
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm90YXRpb24tcGVyc2lzdC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvbWVkaWEtdmlld2VyLyIsInNvdXJjZXMiOl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ZWRSb3RhdGlvbikge1xuICAgICAgICAgIHRoaXMudG9vbGJhckV2ZW50cy5yb3RhdGVTdWJqZWN0Lm5leHQodGhpcy5zYXZlZFJvdGF0aW9uKTtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gIH1cblxuICBwcml2YXRlIG9uUm90YXRlKHJvdGF0aW9uOiBudW1iZXIpIHtcbiAgICB0aGlzLnJvdGF0aW9uID0gKHRoaXMucm90YXRpb24gKyByb3RhdGlvbikgJSAzNjA7XG4gICAgdGhpcy50b29sYmFyQnV0dG9ucy5zaG93U2F2ZVJvdGF0aW9uQnV0dG9uID0gdGhpcy5zYXZlZFJvdGF0aW9uICE9PSB0aGlzLnJvdGF0aW9uO1xuICB9XG5cbiAgcHJpdmF0ZSBzYXZlUm90YXRpb24oKSB7XG4gICAgY29uc3QgcGF5bG9hZDogUm90YXRpb24gPSB7XG4gICAgICBkb2N1bWVudElkOiB0aGlzLmRvY3VtZW50SWQsXG4gICAgICByb3RhdGlvbkFuZ2xlOiB0aGlzLnJvdGF0aW9uXG4gICAgfTtcbiAgICB0aGlzLnN0b3JlLmRpc3BhdGNoKG5ldyBmcm9tRG9jdW1lbnRBY3Rpb25zLlNhdmVSb3RhdGlvbihwYXlsb2FkKSk7XG4gIH1cbn1cbiJdfQ==
@@ -1,15 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- /**
6
- * @record
7
- */
8
- export function Rotation() { }
9
- if (false) {
10
- /** @type {?} */
11
- Rotation.prototype.documentId;
12
- /** @type {?} */
13
- Rotation.prototype.rotationAngle;
14
- }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm90YXRpb24ubW9kZWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvbWVkaWEtdmlld2VyLyIsInNvdXJjZXMiOlsibGliL3ZpZXdlcnMvcm90YXRpb24tcGVyc2lzdC9yb3RhdGlvbi5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsOEJBR0M7OztJQUZDLDhCQUFtQjs7SUFDbkIsaUNBQXNCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBSb3RhdGlvbiB7XG4gIGRvY3VtZW50SWQ6IHN0cmluZztcbiAgcm90YXRpb25BbmdsZTogbnVtYmVyO1xufVxuIl19
@@ -1,120 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { __values } from "tslib";
6
- import { Component, ElementRef, Input, ViewChild, Output, EventEmitter } from '@angular/core';
7
- import { ToolbarEventService } from '../../toolbar/toolbar-event.service';
8
- import { ResponseType, ViewerException } from '../viewer-exception.model';
9
- import { ViewerUtilService } from '../viewer-util.service';
10
- var UnsupportedViewerComponent = /** @class */ (function () {
11
- function UnsupportedViewerComponent(toolbarEvents, viewerUtilService) {
12
- this.toolbarEvents = toolbarEvents;
13
- this.viewerUtilService = viewerUtilService;
14
- this.loadStatus = new EventEmitter();
15
- this.unsupportedViewerException = new EventEmitter();
16
- this.subscriptions = [];
17
- }
18
- /**
19
- * @return {?}
20
- */
21
- UnsupportedViewerComponent.prototype.ngOnInit = /**
22
- * @return {?}
23
- */
24
- function () {
25
- var _this = this;
26
- this.subscriptions.push(this.toolbarEvents.downloadSubject.subscribe((/**
27
- * @return {?}
28
- */
29
- function () { return _this.downloadLink.nativeElement.click(); })), this.viewerUtilService.validateFile(this.url).subscribe((/**
30
- * @param {?} next
31
- * @return {?}
32
- */
33
- function (next) { return next; }), (/**
34
- * @param {?} error
35
- * @return {?}
36
- */
37
- function (error) {
38
- _this.viewerException = new ViewerException(error.name, { httpResponseCode: error.status, message: error.message });
39
- })));
40
- this.loadStatus.emit(ResponseType.UNSUPPORTED);
41
- if (!this.typeException) {
42
- this.unsupportedViewerException.emit(this.viewerException);
43
- }
44
- };
45
- /**
46
- * @return {?}
47
- */
48
- UnsupportedViewerComponent.prototype.ngOnDestroy = /**
49
- * @return {?}
50
- */
51
- function () {
52
- var e_1, _a;
53
- try {
54
- for (var _b = __values(this.subscriptions), _c = _b.next(); !_c.done; _c = _b.next()) {
55
- var subscription = _c.value;
56
- subscription.unsubscribe();
57
- }
58
- }
59
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
60
- finally {
61
- try {
62
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
63
- }
64
- finally { if (e_1) throw e_1.error; }
65
- }
66
- };
67
- UnsupportedViewerComponent.decorators = [
68
- { type: Component, args: [{
69
- selector: 'mv-unsupported-viewer',
70
- template: "<div class=\"govuk-width-container\">\n <div class=\"govuk-notification-banner__content\">\n <p>\n <span *ngIf=\"typeException, else unsupported\">The document could not be displayed, or the file type is unsupported.</span>\n Please <a #downloadLink [href]=\"url\" [download]=\"downloadFileName\">click here to download</a>.\n </p>\n <ng-template #unsupported>\n <span>This file type is not supported by this viewer.</span>\n </ng-template>\n </div>\n</div>\n"
71
- }] }
72
- ];
73
- /** @nocollapse */
74
- UnsupportedViewerComponent.ctorParameters = function () { return [
75
- { type: ToolbarEventService },
76
- { type: ViewerUtilService }
77
- ]; };
78
- UnsupportedViewerComponent.propDecorators = {
79
- url: [{ type: Input }],
80
- downloadFileName: [{ type: Input }],
81
- typeException: [{ type: Input }],
82
- loadStatus: [{ type: Output }],
83
- unsupportedViewerException: [{ type: Output }],
84
- downloadLink: [{ type: ViewChild, args: ['downloadLink', { static: false },] }]
85
- };
86
- return UnsupportedViewerComponent;
87
- }());
88
- export { UnsupportedViewerComponent };
89
- if (false) {
90
- /** @type {?} */
91
- UnsupportedViewerComponent.prototype.url;
92
- /** @type {?} */
93
- UnsupportedViewerComponent.prototype.downloadFileName;
94
- /** @type {?} */
95
- UnsupportedViewerComponent.prototype.typeException;
96
- /** @type {?} */
97
- UnsupportedViewerComponent.prototype.loadStatus;
98
- /** @type {?} */
99
- UnsupportedViewerComponent.prototype.unsupportedViewerException;
100
- /** @type {?} */
101
- UnsupportedViewerComponent.prototype.downloadLink;
102
- /**
103
- * @type {?}
104
- * @private
105
- */
106
- UnsupportedViewerComponent.prototype.subscriptions;
107
- /**
108
- * @type {?}
109
- * @private
110
- */
111
- UnsupportedViewerComponent.prototype.viewerException;
112
- /** @type {?} */
113
- UnsupportedViewerComponent.prototype.toolbarEvents;
114
- /**
115
- * @type {?}
116
- * @private
117
- */
118
- UnsupportedViewerComponent.prototype.viewerUtilService;
119
- }
120
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5zdXBwb3J0ZWQtdmlld2VyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9tZWRpYS12aWV3ZXIvIiwic291cmNlcyI6WyJsaWIvdmlld2Vycy91bnN1cHBvcnRlZC12aWV3ZXIvdW5zdXBwb3J0ZWQtdmlld2VyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLEtBQUssRUFBVSxTQUFTLEVBQWEsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqSCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUUxRSxPQUFPLEVBQUUsWUFBWSxFQUFFLGVBQWUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzFFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBRTNEO0lBa0JFLG9DQUNrQixhQUFrQyxFQUNqQyxpQkFBb0M7UUFEckMsa0JBQWEsR0FBYixhQUFhLENBQXFCO1FBQ2pDLHNCQUFpQixHQUFqQ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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
- import { Subject } from 'rxjs';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @record
10
- */
11
- export function Highlight() { }
12
- if (false) {
13
- /** @type {?} */
14
- Highlight.prototype.page;
15
- /** @type {?} */
16
- Highlight.prototype.rectangles;
17
- }
18
- var ViewerEventService = /** @class */ (function () {
19
- function ViewerEventService() {
20
- this.textHighlight = new Subject();
21
- this.boxHighlight = new Subject();
22
- this.ctxToolbarCleared = new Subject();
23
- this.navigationEvent = new Subject();
24
- }
25
- /**
26
- * @param {?} selectionData
27
- * @return {?}
28
- */
29
- ViewerEventService.prototype.textSelected = /**
30
- * @param {?} selectionData
31
- * @return {?}
32
- */
33
- function (selectionData) {
34
- this.textHighlight.next(selectionData);
35
- };
36
- /**
37
- * @param {?} selectionData
38
- * @return {?}
39
- */
40
- ViewerEventService.prototype.boxSelected = /**
41
- * @param {?} selectionData
42
- * @return {?}
43
- */
44
- function (selectionData) {
45
- this.boxHighlight.next(selectionData);
46
- };
47
- /**
48
- * @return {?}
49
- */
50
- ViewerEventService.prototype.clearCtxToolbar = /**
51
- * @return {?}
52
- */
53
- function () {
54
- this.ctxToolbarCleared.next();
55
- };
56
- /**
57
- * @param {?} destination
58
- * @return {?}
59
- */
60
- ViewerEventService.prototype.goToDestination = /**
61
- * @param {?} destination
62
- * @return {?}
63
- */
64
- function (destination) {
65
- this.navigationEvent.next(destination);
66
- };
67
- ViewerEventService.decorators = [
68
- { type: Injectable, args: [{ providedIn: 'root' },] }
69
- ];
70
- /** @nocollapse */
71
- ViewerEventService.ctorParameters = function () { return []; };
72
- /** @nocollapse */ ViewerEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ViewerEventService_Factory() { return new ViewerEventService(); }, token: ViewerEventService, providedIn: "root" });
73
- return ViewerEventService;
74
- }());
75
- export { ViewerEventService };
76
- if (false) {
77
- /** @type {?} */
78
- ViewerEventService.prototype.textHighlight;
79
- /** @type {?} */
80
- ViewerEventService.prototype.boxHighlight;
81
- /** @type {?} */
82
- ViewerEventService.prototype.ctxToolbarCleared;
83
- /** @type {?} */
84
- ViewerEventService.prototype.navigationEvent;
85
- }
86
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld2VyLWV2ZW50LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvbWVkaWEtdmlld2VyLyIsInNvdXJjZXMiOlsibGliL3ZpZXdlcnMvdmlld2VyLWV2ZW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQzs7Ozs7QUFHL0IsK0JBR0M7OztJQUZDLHlCQUFhOztJQUNiLCtCQUF3Qjs7QUFHMUI7SUFRRTtRQUxnQixrQkFBYSxHQUFHLElBQUksT0FBTyxFQUFhLENBQUM7UUFDekMsaUJBQVksR0FBRyxJQUFJLE9BQU8sRUFBYSxDQUFDO1FBQ3hDLHNCQUFpQixHQUFHLElBQUksT0FBTyxFQUFFLENBQUM7UUFDbEMsb0JBQWUsR0FBRyxJQUFJLE9BQU8sRUFBUyxDQUFDO0lBRXhDLENBQUM7Ozs7O0lBRVQseUNBQVk7Ozs7SUFBbkIsVUFBb0IsYUFBd0I7UUFDMUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLENBQUM7SUFDekMsQ0FBQzs7Ozs7SUFFTSx3Q0FBVzs7OztJQUFsQixVQUFtQixhQUF3QjtRQUN6QyxJQUFJLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsQ0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5ldyBTdWJqZWN0PEhpZ2hsaWdodD4oKTtcbiAgcHVibGljIHJlYWRvbmx5IGN0eFRvb2xiYXJDbGVhcmVkID0gbmV3IFN1YmplY3QoKTtcbiAgcHVibGljIHJlYWRvbmx5IG5hdmlnYXRpb25FdmVudCA9IG5ldyBTdWJqZWN0PGFueVtdPigpO1xuXG4gIGNvbnN0cnVjdG9yKCkge31cblxuICBwdWJsaWMgdGV4dFNlbGVjdGVkKHNlbGVjdGlvbkRhdGE6IEhpZ2hsaWdodCk6IHZvaWQge1xuICAgIHRoaXMudGV4dEhpZ2hsaWdodC5uZXh0KHNlbGVjdGlvbkRhdGEpO1xuICB9XG5cbiAgcHVibGljIGJveFNlbGVjdGVkKHNlbGVjdGlvbkRhdGE6IEhpZ2hsaWdodCk6IHZvaWQge1xuICAgIHRoaXMuYm94SGlnaGxpZ2h0Lm5leHQoc2VsZWN0aW9uRGF0YSk7XG4gIH1cblxuICBwdWJsaWMgY2xlYXJDdHhUb29sYmFyKCk6IHZvaWQge1xuICAgIHRoaXMuY3R4VG9vbGJhckNsZWFyZWQubmV4dCgpO1xuICB9XG5cblxuICBwdWJsaWMgZ29Ub0Rlc3RpbmF0aW9uKGRlc3RpbmF0aW9uOiBhbnlbXSkge1xuICAgIHRoaXMubmF2aWdhdGlvbkV2ZW50Lm5leHQoZGVzdGluYXRpb24pO1xuICB9XG59XG4iXX0=
@@ -1,36 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- /** @enum {string} */
6
- var ResponseType = {
7
- SUCCESS: 'SUCCESS',
8
- FAILURE: 'FAILURE',
9
- UNSUPPORTED: 'UNSUPPORTED',
10
- };
11
- export { ResponseType };
12
- /**
13
- * @record
14
- */
15
- export function ExceptionDetail() { }
16
- if (false) {
17
- /** @type {?|undefined} */
18
- ExceptionDetail.prototype.httpResponseCode;
19
- /** @type {?|undefined} */
20
- ExceptionDetail.prototype.message;
21
- }
22
- var ViewerException = /** @class */ (function () {
23
- function ViewerException(exceptionType, detail) {
24
- this.exceptionType = exceptionType;
25
- this.detail = detail;
26
- }
27
- return ViewerException;
28
- }());
29
- export { ViewerException };
30
- if (false) {
31
- /** @type {?} */
32
- ViewerException.prototype.exceptionType;
33
- /** @type {?} */
34
- ViewerException.prototype.detail;
35
- }
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld2VyLWV4Y2VwdGlvbi5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9tZWRpYS12aWV3ZXIvIiwic291cmNlcyI6WyJsaWIvdmlld2Vycy92aWV3ZXItZXhjZXB0aW9uLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztJQUNFLFNBQVUsU0FBUztJQUNuQixTQUFVLFNBQVM7SUFDbkIsYUFBYyxhQUFhOzs7Ozs7QUFHN0IscUNBR0M7OztJQUZDLDJDQUEwQjs7SUFDMUIsa0NBQWlCOztBQUduQjtJQUlFLHlCQUFZLGFBQXNCLEVBQUUsTUFBd0I7UUFDMUQsSUFBSSxDQUFDLGFBQWEsR0FBRyxhQUFhLENBQUM7UUFDbkMsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDdkIsQ0FBQztJQUNILHNCQUFDO0FBQUQsQ0FBQyxBQVJELElBUUM7Ozs7SUFQQyx3Q0FBdUI7O0lBQ3ZCLGlDQUF5QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFJlc3BvbnNlVHlwZSB7XG4gIFNVQ0NFU1MgPSAnU1VDQ0VTUycsXG4gIEZBSUxVUkUgPSAnRkFJTFVSRScsXG4gIFVOU1VQUE9SVEVEID0gJ1VOU1VQUE9SVEVEJ1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEV4Y2VwdGlvbkRldGFpbCB7XG4gIGh0dHBSZXNwb25zZUNvZGU/OiBzdHJpbmc7XG4gIG1lc3NhZ2U/OiBzdHJpbmc7XG59XG5cbmV4cG9ydCBjbGFzcyBWaWV3ZXJFeGNlcHRpb24ge1xuICBleGNlcHRpb25UeXBlPzogc3RyaW5nO1xuICBkZXRhaWw/OiBFeGNlcHRpb25EZXRhaWw7XG5cbiAgY29uc3RydWN0b3IoZXhjZXB0aW9uVHlwZT86IHN0cmluZywgZGV0YWlsPzogRXhjZXB0aW9uRGV0YWlsKSB7XG4gICAgdGhpcy5leGNlcHRpb25UeXBlID0gZXhjZXB0aW9uVHlwZTtcbiAgICB0aGlzLmRldGFpbCA9IGRldGFpbDtcbiAgfVxufVxuIl19
@@ -1,44 +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
- import { HttpClient } from '@angular/common/http';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/common/http";
9
- var ViewerUtilService = /** @class */ (function () {
10
- function ViewerUtilService(http) {
11
- this.http = http;
12
- }
13
- /**
14
- * @param {?} url
15
- * @return {?}
16
- */
17
- ViewerUtilService.prototype.validateFile = /**
18
- * @param {?} url
19
- * @return {?}
20
- */
21
- function (url) {
22
- return this.http.head(url);
23
- };
24
- ViewerUtilService.decorators = [
25
- { type: Injectable, args: [{
26
- providedIn: 'root'
27
- },] }
28
- ];
29
- /** @nocollapse */
30
- ViewerUtilService.ctorParameters = function () { return [
31
- { type: HttpClient }
32
- ]; };
33
- /** @nocollapse */ ViewerUtilService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ViewerUtilService_Factory() { return new ViewerUtilService(i0.ɵɵinject(i1.HttpClient)); }, token: ViewerUtilService, providedIn: "root" });
34
- return ViewerUtilService;
35
- }());
36
- export { ViewerUtilService };
37
- if (false) {
38
- /**
39
- * @type {?}
40
- * @private
41
- */
42
- Vi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udCkge1xuICB9XG5cbiAgcHVibGljIHZhbGlkYXRlRmlsZSh1cmw6IHN0cmluZykge1xuICAgIHJldHVybiB0aGlzLmh0dHAuaGVhZCh1cmwpO1xuICB9XG59XG4iXX0=
@@ -1,35 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- /*
6
- * Public API Surface of media-viewer
7
- */
8
- export { MediaViewerModule } from './lib/media-viewer.module';
9
- export { ToolbarButtonVisibilityService, ToolbarEventService, ToolbarModule } from './lib/toolbar/toolbar.module';
10
- export { AnnotationApiService } from './lib/annotations/services/annotation-api/annotation-api.service';
11
- export { AnnotationsModule } from './lib/annotations/annotations.module';
12
- export { ResponseType, ViewerException } from './lib/viewers/viewer-exception.model';
13
- export { reducer, initialState, getAnnoSet, getCommentEnts, getAnnoPageEnt, getAnnoEnt, getSelectedAnno, commentSearchQ, getSummaryFilters } from './lib/store/reducers/annotations.reducer';
14
- export { getAnnotationsSetState, getAnnotationEntities, getSet, getDocumentIdSetId, getAnnotationSet, getSelectedAnnotation, getCommentEntities, getPageEntities, getComponentSearchQueries, getComponentSearchText, getCommentSummaryFilters, getAnnoPerPage, getCommentsArray, getCommentSummary, getFilteredAnnotations } from './lib/store/selectors/annotation.selectors';
15
- export { LOAD_ANNOTATION_SET, LOAD_ANNOTATION_SET_SUCCESS, LOAD_ANNOTATION_SET_FAIL, SAVE_ANNOTATION, SAVE_ANNOTATION_SUCCESS, SAVE_ANNOTATION_FAIL, ADD_OR_EDIT_COMMENT, DELETE_ANNOTATION, DELETE_ANNOTATION_SUCCESS, DELETE_ANNOTATION_FAIL, SELECT_ANNOTATION, SEARCH_COMMENT, APPLY_COMMENT_SUMMARY_FILTER, CLEAR_COMMENT_SUMMARY_FILTER, LoadAnnotationSet, LoadAnnotationSetSucess, LoadAnnotationSetFail, SaveAnnotation, SaveAnnotationSuccess, SaveAnnotationFail, AddOrEditComment, DeleteAnnotation, DeleteAnnotationSuccess, DeleteAnnotationFail, SelectedAnnotation, SearchComment, ApplyCommentSymmaryFilter, ClearCommentSummaryFilters } from './lib/store/actions/annotation.actions';
16
- export { AnnotationEffects } from './lib/store/effects/annotation.effects';
17
- export { MediaViewerComponent } from './lib/media-viewer.component';
18
- export { MainToolbarComponent } from './lib/toolbar/main-toolbar/main-toolbar.component';
19
- export { SearchBarComponent } from './lib/toolbar/search-bar/search-bar.component';
20
- export { RedactionToolbarComponent } from './lib/toolbar/redaction-toolbar/redaction-toolbar.component';
21
- export { IcpToolbarComponent } from './lib/toolbar/icp-toolbar/icp-toolbar.component';
22
- export { AnnotationViewComponent } from './lib/annotations/annotation-set/annotation-view/annotation-view.component';
23
- export { BoxHighlightCreateComponent } from './lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component';
24
- export { AnnotationSetComponent } from './lib/annotations/annotation-set/annotation-set.component';
25
- export { CommentSetComponent } from './lib/annotations/comment-set/comment-set.component';
26
- export { CommentSetHeaderComponent } from './lib/annotations/comment-set/comment-set-header/comment-set-header.component';
27
- export { CommentSearchComponent } from './lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component';
28
- export { CommentsSummaryComponent } from './lib/annotations/comments-summary/comments-summary.component';
29
- export { TagsComponent } from './lib/annotations/tags/tags.component';
30
- export { CommentFilterComponent } from './lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component';
31
- export { MetadataLayerComponent } from './lib/annotations/annotation-set/metadata-layer/metadata-layer.component';
32
- export { FilterPipe } from './lib/annotations/pipes/filter/filter.pipe';
33
- export { UnsnakePipe } from './lib/annotations/pipes/unsnake/unsnake.pipe';
34
- export { MomentDatePipe } from './lib/annotations/pipes/date/date.pipe';
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BobWN0cy9tZWRpYS12aWV3ZXIvIi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