@ministryofjustice/hmpps-digital-prison-reporting-frontend 2.2.0 → 2.3.0
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 +165 -39
- 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/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/data/reportingClient.js +13 -6
- package/dpr/data/reportingClient.ts +17 -4
- package/dpr/data/types.d.ts +1 -0
- package/package.json +1 -1
- package/package.zip +0 -0
package/dpr/all.scss
CHANGED
|
@@ -5,6 +5,45 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
5
5
|
|
|
6
6
|
@import 'govuk/all';
|
|
7
7
|
@import 'moj/all';
|
|
8
|
+
.autocomplete-text-input {
|
|
9
|
+
position: relative;
|
|
10
|
+
|
|
11
|
+
ul {
|
|
12
|
+
background-color: white;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
left: 0;
|
|
15
|
+
list-style-type: none;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 100%;
|
|
20
|
+
width: 100%;
|
|
21
|
+
z-index: 10000;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
li {
|
|
25
|
+
border: #b1b4b6 1px solid;
|
|
26
|
+
border-top: 0;
|
|
27
|
+
text-align: left;
|
|
28
|
+
width: calc(100% - 2px);
|
|
29
|
+
|
|
30
|
+
button, a {
|
|
31
|
+
box-shadow: none;
|
|
32
|
+
margin-bottom: 0;
|
|
33
|
+
text-align: left;
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.autocomplete-text-input-item-hide {
|
|
39
|
+
display: none;
|
|
40
|
+
|
|
41
|
+
button {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
8
47
|
.card {
|
|
9
48
|
margin-bottom: 40px;
|
|
10
49
|
background: #fff;
|
|
@@ -91,45 +130,122 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
91
130
|
margin-bottom: 0
|
|
92
131
|
}
|
|
93
132
|
}
|
|
94
|
-
.
|
|
133
|
+
.accordion-section {
|
|
134
|
+
margin-bottom: govuk-spacing(8);
|
|
95
135
|
position: relative;
|
|
136
|
+
}
|
|
96
137
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
138
|
+
.accordion-section-row {
|
|
139
|
+
position: relative;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.accordion-section-button {
|
|
143
|
+
min-width: 130px;
|
|
144
|
+
padding-right: govuk-spacing(3);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.accordion-details {
|
|
148
|
+
padding-top: govuk-spacing(3);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.accordion-section-header {
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: 6px;
|
|
154
|
+
width: calc(100% - 100px);
|
|
155
|
+
left: 100px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.accordion-section-header-scroll {
|
|
159
|
+
width: auto;
|
|
160
|
+
position: relative;
|
|
161
|
+
overflow-x: scroll;
|
|
162
|
+
overflow-y: hidden;
|
|
163
|
+
white-space: nowrap;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.accordion-summary-remove-button {
|
|
167
|
+
display: inline-block;
|
|
168
|
+
padding: govuk-spacing(2);
|
|
169
|
+
background-color: none;
|
|
170
|
+
position: relative;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
text-decoration: underline !important;
|
|
173
|
+
text-underline-offset: 4px;
|
|
174
|
+
color: govuk-colour("blue");
|
|
175
|
+
text-decoration-color: govuk-colour("blue");
|
|
176
|
+
text-decoration-thickness: 1px;
|
|
177
|
+
box-shadow: none;
|
|
178
|
+
text-underline-offset: 4px;
|
|
179
|
+
|
|
180
|
+
&:hover {
|
|
181
|
+
box-shadow: none;
|
|
182
|
+
text-decoration: none;
|
|
183
|
+
color: govuk-colour("black");
|
|
108
184
|
}
|
|
185
|
+
}
|
|
109
186
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
187
|
+
.accordion-summary-remove-button:hover:after {
|
|
188
|
+
background-image: url(#{$dpr-images-path}icon-tag-remove-cross.svg);
|
|
189
|
+
content: "";
|
|
190
|
+
display: inline-block;
|
|
191
|
+
font-weight: bold;
|
|
192
|
+
height: 10px;
|
|
193
|
+
margin-left: 5px;
|
|
194
|
+
vertical-align: middle;
|
|
195
|
+
width: 10px;
|
|
196
|
+
}
|
|
115
197
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
198
|
+
.accordion-summary-remove-button:after {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.accordion-summary-show-accordion-button {
|
|
203
|
+
margin-right: 10px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.selected-accordion-button {
|
|
207
|
+
display: inline-block;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media print {
|
|
211
|
+
.accordion-section {
|
|
212
|
+
margin-bottom: govuk-spacing(3);
|
|
122
213
|
}
|
|
123
214
|
|
|
124
|
-
.
|
|
125
|
-
|
|
215
|
+
.accordion-section-details {
|
|
216
|
+
position: relative;
|
|
217
|
+
left: 0px;
|
|
218
|
+
margin-bottom: govuk-spacing(1);
|
|
126
219
|
|
|
127
|
-
button {
|
|
128
|
-
display:
|
|
220
|
+
.selected-accordion-button {
|
|
221
|
+
display: block;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
a.govuk-button--inverse.accordion-summary-remove-button {
|
|
225
|
+
text-decoration: none !important;
|
|
226
|
+
color: black;
|
|
227
|
+
font-size: 14px;
|
|
228
|
+
position: relative;
|
|
229
|
+
padding: 0px;
|
|
230
|
+
padding-bottom: govuk-spacing(1);
|
|
129
231
|
}
|
|
130
232
|
}
|
|
131
233
|
}
|
|
132
234
|
|
|
235
|
+
::-webkit-scrollbar {
|
|
236
|
+
height: 6px;
|
|
237
|
+
width: 0px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* Track */
|
|
241
|
+
::-webkit-scrollbar-track {
|
|
242
|
+
background: none;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* Handle */
|
|
246
|
+
::-webkit-scrollbar-thumb {
|
|
247
|
+
background: govuk-colour("mid-grey");
|
|
248
|
+
}
|
|
133
249
|
.data-table-page-size {
|
|
134
250
|
text-align: right;
|
|
135
251
|
}
|
|
@@ -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
|
}
|