@hmcts/media-viewer 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.mjs +116 -0
- package/esm2020/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.mjs +109 -0
- package/{esm2022 → esm2020}/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.mjs +5 -5
- package/esm2020/lib/annotations/annotation-set/annotation-set.component.mjs +50 -0
- package/esm2020/lib/annotations/annotation-set/annotation-view/annotation-view.component.mjs +94 -0
- package/esm2020/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.mjs +116 -0
- package/esm2020/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.mjs +118 -0
- package/esm2020/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.mjs +86 -0
- package/{esm2022 → esm2020}/lib/annotations/annotations.module.mjs +61 -61
- package/esm2020/lib/annotations/comment-set/comment/comment.component.mjs +177 -0
- package/esm2020/lib/annotations/comment-set/comment/comment.service.mjs +50 -0
- package/esm2020/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.mjs +47 -0
- package/{esm2022 → esm2020}/lib/annotations/comment-set/comment/textarea-auto-expand/textarea-auto-expand.directive.mjs +5 -5
- package/esm2020/lib/annotations/comment-set/comment-navigate/comments-navigate.component.mjs +91 -0
- package/{esm2022 → esm2020}/lib/annotations/comment-set/comment-set-header/comment-filter/comment-filter.component.mjs +5 -5
- package/esm2020/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.mjs +54 -0
- package/esm2020/lib/annotations/comment-set/comment-set-header/comment-set-header.component.mjs +68 -0
- package/esm2020/lib/annotations/comment-set/comment-set-render.service.mjs +54 -0
- package/esm2020/lib/annotations/comment-set/comment-set.component.mjs +123 -0
- package/esm2020/lib/annotations/comments-summary/comments-summary.component.mjs +120 -0
- package/{esm2022 → esm2020}/lib/annotations/pipes/date/date.pipe.mjs +4 -4
- package/esm2020/lib/annotations/pipes/filter/filter.pipe.mjs +32 -0
- package/{esm2022 → esm2020}/lib/annotations/pipes/unsnake/unsnake.pipe.mjs +4 -4
- package/{esm2022 → esm2020}/lib/annotations/services/annotation-api/annotation-api.service.mjs +5 -5
- package/{esm2022 → esm2020}/lib/annotations/services/bookmarks-api/bookmarks-api.service.mjs +5 -5
- package/{esm2022 → esm2020}/lib/annotations/services/tags/tags.services.mjs +5 -5
- package/esm2020/lib/annotations/tags/tags.component.mjs +53 -0
- package/{esm2022 → esm2020}/lib/bookmark/components/bookmark-icons.component.mjs +5 -5
- package/{esm2022 → esm2020}/lib/icp/confirm-exit/confirm-action-dialog.component.mjs +5 -5
- package/esm2020/lib/icp/icp-follower.service.mjs +60 -0
- package/esm2020/lib/icp/icp-presenter.service.mjs +55 -0
- package/esm2020/lib/icp/icp-session-api.service.mjs +21 -0
- package/esm2020/lib/icp/icp-update.service.mjs +65 -0
- package/{esm2022 → esm2020}/lib/icp/icp.interfaces.mjs +1 -1
- package/esm2020/lib/icp/icp.service.mjs +95 -0
- package/{esm2022 → esm2020}/lib/icp/participants-list/participants-list.component.mjs +5 -5
- package/esm2020/lib/icp/socket.service.mjs +118 -0
- package/esm2020/lib/media-viewer.component.mjs +245 -0
- package/{esm2022 → esm2020}/lib/media-viewer.module.mjs +55 -55
- package/{esm2022 → esm2020}/lib/print.service.mjs +4 -4
- package/esm2020/lib/redaction/components/redaction.component.mjs +91 -0
- package/{esm2022 → esm2020}/lib/redaction/services/redaction-api.service.mjs +5 -5
- package/{esm2022 → esm2020}/lib/shared/gov-uk-date/gov-uk-date.component.mjs +4 -4
- package/{esm2022 → esm2020}/lib/shared/gov-uk-error-message/gov-uk-error-message.component.mjs +7 -7
- package/{esm2022 → esm2020}/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.mjs +6 -6
- package/{esm2022 → esm2020}/lib/shared/gov-uk-label/gov-uk-label.component.mjs +7 -7
- package/{esm2022 → esm2020}/lib/shared/shared.module.mjs +19 -19
- package/esm2020/lib/shared/util/helpers/html-templates.helper.mjs +18 -0
- package/{esm2022 → esm2020}/lib/shared/util/services/number.helper.service.mjs +5 -5
- package/esm2020/lib/store/actions/icp.actions.mjs +56 -0
- package/esm2020/lib/store/bookmarks-store-utils.mjs +49 -0
- package/esm2020/lib/store/effects/annotation.effects.mjs +51 -0
- package/{esm2022 → esm2020}/lib/store/effects/bookmarks.effects.mjs +5 -5
- package/{esm2022 → esm2020}/lib/store/effects/document.effects.mjs +5 -5
- package/esm2020/lib/store/effects/icp.effects.mjs +26 -0
- package/{esm2022 → esm2020}/lib/store/effects/redaction.effects.mjs +5 -5
- package/esm2020/lib/store/reducers/annotations.reducer.mjs +208 -0
- package/esm2020/lib/store/reducers/bookmarks.reducer.mjs +116 -0
- package/esm2020/lib/store/reducers/document.reducer.mjs +135 -0
- package/esm2020/lib/store/reducers/icp.reducer.mjs +56 -0
- package/esm2020/lib/store/reducers/redaction.reducer.mjs +116 -0
- package/esm2020/lib/store/reducers/tags.reducer.mjs +93 -0
- package/esm2020/lib/store/selectors/annotation.selectors.mjs +81 -0
- package/{esm2022 → esm2020}/lib/store/selectors/bookmark.selectors.mjs +1 -1
- package/{esm2022 → esm2020}/lib/store/selectors/redaction.selectors.mjs +1 -1
- package/esm2020/lib/store/store-utils.mjs +131 -0
- package/esm2020/lib/toolbar/highlight-toolbar/highlight-toolbar.component.mjs +44 -0
- package/{esm2022 → esm2020}/lib/toolbar/icp-event.service.mjs +1 -1
- package/{esm2022 → esm2020}/lib/toolbar/icp-toolbar/icp-toolbar.component.mjs +5 -5
- package/esm2020/lib/toolbar/main-toolbar/main-toolbar.component.mjs +189 -0
- package/esm2020/lib/toolbar/redaction-search-bar/redaction-search-bar.component.mjs +236 -0
- package/esm2020/lib/toolbar/redaction-toolbar/redaction-toolbar.component.mjs +68 -0
- package/esm2020/lib/toolbar/search-bar/search-bar.component.mjs +109 -0
- package/esm2020/lib/toolbar/toolbar-button-visibility.service.mjs +94 -0
- package/esm2020/lib/toolbar/toolbar-event.service.mjs +178 -0
- package/{esm2022 → esm2020}/lib/toolbar/toolbar.module.mjs +25 -25
- package/esm2020/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.mjs +82 -0
- package/{esm2022 → esm2020}/lib/viewers/convertible-content-viewer/document-conversion-api.service.mjs +5 -5
- package/esm2020/lib/viewers/grab-n-drag.directive.mjs +57 -0
- package/esm2020/lib/viewers/image-viewer/image-viewer.component.mjs +166 -0
- package/esm2020/lib/viewers/multimedia-player/multimedia-player.component.mjs +59 -0
- package/esm2020/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.mjs +209 -0
- package/{esm2022 → esm2020}/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.provider.mjs +5 -5
- package/esm2020/lib/viewers/pdf-viewer/pdf-viewer.component.mjs +236 -0
- package/esm2020/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.mjs +352 -0
- package/esm2020/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.mjs +49 -0
- package/{esm2022 → esm2020}/lib/viewers/pdf-viewer/side-bar/side-bar.component.mjs +5 -5
- package/{esm2022 → esm2020}/lib/viewers/rotation-persist/rotation-api.service.mjs +5 -5
- package/esm2020/lib/viewers/rotation-persist/rotation-persist.directive.mjs +61 -0
- package/esm2020/lib/viewers/unsupported-viewer/unsupported-viewer.component.mjs +49 -0
- package/{esm2022 → esm2020}/lib/viewers/viewer-event.service.mjs +5 -5
- package/{esm2022 → esm2020}/lib/viewers/viewer-util.service.mjs +5 -5
- package/fesm2015/hmcts-media-viewer.mjs +6953 -0
- package/fesm2015/hmcts-media-viewer.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/hmcts-media-viewer.mjs +461 -451
- package/fesm2020/hmcts-media-viewer.mjs.map +1 -0
- package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts +1 -1
- package/lib/annotations/annotation-set/annotation-set.component.d.ts +1 -1
- package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts +1 -1
- package/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.d.ts +1 -1
- package/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.d.ts +1 -1
- package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts +1 -1
- package/lib/annotations/comment-set/comment/comment.component.d.ts +1 -1
- package/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.d.ts +1 -1
- package/lib/annotations/comment-set/comment-navigate/comments-navigate.component.d.ts +1 -1
- package/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.d.ts +1 -1
- package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts +1 -1
- package/lib/annotations/comment-set/comment-set.component.d.ts +1 -1
- package/lib/annotations/comments-summary/comments-summary.component.d.ts +1 -1
- package/lib/annotations/tags/tags.component.d.ts +1 -1
- package/lib/bookmark/components/bookmark-icons.component.d.ts +1 -1
- package/lib/icp/icp-session-api.service.d.ts +4 -1
- package/lib/icp/icp-session-api.service.d.ts.map +1 -1
- package/lib/icp/icp-update.service.d.ts.map +1 -1
- package/lib/icp/icp.interfaces.d.ts +1 -0
- package/lib/icp/icp.interfaces.d.ts.map +1 -1
- package/lib/icp/icp.service.d.ts +1 -0
- package/lib/icp/icp.service.d.ts.map +1 -1
- package/lib/icp/socket.service.d.ts +6 -6
- package/lib/icp/socket.service.d.ts.map +1 -1
- package/lib/media-viewer.component.d.ts +2 -1
- package/lib/media-viewer.component.d.ts.map +1 -1
- package/lib/redaction/components/redaction.component.d.ts +1 -1
- package/lib/shared/gov-uk-date/gov-uk-date.component.d.ts +1 -1
- package/lib/shared/gov-uk-error-message/gov-uk-error-message.component.d.ts +1 -1
- package/lib/shared/gov-uk-fieldset/gov-uk-fieldset.component.d.ts +1 -1
- package/lib/shared/gov-uk-label/gov-uk-label.component.d.ts +1 -1
- package/lib/store/actions/icp.actions.d.ts +8 -2
- package/lib/store/actions/icp.actions.d.ts.map +1 -1
- package/lib/store/bookmarks-store-utils.d.ts.map +1 -1
- package/lib/store/effects/icp.effects.d.ts.map +1 -1
- package/lib/toolbar/icp-event.service.d.ts +4 -4
- package/lib/toolbar/icp-event.service.d.ts.map +1 -1
- package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts +1 -1
- package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts +1 -1
- package/lib/toolbar/toolbar-event.service.d.ts +6 -6
- package/lib/toolbar/toolbar-event.service.d.ts.map +1 -1
- package/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.d.ts +1 -1
- package/lib/viewers/grab-n-drag.directive.d.ts +1 -1
- package/lib/viewers/image-viewer/image-viewer.component.d.ts +1 -1
- package/lib/viewers/multimedia-player/multimedia-player.component.d.ts +1 -1
- package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts +1 -1
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts +1 -1
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts +1 -1
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts +1 -1
- package/lib/viewers/unsupported-viewer/unsupported-viewer.component.d.ts +1 -1
- package/lib/viewers/viewer-event.service.d.ts +1 -1
- package/lib/viewers/viewer-event.service.d.ts.map +1 -1
- package/package.json +23 -16
- package/esm2022/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.mjs +0 -116
- package/esm2022/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.mjs +0 -109
- package/esm2022/lib/annotations/annotation-set/annotation-set.component.mjs +0 -50
- package/esm2022/lib/annotations/annotation-set/annotation-view/annotation-view.component.mjs +0 -94
- package/esm2022/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.component.mjs +0 -116
- package/esm2022/lib/annotations/annotation-set/ctx-toolbar/ctx-toolbar.component.mjs +0 -118
- package/esm2022/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.mjs +0 -86
- package/esm2022/lib/annotations/comment-set/comment/comment.component.mjs +0 -177
- package/esm2022/lib/annotations/comment-set/comment/comment.service.mjs +0 -50
- package/esm2022/lib/annotations/comment-set/comment/text-highlight/text-highlight.directive.mjs +0 -47
- package/esm2022/lib/annotations/comment-set/comment-navigate/comments-navigate.component.mjs +0 -91
- package/esm2022/lib/annotations/comment-set/comment-set-header/comment-search/comment-search.component.mjs +0 -54
- package/esm2022/lib/annotations/comment-set/comment-set-header/comment-set-header.component.mjs +0 -68
- package/esm2022/lib/annotations/comment-set/comment-set-render.service.mjs +0 -54
- package/esm2022/lib/annotations/comment-set/comment-set.component.mjs +0 -123
- package/esm2022/lib/annotations/comments-summary/comments-summary.component.mjs +0 -120
- package/esm2022/lib/annotations/pipes/filter/filter.pipe.mjs +0 -32
- package/esm2022/lib/annotations/tags/tags.component.mjs +0 -53
- package/esm2022/lib/icp/icp-follower.service.mjs +0 -60
- package/esm2022/lib/icp/icp-presenter.service.mjs +0 -55
- package/esm2022/lib/icp/icp-session-api.service.mjs +0 -21
- package/esm2022/lib/icp/icp-update.service.mjs +0 -57
- package/esm2022/lib/icp/icp.service.mjs +0 -93
- package/esm2022/lib/icp/socket.service.mjs +0 -118
- package/esm2022/lib/media-viewer.component.mjs +0 -244
- package/esm2022/lib/redaction/components/redaction.component.mjs +0 -91
- package/esm2022/lib/shared/util/helpers/html-templates.helper.mjs +0 -18
- package/esm2022/lib/store/actions/icp.actions.mjs +0 -56
- package/esm2022/lib/store/bookmarks-store-utils.mjs +0 -49
- package/esm2022/lib/store/effects/annotation.effects.mjs +0 -51
- package/esm2022/lib/store/effects/icp.effects.mjs +0 -26
- package/esm2022/lib/store/reducers/annotations.reducer.mjs +0 -208
- package/esm2022/lib/store/reducers/bookmarks.reducer.mjs +0 -116
- package/esm2022/lib/store/reducers/document.reducer.mjs +0 -135
- package/esm2022/lib/store/reducers/icp.reducer.mjs +0 -56
- package/esm2022/lib/store/reducers/redaction.reducer.mjs +0 -116
- package/esm2022/lib/store/reducers/tags.reducer.mjs +0 -93
- package/esm2022/lib/store/selectors/annotation.selectors.mjs +0 -81
- package/esm2022/lib/store/store-utils.mjs +0 -131
- package/esm2022/lib/toolbar/highlight-toolbar/highlight-toolbar.component.mjs +0 -44
- package/esm2022/lib/toolbar/main-toolbar/main-toolbar.component.mjs +0 -189
- package/esm2022/lib/toolbar/redaction-search-bar/redaction-search-bar.component.mjs +0 -236
- package/esm2022/lib/toolbar/redaction-toolbar/redaction-toolbar.component.mjs +0 -68
- package/esm2022/lib/toolbar/search-bar/search-bar.component.mjs +0 -109
- package/esm2022/lib/toolbar/toolbar-button-visibility.service.mjs +0 -94
- package/esm2022/lib/toolbar/toolbar-event.service.mjs +0 -178
- package/esm2022/lib/viewers/convertible-content-viewer/convertible-content-viewer.component.mjs +0 -82
- package/esm2022/lib/viewers/grab-n-drag.directive.mjs +0 -57
- package/esm2022/lib/viewers/image-viewer/image-viewer.component.mjs +0 -166
- package/esm2022/lib/viewers/multimedia-player/multimedia-player.component.mjs +0 -59
- package/esm2022/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.mjs +0 -209
- package/esm2022/lib/viewers/pdf-viewer/pdf-viewer.component.mjs +0 -236
- package/esm2022/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.mjs +0 -352
- package/esm2022/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.mjs +0 -49
- package/esm2022/lib/viewers/rotation-persist/rotation-persist.directive.mjs +0 -61
- package/esm2022/lib/viewers/unsupported-viewer/unsupported-viewer.component.mjs +0 -49
- package/fesm2022/hmcts-media-viewer.mjs.map +0 -1
- /package/{esm2022 → esm2020}/hmcts-media-viewer.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/annotations/annotation-set/annotation-set.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/annotations/annotation-set/annotation-view/annotation.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/annotations/annotation-set/annotation-view/rectangle/rectangle.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/annotations/comment-set/comment/comment.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/annotations/models/api-persisted.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/annotations/models/event-select.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/annotations/models/tags.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/annotations/models/user.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/icp/icp.events.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/redaction/services/redaction.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/actions/annotation.actions.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/actions/bookmark.actions.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/actions/document.actions.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/actions/redaction.actions.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/actions/tag.actions.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/effects/index.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/models/bookmarks.interface.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/models/filters.interface.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/reducers/reducers.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/selectors/document.selectors.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/selectors/icp.selectors.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/store/selectors/tag.selectors.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/toolbar/redaction-search-bar/redaction-search.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/viewers/pdf-viewer/side-bar/outline-item/outline.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/viewers/rotation-persist/rotation.model.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/viewers/viewer-exception.model.mjs +0 -0
- /package/{esm2022 → esm2020}/public_api.mjs +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Component, Input, ViewChild, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ResponseType, ViewerException } from '../viewer-exception.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../../toolbar/toolbar-event.service";
|
|
5
|
-
import * as i2 from "../viewer-util.service";
|
|
6
|
-
import * as i3 from "@angular/common";
|
|
7
|
-
export class UnsupportedViewerComponent {
|
|
8
|
-
constructor(toolbarEvents, viewerUtilService) {
|
|
9
|
-
this.toolbarEvents = toolbarEvents;
|
|
10
|
-
this.viewerUtilService = viewerUtilService;
|
|
11
|
-
this.loadStatus = new EventEmitter();
|
|
12
|
-
this.unsupportedViewerException = new EventEmitter();
|
|
13
|
-
this.subscriptions = [];
|
|
14
|
-
}
|
|
15
|
-
ngOnInit() {
|
|
16
|
-
this.subscriptions.push(this.toolbarEvents.downloadSubject.subscribe(() => this.downloadLink.nativeElement.click()), this.viewerUtilService.validateFile(this.url).subscribe(next => next, error => {
|
|
17
|
-
this.viewerException = new ViewerException(error.name, { httpResponseCode: error.status, message: error.message });
|
|
18
|
-
}));
|
|
19
|
-
this.loadStatus.emit(ResponseType.UNSUPPORTED);
|
|
20
|
-
if (!this.typeException) {
|
|
21
|
-
this.unsupportedViewerException.emit(this.viewerException);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
ngOnDestroy() {
|
|
25
|
-
for (const subscription of this.subscriptions) {
|
|
26
|
-
subscription.unsubscribe();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: UnsupportedViewerComponent, deps: [{ token: i1.ToolbarEventService }, { token: i2.ViewerUtilService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.8", type: UnsupportedViewerComponent, selector: "mv-unsupported-viewer", inputs: { url: "url", downloadFileName: "downloadFileName", typeException: "typeException" }, outputs: { loadStatus: "loadStatus", unsupportedViewerException: "unsupportedViewerException" }, viewQueries: [{ propertyName: "downloadLink", first: true, predicate: ["downloadLink"], descendants: true }], ngImport: i0, 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", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
31
|
-
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: UnsupportedViewerComponent, decorators: [{
|
|
33
|
-
type: Component,
|
|
34
|
-
args: [{ selector: 'mv-unsupported-viewer', 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" }]
|
|
35
|
-
}], ctorParameters: () => [{ type: i1.ToolbarEventService }, { type: i2.ViewerUtilService }], propDecorators: { url: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], downloadFileName: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], typeException: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], loadStatus: [{
|
|
42
|
-
type: Output
|
|
43
|
-
}], unsupportedViewerException: [{
|
|
44
|
-
type: Output
|
|
45
|
-
}], downloadLink: [{
|
|
46
|
-
type: ViewChild,
|
|
47
|
-
args: ['downloadLink', { static: false }]
|
|
48
|
-
}] } });
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5zdXBwb3J0ZWQtdmlld2VyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21lZGlhLXZpZXdlci9zcmMvbGliL3ZpZXdlcnMvdW5zdXBwb3J0ZWQtdmlld2VyL3Vuc3VwcG9ydGVkLXZpZXdlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tZWRpYS12aWV3ZXIvc3JjL2xpYi92aWV3ZXJzL3Vuc3VwcG9ydGVkLXZpZXdlci91bnN1cHBvcnRlZC12aWV3ZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYyxLQUFLLEVBQVUsU0FBUyxFQUFhLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHakgsT0FBTyxFQUFFLFlBQVksRUFBRSxlQUFlLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQzs7Ozs7QUFPMUUsTUFBTSxPQUFPLDBCQUEwQjtJQWNyQyxZQUNrQixhQUFrQyxFQUNqQyxpQkFBb0M7UUFEckMsa0JBQWEsR0FBYixhQUFhLENBQXFCO1FBQ2pDLHNCQUFpQixHQUFqQixpQkFBaUIsQ0FBbUI7UUFWN0MsZUFBVSxHQUFHLElBQUksWUFBWSxFQUFnQixDQUFDO1FBQzlDLCtCQUEwQixHQUFHLElBQUksWUFBWSxFQUFtQixDQUFDO1FBSW5FLGtCQUFhLEdBQW1CLEVBQUUsQ0FBQzt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