@ministryofjustice/hmpps-digital-prison-reporting-frontend 3.0.2 → 3.1.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 +41 -20
- package/dpr/assets/css/all.css +1 -1
- package/dpr/assets/js/all.mjs +120 -48
- package/dpr/components/date-range/view.njk +63 -0
- package/dpr/components/filters/types.d.ts +13 -2
- package/dpr/components/filters/utils.js +10 -4
- package/dpr/components/filters/utils.ts +12 -6
- package/dpr/components/filters/view.njk +78 -106
- package/dpr/components/report-list/list.njk +4 -2
- package/dpr/types/api.d.ts +2 -0
- package/package.json +1 -1
- package/package.zip +0 -0
package/dpr/all.scss
CHANGED
|
@@ -4,6 +4,7 @@ $dpr-images-path: "/assets/dpr/images/";
|
|
|
4
4
|
$govuk-assets-path: "/assets/govuk/";
|
|
5
5
|
|
|
6
6
|
@import 'govuk/all';
|
|
7
|
+
|
|
7
8
|
.accordion-section {
|
|
8
9
|
margin-bottom: govuk-spacing(8);
|
|
9
10
|
position: relative;
|
|
@@ -161,6 +162,26 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
161
162
|
}
|
|
162
163
|
}
|
|
163
164
|
|
|
165
|
+
.columns-container .govuk-checkboxes--small .govuk-checkboxes__item {
|
|
166
|
+
display: inline-block;
|
|
167
|
+
width: 28%;
|
|
168
|
+
vertical-align:top;
|
|
169
|
+
float: none;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.columns-container {
|
|
173
|
+
position: relative;
|
|
174
|
+
|
|
175
|
+
.govuk-checkboxes__input, .govuk-checkboxes__label {
|
|
176
|
+
display: inline-block;
|
|
177
|
+
vertical-align:top;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.columns-header {
|
|
182
|
+
padding-left: 10px;
|
|
183
|
+
padding-top: 10px;
|
|
184
|
+
}
|
|
164
185
|
.card {
|
|
165
186
|
margin-bottom: 40px;
|
|
166
187
|
background: #fff;
|
|
@@ -247,26 +268,6 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
247
268
|
margin-bottom: 0
|
|
248
269
|
}
|
|
249
270
|
}
|
|
250
|
-
.columns-container .govuk-checkboxes--small .govuk-checkboxes__item {
|
|
251
|
-
display: inline-block;
|
|
252
|
-
width: 28%;
|
|
253
|
-
vertical-align:top;
|
|
254
|
-
float: none;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.columns-container {
|
|
258
|
-
position: relative;
|
|
259
|
-
|
|
260
|
-
.govuk-checkboxes__input, .govuk-checkboxes__label {
|
|
261
|
-
display: inline-block;
|
|
262
|
-
vertical-align:top;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.columns-header {
|
|
267
|
-
padding-left: 10px;
|
|
268
|
-
padding-top: 10px;
|
|
269
|
-
}
|
|
270
271
|
.data-table-page-size {
|
|
271
272
|
text-align: right;
|
|
272
273
|
}
|
|
@@ -351,6 +352,22 @@ a.disabled {
|
|
|
351
352
|
cursor: default;
|
|
352
353
|
opacity: 0.5;
|
|
353
354
|
}
|
|
355
|
+
.date-range {
|
|
356
|
+
.govuk-form-group {
|
|
357
|
+
margin-bottom: 0px;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.daterange-set-to-minmax {
|
|
362
|
+
cursor: pointer;
|
|
363
|
+
text-align: right;
|
|
364
|
+
margin-bottom: govuk-spacing(0);
|
|
365
|
+
margin-top: govuk-spacing(1);
|
|
366
|
+
|
|
367
|
+
&:hover {
|
|
368
|
+
color: govuk-colour("light-blue")
|
|
369
|
+
}
|
|
370
|
+
}
|
|
354
371
|
.dropdown-button {
|
|
355
372
|
position: relative;
|
|
356
373
|
float: right;
|
|
@@ -477,6 +494,10 @@ a.disabled {
|
|
|
477
494
|
flex-grow: 0;
|
|
478
495
|
width: 30%;
|
|
479
496
|
padding: 1%;
|
|
497
|
+
|
|
498
|
+
.govuk-form-group {
|
|
499
|
+
margin-bottom: govuk-spacing(2);
|
|
500
|
+
}
|
|
480
501
|
}
|
|
481
502
|
|
|
482
503
|
.govuk-details__summary-text {
|