@ministryofjustice/hmpps-digital-prison-reporting-frontend 1.3.3 → 2.0.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 +107 -1
- package/dpr/assets/css/all.css +1 -1
- package/dpr/assets/js/client.js +1 -1
- package/dpr/components/card-group/utils.js +6 -33
- package/dpr/components/card-group/utils.ts +6 -38
- package/dpr/components/data-table/view.njk +17 -17
- package/dpr/components/dropdown-button/view.njk +54 -0
- package/dpr/components/filters/utils.js +17 -9
- package/dpr/components/filters/utils.ts +19 -9
- package/dpr/components/report-list/CreateRequestHandlerInput.js +20 -0
- package/dpr/components/report-list/CreateRequestHandlerInput.ts +45 -0
- package/dpr/components/report-list/RenderListWithDefinitionInput.js +19 -0
- package/dpr/components/report-list/RenderListWithDefinitionInput.ts +56 -0
- package/dpr/components/report-list/list.njk +35 -12
- package/dpr/components/report-list/types.d.ts +0 -58
- package/dpr/components/report-list/utils.js +75 -42
- package/dpr/components/report-list/utils.ts +99 -51
- package/dpr/utils/urlHelper.js +3 -1
- package/dpr/utils/urlHelper.ts +3 -1
- package/package.json +1 -1
- package/package.zip +0 -0
package/dpr/all.scss
CHANGED
|
@@ -5,7 +5,6 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
5
5
|
|
|
6
6
|
@import 'govuk/all';
|
|
7
7
|
@import 'moj/all';
|
|
8
|
-
|
|
9
8
|
.autocomplete-text-input {
|
|
10
9
|
position: relative;
|
|
11
10
|
|
|
@@ -197,6 +196,113 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
197
196
|
#pageSize {
|
|
198
197
|
min-width: 5em;
|
|
199
198
|
}
|
|
199
|
+
|
|
200
|
+
.print-header-footer {
|
|
201
|
+
display: none
|
|
202
|
+
}
|
|
203
|
+
.dropdown-button {
|
|
204
|
+
position: relative;
|
|
205
|
+
|
|
206
|
+
button.govuk-button, a.govuk-button {
|
|
207
|
+
box-shadow: none;
|
|
208
|
+
margin-bottom: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
ul {
|
|
212
|
+
background-color: white;
|
|
213
|
+
border-top: #b1b4b6 1px solid;
|
|
214
|
+
display: inline-block;
|
|
215
|
+
right: 2px;
|
|
216
|
+
list-style-type: none;
|
|
217
|
+
margin: 0;
|
|
218
|
+
padding: 0;
|
|
219
|
+
position: absolute;
|
|
220
|
+
top: 100%;
|
|
221
|
+
width: max-content;
|
|
222
|
+
z-index: 10000;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
li {
|
|
226
|
+
border: #b1b4b6 1px solid;
|
|
227
|
+
border-top: 0;
|
|
228
|
+
text-align: left;
|
|
229
|
+
width: 100%;
|
|
230
|
+
|
|
231
|
+
button, a {
|
|
232
|
+
text-align: left;
|
|
233
|
+
width: 100%;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
div {
|
|
237
|
+
|
|
238
|
+
margin-bottom: 0;
|
|
239
|
+
padding: 8px 12px 7px;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@media print {
|
|
245
|
+
.data-table-paging,
|
|
246
|
+
.moj-filter-layout__filter,
|
|
247
|
+
.govuk-breadcrumbs,
|
|
248
|
+
.moj-primary-navigation,
|
|
249
|
+
.govuk-footer,
|
|
250
|
+
.govuk-error-summary,
|
|
251
|
+
.filter-summary-controls,
|
|
252
|
+
.pagination,
|
|
253
|
+
.dpr-actions,
|
|
254
|
+
.filter-summary-show-filter-button,
|
|
255
|
+
.print-hide {
|
|
256
|
+
display: none;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.data-table-header-button-sort-ascending:after,
|
|
260
|
+
.data-table-header-button-sort-descending:after,
|
|
261
|
+
.data-table-header-button-sort-none:after,
|
|
262
|
+
.data-table-header-button-sort-none:before {
|
|
263
|
+
content: none;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.print-header-footer {
|
|
267
|
+
display: table-cell;
|
|
268
|
+
text-align: center;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.govuk-table__cell,
|
|
272
|
+
.govuk-table__header {
|
|
273
|
+
font-size: 14px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.moj-button-menu__wrapper a {
|
|
277
|
+
border: 1px solid #b1b4b6;
|
|
278
|
+
box-shadow: none;
|
|
279
|
+
font-size: 14px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
div.govuk-width-container {
|
|
283
|
+
margin: 0;
|
|
284
|
+
max-width: none;
|
|
285
|
+
width: 100%;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.moj-page-header-actions {
|
|
289
|
+
margin-bottom: 5px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.filter-summary-remove-button:after {
|
|
293
|
+
margin-left: 0;
|
|
294
|
+
width: 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.moj-scrollable-pane {
|
|
298
|
+
overflow-x: clip;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.govuk-table__header a.data-table-header-button {
|
|
302
|
+
text-decoration: none;
|
|
303
|
+
color: black;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
200
306
|
.filter-summary-remove-button:after {
|
|
201
307
|
background-image: url(#{$dpr-images-path}icon-tag-remove-cross.svg);
|
|
202
308
|
content: "";
|