@hmcts/media-viewer 2.9.3 → 2.9.4-RC.7
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/assets/images/icon-bookmarks-custom.png +0 -0
- package/assets/images/icon-bookmarks-position.png +0 -0
- package/assets/images/toolbarButton-bookmarkDark.png +0 -0
- package/assets/sass/comment-set-panel.scss +1 -0
- package/assets/sass/comment.scss +4 -6
- package/assets/sass/image-viewer.scss +2 -1
- package/assets/sass/pdf-viewer.scss +4 -0
- package/assets/sass/toolbar/buttons.scss +24 -0
- package/assets/sass/toolbar/main-toolbar.scss +20 -7
- package/assets/sass/toolbar/side-bar.scss +17 -17
- package/bundles/hmcts-media-viewer.umd.js +744 -324
- package/bundles/hmcts-media-viewer.umd.js.map +1 -1
- package/bundles/hmcts-media-viewer.umd.min.js +1 -1
- package/bundles/hmcts-media-viewer.umd.min.js.map +1 -1
- package/esm2015/hmcts-media-viewer.js +53 -52
- package/esm2015/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.js +2 -2
- package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.directive.js +2 -2
- package/esm2015/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.js +2 -2
- package/esm2015/lib/annotations/annotation-set/annotation-view/annotation-view.component.js +1 -1
- package/esm2015/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.js +3 -2
- package/esm2015/lib/annotations/annotations.module.js +3 -1
- package/esm2015/lib/annotations/comment-set/comment/comment.component.js +3 -2
- package/esm2015/lib/annotations/comment-set/comment/comment.service.js +6 -2
- package/esm2015/lib/annotations/comment-set/comment-set-header/comment-set-header.component.js +13 -2
- package/esm2015/lib/media-viewer.component.js +4 -2
- package/esm2015/lib/print.service.js +4 -2
- package/esm2015/lib/redaction/components/redaction.component.js +2 -2
- package/esm2015/lib/redaction/services/redaction-api.service.js +7 -1
- package/esm2015/lib/redaction/services/redaction.model.js +1 -1
- package/esm2015/lib/store/actions/redaction.actions.js +22 -1
- package/esm2015/lib/store/effects/redaction.effects.js +18 -4
- package/esm2015/lib/store/reducers/bookmarks.reducer.js +3 -2
- package/esm2015/lib/store/reducers/redaction.reducer.js +9 -1
- package/esm2015/lib/store/selectors/bookmark.selectors.js +2 -2
- package/esm2015/lib/toolbar/main-toolbar/main-toolbar.component.js +19 -4
- package/esm2015/lib/toolbar/redaction-search-bar/redaction-search-bar.component.js +201 -0
- package/esm2015/lib/toolbar/redaction-search-bar/redaction-search.model.js +2 -0
- package/esm2015/lib/toolbar/redaction-toolbar/redaction-toolbar.component.js +18 -6
- package/esm2015/lib/toolbar/toolbar-event.service.js +9 -1
- package/esm2015/lib/toolbar/toolbar.module.js +6 -3
- package/esm2015/lib/viewers/image-viewer/image-viewer.component.js +2 -2
- package/esm2015/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.js +15 -4
- package/esm2015/lib/viewers/pdf-viewer/pdf-viewer.component.js +3 -2
- package/esm2015/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.js +70 -5
- package/esm2015/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.js +4 -1
- package/esm2015/lib/viewers/pdf-viewer/side-bar/side-bar.component.js +24 -19
- package/fesm2015/hmcts-media-viewer.js +586 -204
- package/fesm2015/hmcts-media-viewer.js.map +1 -1
- package/hmcts-media-viewer.d.ts +56 -55
- package/hmcts-media-viewer.d.ts.map +1 -1
- package/hmcts-media-viewer.metadata.json +1 -1
- package/lib/annotations/annotation-set/annotation-create/box-highlight-create/box-highlight-create.component.d.ts.map +1 -1
- package/lib/annotations/annotation-set/annotation-create/highlight-create/highlight-create.service.d.ts.map +1 -1
- package/lib/annotations/annotation-set/annotation-view/annotation-view.component.d.ts.map +1 -1
- package/lib/annotations/annotation-set/metadata-layer/metadata-layer.component.d.ts.map +1 -1
- package/lib/annotations/annotations.module.d.ts.map +1 -1
- package/lib/annotations/comment-set/comment/comment.component.d.ts +2 -0
- package/lib/annotations/comment-set/comment/comment.component.d.ts.map +1 -1
- package/lib/annotations/comment-set/comment/comment.service.d.ts +3 -1
- package/lib/annotations/comment-set/comment/comment.service.d.ts.map +1 -1
- package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts +4 -1
- package/lib/annotations/comment-set/comment-set-header/comment-set-header.component.d.ts.map +1 -1
- package/lib/media-viewer.component.d.ts +1 -0
- package/lib/media-viewer.component.d.ts.map +1 -1
- package/lib/media-viewer.module.ngfactory.d.ts.map +1 -1
- package/lib/print.service.d.ts.map +1 -1
- package/lib/redaction/components/redaction.component.d.ts.map +1 -1
- package/lib/redaction/services/redaction-api.service.d.ts +3 -1
- package/lib/redaction/services/redaction-api.service.d.ts.map +1 -1
- package/lib/redaction/services/redaction.model.d.ts +3 -0
- package/lib/redaction/services/redaction.model.d.ts.map +1 -1
- package/lib/store/actions/redaction.actions.d.ts +20 -2
- package/lib/store/actions/redaction.actions.d.ts.map +1 -1
- package/lib/store/effects/redaction.effects.d.ts +4 -1
- package/lib/store/effects/redaction.effects.d.ts.map +1 -1
- package/lib/store/reducers/bookmarks.reducer.d.ts.map +1 -1
- package/lib/store/reducers/redaction.reducer.d.ts.map +1 -1
- package/lib/store/selectors/annotation.selectors.d.ts +5 -5
- package/lib/store/selectors/redaction.selectors.d.ts +1 -1
- package/lib/store/selectors/tag.selectors.d.ts +2 -2
- package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts +3 -1
- package/lib/toolbar/main-toolbar/main-toolbar.component.d.ts.map +1 -1
- package/lib/toolbar/redaction-search-bar/redaction-search-bar.component.d.ts +51 -0
- package/lib/toolbar/redaction-search-bar/redaction-search-bar.component.d.ts.map +1 -0
- package/lib/toolbar/redaction-search-bar/redaction-search-bar.component.ngfactory.d.ts.map +1 -0
- package/lib/toolbar/redaction-search-bar/redaction-search-bar.component.scss.shim.ngstyle.d.ts.map +1 -0
- package/lib/toolbar/redaction-search-bar/redaction-search.model.d.ts +12 -0
- package/lib/toolbar/redaction-search-bar/redaction-search.model.d.ts.map +1 -0
- package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts +4 -2
- package/lib/toolbar/redaction-toolbar/redaction-toolbar.component.d.ts.map +1 -1
- package/lib/toolbar/toolbar-event.service.d.ts +6 -0
- package/lib/toolbar/toolbar-event.service.d.ts.map +1 -1
- package/lib/toolbar/toolbar.module.d.ts.map +1 -1
- package/lib/toolbar/toolbar.module.ngfactory.d.ts.map +1 -1
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts +1 -0
- package/lib/viewers/pdf-viewer/pdf-js/pdf-js-wrapper.d.ts.map +1 -1
- package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts +1 -0
- package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts.map +1 -1
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts +17 -4
- package/lib/viewers/pdf-viewer/side-bar/bookmarks/bookmarks.component.d.ts.map +1 -1
- package/lib/viewers/pdf-viewer/side-bar/outline-item/outline-item.component.d.ts.map +1 -1
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts +7 -4
- package/lib/viewers/pdf-viewer/side-bar/side-bar.component.d.ts.map +1 -1
- package/package.json +5 -4
- package/hmcts-media-viewer-v2.9.3.tgz +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/assets/sass/comment.scss
CHANGED
|
@@ -110,21 +110,19 @@ mv-anno-comment {
|
|
|
110
110
|
color: $govuk-secondary-text-colour;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
|
|
114
113
|
.aui-comment__footer {
|
|
115
114
|
font-size: .1px;
|
|
116
115
|
|
|
117
116
|
.govuk-button {
|
|
118
117
|
margin-right: govuk-spacing(2);
|
|
119
118
|
}
|
|
120
|
-
|
|
121
119
|
}
|
|
122
120
|
|
|
123
121
|
.mvTextHighlight {
|
|
124
122
|
background-color: yellow;
|
|
125
123
|
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
124
|
|
|
125
|
+
.stylestoggle {
|
|
126
|
+
margin-top: 15em;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -168,6 +168,30 @@ html[dir='rtl'] .splitToolbarButtonSeparator {
|
|
|
168
168
|
transition-timing-function: ease;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
.bookmark__sort__custom {
|
|
172
|
+
background: url(/assets/images/icon-bookmarks-custom.png) center center no-repeat;
|
|
173
|
+
filter: invert(100%) sepia(2%) saturate(0%) hue-rotate(349deg) brightness(107%) contrast(101%);
|
|
174
|
+
border-radius: 0.2em;
|
|
175
|
+
border: 0.1em ridge #D3D3D3;
|
|
176
|
+
width: 1.5em;
|
|
177
|
+
height: 1.5em;
|
|
178
|
+
background-size: 1.5em 1.5em;
|
|
179
|
+
margin: 0.2em 0em 0em 0.5em;
|
|
180
|
+
padding: 0.2em;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.bookmark__sort__position {
|
|
184
|
+
background: url(/assets/images/icon-bookmarks-position.png) center center no-repeat;
|
|
185
|
+
filter: invert(100%) sepia(2%) saturate(0%) hue-rotate(349deg) brightness(107%) contrast(101%);
|
|
186
|
+
border-radius: 0.2em;
|
|
187
|
+
border: 0.1em ridge #D3D3D3;
|
|
188
|
+
width: 1.5em;
|
|
189
|
+
height: 1.5em;
|
|
190
|
+
background-size: 1.5em 1.5em;
|
|
191
|
+
margin: 0.2em 0em 0em 0.5em;
|
|
192
|
+
padding: 0.2em;
|
|
193
|
+
}
|
|
194
|
+
|
|
171
195
|
.toolbarButton,
|
|
172
196
|
.dropdownToolbarButton,
|
|
173
197
|
.secondaryToolbarButton,
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
display: block;
|
|
19
19
|
clear: both;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
.mv-toolbar-main {
|
|
@@ -53,8 +52,6 @@
|
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
|
|
57
|
-
|
|
58
55
|
.mv-toolbar__menu-button--index {
|
|
59
56
|
width: 100px;
|
|
60
57
|
&:after {
|
|
@@ -63,6 +60,14 @@
|
|
|
63
60
|
}
|
|
64
61
|
}
|
|
65
62
|
|
|
63
|
+
.mv-toolbar__menu-button--bookmarks {
|
|
64
|
+
width: 140px;
|
|
65
|
+
&:after {
|
|
66
|
+
background-image: url(/assets/images/toolbarButton-bookmarkDark.png);
|
|
67
|
+
background-size: 18px 14px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
66
71
|
.mv-toolbar__menu-button--draw {
|
|
67
72
|
width: 140px;
|
|
68
73
|
&:after {
|
|
@@ -257,6 +262,13 @@
|
|
|
257
262
|
}
|
|
258
263
|
}
|
|
259
264
|
|
|
265
|
+
.redaction-button--search {
|
|
266
|
+
width: 10%;
|
|
267
|
+
&:after {
|
|
268
|
+
background-image: url(/assets/images/search.svg);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
260
272
|
.mv-toolbar__menu-button--present {
|
|
261
273
|
width: 120px;
|
|
262
274
|
&:after {
|
|
@@ -330,12 +342,13 @@
|
|
|
330
342
|
|
|
331
343
|
/* remove up and down arrows from page number field as there are already up and down icons on the toolbar
|
|
332
344
|
/* Chrome, Safari, Edge, Opera */
|
|
333
|
-
#pageNumber ::-webkit-outer-spin-button,
|
|
334
|
-
|
|
335
|
-
|
|
345
|
+
#pageNumber ::-webkit-outer-spin-button,
|
|
346
|
+
#pageNumber::-webkit-inner-spin-button {
|
|
347
|
+
-webkit-appearance: none;
|
|
348
|
+
margin: 0;
|
|
336
349
|
}
|
|
337
350
|
/* Firefox */
|
|
338
|
-
#pageNumber[type=number] {
|
|
351
|
+
#pageNumber[type="number"] {
|
|
339
352
|
-moz-appearance: textfield;
|
|
340
353
|
}
|
|
341
354
|
|
|
@@ -5,7 +5,7 @@ $--sidebar-width: 20%;
|
|
|
5
5
|
}
|
|
6
6
|
.icp-mode & {
|
|
7
7
|
top: 91px;
|
|
8
|
-
height: 100
|
|
8
|
+
height: 100%;
|
|
9
9
|
}
|
|
10
10
|
position: absolute;
|
|
11
11
|
top: 43px;
|
|
@@ -18,14 +18,14 @@ $--sidebar-width: 20%;
|
|
|
18
18
|
|
|
19
19
|
transition-duration: 600ms;
|
|
20
20
|
transition-timing-function: ease;
|
|
21
|
-
|
|
21
|
+
padding-bottom: 3.2rem;
|
|
22
22
|
}
|
|
23
23
|
#sidebarContainer {
|
|
24
24
|
transition-property: left;
|
|
25
25
|
left: -200px;
|
|
26
26
|
left: calc(-1 * var($--sidebar-width));
|
|
27
27
|
}
|
|
28
|
-
html[dir=
|
|
28
|
+
html[dir="rtl"] #sidebarContainer {
|
|
29
29
|
transition-property: right;
|
|
30
30
|
right: -200px;
|
|
31
31
|
right: calc(-1 * var($--sidebar-width));
|
|
@@ -52,7 +52,7 @@ html[dir='rtl'] #sidebarContainer {
|
|
|
52
52
|
#outerContainer.sidebarOpen #sidebarContainer {
|
|
53
53
|
left: 0px;
|
|
54
54
|
}
|
|
55
|
-
html[dir=
|
|
55
|
+
html[dir="rtl"] #outerContainer.sidebarOpen #sidebarContainer {
|
|
56
56
|
right: 0px;
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -66,11 +66,11 @@ html[dir='rtl'] #outerContainer.sidebarOpen #sidebarContainer {
|
|
|
66
66
|
}
|
|
67
67
|
#sidebarContent {
|
|
68
68
|
left: 0;
|
|
69
|
-
box-shadow: inset -1px 0 0 hsla(0,0%,0
|
|
69
|
+
box-shadow: inset -1px 0 0 hsla(0, 0%, 0%, 0.25);
|
|
70
70
|
}
|
|
71
|
-
html[dir=
|
|
71
|
+
html[dir="rtl"] #sidebarContent {
|
|
72
72
|
right: 0;
|
|
73
|
-
box-shadow: inset 1px 0 0 hsla(0,0%,0
|
|
73
|
+
box-shadow: inset 1px 0 0 hsla(0, 0%, 0%, 0.25);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
#outerContainer.sidebarResizing #viewerContainer {
|
|
@@ -83,7 +83,9 @@ html[dir='rtl'] #sidebarContent {
|
|
|
83
83
|
left: 200px;
|
|
84
84
|
left: var($--sidebar-width);
|
|
85
85
|
}
|
|
86
|
-
html[dir=
|
|
86
|
+
html[dir="rtl"]
|
|
87
|
+
#outerContainer.sidebarOpen
|
|
88
|
+
#viewerContainer:not(.pdfPresentationMode) {
|
|
87
89
|
transition-property: right;
|
|
88
90
|
right: 200px;
|
|
89
91
|
right: var($--sidebar-width);
|
|
@@ -94,19 +96,17 @@ html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentatio
|
|
|
94
96
|
height: 32px;
|
|
95
97
|
background-color: #424242; /* fallback */
|
|
96
98
|
background-image: url(/assets/images/texture.png),
|
|
97
|
-
|
|
99
|
+
linear-gradient(hsla(0, 0%, 30%, 0.99), hsla(0, 0%, 25%, 0.95));
|
|
98
100
|
}
|
|
99
101
|
#toolbarSidebar {
|
|
100
102
|
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
0 0 1px hsla(0,0%,0%,.1);
|
|
103
|
+
inset 0 -1px 0 hsla(0, 0%, 100%, 0.05), 0 1px 0 hsla(0, 0%, 0%, 0.15),
|
|
104
|
+
0 0 1px hsla(0, 0%, 0%, 0.1);
|
|
104
105
|
}
|
|
105
|
-
html[dir=
|
|
106
|
+
html[dir="rtl"] #toolbarSidebar {
|
|
106
107
|
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
0 0 1px hsla(0,0%,0%,.1);
|
|
108
|
+
inset 0 1px 0 hsla(0, 0%, 100%, 0.05), 0 1px 0 hsla(0, 0%, 0%, 0.15),
|
|
109
|
+
0 0 1px hsla(0, 0%, 0%, 0.1);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
#sidebarResizer {
|
|
@@ -120,6 +120,6 @@ html[dir='rtl'] #toolbarSidebar {
|
|
|
120
120
|
#sidebarResizer {
|
|
121
121
|
right: -6px;
|
|
122
122
|
}
|
|
123
|
-
html[dir=
|
|
123
|
+
html[dir="rtl"] #sidebarResizer {
|
|
124
124
|
left: -6px;
|
|
125
125
|
}
|