@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.
- package/README.md +0 -1
- package/assets/sass/comment.scss +1 -1
- package/assets/sass/outline-attachment.scss +6 -1
- package/assets/sass/participants-list.scss +1 -1
- package/assets/sass/rectangle.scss +1 -4
- package/bundles/hmcts-media-viewer.umd.js +3367 -10784
- package/bundles/hmcts-media-viewer.umd.js.map +1 -1
- package/bundles/hmcts-media-viewer.umd.min.js +1 -16
- package/bundles/hmcts-media-viewer.umd.min.js.map +1 -1
- package/esm2015/hmcts-media-viewer.js +20 -24
- package/esm2015/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +9 -103
- package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.js +14 -111
- package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.js +4 -49
- package/esm2015/lib/annotations/annotation-set/annotation-set.component.js +2 -51
- package/esm2015/lib/annotations/annotation-set/annotation-set.model.js +2 -15
- package/esm2015/lib/annotations/annotation-set/annotation-view/annotation-view.component.js +4 -74
- package/esm2015/lib/annotations/annotation-set/annotation-view/annotation.model.js +2 -29
- package/esm2015/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.js +5 -114
- package/esm2015/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.js +2 -21
- package/esm2015/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.js +8 -85
- package/esm2015/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.js +9 -105
- package/esm2015/lib/annotations/annotations.module.js +1 -5
- package/esm2015/lib/annotations/comment-set/comment/comment.component.js +4 -152
- package/esm2015/lib/annotations/comment-set/comment/comment.model.js +2 -27
- package/esm2015/lib/annotations/comment-set/comment/comment.service.js +3 -53
- package/esm2015/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.js +1 -37
- package/esm2015/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.js +1 -25
- package/esm2015/lib/annotations/comment-set/comment-navigate/comments-navigate.component.js +5 -63
- package/esm2015/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.js +10 -76
- package/esm2015/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.js +5 -53
- package/esm2015/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +6 -63
- package/esm2015/lib/annotations/comment-set/comment-set-render.service.js +5 -73
- package/esm2015/lib/annotations/comment-set/comment-set.component.js +11 -154
- package/esm2015/lib/annotations/comments-summary/comments-summary.component.js +8 -111
- package/esm2015/lib/annotations/models/api-persisted.model.js +2 -25
- package/esm2015/lib/annotations/models/event-select.model.js +2 -17
- package/esm2015/lib/annotations/models/tags.model.js +2 -19
- package/esm2015/lib/annotations/models/user.model.js +2 -17
- package/esm2015/lib/annotations/pipes/date/date.pipe.js +1 -12
- package/esm2015/lib/annotations/pipes/filter/filter.pipe.js +3 -17
- package/esm2015/lib/annotations/pipes/unsnake/unsnake.pipe.js +1 -9
- package/esm2015/lib/annotations/services/annotation-api/annotation-api.service.js +6 -93
- package/esm2015/lib/annotations/services/bookmarks-api/bookmarks-api.service.js +6 -69
- package/esm2015/lib/annotations/services/tags/tags.services.js +6 -54
- package/esm2015/lib/annotations/tags/tags.component.js +4 -50
- package/esm2015/lib/bookmark/components/bookmark-icons.component.js +2 -29
- package/esm2015/lib/icp/confirm-exit/confirm-action-dialog.component.js +2 -22
- package/esm2015/lib/icp/icp-follower.service.js +4 -63
- package/esm2015/lib/icp/icp-presenter.service.js +6 -69
- package/esm2015/lib/icp/icp-session-api.service.js +2 -26
- package/esm2015/lib/icp/icp-update.service.js +18 -92
- package/esm2015/lib/icp/icp.events.js +15 -0
- package/esm2015/lib/icp/icp.interfaces.js +2 -51
- package/esm2015/lib/icp/icp.service.js +18 -155
- package/esm2015/lib/icp/participants-list/participants-list.component.js +3 -43
- package/esm2015/lib/icp/socket.service.js +92 -86
- package/esm2015/lib/media-viewer.component.js +29 -199
- package/esm2015/lib/media-viewer.module.js +3 -7
- package/esm2015/lib/print.service.js +2 -18
- package/esm2015/lib/redaction/components/redaction.component.js +13 -127
- package/esm2015/lib/redaction/services/redaction-api.service.js +6 -75
- package/esm2015/lib/redaction/services/redaction.model.js +2 -19
- package/esm2015/lib/shared/gov-uk-date/gov-uk-date.component.js +2 -14
- package/esm2015/lib/shared/gov-uk-error-message/gov-uk-error-message.component.js +3 -14
- package/esm2015/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.js +2 -17
- package/esm2015/lib/shared/gov-uk-label/gov-uk-label.component.js +3 -12
- package/esm2015/lib/shared/shared.module.js +1 -5
- package/esm2015/lib/shared/util/helpers/html-templates.helper.js +1 -10
- package/esm2015/lib/shared/util/services/number.helper.service.js +4 -14
- package/esm2015/lib/store/actions/annotation.actions.js +1 -140
- package/esm2015/lib/store/actions/bookmark.actions.js +1 -150
- package/esm2015/lib/store/actions/document.actions.js +1 -130
- package/esm2015/lib/store/actions/icp.actions.js +1 -80
- package/esm2015/lib/store/actions/redaction.actions.js +1 -155
- package/esm2015/lib/store/actions/tag.actions.js +1 -30
- package/esm2015/lib/store/bookmarks-store-utils.js +17 -69
- package/esm2015/lib/store/effects/annotation.effects.js +16 -90
- package/esm2015/lib/store/effects/bookmarks.effects.js +12 -127
- package/esm2015/lib/store/effects/document.effects.js +16 -97
- package/esm2015/lib/store/effects/icp.effects.js +5 -63
- package/esm2015/lib/store/effects/index.js +1 -6
- package/esm2015/lib/store/effects/redaction.effects.js +26 -137
- package/esm2015/lib/store/models/bookmarks.interface.js +2 -57
- package/esm2015/lib/store/models/filters.interface.js +2 -17
- package/esm2015/lib/store/reducers/annotations.reducer.js +14 -129
- package/esm2015/lib/store/reducers/bookmarks.reducer.js +12 -99
- package/esm2015/lib/store/reducers/document.reducer.js +10 -129
- package/esm2015/lib/store/reducers/icp.reducer.js +6 -47
- package/esm2015/lib/store/reducers/redaction.reducer.js +7 -73
- package/esm2015/lib/store/reducers/reducers.js +7 -31
- package/esm2015/lib/store/reducers/tags.reducer.js +12 -102
- package/esm2015/lib/store/selectors/annotation.selectors.js +29 -118
- package/esm2015/lib/store/selectors/bookmark.selectors.js +12 -51
- package/esm2015/lib/store/selectors/document.selectors.js +5 -26
- package/esm2015/lib/store/selectors/icp.selectors.js +9 -38
- package/esm2015/lib/store/selectors/redaction.selectors.js +10 -45
- package/esm2015/lib/store/selectors/tag.selectors.js +6 -28
- package/esm2015/lib/store/store-utils.js +26 -156
- package/esm2015/lib/toolbar/icp-event.service.js +13 -48
- package/esm2015/lib/toolbar/icp-toolbar/icp-toolbar.component.js +4 -56
- package/esm2015/lib/toolbar/main-toolbar/main-toolbar.component.js +9 -176
- package/esm2015/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +4 -58
- package/esm2015/lib/toolbar/search-bar/search-bar.component.js +11 -85
- package/esm2015/lib/toolbar/toolbar-button-visibility.service.js +2 -46
- package/esm2015/lib/toolbar/toolbar-event.service.js +2 -173
- package/esm2015/lib/toolbar/toolbar.module.js +1 -5
- package/esm2015/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +5 -75
- package/esm2015/lib/viewers/convertible-content-viewer/document-conversion-api.service.js +3 -34
- package/esm2015/lib/viewers/grab-n-drag.directive.js +1 -38
- package/esm2015/lib/viewers/image-viewer/image-viewer.component.js +29 -196
- package/esm2015/lib/viewers/multimedia-player/multimedia-player.component.js +3 -55
- package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +61 -240
- package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.js +2 -40
- package/esm2015/lib/viewers/pdf-viewer/pdf-viewer.component.js +34 -302
- package/esm2015/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.js +12 -107
- package/esm2015/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.js +2 -39
- package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +16 -25
- package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +2 -31
- package/esm2015/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +16 -73
- package/esm2015/lib/viewers/rotation-persist/rotation-api.service.js +2 -35
- package/esm2015/lib/viewers/rotation-persist/rotation-persist.directive.js +8 -87
- package/esm2015/lib/viewers/rotation-persist/rotation.model.js +2 -15
- package/esm2015/lib/viewers/unsupported-viewer/unsupported-viewer.component.js +4 -60
- package/esm2015/lib/viewers/viewer-event.service.js +2 -41
- package/esm2015/lib/viewers/viewer-exception.model.js +7 -32
- package/esm2015/lib/viewers/viewer-util.service.js +2 -20
- package/esm2015/public_api.js +28 -32
- package/fesm2015/hmcts-media-viewer.js +1540 -8065
- package/fesm2015/hmcts-media-viewer.js.map +1 -1
- package/hmcts-media-viewer-v2.9.1.tgz +0 -0
- package/hmcts-media-viewer.d.ts +19 -18
- package/hmcts-media-viewer.d.ts.map +1 -0
- package/hmcts-media-viewer.metadata.json +1 -1
- package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts +5 -3
- package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts +1 -0
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.ngfactory.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts +1 -0
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.ngfactory.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-set.component.d.ts +1 -0
- package/lib/annotations/annotation-set/annotation-set.component.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-set.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-set.model.d.ts +1 -0
- package/lib/annotations/annotation-set/annotation-set.model.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts +4 -3
- package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-view/annotation-view.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts +1 -0
- package/lib/annotations/annotation-set/annotation-view/annotation.model.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts +5 -2
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts +1 -0
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.d.ts.map +1 -0
- package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts +3 -1
- package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts.map +1 -0
- package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts +1 -0
- package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts.map +1 -0
- package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/annotations.module.d.ts +1 -0
- package/lib/annotations/annotations.module.d.ts.map +1 -0
- package/lib/annotations/annotations.module.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment/comment.component.d.ts +7 -5
- package/lib/annotations/comment-set/comment/comment.component.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment/comment.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment/comment.model.d.ts +1 -0
- package/lib/annotations/comment-set/comment/comment.model.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment/comment.service.d.ts +1 -0
- package/lib/annotations/comment-set/comment/comment.service.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment/comment.service.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts +1 -0
- package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts +1 -0
- package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts +1 -0
- package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts +1 -0
- package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts +1 -0
- package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts +1 -0
- package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set-render.service.d.ts +1 -0
- package/lib/annotations/comment-set/comment-set-render.service.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set-render.service.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set.component.d.ts +1 -0
- package/lib/annotations/comment-set/comment-set.component.d.ts.map +1 -0
- package/lib/annotations/comment-set/comment-set.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/comments-summary/comments-summary.component.d.ts +1 -1
- package/lib/annotations/comments-summary/comments-summary.component.d.ts.map +1 -0
- package/lib/annotations/comments-summary/comments-summary.component.ngfactory.d.ts.map +1 -0
- package/lib/annotations/models/api-persisted.model.d.ts +1 -0
- package/lib/annotations/models/api-persisted.model.d.ts.map +1 -0
- package/lib/annotations/models/event-select.model.d.ts +1 -0
- package/lib/annotations/models/event-select.model.d.ts.map +1 -0
- package/lib/annotations/models/tags.model.d.ts +1 -0
- package/lib/annotations/models/tags.model.d.ts.map +1 -0
- package/lib/annotations/models/user.model.d.ts +1 -0
- package/lib/annotations/models/user.model.d.ts.map +1 -0
- package/lib/annotations/pipes/date/date.pipe.d.ts +2 -1
- package/lib/annotations/pipes/date/date.pipe.d.ts.map +1 -0
- package/lib/annotations/pipes/date/date.pipe.ngfactory.d.ts.map +1 -0
- package/lib/annotations/pipes/filter/filter.pipe.d.ts +1 -0
- package/lib/annotations/pipes/filter/filter.pipe.d.ts.map +1 -0
- package/lib/annotations/pipes/filter/filter.pipe.ngfactory.d.ts.map +1 -0
- package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts +1 -0
- package/lib/annotations/pipes/unsnake/unsnake.pipe.d.ts.map +1 -0
- package/lib/annotations/pipes/unsnake/unsnake.pipe.ngfactory.d.ts.map +1 -0
- package/lib/annotations/services/annotation-api/annotation-api.service.d.ts +3 -2
- package/lib/annotations/services/annotation-api/annotation-api.service.d.ts.map +1 -0
- package/lib/annotations/services/annotation-api/annotation-api.service.ngfactory.d.ts.map +1 -0
- package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts +1 -0
- package/lib/annotations/services/bookmarks-api/bookmarks-api.service.d.ts.map +1 -0
- package/lib/annotations/services/bookmarks-api/bookmarks-api.service.ngfactory.d.ts.map +1 -0
- package/lib/annotations/services/tags/tags.services.d.ts +1 -0
- package/lib/annotations/services/tags/tags.services.d.ts.map +1 -0
- package/lib/annotations/services/tags/tags.services.ngfactory.d.ts.map +1 -0
- package/lib/annotations/tags/tags.component.d.ts +3 -2
- package/lib/annotations/tags/tags.component.d.ts.map +1 -0
- package/lib/annotations/tags/tags.component.ngfactory.d.ts.map +1 -0
- package/lib/bookmark/components/bookmark-icons.component.d.ts +1 -0
- package/lib/bookmark/components/bookmark-icons.component.d.ts.map +1 -0
- package/lib/bookmark/components/bookmark-icons.component.ngfactory.d.ts.map +1 -0
- package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts +1 -0
- package/lib/icp/confirm-exit/confirm-action-dialog.component.d.ts.map +1 -0
- package/lib/icp/confirm-exit/confirm-action-dialog.component.ngfactory.d.ts.map +1 -0
- package/lib/icp/icp-follower.service.d.ts +1 -0
- package/lib/icp/icp-follower.service.d.ts.map +1 -0
- package/lib/icp/icp-follower.service.ngfactory.d.ts.map +1 -0
- package/lib/icp/icp-presenter.service.d.ts +1 -0
- package/lib/icp/icp-presenter.service.d.ts.map +1 -0
- package/lib/icp/icp-presenter.service.ngfactory.d.ts.map +1 -0
- package/lib/icp/icp-session-api.service.d.ts +1 -0
- package/lib/icp/icp-session-api.service.d.ts.map +1 -0
- package/lib/icp/icp-session-api.service.ngfactory.d.ts.map +1 -0
- package/lib/icp/icp-update.service.d.ts +1 -9
- package/lib/icp/icp-update.service.d.ts.map +1 -0
- package/lib/icp/icp-update.service.ngfactory.d.ts.map +1 -0
- package/lib/icp/icp.events.d.ts +14 -0
- package/lib/icp/icp.events.d.ts.map +1 -0
- package/lib/icp/icp.interfaces.d.ts +2 -0
- package/lib/icp/icp.interfaces.d.ts.map +1 -0
- package/lib/icp/icp.service.d.ts +1 -0
- package/lib/icp/icp.service.d.ts.map +1 -0
- package/lib/icp/icp.service.ngfactory.d.ts.map +1 -0
- package/lib/icp/participants-list/participants-list.component.d.ts +1 -0
- package/lib/icp/participants-list/participants-list.component.d.ts.map +1 -0
- package/lib/icp/participants-list/participants-list.component.ngfactory.d.ts.map +1 -0
- package/lib/icp/socket.service.d.ts +14 -4
- package/lib/icp/socket.service.d.ts.map +1 -0
- package/lib/icp/socket.service.ngfactory.d.ts.map +1 -0
- package/lib/media-viewer.component.d.ts +2 -0
- package/lib/media-viewer.component.d.ts.map +1 -0
- package/lib/media-viewer.component.ngfactory.d.ts.map +1 -0
- package/lib/media-viewer.module.d.ts +1 -0
- package/lib/media-viewer.module.d.ts.map +1 -0
- package/lib/media-viewer.module.ngfactory.d.ts.map +1 -0
- package/lib/print.service.d.ts +1 -0
- package/lib/print.service.d.ts.map +1 -0
- package/lib/print.service.ngfactory.d.ts.map +1 -0
- package/lib/redaction/components/redaction.component.d.ts +1 -0
- package/lib/redaction/components/redaction.component.d.ts.map +1 -0
- package/lib/redaction/components/redaction.component.ngfactory.d.ts.map +1 -0
- package/lib/redaction/services/redaction-api.service.d.ts +1 -0
- package/lib/redaction/services/redaction-api.service.d.ts.map +1 -0
- package/lib/redaction/services/redaction-api.service.ngfactory.d.ts.map +1 -0
- package/lib/redaction/services/redaction.model.d.ts +1 -0
- package/lib/redaction/services/redaction.model.d.ts.map +1 -0
- package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts +1 -0
- package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts.map +1 -0
- package/lib/shared/gov-uk-date/gov-uk-date.component.ngfactory.d.ts.map +1 -0
- package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts +1 -0
- package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts.map +1 -0
- package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.ngfactory.d.ts.map +1 -0
- package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +1 -0
- package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts.map +1 -0
- package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.ngfactory.d.ts.map +1 -0
- package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts +1 -0
- package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts.map +1 -0
- package/lib/shared/gov-uk-label/gov-uk-label.component.ngfactory.d.ts.map +1 -0
- package/lib/shared/shared.module.d.ts +1 -0
- package/lib/shared/shared.module.d.ts.map +1 -0
- package/lib/shared/shared.module.ngfactory.d.ts.map +1 -0
- package/lib/shared/util/helpers/html-templates.helper.d.ts +1 -0
- package/lib/shared/util/helpers/html-templates.helper.d.ts.map +1 -0
- package/lib/shared/util/services/number.helper.service.d.ts +1 -0
- package/lib/shared/util/services/number.helper.service.d.ts.map +1 -0
- package/lib/shared/util/services/number.helper.service.ngfactory.d.ts.map +1 -0
- package/lib/store/actions/annotation.actions.d.ts +1 -0
- package/lib/store/actions/annotation.actions.d.ts.map +1 -0
- package/lib/store/actions/bookmark.actions.d.ts +1 -0
- package/lib/store/actions/bookmark.actions.d.ts.map +1 -0
- package/lib/store/actions/document.actions.d.ts +1 -0
- package/lib/store/actions/document.actions.d.ts.map +1 -0
- package/lib/store/actions/icp.actions.d.ts +1 -0
- package/lib/store/actions/icp.actions.d.ts.map +1 -0
- package/lib/store/actions/redaction.actions.d.ts +1 -0
- package/lib/store/actions/redaction.actions.d.ts.map +1 -0
- package/lib/store/actions/tag.actions.d.ts +1 -0
- package/lib/store/actions/tag.actions.d.ts.map +1 -0
- package/lib/store/bookmarks-store-utils.d.ts +1 -0
- package/lib/store/bookmarks-store-utils.d.ts.map +1 -0
- package/lib/store/effects/annotation.effects.d.ts +1 -0
- package/lib/store/effects/annotation.effects.d.ts.map +1 -0
- package/lib/store/effects/annotation.effects.ngfactory.d.ts.map +1 -0
- package/lib/store/effects/bookmarks.effects.d.ts +1 -0
- package/lib/store/effects/bookmarks.effects.d.ts.map +1 -0
- package/lib/store/effects/bookmarks.effects.ngfactory.d.ts.map +1 -0
- package/lib/store/effects/document.effects.d.ts +1 -0
- package/lib/store/effects/document.effects.d.ts.map +1 -0
- package/lib/store/effects/document.effects.ngfactory.d.ts.map +1 -0
- package/lib/store/effects/icp.effects.d.ts +1 -0
- package/lib/store/effects/icp.effects.d.ts.map +1 -0
- package/lib/store/effects/icp.effects.ngfactory.d.ts.map +1 -0
- package/lib/store/effects/index.d.ts +1 -0
- package/lib/store/effects/index.d.ts.map +1 -0
- package/lib/store/effects/redaction.effects.d.ts +1 -0
- package/lib/store/effects/redaction.effects.d.ts.map +1 -0
- package/lib/store/effects/redaction.effects.ngfactory.d.ts.map +1 -0
- package/lib/store/models/bookmarks.interface.d.ts +1 -0
- package/lib/store/models/bookmarks.interface.d.ts.map +1 -0
- package/lib/store/models/filters.interface.d.ts +1 -0
- package/lib/store/models/filters.interface.d.ts.map +1 -0
- package/lib/store/reducers/annotations.reducer.d.ts +1 -0
- package/lib/store/reducers/annotations.reducer.d.ts.map +1 -0
- package/lib/store/reducers/bookmarks.reducer.d.ts +1 -0
- package/lib/store/reducers/bookmarks.reducer.d.ts.map +1 -0
- package/lib/store/reducers/document.reducer.d.ts +1 -0
- package/lib/store/reducers/document.reducer.d.ts.map +1 -0
- package/lib/store/reducers/icp.reducer.d.ts +1 -0
- package/lib/store/reducers/icp.reducer.d.ts.map +1 -0
- package/lib/store/reducers/redaction.reducer.d.ts +1 -0
- package/lib/store/reducers/redaction.reducer.d.ts.map +1 -0
- package/lib/store/reducers/reducers.d.ts +2 -1
- package/lib/store/reducers/reducers.d.ts.map +1 -0
- package/lib/store/reducers/tags.reducer.d.ts +1 -0
- package/lib/store/reducers/tags.reducer.d.ts.map +1 -0
- package/lib/store/selectors/annotation.selectors.d.ts +54 -15
- package/lib/store/selectors/annotation.selectors.d.ts.map +1 -0
- package/lib/store/selectors/bookmark.selectors.d.ts +18 -7
- package/lib/store/selectors/bookmark.selectors.d.ts.map +1 -0
- package/lib/store/selectors/document.selectors.d.ts +15 -9
- package/lib/store/selectors/document.selectors.d.ts.map +1 -0
- package/lib/store/selectors/icp.selectors.d.ts +9 -8
- package/lib/store/selectors/icp.selectors.d.ts.map +1 -0
- package/lib/store/selectors/redaction.selectors.d.ts +18 -7
- package/lib/store/selectors/redaction.selectors.d.ts.map +1 -0
- package/lib/store/selectors/tag.selectors.d.ts +16 -6
- package/lib/store/selectors/tag.selectors.d.ts.map +1 -0
- package/lib/store/store-utils.d.ts +1 -0
- package/lib/store/store-utils.d.ts.map +1 -0
- package/lib/toolbar/icp-event.service.d.ts +1 -0
- package/lib/toolbar/icp-event.service.d.ts.map +1 -0
- package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts +1 -0
- package/lib/toolbar/icp-toolbar/icp-toolbar.component.d.ts.map +1 -0
- package/lib/toolbar/icp-toolbar/icp-toolbar.component.ngfactory.d.ts.map +1 -0
- package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts +1 -0
- package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts.map +1 -0
- package/lib/toolbar/main-toolbar/main-toolbar.component.ngfactory.d.ts.map +1 -0
- package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts +1 -0
- package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts.map +1 -0
- package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.ngfactory.d.ts.map +1 -0
- package/lib/toolbar/search-bar/search-bar.component.d.ts +2 -0
- package/lib/toolbar/search-bar/search-bar.component.d.ts.map +1 -0
- package/lib/toolbar/search-bar/search-bar.component.ngfactory.d.ts.map +1 -0
- package/lib/toolbar/toolbar-button-visibility.service.d.ts +1 -0
- package/lib/toolbar/toolbar-button-visibility.service.d.ts.map +1 -0
- package/lib/toolbar/toolbar-button-visibility.service.ngfactory.d.ts.map +1 -0
- package/lib/toolbar/toolbar-event.service.d.ts +1 -0
- package/lib/toolbar/toolbar-event.service.d.ts.map +1 -0
- package/lib/toolbar/toolbar-event.service.ngfactory.d.ts.map +1 -0
- package/lib/toolbar/toolbar.module.d.ts +1 -0
- package/lib/toolbar/toolbar.module.d.ts.map +1 -0
- package/lib/toolbar/toolbar.module.ngfactory.d.ts.map +1 -0
- package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts +1 -0
- package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts.map +1 -0
- package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.ngfactory.d.ts.map +1 -0
- package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts +1 -0
- package/lib/viewers/convertible-content-viewer/document-conversion-api.service.d.ts.map +1 -0
- package/lib/viewers/convertible-content-viewer/document-conversion-api.service.ngfactory.d.ts.map +1 -0
- package/lib/viewers/grab-n-drag.directive.d.ts +1 -0
- package/lib/viewers/grab-n-drag.directive.d.ts.map +1 -0
- package/lib/viewers/grab-n-drag.directive.ngfactory.d.ts.map +1 -0
- package/lib/viewers/image-viewer/image-viewer.component.d.ts +5 -1
- package/lib/viewers/image-viewer/image-viewer.component.d.ts.map +1 -0
- package/lib/viewers/image-viewer/image-viewer.component.ngfactory.d.ts.map +1 -0
- package/lib/viewers/multimedia-player/multimedia-player.component.d.ts +1 -0
- package/lib/viewers/multimedia-player/multimedia-player.component.d.ts.map +1 -0
- package/lib/viewers/multimedia-player/multimedia-player.component.ngfactory.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts +5 -0
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts +1 -0
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.ngfactory.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts +6 -2
- package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/pdf-viewer.component.ngfactory.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts +2 -1
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.ngfactory.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts +1 -0
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts +7 -0
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.ngfactory.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts +3 -1
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts +4 -0
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts.map +1 -0
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.ngfactory.d.ts.map +1 -0
- package/lib/viewers/rotation-persist/rotation-api.service.d.ts +1 -0
- package/lib/viewers/rotation-persist/rotation-api.service.d.ts.map +1 -0
- package/lib/viewers/rotation-persist/rotation-api.service.ngfactory.d.ts.map +1 -0
- package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts +1 -0
- package/lib/viewers/rotation-persist/rotation-persist.directive.d.ts.map +1 -0
- package/lib/viewers/rotation-persist/rotation-persist.directive.ngfactory.d.ts.map +1 -0
- package/lib/viewers/rotation-persist/rotation.model.d.ts +1 -0
- package/lib/viewers/rotation-persist/rotation.model.d.ts.map +1 -0
- package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts +1 -0
- package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts.map +1 -0
- package/lib/viewers/unsupported-viewer/unsupported-viewer.component.ngfactory.d.ts.map +1 -0
- package/lib/viewers/viewer-event.service.d.ts +1 -0
- package/lib/viewers/viewer-event.service.d.ts.map +1 -0
- package/lib/viewers/viewer-event.service.ngfactory.d.ts.map +1 -0
- package/lib/viewers/viewer-exception.model.d.ts +1 -0
- package/lib/viewers/viewer-exception.model.d.ts.map +1 -0
- package/lib/viewers/viewer-util.service.d.ts +1 -0
- package/lib/viewers/viewer-util.service.d.ts.map +1 -0
- package/lib/viewers/viewer-util.service.ngfactory.d.ts.map +1 -0
- package/package.json +16 -17
- package/public_api.d.ts +1 -0
- package/public_api.d.ts.map +1 -0
- package/esm5/hmcts-media-viewer.js +0 -67
- package/esm5/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +0 -215
- package/esm5/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.js +0 -236
- package/esm5/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.js +0 -125
- package/esm5/lib/annotations/annotation-set/annotation-set.component.js +0 -109
- package/esm5/lib/annotations/annotation-set/annotation-set.model.js +0 -15
- package/esm5/lib/annotations/annotation-set/annotation-view/annotation-view.component.js +0 -177
- package/esm5/lib/annotations/annotation-set/annotation-view/annotation.model.js +0 -29
- package/esm5/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.js +0 -250
- package/esm5/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.js +0 -21
- package/esm5/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.js +0 -216
- package/esm5/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.js +0 -200
- package/esm5/lib/annotations/annotations.module.js +0 -109
- package/esm5/lib/annotations/comment-set/comment/comment.component.js +0 -353
- package/esm5/lib/annotations/comment-set/comment/comment.model.js +0 -27
- package/esm5/lib/annotations/comment-set/comment/comment.service.js +0 -125
- package/esm5/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.js +0 -98
- package/esm5/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.js +0 -63
- package/esm5/lib/annotations/comment-set/comment-navigate/comments-navigate.component.js +0 -174
- package/esm5/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.js +0 -145
- package/esm5/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.js +0 -117
- package/esm5/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +0 -131
- package/esm5/lib/annotations/comment-set/comment-set-render.service.js +0 -177
- package/esm5/lib/annotations/comment-set/comment-set.component.js +0 -295
- package/esm5/lib/annotations/comments-summary/comments-summary.component.js +0 -239
- package/esm5/lib/annotations/models/api-persisted.model.js +0 -25
- package/esm5/lib/annotations/models/event-select.model.js +0 -17
- package/esm5/lib/annotations/models/tags.model.js +0 -19
- package/esm5/lib/annotations/models/user.model.js +0 -17
- package/esm5/lib/annotations/pipes/date/date.pipe.js +0 -48
- package/esm5/lib/annotations/pipes/filter/filter.pipe.js +0 -52
- package/esm5/lib/annotations/pipes/unsnake/unsnake.pipe.js +0 -28
- package/esm5/lib/annotations/services/annotation-api/annotation-api.service.js +0 -188
- package/esm5/lib/annotations/services/bookmarks-api/bookmarks-api.service.js +0 -132
- package/esm5/lib/annotations/services/tags/tags.services.js +0 -102
- package/esm5/lib/annotations/tags/tags.component.js +0 -112
- package/esm5/lib/bookmark/components/bookmark-icons.component.js +0 -55
- package/esm5/lib/icp/confirm-exit/confirm-action-dialog.component.js +0 -50
- package/esm5/lib/icp/icp-follower.service.js +0 -135
- package/esm5/lib/icp/icp-presenter.service.js +0 -135
- package/esm5/lib/icp/icp-session-api.service.js +0 -49
- package/esm5/lib/icp/icp-update.service.js +0 -165
- package/esm5/lib/icp/icp.interfaces.js +0 -51
- package/esm5/lib/icp/icp.service.js +0 -261
- package/esm5/lib/icp/participants-list/participants-list.component.js +0 -77
- package/esm5/lib/icp/socket.service.js +0 -142
- package/esm5/lib/media-viewer.component.js +0 -422
- package/esm5/lib/media-viewer.module.js +0 -110
- package/esm5/lib/print.service.js +0 -53
- package/esm5/lib/redaction/components/redaction.component.js +0 -247
- package/esm5/lib/redaction/services/redaction-api.service.js +0 -133
- package/esm5/lib/redaction/services/redaction.model.js +0 -19
- package/esm5/lib/shared/gov-uk-date/gov-uk-date.component.js +0 -37
- package/esm5/lib/shared/gov-uk-error-message/gov-uk-error-message.component.js +0 -36
- package/esm5/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.js +0 -49
- package/esm5/lib/shared/gov-uk-label/gov-uk-label.component.js +0 -33
- package/esm5/lib/shared/shared.module.js +0 -42
- package/esm5/lib/shared/util/helpers/html-templates.helper.js +0 -36
- package/esm5/lib/shared/util/services/number.helper.service.js +0 -39
- package/esm5/lib/store/actions/annotation.actions.js +0 -226
- package/esm5/lib/store/actions/bookmark.actions.js +0 -242
- package/esm5/lib/store/actions/document.actions.js +0 -210
- package/esm5/lib/store/actions/icp.actions.js +0 -130
- package/esm5/lib/store/actions/redaction.actions.js +0 -255
- package/esm5/lib/store/actions/tag.actions.js +0 -50
- package/esm5/lib/store/bookmarks-store-utils.js +0 -110
- package/esm5/lib/store/effects/annotation.effects.js +0 -128
- package/esm5/lib/store/effects/bookmarks.effects.js +0 -193
- package/esm5/lib/store/effects/document.effects.js +0 -138
- package/esm5/lib/store/effects/icp.effects.js +0 -97
- package/esm5/lib/store/effects/index.js +0 -12
- package/esm5/lib/store/effects/redaction.effects.js +0 -190
- package/esm5/lib/store/models/bookmarks.interface.js +0 -57
- package/esm5/lib/store/models/filters.interface.js +0 -17
- package/esm5/lib/store/reducers/annotations.reducer.js +0 -231
- package/esm5/lib/store/reducers/bookmarks.reducer.js +0 -170
- package/esm5/lib/store/reducers/document.reducer.js +0 -222
- package/esm5/lib/store/reducers/icp.reducer.js +0 -83
- package/esm5/lib/store/reducers/redaction.reducer.js +0 -134
- package/esm5/lib/store/reducers/reducers.js +0 -47
- package/esm5/lib/store/reducers/tags.reducer.js +0 -159
- package/esm5/lib/store/selectors/annotation.selectors.js +0 -175
- package/esm5/lib/store/selectors/bookmark.selectors.js +0 -78
- package/esm5/lib/store/selectors/document.selectors.js +0 -37
- package/esm5/lib/store/selectors/icp.selectors.js +0 -47
- package/esm5/lib/store/selectors/redaction.selectors.js +0 -65
- package/esm5/lib/store/selectors/tag.selectors.js +0 -40
- package/esm5/lib/store/store-utils.js +0 -296
- package/esm5/lib/toolbar/icp-event.service.js +0 -65
- package/esm5/lib/toolbar/icp-toolbar/icp-toolbar.component.js +0 -112
- package/esm5/lib/toolbar/main-toolbar/main-toolbar.component.js +0 -408
- package/esm5/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +0 -130
- package/esm5/lib/toolbar/search-bar/search-bar.component.js +0 -226
- package/esm5/lib/toolbar/toolbar-button-visibility.service.js +0 -146
- package/esm5/lib/toolbar/toolbar-event.service.js +0 -416
- package/esm5/lib/toolbar/toolbar.module.js +0 -50
- package/esm5/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.js +0 -168
- package/esm5/lib/viewers/convertible-content-viewer/document-conversion-api.service.js +0 -57
- package/esm5/lib/viewers/grab-n-drag.directive.js +0 -98
- package/esm5/lib/viewers/image-viewer/image-viewer.component.js +0 -402
- package/esm5/lib/viewers/multimedia-player/multimedia-player.component.js +0 -125
- package/esm5/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +0 -446
- package/esm5/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.js +0 -87
- package/esm5/lib/viewers/pdf-viewer/pdf-viewer.component.js +0 -582
- package/esm5/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.js +0 -251
- package/esm5/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.js +0 -39
- package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +0 -62
- package/esm5/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.js +0 -31
- package/esm5/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +0 -146
- package/esm5/lib/viewers/rotation-persist/rotation-api.service.js +0 -68
- package/esm5/lib/viewers/rotation-persist/rotation-persist.directive.js +0 -163
- package/esm5/lib/viewers/rotation-persist/rotation.model.js +0 -15
- package/esm5/lib/viewers/unsupported-viewer/unsupported-viewer.component.js +0 -120
- package/esm5/lib/viewers/viewer-event.service.js +0 -86
- package/esm5/lib/viewers/viewer-exception.model.js +0 -36
- package/esm5/lib/viewers/viewer-util.service.js +0 -44
- package/esm5/public_api.js +0 -35
- package/fesm5/hmcts-media-viewer.js +0 -14158
- package/fesm5/hmcts-media-viewer.js.map +0 -1
- package/hmcts-media-viewer-v2.8.1.tgz +0 -0
|
@@ -1,582 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { __awaiter, __generator } from "tslib";
|
|
6
|
-
import { Component, ElementRef, EventEmitter, Input, Output, ViewChild, ViewEncapsulation } from '@angular/core';
|
|
7
|
-
import { asyncScheduler } from 'rxjs';
|
|
8
|
-
import { filter, tap, throttleTime } from 'rxjs/operators';
|
|
9
|
-
import { select, Store } from '@ngrx/store';
|
|
10
|
-
import { PdfJsWrapperFactory } from './pdf-js/pdf-js-wrapper.provider';
|
|
11
|
-
import { ToolbarEventService } from '../../toolbar/toolbar-event.service';
|
|
12
|
-
import { PrintService } from '../../print.service';
|
|
13
|
-
import { ResponseType, ViewerException } from '../viewer-exception.model';
|
|
14
|
-
import { ToolbarButtonVisibilityService } from '../../toolbar/toolbar-button-visibility.service';
|
|
15
|
-
import * as fromDocumentActions from '../../store/actions/document.actions';
|
|
16
|
-
import { PdfPositionUpdate } from '../../store/actions/document.actions';
|
|
17
|
-
import * as fromTagActions from '../../store/actions/tag.actions';
|
|
18
|
-
import { SetCaseId } from '../../store/actions/icp.actions';
|
|
19
|
-
import * as fromDocumentsSelector from '../../store/selectors/document.selectors';
|
|
20
|
-
import { ViewerEventService } from '../viewer-event.service';
|
|
21
|
-
var PdfViewerComponent = /** @class */ (function () {
|
|
22
|
-
function PdfViewerComponent(store, icpStore, pdfJsWrapperFactory, printService, toolbarEvents, viewerEvents, toolbarButtons) {
|
|
23
|
-
var _this = this;
|
|
24
|
-
this.store = store;
|
|
25
|
-
this.icpStore = icpStore;
|
|
26
|
-
this.pdfJsWrapperFactory = pdfJsWrapperFactory;
|
|
27
|
-
this.printService = printService;
|
|
28
|
-
this.toolbarEvents = toolbarEvents;
|
|
29
|
-
this.viewerEvents = viewerEvents;
|
|
30
|
-
this.toolbarButtons = toolbarButtons;
|
|
31
|
-
this.mediaLoadStatus = new EventEmitter();
|
|
32
|
-
this.pdfViewerException = new EventEmitter();
|
|
33
|
-
this.documentTitle = new EventEmitter();
|
|
34
|
-
this.pageHeights = [];
|
|
35
|
-
this.rotation = 0;
|
|
36
|
-
this.zoom = 1;
|
|
37
|
-
this.loadingDocument = false;
|
|
38
|
-
this.hasDifferentPageSize = false;
|
|
39
|
-
this.enableGrabNDrag = false;
|
|
40
|
-
this.highlightMode = toolbarEvents.highlightModeSubject.pipe(tap((/**
|
|
41
|
-
* @return {?}
|
|
42
|
-
*/
|
|
43
|
-
function () {
|
|
44
|
-
_this.store.dispatch(new fromTagActions.ClearFilterTags());
|
|
45
|
-
})));
|
|
46
|
-
this.drawMode = toolbarEvents.drawModeSubject;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* @return {?}
|
|
50
|
-
*/
|
|
51
|
-
PdfViewerComponent.prototype.ngAfterContentInit = /**
|
|
52
|
-
* @return {?}
|
|
53
|
-
*/
|
|
54
|
-
function () {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
56
|
-
var _this = this;
|
|
57
|
-
return __generator(this, function (_a) {
|
|
58
|
-
this.pdfWrapper.documentLoadProgress.subscribe((/**
|
|
59
|
-
* @param {?} v
|
|
60
|
-
* @return {?}
|
|
61
|
-
*/
|
|
62
|
-
function (v) { return _this.onDocumentLoadProgress(v); }));
|
|
63
|
-
this.pdfWrapper.documentLoaded.subscribe((/**
|
|
64
|
-
* @return {?}
|
|
65
|
-
*/
|
|
66
|
-
function () { return _this.onDocumentLoaded(); }));
|
|
67
|
-
this.pdfWrapper.documentLoadFailed.subscribe((/**
|
|
68
|
-
* @param {?} error
|
|
69
|
-
* @return {?}
|
|
70
|
-
*/
|
|
71
|
-
function (error) { return _this.onDocumentLoadFailed(error); }));
|
|
72
|
-
this.pdfWrapper.outlineLoaded.subscribe((/**
|
|
73
|
-
* @param {?} outline
|
|
74
|
-
* @return {?}
|
|
75
|
-
*/
|
|
76
|
-
function (outline) { return _this.documentOutline = outline; }));
|
|
77
|
-
this.pdfWrapper.pageRendered.subscribe((/**
|
|
78
|
-
* @param {?} event
|
|
79
|
-
* @return {?}
|
|
80
|
-
*/
|
|
81
|
-
function (event) { return _this.updatePages(event); }));
|
|
82
|
-
this.$subscription = this.toolbarEvents.printSubject
|
|
83
|
-
.subscribe((/**
|
|
84
|
-
* @return {?}
|
|
85
|
-
*/
|
|
86
|
-
function () { return _this.printService.printDocumentNatively(_this.url); }));
|
|
87
|
-
this.$subscription.add(this.toolbarEvents.downloadSubject.subscribe((/**
|
|
88
|
-
* @return {?}
|
|
89
|
-
*/
|
|
90
|
-
function () {
|
|
91
|
-
return _this.pdfWrapper.downloadFile(_this.downloadUrl || _this.url, _this.downloadFileName);
|
|
92
|
-
})));
|
|
93
|
-
this.$subscription.add(this.toolbarEvents.rotateSubject.subscribe((/**
|
|
94
|
-
* @param {?} rotate
|
|
95
|
-
* @return {?}
|
|
96
|
-
*/
|
|
97
|
-
function (rotate) { return _this.rotateDocument(rotate); })));
|
|
98
|
-
this.$subscription.add(this.toolbarEvents.zoomSubject.subscribe((/**
|
|
99
|
-
* @param {?} zoom
|
|
100
|
-
* @return {?}
|
|
101
|
-
*/
|
|
102
|
-
function (zoom) { return _this.setZoom(zoom); })));
|
|
103
|
-
this.$subscription.add(this.toolbarEvents.stepZoomSubject.subscribe((/**
|
|
104
|
-
* @param {?} zoom
|
|
105
|
-
* @return {?}
|
|
106
|
-
*/
|
|
107
|
-
function (zoom) { return _this.stepZoom(zoom); })));
|
|
108
|
-
this.$subscription.add(this.toolbarEvents.searchSubject.subscribe((/**
|
|
109
|
-
* @param {?} search
|
|
110
|
-
* @return {?}
|
|
111
|
-
*/
|
|
112
|
-
function (search) { return _this.pdfWrapper.search(search); })));
|
|
113
|
-
this.$subscription.add(this.toolbarEvents.setCurrentPageSubject.subscribe((/**
|
|
114
|
-
* @param {?} pageNumber
|
|
115
|
-
* @return {?}
|
|
116
|
-
*/
|
|
117
|
-
function (pageNumber) { return _this.pdfWrapper.setPageNumber(pageNumber); })));
|
|
118
|
-
this.$subscription.add(this.toolbarEvents.changePageByDeltaSubject.subscribe((/**
|
|
119
|
-
* @param {?} pageNumber
|
|
120
|
-
* @return {?}
|
|
121
|
-
*/
|
|
122
|
-
function (pageNumber) { return _this.pdfWrapper.changePageNumber(pageNumber); })));
|
|
123
|
-
this.$subscription.add(this.toolbarEvents.grabNDrag.subscribe((/**
|
|
124
|
-
* @param {?} grabNDrag
|
|
125
|
-
* @return {?}
|
|
126
|
-
*/
|
|
127
|
-
function (grabNDrag) { return _this.enableGrabNDrag = grabNDrag; })));
|
|
128
|
-
this.$subscription.add(this.toolbarEvents.commentsPanelVisible.subscribe((/**
|
|
129
|
-
* @param {?} toggle
|
|
130
|
-
* @return {?}
|
|
131
|
-
*/
|
|
132
|
-
function (toggle) {
|
|
133
|
-
_this.showCommentsPanel = toggle;
|
|
134
|
-
})));
|
|
135
|
-
this.$subscription.add(this.viewerEvents.navigationEvent.subscribe((/**
|
|
136
|
-
* @param {?} dest
|
|
137
|
-
* @return {?}
|
|
138
|
-
*/
|
|
139
|
-
function (dest) { return _this.goToDestination(dest); })));
|
|
140
|
-
this.$subscription.add(this.toolbarEvents.icp.participantsListVisible.subscribe((/**
|
|
141
|
-
* @param {?} toggle
|
|
142
|
-
* @return {?}
|
|
143
|
-
*/
|
|
144
|
-
function (toggle) { return _this.showIcpParticipantsList = toggle; })));
|
|
145
|
-
this.$subscription.add(this.pdfWrapper.positionUpdated.asObservable()
|
|
146
|
-
.pipe(throttleTime(500, asyncScheduler, { leading: true, trailing: true }))
|
|
147
|
-
.subscribe((/**
|
|
148
|
-
* @param {?} event
|
|
149
|
-
* @return {?}
|
|
150
|
-
*/
|
|
151
|
-
function (event) { return _this.store.dispatch(new PdfPositionUpdate(event.location)); })));
|
|
152
|
-
return [2 /*return*/];
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* @param {?} changes
|
|
158
|
-
* @return {?}
|
|
159
|
-
*/
|
|
160
|
-
PdfViewerComponent.prototype.ngOnChanges = /**
|
|
161
|
-
* @param {?} changes
|
|
162
|
-
* @return {?}
|
|
163
|
-
*/
|
|
164
|
-
function (changes) {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
-
var _this = this;
|
|
167
|
-
return __generator(this, function (_a) {
|
|
168
|
-
switch (_a.label) {
|
|
169
|
-
case 0:
|
|
170
|
-
if (!this.pdfWrapper) {
|
|
171
|
-
this.pdfWrapper = this.pdfJsWrapperFactory.create(this.viewerContainer);
|
|
172
|
-
}
|
|
173
|
-
if (!(changes.url && this.pdfWrapper)) return [3 /*break*/, 2];
|
|
174
|
-
return [4 /*yield*/, this.loadDocument()];
|
|
175
|
-
case 1:
|
|
176
|
-
_a.sent();
|
|
177
|
-
if (this.enableRedactions) {
|
|
178
|
-
this.toolbarEvents.redactionMode.pipe(filter((/**
|
|
179
|
-
* @param {?} value
|
|
180
|
-
* @return {?}
|
|
181
|
-
*/
|
|
182
|
-
function (value) { return !!value; })))
|
|
183
|
-
.subscribe((/**
|
|
184
|
-
* @return {?}
|
|
185
|
-
*/
|
|
186
|
-
function () { return _this.resetRotation(); }));
|
|
187
|
-
}
|
|
188
|
-
_a.label = 2;
|
|
189
|
-
case 2:
|
|
190
|
-
if (changes.caseId) {
|
|
191
|
-
this.icpStore.dispatch(new SetCaseId(this.caseId));
|
|
192
|
-
}
|
|
193
|
-
return [2 /*return*/];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* @return {?}
|
|
200
|
-
*/
|
|
201
|
-
PdfViewerComponent.prototype.resetRotation = /**
|
|
202
|
-
* @return {?}
|
|
203
|
-
*/
|
|
204
|
-
function () {
|
|
205
|
-
if (this.hasDifferentPageSize) {
|
|
206
|
-
this.pdfWrapper.resetRotation(0);
|
|
207
|
-
this.rotation = 0;
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
/**
|
|
211
|
-
* @return {?}
|
|
212
|
-
*/
|
|
213
|
-
PdfViewerComponent.prototype.ngOnDestroy = /**
|
|
214
|
-
* @return {?}
|
|
215
|
-
*/
|
|
216
|
-
function () {
|
|
217
|
-
this.$subscription.unsubscribe();
|
|
218
|
-
};
|
|
219
|
-
/**
|
|
220
|
-
* @private
|
|
221
|
-
* @return {?}
|
|
222
|
-
*/
|
|
223
|
-
PdfViewerComponent.prototype.loadDocument = /**
|
|
224
|
-
* @private
|
|
225
|
-
* @return {?}
|
|
226
|
-
*/
|
|
227
|
-
function () {
|
|
228
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
229
|
-
var _this = this;
|
|
230
|
-
return __generator(this, function (_a) {
|
|
231
|
-
switch (_a.label) {
|
|
232
|
-
case 0:
|
|
233
|
-
this.initDocumentProgress();
|
|
234
|
-
return [4 /*yield*/, this.pdfWrapper.loadDocument(this.url)];
|
|
235
|
-
case 1:
|
|
236
|
-
_a.sent();
|
|
237
|
-
this.documentTitle.emit(this.pdfWrapper.getCurrentPDFTitle());
|
|
238
|
-
this.setPageHeights();
|
|
239
|
-
this.$subscription.add(this.store.pipe(select(fromDocumentsSelector.getPageDifference))
|
|
240
|
-
.subscribe((/**
|
|
241
|
-
* @param {?} hasDifferentPageSie
|
|
242
|
-
* @return {?}
|
|
243
|
-
*/
|
|
244
|
-
function (hasDifferentPageSie) { return _this.hasDifferentPageSize = hasDifferentPageSie; })));
|
|
245
|
-
return [2 /*return*/];
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
});
|
|
249
|
-
};
|
|
250
|
-
/**
|
|
251
|
-
* @private
|
|
252
|
-
* @param {?} progress
|
|
253
|
-
* @return {?}
|
|
254
|
-
*/
|
|
255
|
-
PdfViewerComponent.prototype.onDocumentLoadProgress = /**
|
|
256
|
-
* @private
|
|
257
|
-
* @param {?} progress
|
|
258
|
-
* @return {?}
|
|
259
|
-
*/
|
|
260
|
-
function (progress) {
|
|
261
|
-
if (progress.total) {
|
|
262
|
-
this.loadingDocumentProgress = Math.min(100, Math.ceil(progress.loaded / progress.total * 100));
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
/**
|
|
266
|
-
* @private
|
|
267
|
-
* @return {?}
|
|
268
|
-
*/
|
|
269
|
-
PdfViewerComponent.prototype.onDocumentLoaded = /**
|
|
270
|
-
* @private
|
|
271
|
-
* @return {?}
|
|
272
|
-
*/
|
|
273
|
-
function () {
|
|
274
|
-
this.loadingDocument = false;
|
|
275
|
-
this.mediaLoadStatus.emit(ResponseType.SUCCESS);
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* @private
|
|
279
|
-
* @param {?} error
|
|
280
|
-
* @return {?}
|
|
281
|
-
*/
|
|
282
|
-
PdfViewerComponent.prototype.onDocumentLoadFailed = /**
|
|
283
|
-
* @private
|
|
284
|
-
* @param {?} error
|
|
285
|
-
* @return {?}
|
|
286
|
-
*/
|
|
287
|
-
function (error) {
|
|
288
|
-
this.loadingDocument = false;
|
|
289
|
-
this.viewerException = new ViewerException(error.name, { message: error.message });
|
|
290
|
-
this.errorMessage = "Could not load the document \"" + this.url + "\"";
|
|
291
|
-
this.mediaLoadStatus.emit(ResponseType.FAILURE);
|
|
292
|
-
this.pdfViewerException.emit(this.viewerException);
|
|
293
|
-
};
|
|
294
|
-
/**
|
|
295
|
-
* @private
|
|
296
|
-
* @param {?} event
|
|
297
|
-
* @return {?}
|
|
298
|
-
*/
|
|
299
|
-
PdfViewerComponent.prototype.updatePages = /**
|
|
300
|
-
* @private
|
|
301
|
-
* @param {?} event
|
|
302
|
-
* @return {?}
|
|
303
|
-
*/
|
|
304
|
-
function (event) {
|
|
305
|
-
if (this.enableAnnotations) {
|
|
306
|
-
this.store.dispatch(new fromDocumentActions.AddPages(event));
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
Object.defineProperty(PdfViewerComponent.prototype, "searchBarHidden", {
|
|
310
|
-
set: /**
|
|
311
|
-
* @param {?} hidden
|
|
312
|
-
* @return {?}
|
|
313
|
-
*/
|
|
314
|
-
function (hidden) {
|
|
315
|
-
if (this.pdfWrapper && hidden) {
|
|
316
|
-
this.pdfWrapper.clearSearch();
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
enumerable: true,
|
|
320
|
-
configurable: true
|
|
321
|
-
});
|
|
322
|
-
/**
|
|
323
|
-
* @return {?}
|
|
324
|
-
*/
|
|
325
|
-
PdfViewerComponent.prototype.toggleCommentsSummary = /**
|
|
326
|
-
* @return {?}
|
|
327
|
-
*/
|
|
328
|
-
function () {
|
|
329
|
-
this.toolbarEvents.toggleCommentsSummary(!this.toolbarEvents.showCommentSummary.getValue());
|
|
330
|
-
};
|
|
331
|
-
/**
|
|
332
|
-
* @private
|
|
333
|
-
* @param {?} rotation
|
|
334
|
-
* @return {?}
|
|
335
|
-
*/
|
|
336
|
-
PdfViewerComponent.prototype.rotateDocument = /**
|
|
337
|
-
* @private
|
|
338
|
-
* @param {?} rotation
|
|
339
|
-
* @return {?}
|
|
340
|
-
*/
|
|
341
|
-
function (rotation) {
|
|
342
|
-
/** @type {?} */
|
|
343
|
-
var pageNumber = this.pdfWrapper.getPageNumber();
|
|
344
|
-
this.pdfWrapper.rotate(rotation);
|
|
345
|
-
this.pdfWrapper.setPageNumber(pageNumber);
|
|
346
|
-
this.rotation = (this.rotation + rotation) % 360;
|
|
347
|
-
this.setPageHeights();
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* @private
|
|
351
|
-
* @return {?}
|
|
352
|
-
*/
|
|
353
|
-
PdfViewerComponent.prototype.initDocumentProgress = /**
|
|
354
|
-
* @private
|
|
355
|
-
* @return {?}
|
|
356
|
-
*/
|
|
357
|
-
function () {
|
|
358
|
-
this.loadingDocument = true;
|
|
359
|
-
this.loadingDocumentProgress = null;
|
|
360
|
-
this.errorMessage = null;
|
|
361
|
-
};
|
|
362
|
-
/**
|
|
363
|
-
* @private
|
|
364
|
-
* @param {?} zoomFactor
|
|
365
|
-
* @return {?}
|
|
366
|
-
*/
|
|
367
|
-
PdfViewerComponent.prototype.setZoom = /**
|
|
368
|
-
* @private
|
|
369
|
-
* @param {?} zoomFactor
|
|
370
|
-
* @return {?}
|
|
371
|
-
*/
|
|
372
|
-
function (zoomFactor) {
|
|
373
|
-
if (!isNaN(zoomFactor)) {
|
|
374
|
-
this.pdfWrapper.setZoom(zoomFactor);
|
|
375
|
-
this.zoom = this.calculateZoomValue(zoomFactor);
|
|
376
|
-
this.setPageHeights();
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* @private
|
|
381
|
-
* @param {?} zoomFactor
|
|
382
|
-
* @return {?}
|
|
383
|
-
*/
|
|
384
|
-
PdfViewerComponent.prototype.stepZoom = /**
|
|
385
|
-
* @private
|
|
386
|
-
* @param {?} zoomFactor
|
|
387
|
-
* @return {?}
|
|
388
|
-
*/
|
|
389
|
-
function (zoomFactor) {
|
|
390
|
-
if (!isNaN(zoomFactor)) {
|
|
391
|
-
this.pdfWrapper.stepZoom(zoomFactor);
|
|
392
|
-
this.zoom = this.calculateZoomValue(this.zoom, zoomFactor);
|
|
393
|
-
this.setPageHeights();
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
/**
|
|
397
|
-
* @return {?}
|
|
398
|
-
*/
|
|
399
|
-
PdfViewerComponent.prototype.setPageHeights = /**
|
|
400
|
-
* @return {?}
|
|
401
|
-
*/
|
|
402
|
-
function () {
|
|
403
|
-
this.pageHeights = [];
|
|
404
|
-
/** @type {?} */
|
|
405
|
-
var pdfViewerChildren = this.pdfViewer.nativeElement.children;
|
|
406
|
-
for (var i = 0; i < pdfViewerChildren.length; i++) {
|
|
407
|
-
this.pageHeights.push(pdfViewerChildren[i].clientHeight);
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
/**
|
|
411
|
-
* @param {?} zoomValue
|
|
412
|
-
* @param {?=} increment
|
|
413
|
-
* @return {?}
|
|
414
|
-
*/
|
|
415
|
-
PdfViewerComponent.prototype.calculateZoomValue = /**
|
|
416
|
-
* @param {?} zoomValue
|
|
417
|
-
* @param {?=} increment
|
|
418
|
-
* @return {?}
|
|
419
|
-
*/
|
|
420
|
-
function (zoomValue, increment) {
|
|
421
|
-
if (increment === void 0) { increment = 0; }
|
|
422
|
-
/** @type {?} */
|
|
423
|
-
var newZoomValue = zoomValue + increment;
|
|
424
|
-
if (newZoomValue > 5) {
|
|
425
|
-
return 5;
|
|
426
|
-
}
|
|
427
|
-
if (newZoomValue < 0.1) {
|
|
428
|
-
return 0.1;
|
|
429
|
-
}
|
|
430
|
-
return +newZoomValue.toFixed(2);
|
|
431
|
-
};
|
|
432
|
-
/**
|
|
433
|
-
* @private
|
|
434
|
-
* @param {?} destination
|
|
435
|
-
* @return {?}
|
|
436
|
-
*/
|
|
437
|
-
PdfViewerComponent.prototype.goToDestination = /**
|
|
438
|
-
* @private
|
|
439
|
-
* @param {?} destination
|
|
440
|
-
* @return {?}
|
|
441
|
-
*/
|
|
442
|
-
function (destination) {
|
|
443
|
-
this.pdfWrapper.navigateTo(destination);
|
|
444
|
-
};
|
|
445
|
-
PdfViewerComponent.decorators = [
|
|
446
|
-
{ type: Component, args: [{
|
|
447
|
-
selector: 'mv-pdf-viewer',
|
|
448
|
-
template: "<mv-side-bar *ngIf=\"toolbarEvents.sidebarOpen\"\n id=\"sidebarContainer\"\n [url]=\"url\"\n [zoom]=\"zoom\"\n [rotate]=\"rotation\"\n [outline]=\"documentOutline\"\n [annotationsEnabled]=\"enableAnnotations\">\n</mv-side-bar>\n<mv-comment-set-header\n *ngIf=\"enableAnnotations\"\n [ngClass]=\"{'show-comments-panel': showCommentsPanel}\"\n [showCommentSummary]=\"toolbarButtons.showCommentSummary\"\n (showCommentSummaryDialog)=\"toggleCommentsSummary()\">\n</mv-comment-set-header>\n<mv-participants-list></mv-participants-list>\n<div\n class=\"pdfContainer\"\n [ngStyle]=\"{ height: height }\"\n [ngClass]=\"{ 'pdfContainer': true, hidden: errorMessage }\">\n <div\n #viewerContainer\n mvGrabNDrag\n [dragX]=\"viewerContainer\"\n [dragEnabled]=\"enableGrabNDrag\"\n id=\"viewerContainer\"\n class=\"viewer-container\"\n [class.annotations]=\"enableAnnotations\"\n [class.show-comments-panel]=\"(showCommentsPanel || showIcpParticipantsList) && !(toolbarEvents.redactionMode | async)\"\n [class.grabNDrag]=\"enableGrabNDrag\">\n <div #pdfViewer\n class=\"pdfViewer\"\n mvCreateTextHighlight\n [ngClass]=\"{ hidden: loadingDocument, highlightMode: highlightMode | async, drawMode: drawMode | async }\">\n </div>\n <mv-redactions *ngIf=\"(toolbarEvents.redactionMode | async); else annotationTemplate\"\n [zoom]=\"zoom\"\n [rotate]=\"rotation\"\n ></mv-redactions>\n <ng-template #annotationTemplate>\n <mv-metadata-layer\n *ngIf=\"enableAnnotations && annotationSet\"\n [zoom]=\"zoom\"\n [rotate]=\"rotation\">\n </mv-metadata-layer>\n <mv-bookmark-icons [zoom]=\"zoom\"\n [rotate]=\"rotation\">\n </mv-bookmark-icons>\n </ng-template>\n </div>\n <mv-comment-set [contentScrollTop]=\"viewerContainer.scrollTop\"\n *ngIf=\"enableAnnotations && annotationSet && !(toolbarEvents.redactionMode | async)\"\n [annotationSet]=\"annotationSet\"\n [zoom]=\"zoom\"\n [rotate]=\"rotation\"\n [height]=\"pdfViewer.offsetHeight\"\n [pageHeights]=\"pageHeights\">\n </mv-comment-set>\n <div class=\"loadingMessage\" *ngIf=\"loadingDocument\">\n <h3 class=\"govuk-heading-m\">Loading...{{ loadingDocumentProgress ? loadingDocumentProgress + '%' : '' }}</h3>\n </div>\n</div>\n",
|
|
449
|
-
encapsulation: ViewEncapsulation.None
|
|
450
|
-
}] }
|
|
451
|
-
];
|
|
452
|
-
/** @nocollapse */
|
|
453
|
-
PdfViewerComponent.ctorParameters = function () { return [
|
|
454
|
-
{ type: Store },
|
|
455
|
-
{ type: Store },
|
|
456
|
-
{ type: PdfJsWrapperFactory },
|
|
457
|
-
{ type: PrintService },
|
|
458
|
-
{ type: ToolbarEventService },
|
|
459
|
-
{ type: ViewerEventService },
|
|
460
|
-
{ type: ToolbarButtonVisibilityService }
|
|
461
|
-
]; };
|
|
462
|
-
PdfViewerComponent.propDecorators = {
|
|
463
|
-
mediaLoadStatus: [{ type: Output }],
|
|
464
|
-
pdfViewerException: [{ type: Output }],
|
|
465
|
-
documentTitle: [{ type: Output }],
|
|
466
|
-
downloadUrl: [{ type: Input }],
|
|
467
|
-
url: [{ type: Input }],
|
|
468
|
-
downloadFileName: [{ type: Input }],
|
|
469
|
-
enableAnnotations: [{ type: Input }],
|
|
470
|
-
enableRedactions: [{ type: Input }],
|
|
471
|
-
enableICP: [{ type: Input }],
|
|
472
|
-
annotationSet: [{ type: Input }],
|
|
473
|
-
height: [{ type: Input }],
|
|
474
|
-
caseId: [{ type: Input }],
|
|
475
|
-
viewerContainer: [{ type: ViewChild, args: ['viewerContainer', { static: true },] }],
|
|
476
|
-
pdfViewer: [{ type: ViewChild, args: ['pdfViewer', { static: false },] }],
|
|
477
|
-
searchBarHidden: [{ type: Input }]
|
|
478
|
-
};
|
|
479
|
-
return PdfViewerComponent;
|
|
480
|
-
}());
|
|
481
|
-
export { PdfViewerComponent };
|
|
482
|
-
if (false) {
|
|
483
|
-
/** @type {?} */
|
|
484
|
-
PdfViewerComponent.prototype.mediaLoadStatus;
|
|
485
|
-
/** @type {?} */
|
|
486
|
-
PdfViewerComponent.prototype.pdfViewerException;
|
|
487
|
-
/** @type {?} */
|
|
488
|
-
PdfViewerComponent.prototype.documentTitle;
|
|
489
|
-
/** @type {?} */
|
|
490
|
-
PdfViewerComponent.prototype.downloadUrl;
|
|
491
|
-
/** @type {?} */
|
|
492
|
-
PdfViewerComponent.prototype.url;
|
|
493
|
-
/** @type {?} */
|
|
494
|
-
PdfViewerComponent.prototype.downloadFileName;
|
|
495
|
-
/** @type {?} */
|
|
496
|
-
PdfViewerComponent.prototype.enableAnnotations;
|
|
497
|
-
/** @type {?} */
|
|
498
|
-
PdfViewerComponent.prototype.enableRedactions;
|
|
499
|
-
/** @type {?} */
|
|
500
|
-
PdfViewerComponent.prototype.enableICP;
|
|
501
|
-
/** @type {?} */
|
|
502
|
-
PdfViewerComponent.prototype.annotationSet;
|
|
503
|
-
/** @type {?} */
|
|
504
|
-
PdfViewerComponent.prototype.height;
|
|
505
|
-
/** @type {?} */
|
|
506
|
-
PdfViewerComponent.prototype.pageHeights;
|
|
507
|
-
/** @type {?} */
|
|
508
|
-
PdfViewerComponent.prototype.rotation;
|
|
509
|
-
/** @type {?} */
|
|
510
|
-
PdfViewerComponent.prototype.zoom;
|
|
511
|
-
/** @type {?} */
|
|
512
|
-
PdfViewerComponent.prototype.caseId;
|
|
513
|
-
/** @type {?} */
|
|
514
|
-
PdfViewerComponent.prototype.highlightMode;
|
|
515
|
-
/** @type {?} */
|
|
516
|
-
PdfViewerComponent.prototype.drawMode;
|
|
517
|
-
/** @type {?} */
|
|
518
|
-
PdfViewerComponent.prototype.documentOutline;
|
|
519
|
-
/** @type {?} */
|
|
520
|
-
PdfViewerComponent.prototype.loadingDocument;
|
|
521
|
-
/** @type {?} */
|
|
522
|
-
PdfViewerComponent.prototype.loadingDocumentProgress;
|
|
523
|
-
/** @type {?} */
|
|
524
|
-
PdfViewerComponent.prototype.errorMessage;
|
|
525
|
-
/** @type {?} */
|
|
526
|
-
PdfViewerComponent.prototype.hasDifferentPageSize;
|
|
527
|
-
/** @type {?} */
|
|
528
|
-
PdfViewerComponent.prototype.viewerContainer;
|
|
529
|
-
/** @type {?} */
|
|
530
|
-
PdfViewerComponent.prototype.pdfViewer;
|
|
531
|
-
/**
|
|
532
|
-
* @type {?}
|
|
533
|
-
* @private
|
|
534
|
-
*/
|
|
535
|
-
PdfViewerComponent.prototype.pdfWrapper;
|
|
536
|
-
/**
|
|
537
|
-
* @type {?}
|
|
538
|
-
* @private
|
|
539
|
-
*/
|
|
540
|
-
PdfViewerComponent.prototype.$subscription;
|
|
541
|
-
/**
|
|
542
|
-
* @type {?}
|
|
543
|
-
* @private
|
|
544
|
-
*/
|
|
545
|
-
PdfViewerComponent.prototype.viewerException;
|
|
546
|
-
/** @type {?} */
|
|
547
|
-
PdfViewerComponent.prototype.showCommentsPanel;
|
|
548
|
-
/** @type {?} */
|
|
549
|
-
PdfViewerComponent.prototype.showIcpParticipantsList;
|
|
550
|
-
/** @type {?} */
|
|
551
|
-
PdfViewerComponent.prototype.enableGrabNDrag;
|
|
552
|
-
/**
|
|
553
|
-
* @type {?}
|
|
554
|
-
* @private
|
|
555
|
-
*/
|
|
556
|
-
PdfViewerComponent.prototype.store;
|
|
557
|
-
/**
|
|
558
|
-
* @type {?}
|
|
559
|
-
* @private
|
|
560
|
-
*/
|
|
561
|
-
PdfViewerComponent.prototype.icpStore;
|
|
562
|
-
/**
|
|
563
|
-
* @type {?}
|
|
564
|
-
* @private
|
|
565
|
-
*/
|
|
566
|
-
PdfViewerComponent.prototype.pdfJsWrapperFactory;
|
|
567
|
-
/**
|
|
568
|
-
* @type {?}
|
|
569
|
-
* @private
|
|
570
|
-
*/
|
|
571
|
-
PdfViewerComponent.prototype.printService;
|
|
572
|
-
/** @type {?} */
|
|
573
|
-
PdfViewerComponent.prototype.toolbarEvents;
|
|
574
|
-
/**
|
|
575
|
-
* @type {?}
|
|
576
|
-
* @private
|
|
577
|
-
*/
|
|
578
|
-
PdfViewerComponent.prototype.viewerEvents;
|
|
579
|
-
/** @type {?} */
|
|
580
|
-
PdfViewerComponent.prototype.toolbarButtons;
|
|
581
|
-
}
|
|
582
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGRmLXZpZXdlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvbWVkaWEtdmlld2VyLyIsInNvdXJjZXMiOlsibGliL3ZpZXdlcnMvcGRmLXZpZXdlci9wZGYtdmlld2VyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFFTCxTQUFTLEVBQ1QsVUFBVSxFQUNWLFlBQVksRUFDWixLQUFLLEVBR0wsTUFBTSxFQUVOLFNBQVMsRUFDVCxpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGNBQWMsRUFBNkMsTUFBTSxNQUFNLENBQUM7QUFDakYsT0FBTyxFQUFFLE1BQU0sRUFBRSxHQUFHLEVBQUUsWUFBWSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDM0QsT0FBTyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFHNUMsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFFdkUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0scUNBQXFDLENBQUM7QUFDMUUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQ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