@ministryofjustice/hmpps-digital-prison-reporting-frontend 3.3.2 → 3.3.4
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/dpr/all.scss +51 -7
- package/dpr/assets/css/all.css +1 -1
- package/dpr/assets/js/all.mjs +71 -52
- package/dpr/components/columns/utils.js +1 -1
- package/dpr/components/columns/utils.ts +2 -3
- package/dpr/components/data-table/types.d.ts +3 -2
- package/dpr/components/data-table/utils.js +3 -3
- package/dpr/components/data-table/utils.ts +6 -4
- package/dpr/components/data-table/view.njk +13 -10
- package/dpr/components/filters/types.d.ts +1 -7
- package/dpr/components/filters/utils.ts +4 -1
- package/dpr/components/report-list/list.njk +1 -1
- package/dpr/components/report-list/utils.js +7 -10
- package/dpr/components/report-list/utils.ts +5 -14
- package/dpr/types/ReportQuery.js +8 -3
- package/dpr/types/ReportQuery.ts +7 -7
- package/dpr/utils/urlHelper.js +2 -13
- package/dpr/utils/urlHelper.ts +4 -16
- package/package.json +1 -1
- package/package.zip +0 -0
package/dpr/all.scss
CHANGED
|
@@ -20,7 +20,8 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.accordion-details {
|
|
23
|
-
padding-top: govuk-spacing(
|
|
23
|
+
padding-top: govuk-spacing(2);
|
|
24
|
+
padding-bottom: govuk-spacing(1);
|
|
24
25
|
|
|
25
26
|
.govuk-details__text {
|
|
26
27
|
border-left: none;
|
|
@@ -31,9 +32,13 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
31
32
|
|
|
32
33
|
.accordion-section-header {
|
|
33
34
|
position: absolute;
|
|
34
|
-
top: 6px;
|
|
35
35
|
width: calc(100% - 120px);
|
|
36
36
|
left: 120px;
|
|
37
|
+
top: 1px;
|
|
38
|
+
|
|
39
|
+
@media(max-width: 640px) {
|
|
40
|
+
top: -1px;
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
.accordion-section-header-scroll {
|
|
@@ -54,7 +59,7 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
54
59
|
text-underline-offset: 4px;
|
|
55
60
|
color: govuk-colour("blue");
|
|
56
61
|
text-decoration-color: govuk-colour("blue");
|
|
57
|
-
text-decoration-thickness: 1px;
|
|
62
|
+
text-decoration-thickness: 1px !important;
|
|
58
63
|
box-shadow: none;
|
|
59
64
|
|
|
60
65
|
&:hover {
|
|
@@ -281,6 +286,10 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
281
286
|
}
|
|
282
287
|
|
|
283
288
|
// === END VARIANT 2 STYLES ===
|
|
289
|
+
#user-selected-columns-form {
|
|
290
|
+
margin-left: govuk-spacing(2);
|
|
291
|
+
}
|
|
292
|
+
|
|
284
293
|
.columns-container .govuk-checkboxes.govuk-checkboxes--small {
|
|
285
294
|
display: grid;
|
|
286
295
|
grid-template-columns: 1fr 1fr 1fr;
|
|
@@ -299,10 +308,6 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
299
308
|
padding-left: 10px;
|
|
300
309
|
padding-top: 10px;
|
|
301
310
|
}
|
|
302
|
-
.data-table-page-size {
|
|
303
|
-
float: right;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
311
|
// Cannibalised from MoJ sortable table
|
|
307
312
|
|
|
308
313
|
.data-table-header-button {
|
|
@@ -383,6 +388,36 @@ a.disabled {
|
|
|
383
388
|
cursor: default;
|
|
384
389
|
opacity: 0.5;
|
|
385
390
|
}
|
|
391
|
+
|
|
392
|
+
.data-table-page-size-container {
|
|
393
|
+
height: 40px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.data-table-page-size {
|
|
397
|
+
float: right;
|
|
398
|
+
|
|
399
|
+
@media(max-width: 640px) {
|
|
400
|
+
width: 100%;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
@media(max-width: 319px) {
|
|
404
|
+
.govuk-form-group {
|
|
405
|
+
margin-bottom: 0px;
|
|
406
|
+
}
|
|
407
|
+
height: 72px;
|
|
408
|
+
margin-bottom: govuk-spacing(2);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
@media(max-width: 319px) {
|
|
413
|
+
#pageSize {
|
|
414
|
+
width: 100%;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.dpr-table-wrapper {
|
|
419
|
+
overflow: scroll;
|
|
420
|
+
}
|
|
386
421
|
.date-range {
|
|
387
422
|
.govuk-form-group {
|
|
388
423
|
margin-bottom: 0px;
|
|
@@ -450,6 +485,15 @@ a.disabled {
|
|
|
450
485
|
padding: 8px 12px 7px;
|
|
451
486
|
}
|
|
452
487
|
}
|
|
488
|
+
|
|
489
|
+
@media(max-width: 640px) {
|
|
490
|
+
width: 100%;
|
|
491
|
+
margin-bottom: govuk-spacing(2);
|
|
492
|
+
|
|
493
|
+
#actions-menu {
|
|
494
|
+
width: 100%;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
453
497
|
}
|
|
454
498
|
|
|
455
499
|
@media screen {
|