@hmcts/media-viewer 4.2.44 → 4.2.46-exceljs-update
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/.yarn/install-state.gz +0 -0
- package/README.md +5 -5
- package/assets/all.scss +27 -29
- package/assets/sass/comment-filter.scss +6 -2
- package/assets/sass/comment-search.scss +2 -0
- package/assets/sass/comment-set-header.scss +2 -0
- package/assets/sass/comment.scss +9 -3
- package/assets/sass/comments-summary-dialog.scss +2 -2
- package/assets/sass/document.scss +37 -25
- package/assets/sass/participants-list.scss +6 -2
- package/assets/sass/settings.scss +10 -2
- package/assets/sass/tabs.scss +2 -0
- package/assets/sass/tags.scss +4 -4
- package/assets/sass/toolbar/main.scss +15 -15
- package/assets/sass/toolbar/search-bar.scss +6 -2
- package/fesm2022/hmcts-media-viewer.mjs +2749 -2748
- package/fesm2022/hmcts-media-viewer.mjs.map +1 -1
- package/index.d.ts +607 -940
- package/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/package.tgz +0 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/README.md
CHANGED
|
@@ -495,14 +495,14 @@ Add these styles to your component.scss if you need them.
|
|
|
495
495
|
If you're writing your own toolbar styles then do not import those
|
|
496
496
|
|
|
497
497
|
```
|
|
498
|
-
//
|
|
499
|
-
@
|
|
500
|
-
//
|
|
501
|
-
@
|
|
498
|
+
// Load GOV.UK Frontend
|
|
499
|
+
@use "govuk-frontend/govuk/all" as *;
|
|
500
|
+
// Load Media Viewer Styles
|
|
501
|
+
@use "media-viewer/src/assets/all"; // use this to load all the styles
|
|
502
502
|
```
|
|
503
503
|
Alternatively, it is possible to import file by file as required from ```assets/sass``` directory
|
|
504
504
|
|
|
505
|
-
eg.
|
|
505
|
+
eg. ```media-viewer/assets/sass/toolbar/main```
|
|
506
506
|
|
|
507
507
|
## Customisations
|
|
508
508
|
### Toolbar
|
package/assets/all.scss
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
1
|
// CDK overlays require a small set of structural styles to work correctly
|
|
2
2
|
// As the component is not yet using Angular Material we have to include the style ourself
|
|
3
3
|
// see https://material.angular.io/cdk/overlay/overview
|
|
4
|
-
@
|
|
4
|
+
@use '@angular/cdk/overlay-prebuilt';
|
|
5
5
|
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@
|
|
32
|
-
@import 'sass/redaction';
|
|
33
|
-
@import 'pdfjs/pdf_viewer';
|
|
6
|
+
@use 'sass/annotation-set';
|
|
7
|
+
@use 'sass/bookmarks';
|
|
8
|
+
@use 'sass/box-highlight';
|
|
9
|
+
@use 'sass/comment';
|
|
10
|
+
@use 'sass/comment-search';
|
|
11
|
+
@use 'sass/comment-set-header';
|
|
12
|
+
@use 'sass/comment-set-panel';
|
|
13
|
+
@use 'sass/comment-set-toggle';
|
|
14
|
+
@use 'sass/comments-summary-dialog';
|
|
15
|
+
@use 'sass/confirm-action-dialog';
|
|
16
|
+
@use 'sass/document';
|
|
17
|
+
@use 'sass/image-viewer';
|
|
18
|
+
@use 'sass/media-viewer';
|
|
19
|
+
@use 'sass/outline-attachment';
|
|
20
|
+
@use 'sass/participants-list';
|
|
21
|
+
@use 'sass/pdf-viewer';
|
|
22
|
+
@use 'sass/popup-toolbar';
|
|
23
|
+
@use 'sass/rectangle';
|
|
24
|
+
@use 'sass/tags';
|
|
25
|
+
@use 'sass/toolbar/main';
|
|
26
|
+
@use 'sass/tabs';
|
|
27
|
+
@use 'sass/tooltip';
|
|
28
|
+
@use 'sass/comment-filter';
|
|
29
|
+
@use 'sass/angular-tree-component';
|
|
30
|
+
@use 'sass/redaction';
|
|
31
|
+
@use 'pdfjs/pdf_viewer';
|
|
34
32
|
div.govuk-prose-scope, p {
|
|
35
33
|
white-space: pre-wrap;
|
|
36
34
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "govuk-frontend/govuk/base" as *;
|
|
2
|
+
|
|
1
3
|
.comment-filter {
|
|
2
4
|
border: none;
|
|
3
5
|
margin-bottom: 20px;
|
|
@@ -72,8 +74,10 @@
|
|
|
72
74
|
font-weight: bold;
|
|
73
75
|
position: relative;
|
|
74
76
|
@include govuk-font($size: 19);
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
& {
|
|
78
|
+
color: govuk-colour("blue");
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
77
81
|
|
|
78
82
|
}
|
|
79
83
|
|
package/assets/sass/comment.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "govuk-frontend/govuk/base" as *;
|
|
2
|
+
|
|
1
3
|
mv-anno-comment {
|
|
2
4
|
.aui-comment {
|
|
3
5
|
width: 85%;
|
|
@@ -100,14 +102,18 @@ mv-anno-comment {
|
|
|
100
102
|
|
|
101
103
|
.aui-comment__author {
|
|
102
104
|
@include govuk-font($size: 19);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
& {
|
|
106
|
+
display: block;
|
|
107
|
+
font-weight: bold;
|
|
108
|
+
}
|
|
105
109
|
}
|
|
106
110
|
|
|
107
111
|
|
|
108
112
|
.aui-comment__meta {
|
|
109
113
|
@include govuk-font($size: 16);
|
|
110
|
-
|
|
114
|
+
& {
|
|
115
|
+
color: $govuk-secondary-text-colour;
|
|
116
|
+
}
|
|
111
117
|
}
|
|
112
118
|
|
|
113
119
|
.aui-comment__footer {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "govuk-frontend/govuk/base" as *;
|
|
2
|
+
@use "settings" as *;
|
|
3
|
+
|
|
1
4
|
.aui {
|
|
2
5
|
|
|
3
6
|
&--show-comments {
|
|
@@ -57,28 +60,32 @@
|
|
|
57
60
|
|
|
58
61
|
.aui__toolbar-container {
|
|
59
62
|
@include aui-width-container;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
& {
|
|
64
|
+
border-left:1px solid govuk-colour("light-grey");
|
|
65
|
+
border-right: 1px solid govuk-colour("light-grey");
|
|
66
|
+
height: 100%;
|
|
67
|
+
position: relative;
|
|
68
|
+
left: 0; top: 0;
|
|
69
|
+
z-index: 1;
|
|
70
|
+
}
|
|
66
71
|
}
|
|
67
72
|
|
|
68
73
|
|
|
69
74
|
.aui__toolbar-button {
|
|
70
75
|
@include govuk-font($size: 19);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
& {
|
|
77
|
+
background-color: govuk-colour("white");
|
|
78
|
+
border: 0 none;
|
|
79
|
+
border: 1px solid #f00;
|
|
80
|
+
color: govuk-colour("black");
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
float: left;
|
|
83
|
+
height: 50px;
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding-left: 15px;
|
|
86
|
+
padding-right: 15px;
|
|
87
|
+
position: relative;
|
|
88
|
+
}
|
|
82
89
|
&:first-child {
|
|
83
90
|
&::after {
|
|
84
91
|
background-color: #DEE0E2;
|
|
@@ -161,7 +168,9 @@
|
|
|
161
168
|
.aui__window-container {
|
|
162
169
|
@include aui-width-container;
|
|
163
170
|
@include govuk-clearfix;
|
|
164
|
-
|
|
171
|
+
& {
|
|
172
|
+
position: relative;
|
|
173
|
+
}
|
|
165
174
|
}
|
|
166
175
|
|
|
167
176
|
|
|
@@ -190,7 +199,9 @@
|
|
|
190
199
|
|
|
191
200
|
.aui__document-page {
|
|
192
201
|
@include aspect-ratio(1,1.414); // True A4 aspect ratio
|
|
193
|
-
|
|
202
|
+
& {
|
|
203
|
+
margin-top: govuk-spacing(4);
|
|
204
|
+
}
|
|
194
205
|
|
|
195
206
|
&:first-child {
|
|
196
207
|
margin-top: 0;
|
|
@@ -198,11 +209,13 @@
|
|
|
198
209
|
|
|
199
210
|
&[data-page]::after {
|
|
200
211
|
@include govuk-font(16);
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
212
|
+
& {
|
|
213
|
+
color: $govuk-secondary-text-colour;
|
|
214
|
+
content: attr(data-page);
|
|
215
|
+
line-height: 1;
|
|
216
|
+
position: absolute; right: govuk-spacing(4);
|
|
217
|
+
bottom: govuk-spacing(4);
|
|
218
|
+
}
|
|
206
219
|
}
|
|
207
220
|
|
|
208
221
|
img {
|
|
@@ -239,4 +252,3 @@
|
|
|
239
252
|
}
|
|
240
253
|
|
|
241
254
|
}
|
|
242
|
-
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "govuk-frontend/govuk/base" as *;
|
|
2
|
+
|
|
1
3
|
mv-participants-list {
|
|
2
4
|
|
|
3
5
|
.participant__card {
|
|
@@ -21,8 +23,10 @@ mv-participants-list {
|
|
|
21
23
|
border-bottom: 1px solid #ddd;
|
|
22
24
|
margin-bottom: govuk-spacing(1);
|
|
23
25
|
@include govuk-font($size: 16);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
& {
|
|
27
|
+
display: block;
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
.participant__name {
|
|
@@ -2,15 +2,23 @@
|
|
|
2
2
|
#GENERAL CONFIGURATIONS
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
+
@use "sass:math";
|
|
6
|
+
@use "govuk-frontend/govuk/base" as *;
|
|
7
|
+
|
|
5
8
|
$aui-page-width: 1220px;
|
|
6
9
|
$aui-gutter: govuk-spacing(6);
|
|
7
|
-
$aui-gutter-half: $govuk-gutter
|
|
10
|
+
$aui-gutter-half: math.div($govuk-gutter, 2);
|
|
8
11
|
|
|
9
12
|
// Assets path
|
|
10
13
|
$aui-assets-path : "/public/images/";
|
|
11
14
|
|
|
12
15
|
@mixin aspect-ratio($ratio-or-width, $height: null) {
|
|
13
|
-
$padding:
|
|
16
|
+
$padding: null;
|
|
17
|
+
@if $height {
|
|
18
|
+
$padding: math.percentage(math.div($height, $ratio-or-width));
|
|
19
|
+
} @else {
|
|
20
|
+
$padding: math.percentage(math.div(1, $ratio-or-width));
|
|
21
|
+
}
|
|
14
22
|
&:before { content:''; float: left; padding-bottom: $padding; }
|
|
15
23
|
&:after { content:''; display: table; clear: both; }
|
|
16
24
|
}
|
package/assets/sass/tabs.scss
CHANGED
package/assets/sass/tags.scss
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "node_modules/ngx-chips/core/styles/core/core" as *;
|
|
3
|
+
|
|
1
4
|
.tags {
|
|
2
5
|
margin-bottom: 10px;
|
|
3
6
|
&__renderer {
|
|
@@ -18,10 +21,8 @@
|
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
|
|
21
|
-
@import "node_modules/ngx-chips/core/styles/core/core";
|
|
22
|
-
|
|
23
24
|
$foundation-primary: #1779ba;
|
|
24
|
-
$foundation-primary-dark:
|
|
25
|
+
$foundation-primary-dark: color.adjust($foundation-primary, $lightness: -10%);
|
|
25
26
|
|
|
26
27
|
$foundation-theme: (
|
|
27
28
|
container-border-bottom: 1px solid $foundation-primary
|
|
@@ -84,4 +85,3 @@ button {
|
|
|
84
85
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
1
|
+
@use "buttons";
|
|
2
|
+
@use "side-bar";
|
|
3
|
+
@use "search-bar";
|
|
4
|
+
@use "sub-toolbar";
|
|
5
|
+
@use "thumbnail";
|
|
6
|
+
@use "dialog-overlay";
|
|
7
|
+
@use "field-label";
|
|
8
|
+
@use "loading-bar";
|
|
9
|
+
@use "debugging";
|
|
10
|
+
@use "text-selection";
|
|
11
|
+
@use "media";
|
|
12
|
+
@use "redaction-toolbar";
|
|
13
|
+
@use "icp-buttons";
|
|
14
|
+
@use "icp-toolbar";
|
|
15
|
+
@use "main-toolbar";
|
|
16
16
|
|
|
17
17
|
.hidden {
|
|
18
18
|
display: none !important;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "govuk-frontend/govuk/base" as *;
|
|
2
|
+
|
|
1
3
|
.searchbar {
|
|
2
4
|
z-index: 100;
|
|
3
5
|
position: absolute;
|
|
@@ -14,8 +16,10 @@
|
|
|
14
16
|
}
|
|
15
17
|
span {
|
|
16
18
|
@include govuk-font($size: 16);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
& {
|
|
20
|
+
color: $govuk-secondary-text-colour;
|
|
21
|
+
min-width: 110px;
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
|