@ministryofjustice/hmpps-digital-prison-reporting-frontend 4.0.2 → 4.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 +0 -190
- package/dpr/assets/css/all.css +1 -1
- package/dpr/assets/js/all.mjs +55 -121
- package/dpr/components/_embedded/embedded-report-page/view.njk +25 -0
- package/dpr/components/_filters/filter-input/view.njk +44 -30
- package/dpr/components/_filters/filters-selected/utils.js +46 -12
- package/dpr/components/_filters/filters-selected/utils.ts +50 -12
- package/dpr/components/_filters/filters-selected/view.njk +2 -2
- package/dpr/components/_filters/utils.js +24 -3
- package/dpr/components/_filters/utils.ts +23 -3
- package/dpr/components/_inputs/mulitselect/utils.js +16 -0
- package/dpr/components/_inputs/mulitselect/utils.ts +20 -0
- package/dpr/components/_reports/report/view.njk +1 -2
- package/dpr/components/_reports/report-data-table/types.d.ts +1 -0
- package/dpr/components/_reports/report-heading/view.njk +1 -2
- package/dpr/components/code-block/view.njk +17 -0
- package/dpr/components/report-list/list.njk +2 -10
- package/dpr/components/report-list/types.d.ts +29 -0
- package/dpr/components/report-list/utils.js +65 -128
- package/dpr/components/report-list/utils.ts +100 -165
- package/dpr/components/report-list/view.njk +3 -106
- package/dpr/setUpNunjucksFilters.js +1 -1
- package/dpr/setUpNunjucksFilters.ts +1 -1
- package/dpr/types/ReportQuery.js +3 -1
- package/dpr/types/ReportQuery.ts +3 -1
- package/dpr/types/api.d.ts +1 -1
- package/package.json +1 -1
- package/package.zip +0 -0
- package/dpr/components/accordion/view.njk +0 -48
- package/dpr/components/filters/types.d.ts +0 -47
- package/dpr/components/filters/utils.js +0 -103
- package/dpr/components/filters/utils.ts +0 -133
- package/dpr/components/filters/view.njk +0 -44
- package/dpr/components/report-list/CreateRequestHandlerInput.js +0 -20
- package/dpr/components/report-list/CreateRequestHandlerInput.ts +0 -47
- package/dpr/components/report-list/RenderListWithDefinitionInput.js +0 -19
- package/dpr/components/report-list/RenderListWithDefinitionInput.ts +0 -58
package/dpr/all.scss
CHANGED
|
@@ -27,147 +27,6 @@ $moj-images-path: '/moj/assets/images/';
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.dpr-accordion-section {
|
|
31
|
-
position: relative;
|
|
32
|
-
|
|
33
|
-
.accordion-section-row {
|
|
34
|
-
position: relative;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.accordion-section-button {
|
|
38
|
-
min-width: 130px;
|
|
39
|
-
padding-right: govuk-spacing(3);
|
|
40
|
-
margin-bottom: govuk-spacing(2);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.accordion-details.disabled {
|
|
44
|
-
pointer-events: none;
|
|
45
|
-
|
|
46
|
-
.govuk-details__summary-text, .govuk-details__summary:before {
|
|
47
|
-
opacity: .5
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.accordion-details {
|
|
52
|
-
padding-top: govuk-spacing(2);
|
|
53
|
-
padding-bottom: govuk-spacing(1);
|
|
54
|
-
|
|
55
|
-
.govuk-details__text {
|
|
56
|
-
border-left: none;
|
|
57
|
-
border-bottom: 1px Solid govuk-colour("mid-grey");
|
|
58
|
-
padding: 15px 0;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.accordion-section-header {
|
|
63
|
-
position: absolute;
|
|
64
|
-
width: calc(100% - 120px);
|
|
65
|
-
left: 120px;
|
|
66
|
-
top: 1px;
|
|
67
|
-
|
|
68
|
-
@media(max-width: 640px) {
|
|
69
|
-
top: -1px;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.accordion-section-header-scroll {
|
|
74
|
-
width: auto;
|
|
75
|
-
position: relative;
|
|
76
|
-
overflow-x: scroll;
|
|
77
|
-
overflow-y: hidden;
|
|
78
|
-
white-space: nowrap;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.accordion-summary-remove-button {
|
|
82
|
-
display: inline-block;
|
|
83
|
-
padding: govuk-spacing(2);
|
|
84
|
-
background-color: transparent;
|
|
85
|
-
position: relative;
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
text-decoration: underline !important;
|
|
88
|
-
text-underline-offset: 4px;
|
|
89
|
-
color: govuk-colour("blue");
|
|
90
|
-
text-decoration-color: govuk-colour("blue");
|
|
91
|
-
text-decoration-thickness: 1px !important;
|
|
92
|
-
box-shadow: none;
|
|
93
|
-
|
|
94
|
-
&:hover {
|
|
95
|
-
background-color: #e8f1f8;
|
|
96
|
-
box-shadow: none;
|
|
97
|
-
text-decoration: none;
|
|
98
|
-
color: govuk-colour("black");
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.accordion-summary-remove-button:hover:after {
|
|
103
|
-
background-image: url(#{$dpr-images-path}icon-tag-remove-cross.svg);
|
|
104
|
-
content: "";
|
|
105
|
-
display: inline-block;
|
|
106
|
-
font-weight: bold;
|
|
107
|
-
height: 10px;
|
|
108
|
-
margin-left: 5px;
|
|
109
|
-
vertical-align: middle;
|
|
110
|
-
width: 10px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.accordion-summary-remove-button:after {
|
|
114
|
-
display: none;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.accordion-summary-show-accordion-button {
|
|
118
|
-
margin-right: 10px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.selected-accordion-button {
|
|
122
|
-
display: inline-block;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.govuk-details__summary-text {
|
|
126
|
-
text-underline-offset: 4px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@media print {
|
|
130
|
-
margin-bottom: govuk-spacing(3);
|
|
131
|
-
|
|
132
|
-
.accordion-section-row--Columns {
|
|
133
|
-
display: none;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.accordion-section-header {
|
|
137
|
-
position: relative;
|
|
138
|
-
left: 0;
|
|
139
|
-
margin-bottom: govuk-spacing(1);
|
|
140
|
-
|
|
141
|
-
.selected-accordion-button {
|
|
142
|
-
display: block;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
a.govuk-button--inverse.accordion-summary-remove-button {
|
|
146
|
-
text-decoration: none !important;
|
|
147
|
-
color: black;
|
|
148
|
-
font-size: 14px;
|
|
149
|
-
position: relative;
|
|
150
|
-
padding: 0 0 govuk-spacing(1);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
::-webkit-scrollbar {
|
|
156
|
-
height: 6px;
|
|
157
|
-
width: 0;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/* Track */
|
|
161
|
-
::-webkit-scrollbar-track {
|
|
162
|
-
background: none;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/* Handle */
|
|
166
|
-
::-webkit-scrollbar-thumb {
|
|
167
|
-
background: govuk-colour("mid-grey");
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
30
|
.dpr-bookmark {
|
|
172
31
|
|
|
173
32
|
&:focus {
|
|
@@ -493,55 +352,6 @@ $moj-images-path: '/moj/assets/images/';
|
|
|
493
352
|
display: none
|
|
494
353
|
}
|
|
495
354
|
|
|
496
|
-
.data-table-filters {
|
|
497
|
-
.dpr-filters {
|
|
498
|
-
.filter-container {
|
|
499
|
-
position: relative;
|
|
500
|
-
display: grid;
|
|
501
|
-
grid-template-columns: 1fr 1fr 1fr;
|
|
502
|
-
column-gap: govuk-spacing(3);
|
|
503
|
-
row-gap: govuk-spacing(3);
|
|
504
|
-
|
|
505
|
-
@media(min-width: 769px) and (max-width: 1019px) {
|
|
506
|
-
grid-template-columns: 1fr 1fr;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
@media(max-width: 768px) {
|
|
510
|
-
grid-template-columns: 1fr;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
.dpr-filter-item {
|
|
515
|
-
border-bottom: none;
|
|
516
|
-
background-color: rgba(243, 242, 241, 0.4);
|
|
517
|
-
padding: govuk-spacing(3);
|
|
518
|
-
|
|
519
|
-
.govuk-form-group {
|
|
520
|
-
margin-bottom: govuk-spacing(2);
|
|
521
|
-
}
|
|
522
|
-
&:last-child {
|
|
523
|
-
border-bottom: none
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.filter-actions {
|
|
528
|
-
margin-top: govuk-spacing(3);
|
|
529
|
-
margin-bottom: govuk-spacing(6);
|
|
530
|
-
height: 40px;
|
|
531
|
-
|
|
532
|
-
@media(max-width: 768px) {
|
|
533
|
-
height: 80px;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.govuk-button-group {
|
|
537
|
-
@media(max-width: 768px) {
|
|
538
|
-
width: 100%;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
|
|
545
355
|
.dpr-loading-panel {
|
|
546
356
|
display: none;
|
|
547
357
|
width: 100%;
|