@ministryofjustice/hmpps-digital-prison-reporting-frontend 2.3.1 → 2.4.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 +123 -3
- package/dpr/assets/css/all.css +1 -1
- package/dpr/assets/js/client.js +1 -1
- package/dpr/components/columns/view.njk +52 -0
- package/dpr/components/data-table/utils.js +62 -48
- package/dpr/components/data-table/utils.ts +74 -56
- package/dpr/components/data-table/view.njk +2 -0
- package/dpr/components/filters/view.njk +43 -37
- package/dpr/components/loading-anim/view.njk +18 -0
- package/dpr/components/report-list/list.njk +26 -3
- package/dpr/components/report-list/utils.js +21 -9
- package/dpr/components/report-list/utils.ts +27 -8
- package/dpr/types/ReportQuery.js +8 -1
- package/dpr/types/ReportQuery.ts +12 -0
- package/dpr/utils/urlHelper.js +13 -2
- package/dpr/utils/urlHelper.ts +17 -2
- package/package.json +1 -1
- package/package.zip +0 -0
package/dpr/all.scss
CHANGED
|
@@ -26,8 +26,8 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
26
26
|
.accordion-section-header {
|
|
27
27
|
position: absolute;
|
|
28
28
|
top: 6px;
|
|
29
|
-
width: calc(100% -
|
|
30
|
-
left:
|
|
29
|
+
width: calc(100% - 120px);
|
|
30
|
+
left: 120px;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.accordion-section-header-scroll {
|
|
@@ -246,6 +246,21 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
246
246
|
margin-bottom: 0
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
+
.columns-container .govuk-checkboxes--small .govuk-checkboxes__item {
|
|
250
|
+
display: inline-block;
|
|
251
|
+
width: 28%;
|
|
252
|
+
vertical-align:top;
|
|
253
|
+
float: none;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.columns-container {
|
|
257
|
+
position: relative;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.columns-header {
|
|
261
|
+
padding-left: 10px;
|
|
262
|
+
padding-top: 10px;
|
|
263
|
+
}
|
|
249
264
|
.data-table-page-size {
|
|
250
265
|
text-align: right;
|
|
251
266
|
}
|
|
@@ -320,6 +335,10 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
320
335
|
.data-table-empty-message {
|
|
321
336
|
text-align: center;
|
|
322
337
|
}
|
|
338
|
+
|
|
339
|
+
.table-container {
|
|
340
|
+
position: relative;
|
|
341
|
+
}
|
|
323
342
|
.dropdown-button {
|
|
324
343
|
position: relative;
|
|
325
344
|
float: right;
|
|
@@ -438,6 +457,7 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
438
457
|
display: flex;
|
|
439
458
|
flex-wrap: wrap;
|
|
440
459
|
gap: 16px;
|
|
460
|
+
position: relative;
|
|
441
461
|
}
|
|
442
462
|
|
|
443
463
|
.filter-item {
|
|
@@ -457,4 +477,104 @@ $govuk-assets-path: "/assets/govuk/";
|
|
|
457
477
|
.filter-actions-buttons {
|
|
458
478
|
float: right;
|
|
459
479
|
}
|
|
460
|
-
}
|
|
480
|
+
}
|
|
481
|
+
.loading-panel {
|
|
482
|
+
display: none;
|
|
483
|
+
width: 100%;
|
|
484
|
+
height: 100%;
|
|
485
|
+
position: absolute;
|
|
486
|
+
top: 0px;
|
|
487
|
+
left: 0px;
|
|
488
|
+
z-index: 2;
|
|
489
|
+
justify-content: center;
|
|
490
|
+
align-items: center;
|
|
491
|
+
background-color: rgba(255,255,255,0.8);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.loading-panel.show {
|
|
495
|
+
display: flex;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.dpr-loading-anim {
|
|
499
|
+
display: inline-block;
|
|
500
|
+
position: relative;
|
|
501
|
+
width: 80px;
|
|
502
|
+
height: 80px;
|
|
503
|
+
}
|
|
504
|
+
.dpr-loading-anim div {
|
|
505
|
+
position: absolute;
|
|
506
|
+
width: 6px;
|
|
507
|
+
height: 6px;
|
|
508
|
+
background: govuk-colour("light-blue");
|
|
509
|
+
border-radius: 50%;
|
|
510
|
+
animation: dpr-loading-anim 1.2s linear infinite;
|
|
511
|
+
}
|
|
512
|
+
.dpr-loading-anim div:nth-child(1) {
|
|
513
|
+
animation-delay: 0s;
|
|
514
|
+
top: 37px;
|
|
515
|
+
left: 66px;
|
|
516
|
+
}
|
|
517
|
+
.dpr-loading-anim div:nth-child(2) {
|
|
518
|
+
animation-delay: -0.1s;
|
|
519
|
+
top: 22px;
|
|
520
|
+
left: 62px;
|
|
521
|
+
}
|
|
522
|
+
.dpr-loading-anim div:nth-child(3) {
|
|
523
|
+
animation-delay: -0.2s;
|
|
524
|
+
top: 11px;
|
|
525
|
+
left: 52px;
|
|
526
|
+
}
|
|
527
|
+
.dpr-loading-anim div:nth-child(4) {
|
|
528
|
+
animation-delay: -0.3s;
|
|
529
|
+
top: 7px;
|
|
530
|
+
left: 37px;
|
|
531
|
+
}
|
|
532
|
+
.dpr-loading-anim div:nth-child(5) {
|
|
533
|
+
animation-delay: -0.4s;
|
|
534
|
+
top: 11px;
|
|
535
|
+
left: 22px;
|
|
536
|
+
}
|
|
537
|
+
.dpr-loading-anim div:nth-child(6) {
|
|
538
|
+
animation-delay: -0.5s;
|
|
539
|
+
top: 22px;
|
|
540
|
+
left: 11px;
|
|
541
|
+
}
|
|
542
|
+
.dpr-loading-anim div:nth-child(7) {
|
|
543
|
+
animation-delay: -0.6s;
|
|
544
|
+
top: 37px;
|
|
545
|
+
left: 7px;
|
|
546
|
+
}
|
|
547
|
+
.dpr-loading-anim div:nth-child(8) {
|
|
548
|
+
animation-delay: -0.7s;
|
|
549
|
+
top: 52px;
|
|
550
|
+
left: 11px;
|
|
551
|
+
}
|
|
552
|
+
.dpr-loading-anim div:nth-child(9) {
|
|
553
|
+
animation-delay: -0.8s;
|
|
554
|
+
top: 62px;
|
|
555
|
+
left: 22px;
|
|
556
|
+
}
|
|
557
|
+
.dpr-loading-anim div:nth-child(10) {
|
|
558
|
+
animation-delay: -0.9s;
|
|
559
|
+
top: 66px;
|
|
560
|
+
left: 37px;
|
|
561
|
+
}
|
|
562
|
+
.dpr-loading-anim div:nth-child(11) {
|
|
563
|
+
animation-delay: -1s;
|
|
564
|
+
top: 62px;
|
|
565
|
+
left: 52px;
|
|
566
|
+
}
|
|
567
|
+
.dpr-loading-anim div:nth-child(12) {
|
|
568
|
+
animation-delay: -1.1s;
|
|
569
|
+
top: 52px;
|
|
570
|
+
left: 62px;
|
|
571
|
+
}
|
|
572
|
+
@keyframes dpr-loading-anim {
|
|
573
|
+
0%, 20%, 80%, 100% {
|
|
574
|
+
transform: scale(1);
|
|
575
|
+
}
|
|
576
|
+
50% {
|
|
577
|
+
transform: scale(1.5);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|