@ministryofjustice/hmpps-digital-prison-reporting-frontend 1.3.1 → 1.3.2

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.
@@ -21,7 +21,7 @@
21
21
 
22
22
  {%- set filterOptionsHtml %}
23
23
  {%- for filter in filters %}
24
- {%- if filter.type === 'Select' %}
24
+ {%- if filter.type | lower === 'select' %}
25
25
  {{ govukSelect({
26
26
  id: parameterPrefix + filter.name,
27
27
  name: parameterPrefix + filter.name,
@@ -31,7 +31,7 @@
31
31
  text: filter.text
32
32
  }
33
33
  }) }}
34
- {% elif filter.type === 'Radio' %}
34
+ {% elif filter.type | lower === 'radio' %}
35
35
  {{ govukRadios({
36
36
  id: parameterPrefix + filter.name,
37
37
  name: parameterPrefix + filter.name,
@@ -44,7 +44,7 @@
44
44
  items: filter.options,
45
45
  value: filter.value
46
46
  }) }}
47
- {% elif filter.type === 'daterange' %}
47
+ {% elif filter.type | lower === 'daterange' %}
48
48
  <div class="govuk-form-group">
49
49
  <fieldset class="govuk-fieldset">
50
50
  <legend class="govuk-fieldset__legend govuk-label govuk-!-font-weight-bold">
@@ -76,7 +76,7 @@
76
76
  }) }}
77
77
  </fieldset>
78
78
  </div>
79
- {% elif filter.type === 'autocomplete' %}
79
+ {% elif filter.type | lower === 'autocomplete' %}
80
80
  {{ dprAutocompleteTextInput({
81
81
  id: parameterPrefix + filter.name,
82
82
  name: parameterPrefix + filter.name,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-digital-prison-reporting-frontend",
3
3
  "description": "The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "main": "dpr/assets/js/client.js",
6
6
  "sass": "dpr/all.scss",
7
7
  "engines": {
package/package.zip CHANGED
Binary file