@ministryofjustice/hmpps-digital-prison-reporting-frontend 2.2.1 → 2.3.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/dpr/all.scss +138 -12
- package/dpr/assets/css/all.css +1 -1
- package/dpr/components/accordion/view.njk +47 -0
- package/dpr/components/autocomplete-text-input/view.njk +1 -1
- package/dpr/components/card-group/utils.js +2 -5
- package/dpr/components/card-group/utils.ts +2 -2
- package/dpr/components/dropdown-button/view.njk +19 -0
- package/dpr/components/filters/utils.js +1 -1
- package/dpr/components/filters/utils.ts +1 -1
- package/dpr/components/filters/view.njk +67 -42
- package/dpr/components/report-list/list.njk +30 -20
- package/dpr/utils/urlHelper.js +7 -3
- package/dpr/utils/urlHelper.ts +6 -2
- package/package.json +1 -2
- package/package.zip +0 -0
package/dpr/all.scss
CHANGED
|
@@ -5,6 +5,122 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
5
5
|
|
|
6
6
|
@import 'govuk/all';
|
|
7
7
|
@import 'moj/all';
|
|
8
|
+
.accordion-section {
|
|
9
|
+
margin-bottom: govuk-spacing(8);
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.accordion-section-row {
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.accordion-section-button {
|
|
18
|
+
min-width: 130px;
|
|
19
|
+
padding-right: govuk-spacing(3);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.accordion-details {
|
|
23
|
+
padding-top: govuk-spacing(3);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.accordion-section-header {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 6px;
|
|
29
|
+
width: calc(100% - 100px);
|
|
30
|
+
left: 100px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.accordion-section-header-scroll {
|
|
34
|
+
width: auto;
|
|
35
|
+
position: relative;
|
|
36
|
+
overflow-x: scroll;
|
|
37
|
+
overflow-y: hidden;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.accordion-summary-remove-button {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
padding: govuk-spacing(2);
|
|
44
|
+
background-color: none;
|
|
45
|
+
position: relative;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
text-decoration: underline !important;
|
|
48
|
+
text-underline-offset: 4px;
|
|
49
|
+
color: govuk-colour("blue");
|
|
50
|
+
text-decoration-color: govuk-colour("blue");
|
|
51
|
+
text-decoration-thickness: 1px;
|
|
52
|
+
box-shadow: none;
|
|
53
|
+
text-underline-offset: 4px;
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
box-shadow: none;
|
|
57
|
+
text-decoration: none;
|
|
58
|
+
color: govuk-colour("black");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.accordion-summary-remove-button:hover:after {
|
|
63
|
+
background-image: url(#{$dpr-images-path}icon-tag-remove-cross.svg);
|
|
64
|
+
content: "";
|
|
65
|
+
display: inline-block;
|
|
66
|
+
font-weight: bold;
|
|
67
|
+
height: 10px;
|
|
68
|
+
margin-left: 5px;
|
|
69
|
+
vertical-align: middle;
|
|
70
|
+
width: 10px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.accordion-summary-remove-button:after {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.accordion-summary-show-accordion-button {
|
|
78
|
+
margin-right: 10px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.selected-accordion-button {
|
|
82
|
+
display: inline-block;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media print {
|
|
86
|
+
.accordion-section {
|
|
87
|
+
margin-bottom: govuk-spacing(3);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.accordion-section-details {
|
|
91
|
+
position: relative;
|
|
92
|
+
left: 0px;
|
|
93
|
+
margin-bottom: govuk-spacing(1);
|
|
94
|
+
|
|
95
|
+
.selected-accordion-button {
|
|
96
|
+
display: block;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
a.govuk-button--inverse.accordion-summary-remove-button {
|
|
100
|
+
text-decoration: none !important;
|
|
101
|
+
color: black;
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
position: relative;
|
|
104
|
+
padding: 0px;
|
|
105
|
+
padding-bottom: govuk-spacing(1);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
::-webkit-scrollbar {
|
|
111
|
+
height: 6px;
|
|
112
|
+
width: 0px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Track */
|
|
116
|
+
::-webkit-scrollbar-track {
|
|
117
|
+
background: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Handle */
|
|
121
|
+
::-webkit-scrollbar-thumb {
|
|
122
|
+
background: govuk-colour("mid-grey");
|
|
123
|
+
}
|
|
8
124
|
.autocomplete-text-input {
|
|
9
125
|
position: relative;
|
|
10
126
|
|
|
@@ -264,7 +380,7 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
264
380
|
.filter-summary-controls,
|
|
265
381
|
.pagination,
|
|
266
382
|
.dpr-actions,
|
|
267
|
-
.filter-
|
|
383
|
+
.filter-section-accordion-button,
|
|
268
384
|
#reset-filter-button,
|
|
269
385
|
.govuk-phase-banner,
|
|
270
386
|
.print-hide {
|
|
@@ -318,17 +434,27 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
318
434
|
color: black;
|
|
319
435
|
}
|
|
320
436
|
}
|
|
321
|
-
.filter-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
font-weight: bold;
|
|
326
|
-
height: 10px;
|
|
327
|
-
margin-left: 5px;
|
|
328
|
-
vertical-align: middle;
|
|
329
|
-
width: 10px;
|
|
437
|
+
.filter-container {
|
|
438
|
+
display: flex;
|
|
439
|
+
flex-wrap: wrap;
|
|
440
|
+
gap: 16px;
|
|
330
441
|
}
|
|
331
442
|
|
|
332
|
-
.filter-
|
|
333
|
-
|
|
443
|
+
.filter-item {
|
|
444
|
+
background-color: lighten(govuk-colour("light-grey"), 4%);
|
|
445
|
+
flex-grow: 0;
|
|
446
|
+
width: 30%;
|
|
447
|
+
padding: 1%;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.govuk-details__summary-text {
|
|
451
|
+
text-underline-offset: 4px;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.filter-actions {
|
|
455
|
+
padding: govuk-spacing(3) 0px;
|
|
456
|
+
|
|
457
|
+
.filter-actions-buttons {
|
|
458
|
+
float: right;
|
|
459
|
+
}
|
|
334
460
|
}
|