@ministryofjustice/hmpps-arns-frontend-components-lib 0.0.4 → 0.0.6

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.
@@ -30,7 +30,7 @@
30
30
  {% set showScore = params.showScore if params.showScore else false %}
31
31
 
32
32
  {% if latestAssessment is defined %}
33
- <div class="predictor-badges{% if params.classes %} {{ params.classes }}{% endif %}">
33
+ <div class="{% if params.classes %}{{ params.classes }}{% endif %}">
34
34
  {% for key, predictor in latestAssessment %}
35
35
  {% if key == params.predictor %}
36
36
 
@@ -52,7 +52,7 @@
52
52
  <span class="predictor-badge__score">{{ predictor.score }}%</span>
53
53
  {% endif %}
54
54
 
55
- {% if predictor.staticOrDynamic %}
55
+ {% if predictor.staticOrDynamic is defined %}
56
56
  <span class="predictor-badge__static_or_dynamic">{{ predictor.staticOrDynamic }}</span>
57
57
  {% endif %}
58
58
  </div>
@@ -0,0 +1,95 @@
1
+ $very-high-score-colour: #942514;
2
+ $very-high-score-colour--light: #ffac9f;
3
+ $very-high-score-colour__text: #711a0d;
4
+ $high-score-colour: #d4351c;
5
+ $high-score-colour--light: #f6d7d2;
6
+ $high-score-colour__text: #942514;
7
+ $medium-score-colour: #f47738;
8
+ $medium-score-colour--light: #f9e8bd;
9
+ $medium-score-colour__text: #a34e00;
10
+ $low-score-colour: #85994b;
11
+ $low-score-colour--light: #dee9bd;
12
+ $low-score-colour__text: #485b10;
13
+
14
+ @mixin expanded-predictor-badge-base($primary-colour, $secondary-colour, $text-colour) {
15
+ display: inline-flex;
16
+ flex-direction: column;
17
+ outline: 2px solid $primary-colour;
18
+ width: 259px;
19
+
20
+ & .predictor-badge__type {
21
+ @include govuk-font(19, "bold");
22
+ color: govuk-colour("black");
23
+
24
+ padding: 10px 10px 2px 10px;
25
+ }
26
+
27
+ & .predictor-badge__stats {
28
+ padding: 2px 10px 2px 10px;
29
+ }
30
+
31
+ & .predictor-badge__level {
32
+ @include govuk-font(19, "bold");
33
+ color: $text-colour;
34
+
35
+ padding: 0px;
36
+ }
37
+
38
+ & .predictor-badge__score {
39
+ @include govuk-font(19, "bold");
40
+ color: govuk-colour("black");
41
+
42
+ background-color: $secondary-colour;
43
+
44
+ padding: 2px 4px;
45
+ }
46
+
47
+ & .predictor-badge__static_or_dynamic {
48
+ @include govuk-font(19, "regular");
49
+ color: #282D30;
50
+
51
+ background-color: #E5E6E7;
52
+
53
+ padding: 2px 4px;
54
+ }
55
+
56
+ & .predictor-badge__wrapped_static_or_dynamic {
57
+ display: inline-block;
58
+ margin-top: 3px;
59
+ }
60
+
61
+ & .predictor-badge__last_updated {
62
+ @include govuk-font(16, "regular");
63
+ color: #6E777A;
64
+
65
+ padding: 2px 10px 10px 10px;
66
+ }
67
+ }
68
+
69
+ .expanded-predictor-badge--very-high {
70
+ @include expanded-predictor-badge-base(
71
+ $very-high-score-colour,
72
+ $very-high-score-colour--light,
73
+ $very-high-score-colour__text
74
+ );
75
+ }
76
+
77
+ .expanded-predictor-badge--high {
78
+ @include expanded-predictor-badge-base($high-score-colour, $high-score-colour--light, $high-score-colour__text);
79
+ }
80
+
81
+ .expanded-predictor-badge--medium {
82
+ @include expanded-predictor-badge-base($medium-score-colour, $medium-score-colour--light, $medium-score-colour__text);
83
+ }
84
+
85
+ .expanded-predictor-badge--low {
86
+ @include expanded-predictor-badge-base($low-score-colour, $low-score-colour--light, $low-score-colour__text);
87
+ }
88
+
89
+ .expanded-predictor-badge__fixed-width {
90
+ width: 259px;
91
+ }
92
+
93
+ .expanded-predictor-badge__dynamic {
94
+ width: 100%;
95
+ }
@@ -0,0 +1,3 @@
1
+ {% macro expandedPredictorBadge(params) %}
2
+ {%- include "./template.njk" -%}
3
+ {% endmacro %}
@@ -0,0 +1,87 @@
1
+ {#
2
+ ARNS Expanded Predictor Badge Component
3
+
4
+ @name expandedPredictorBadge
5
+
6
+ @description Displays specified risk predictor score badges in an expanded format.
7
+ It uses the latest assessment from the provided data set.
8
+
9
+ @example
10
+ In route handler:
11
+ const riskData = await arnsComponents.getRiskData(token, 'crn', 'X123456')
12
+ res.render('page', { riskData })
13
+
14
+ In template:
15
+ {% from "components/expanded-badge/macro.njk" import expandedPredictorBadge %}
16
+ {{ expandedPredictorBadge({
17
+ data: riskData,
18
+ predictor: "allReoffendingPredictor",
19
+ showScore: true,
20
+ fixedWidth: true,
21
+ classes: "class-name-here"
22
+ }) }}
23
+
24
+ @param {object} params
25
+ @param {RiskData} params.data - Risk data object from ArnsComponents.getRiskData() containing an 'assessments' array
26
+ @param {string} params.predictor - The name of the specific predictor to display
27
+ @param {boolean} [params.showScore=false] - If true, displays the percentage score
28
+ @param {boolean} [params.fixedWidth=true] - If true or undefined, displays the expanded predictor badge in a fixed width format
29
+ @param {string} [params.classes] - Optional CSS utility classes to apply to the container
30
+ #}
31
+ {% set latestAssessment = params.data.assessments | first if params.data.assessments else null %}
32
+ {% set showScore = params.showScore if params.showScore else false %}
33
+
34
+ {% if latestAssessment is defined %}
35
+ <div class="{% if params.classes %}{{ params.classes }}{% endif %}">
36
+
37
+ {% for key, predictor in latestAssessment %}
38
+ {% if key == params.predictor %}
39
+
40
+ {% set badgeClass = '' %}
41
+ {% switch predictor.band %}
42
+ {% case 'VERY_HIGH' %}
43
+ {% set badgeClass = 'expanded-predictor-badge--very-high' %}
44
+ {% case 'HIGH' %}
45
+ {% set badgeClass = 'expanded-predictor-badge--high' %}
46
+ {% case 'MEDIUM' %}
47
+ {% set badgeClass = 'expanded-predictor-badge--medium' %}
48
+ {% case 'LOW' %}
49
+ {% set badgeClass = 'expanded-predictor-badge--low' %}
50
+ {% endswitch %}
51
+
52
+ {% set staticOrDynamicClass = 'predictor-badge__static_or_dynamic' %}
53
+ {% if showScore and predictor.band in ['VERY HIGH', 'MEDIUM'] and predictor.staticOrDynamic === 'DYNAMIC' %}
54
+ {% set staticOrDynamicClass = staticOrDynamicClass + ' predictor-badge__wrapped_static_or_dynamic' %}
55
+ {% endif %}
56
+
57
+ {% if params.fixedWidth or params.fixedWidth is undefined %}
58
+ {% set badgeWidthClass = 'expanded-predictor-badge__fixed-width' %}
59
+ {% else %}
60
+ {% set badgeWidthClass = 'expanded-predictor-badge__dynamic' %}
61
+ {% endif %}
62
+
63
+ <div class="{{ badgeClass }} {{ badgeWidthClass }}">
64
+ <span
65
+ class="predictor-badge__type">{{ predictor.name }}</span>
66
+
67
+ <div class="predictor-badge__stats">
68
+ <span class="predictor-badge__level">{{ predictor.band }}</span>
69
+
70
+ {% if showScore and predictor.score is defined %}
71
+ <span class="predictor-badge__score">{{ predictor.score }}%</span>
72
+ {% endif %}
73
+
74
+ {% if predictor.staticOrDynamic is defined %}
75
+ <span class="{{ staticOrDynamicClass }}">{{ predictor.staticOrDynamic }}</span>
76
+ {% endif %}
77
+
78
+ </div>
79
+
80
+ <span class="predictor-badge__last_updated">Last updated: {{ predictor.completedDate }}</span>
81
+
82
+ </div>
83
+ {% endif %}
84
+ {% endfor %}
85
+ {% endif %}
86
+ </div>
87
+ {% endif %}
package/dist/index.cjs.js CHANGED
@@ -8,42 +8,48 @@ function transformAllPredictorVersionedDtoToAssessments(dtos) {
8
8
  return new Date(b.completedDate).getTime() - new Date(a.completedDate).getTime();
9
9
  });
10
10
  return sortedDtos.map(dto => {
11
- const completedDate = dto.completedDate.toString();
12
- const date = new Date(completedDate);
13
- const dateFormatDayMonthYear = new Intl.DateTimeFormat('en-GB', {
14
- day: '2-digit',
15
- month: 'long',
16
- year: 'numeric',
17
- }).format(date);
18
- const time = date.toLocaleTimeString('en-GB', {
19
- hour: '2-digit',
20
- minute: '2-digit',
21
- hour12: false,
22
- });
23
- const dateFormatDayMonthYearTime = `${dateFormatDayMonthYear} at ${time}`;
11
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
12
+ let dateFormatDayMonthYearTime;
13
+ let dateFormatDayMonthYear;
14
+ if (dto.completedDate) {
15
+ const date = new Date(dto.completedDate);
16
+ if (!Number.isNaN(date.getTime())) {
17
+ dateFormatDayMonthYear = new Intl.DateTimeFormat('en-GB', {
18
+ day: '2-digit',
19
+ month: 'long',
20
+ year: 'numeric',
21
+ }).format(date);
22
+ const time = date.toLocaleTimeString('en-GB', {
23
+ hour: '2-digit',
24
+ minute: '2-digit',
25
+ hour12: false,
26
+ });
27
+ dateFormatDayMonthYearTime = `${dateFormatDayMonthYear} at ${time}`;
28
+ }
29
+ }
24
30
  const { output } = dto;
25
31
  if (dto.outputVersion === '1') {
26
32
  return {
27
33
  outputVersion: '1',
28
34
  completedDateTime: dateFormatDayMonthYearTime,
29
- ogrs3: mapPredictor('OGRS', output.groupReconvictionScore.scoreLevel, null, output.groupReconvictionScore.twoYears, dateFormatDayMonthYear),
30
- ovp: mapPredictor('OVP', output.violencePredictorScore.ovpRisk, null, output.violencePredictorScore.twoYears, dateFormatDayMonthYear),
31
- ogp: mapPredictor('OGP', output.generalPredictorScore.ogpRisk, null, output.generalPredictorScore.ogp2Year, dateFormatDayMonthYear),
32
- rsr: mapPredictor('RSR', output.riskOfSeriousRecidivismScore.scoreLevel, output.riskOfSeriousRecidivismScore.staticOrDynamic, output.riskOfSeriousRecidivismScore.percentageScore, dateFormatDayMonthYear),
33
- ospdc: mapPredictor('OSP-DC', output.sexualPredictorScore.ospContactScoreLevel, null, output.sexualPredictorScore.ospContactPercentageScore, dateFormatDayMonthYear),
34
- ospiic: mapPredictor('OSP-IIC', output.sexualPredictorScore.ospIndecentScoreLevel, null, output.sexualPredictorScore.ospIndecentPercentageScore, dateFormatDayMonthYear),
35
+ ogrs3: mapPredictor('OGRS', (_a = output.groupReconvictionScore) === null || _a === void 0 ? void 0 : _a.scoreLevel, null, (_b = output.groupReconvictionScore) === null || _b === void 0 ? void 0 : _b.twoYears, dateFormatDayMonthYear),
36
+ ovp: mapPredictor('OVP', (_c = output.violencePredictorScore) === null || _c === void 0 ? void 0 : _c.ovpRisk, null, (_d = output.violencePredictorScore) === null || _d === void 0 ? void 0 : _d.twoYears, dateFormatDayMonthYear),
37
+ ogp: mapPredictor('OGP', (_e = output.generalPredictorScore) === null || _e === void 0 ? void 0 : _e.ogpRisk, null, (_f = output.generalPredictorScore) === null || _f === void 0 ? void 0 : _f.ogp2Year, dateFormatDayMonthYear),
38
+ rsr: mapPredictor('RSR', (_g = output.riskOfSeriousRecidivismScore) === null || _g === void 0 ? void 0 : _g.scoreLevel, (_h = output.riskOfSeriousRecidivismScore) === null || _h === void 0 ? void 0 : _h.staticOrDynamic, (_j = output.riskOfSeriousRecidivismScore) === null || _j === void 0 ? void 0 : _j.percentageScore, dateFormatDayMonthYear),
39
+ ospdc: mapPredictor('OSP-DC', (_k = output.sexualPredictorScore) === null || _k === void 0 ? void 0 : _k.ospContactScoreLevel, null, (_l = output.sexualPredictorScore) === null || _l === void 0 ? void 0 : _l.ospContactPercentageScore, dateFormatDayMonthYear),
40
+ ospiic: mapPredictor('OSP-IIC', (_m = output.sexualPredictorScore) === null || _m === void 0 ? void 0 : _m.ospIndecentScoreLevel, null, (_o = output.sexualPredictorScore) === null || _o === void 0 ? void 0 : _o.ospIndecentPercentageScore, dateFormatDayMonthYear),
35
41
  };
36
42
  }
37
43
  if (dto.outputVersion === '2') {
38
44
  return {
39
45
  outputVersion: '2',
40
46
  completedDateTime: dateFormatDayMonthYearTime,
41
- allReoffendingPredictor: mapPredictor('All Reoffending Predictor', output.allReoffendingPredictor.band, output.allReoffendingPredictor.staticOrDynamic, output.allReoffendingPredictor.score, dateFormatDayMonthYear),
42
- violentReoffendingPredictor: mapPredictor('Violent Reoffending Predictor', output.violentReoffendingPredictor.band, output.violentReoffendingPredictor.staticOrDynamic, output.violentReoffendingPredictor.score, dateFormatDayMonthYear),
43
- seriousViolentReoffendingPredictor: mapPredictor('Serious Violent Reoffending Predictor', output.seriousViolentReoffendingPredictor.band, output.seriousViolentReoffendingPredictor.staticOrDynamic, output.seriousViolentReoffendingPredictor.score, dateFormatDayMonthYear),
44
- directContactSexualReoffendingPredictor: mapPredictor('Direct Contact - Sexual Reoffending Predictor', output.directContactSexualReoffendingPredictor.band, null, output.directContactSexualReoffendingPredictor.score, dateFormatDayMonthYear),
45
- indirectImageContactSexualReoffendingPredictor: mapPredictor('Images and Indirect Contact – Sexual Reoffending Predictor', output.indirectImageContactSexualReoffendingPredictor.band, null, output.indirectImageContactSexualReoffendingPredictor.score, dateFormatDayMonthYear),
46
- combinedSeriousReoffendingPredictor: mapPredictor('Combined Serious Reoffending Predictor', output.combinedSeriousReoffendingPredictor.band, output.combinedSeriousReoffendingPredictor.staticOrDynamic, output.combinedSeriousReoffendingPredictor.score, dateFormatDayMonthYear),
47
+ allReoffendingPredictor: mapPredictor('All Reoffending Predictor', (_p = output.allReoffendingPredictor) === null || _p === void 0 ? void 0 : _p.band, (_q = output.allReoffendingPredictor) === null || _q === void 0 ? void 0 : _q.staticOrDynamic, (_r = output.allReoffendingPredictor) === null || _r === void 0 ? void 0 : _r.score, dateFormatDayMonthYear),
48
+ violentReoffendingPredictor: mapPredictor('Violent Reoffending Predictor', (_s = output.violentReoffendingPredictor) === null || _s === void 0 ? void 0 : _s.band, (_t = output.violentReoffendingPredictor) === null || _t === void 0 ? void 0 : _t.staticOrDynamic, (_u = output.violentReoffendingPredictor) === null || _u === void 0 ? void 0 : _u.score, dateFormatDayMonthYear),
49
+ seriousViolentReoffendingPredictor: mapPredictor('Serious Violent Reoffending Predictor', (_v = output.seriousViolentReoffendingPredictor) === null || _v === void 0 ? void 0 : _v.band, (_w = output.seriousViolentReoffendingPredictor) === null || _w === void 0 ? void 0 : _w.staticOrDynamic, (_x = output.seriousViolentReoffendingPredictor) === null || _x === void 0 ? void 0 : _x.score, dateFormatDayMonthYear),
50
+ directContactSexualReoffendingPredictor: mapPredictor('Direct Contact - Sexual Reoffending Predictor', (_y = output.directContactSexualReoffendingPredictor) === null || _y === void 0 ? void 0 : _y.band, null, (_z = output.directContactSexualReoffendingPredictor) === null || _z === void 0 ? void 0 : _z.score, dateFormatDayMonthYear),
51
+ indirectImageContactSexualReoffendingPredictor: mapPredictor('Images and Indirect Contact – Sexual Reoffending Predictor', (_0 = output.indirectImageContactSexualReoffendingPredictor) === null || _0 === void 0 ? void 0 : _0.band, null, (_1 = output.indirectImageContactSexualReoffendingPredictor) === null || _1 === void 0 ? void 0 : _1.score, dateFormatDayMonthYear),
52
+ combinedSeriousReoffendingPredictor: mapPredictor('Combined Serious Reoffending Predictor', (_2 = output.combinedSeriousReoffendingPredictor) === null || _2 === void 0 ? void 0 : _2.band, (_3 = output.combinedSeriousReoffendingPredictor) === null || _3 === void 0 ? void 0 : _3.staticOrDynamic, (_4 = output.combinedSeriousReoffendingPredictor) === null || _4 === void 0 ? void 0 : _4.score, dateFormatDayMonthYear),
47
53
  };
48
54
  }
49
55
  throw new Error(`Unsupported output version: ${dto.outputVersion}`);
@@ -52,7 +58,7 @@ function transformAllPredictorVersionedDtoToAssessments(dtos) {
52
58
  function mapPredictor(name, band, staticOrDynamic, score, date) {
53
59
  return {
54
60
  name,
55
- band: band.replace(/_/g, ' ').toUpperCase(),
61
+ band: band === null || band === void 0 ? void 0 : band.replace(/_/g, ' ').toUpperCase(),
56
62
  staticOrDynamic: staticOrDynamic
57
63
  ? staticOrDynamic.charAt(0).toUpperCase() + staticOrDynamic.slice(1).toLowerCase()
58
64
  : null,
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/transformers/AllPredictorVersionedDtoToAssessmentsTransformer.ts","../src/ArnsComponents.ts"],"sourcesContent":[null,null],"names":["RestClient"],"mappings":";;;;AAIM,SAAU,8CAA8C,CAAC,IAAgC,EAAA;;AAE7F,IAAA,MAAM,UAAU,GAA+B,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAC3D,CAAC,CAA2B,EAAE,CAA2B,KAAI;QAC3D,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,IAAI,CAAC,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CAAC;IACpF;AAEA,IAAA,MAAM,WAAW,CACf,WAAiC,EACjC,cAAsB,EACtB,eAAuB,EAAA;QAEvB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACxC,EAAE,IAAI,EAAE,CAAA,sBAAA,EAAyB,cAAc,CAAA,CAAA,EAAI,eAAe,EAAE,EAAE,EACtE,WAAW,CACZ;QAED,OAAO;AACL,YAAA,WAAW,EAAE,8CAA8C,CAAC,QAAQ,CAAC;SACtE;IACH;AACD;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/transformers/AllPredictorVersionedDtoToAssessmentsTransformer.ts","../src/ArnsComponents.ts"],"sourcesContent":[null,null],"names":["RestClient"],"mappings":";;;;AAIM,SAAU,8CAA8C,CAAC,IAAgC,EAAA;;AAE7F,IAAA,MAAM,UAAU,GAA+B,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAC3D,CAAC,CAA2B,EAAE,CAA2B,KAAI;QAC3D,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE;AAClF,IAAA,CAAC,CACF;AAED,IAAA,OAAO,UAAU,CAAC,GAAG,CAAC,GAAG,IAAG;;AAC1B,QAAA,IAAI,0BAAkC;AACtC,QAAA,IAAI,sBAA8B;AAClC,QAAA,IAAI,GAAG,CAAC,aAAa,EAAE;YACrB,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC;YACxC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE;AACjC,gBAAA,sBAAsB,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;AACxD,oBAAA,GAAG,EAAE,SAAS;AACd,oBAAA,KAAK,EAAE,MAAM;AACb,oBAAA,IAAI,EAAE,SAAS;AA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AE,eAAuB,EAAE,KAAa,EAAE,IAAY,EAAA;IACpG,OAAO;QACL,IAAI;AACJ,QAAA,IAAI,EAAE,IAAI,KAAA,IAAA,IAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,CAAC,IAAI,EAAE,GAAG,CAAA,CAAE,WAAW,EAAE;AAC5C,QAAA,eAAe,EAAE;AACf,cAAE,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW;AAChF,cAAE,IAAI;QACR,KAAK;AACL,QAAA,aAAa,EAAE,IAAI;KACpB;AACH;;ACzIc,MAAO,cAAc,CAAA;AAGjC,IAAA,WAAA,CACE,oBAA0C,EAC1C,MAA4B,EAC5B,SAA2B,OAAO,EAAA;AAElC,QAAA,IAAI,CAAC,UAAU,GAAG,IAAIA,0BAAU,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,CAAC;IACpF;AAEA,IAAA,MAAM,WAAW,CACf,WAAiC,EACjC,cAAsB,EACtB,eAAuB,EAAA;QAEvB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACxC,EAAE,IAAI,EAAE,CAAA,sBAAA,EAAyB,cAAc,CAAA,CAAA,EAAI,eAAe,EAAE,EAAE,EACtE,WAAW,CACZ;QAED,OAAO;AACL,YAAA,WAAW,EAAE,8CAA8C,CAAC,QAAQ,CAAC;SACtE;IACH;AACD;;;;"}
package/dist/index.esm.js CHANGED
@@ -6,42 +6,48 @@ function transformAllPredictorVersionedDtoToAssessments(dtos) {
6
6
  return new Date(b.completedDate).getTime() - new Date(a.completedDate).getTime();
7
7
  });
8
8
  return sortedDtos.map(dto => {
9
- const completedDate = dto.completedDate.toString();
10
- const date = new Date(completedDate);
11
- const dateFormatDayMonthYear = new Intl.DateTimeFormat('en-GB', {
12
- day: '2-digit',
13
- month: 'long',
14
- year: 'numeric',
15
- }).format(date);
16
- const time = date.toLocaleTimeString('en-GB', {
17
- hour: '2-digit',
18
- minute: '2-digit',
19
- hour12: false,
20
- });
21
- const dateFormatDayMonthYearTime = `${dateFormatDayMonthYear} at ${time}`;
9
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
10
+ let dateFormatDayMonthYearTime;
11
+ let dateFormatDayMonthYear;
12
+ if (dto.completedDate) {
13
+ const date = new Date(dto.completedDate);
14
+ if (!Number.isNaN(date.getTime())) {
15
+ dateFormatDayMonthYear = new Intl.DateTimeFormat('en-GB', {
16
+ day: '2-digit',
17
+ month: 'long',
18
+ year: 'numeric',
19
+ }).format(date);
20
+ const time = date.toLocaleTimeString('en-GB', {
21
+ hour: '2-digit',
22
+ minute: '2-digit',
23
+ hour12: false,
24
+ });
25
+ dateFormatDayMonthYearTime = `${dateFormatDayMonthYear} at ${time}`;
26
+ }
27
+ }
22
28
  const { output } = dto;
23
29
  if (dto.outputVersion === '1') {
24
30
  return {
25
31
  outputVersion: '1',
26
32
  completedDateTime: dateFormatDayMonthYearTime,
27
- ogrs3: mapPredictor('OGRS', output.groupReconvictionScore.scoreLevel, null, output.groupReconvictionScore.twoYears, dateFormatDayMonthYear),
28
- ovp: mapPredictor('OVP', output.violencePredictorScore.ovpRisk, null, output.violencePredictorScore.twoYears, dateFormatDayMonthYear),
29
- ogp: mapPredictor('OGP', output.generalPredictorScore.ogpRisk, null, output.generalPredictorScore.ogp2Year, dateFormatDayMonthYear),
30
- rsr: mapPredictor('RSR', output.riskOfSeriousRecidivismScore.scoreLevel, output.riskOfSeriousRecidivismScore.staticOrDynamic, output.riskOfSeriousRecidivismScore.percentageScore, dateFormatDayMonthYear),
31
- ospdc: mapPredictor('OSP-DC', output.sexualPredictorScore.ospContactScoreLevel, null, output.sexualPredictorScore.ospContactPercentageScore, dateFormatDayMonthYear),
32
- ospiic: mapPredictor('OSP-IIC', output.sexualPredictorScore.ospIndecentScoreLevel, null, output.sexualPredictorScore.ospIndecentPercentageScore, dateFormatDayMonthYear),
33
+ ogrs3: mapPredictor('OGRS', (_a = output.groupReconvictionScore) === null || _a === void 0 ? void 0 : _a.scoreLevel, null, (_b = output.groupReconvictionScore) === null || _b === void 0 ? void 0 : _b.twoYears, dateFormatDayMonthYear),
34
+ ovp: mapPredictor('OVP', (_c = output.violencePredictorScore) === null || _c === void 0 ? void 0 : _c.ovpRisk, null, (_d = output.violencePredictorScore) === null || _d === void 0 ? void 0 : _d.twoYears, dateFormatDayMonthYear),
35
+ ogp: mapPredictor('OGP', (_e = output.generalPredictorScore) === null || _e === void 0 ? void 0 : _e.ogpRisk, null, (_f = output.generalPredictorScore) === null || _f === void 0 ? void 0 : _f.ogp2Year, dateFormatDayMonthYear),
36
+ rsr: mapPredictor('RSR', (_g = output.riskOfSeriousRecidivismScore) === null || _g === void 0 ? void 0 : _g.scoreLevel, (_h = output.riskOfSeriousRecidivismScore) === null || _h === void 0 ? void 0 : _h.staticOrDynamic, (_j = output.riskOfSeriousRecidivismScore) === null || _j === void 0 ? void 0 : _j.percentageScore, dateFormatDayMonthYear),
37
+ ospdc: mapPredictor('OSP-DC', (_k = output.sexualPredictorScore) === null || _k === void 0 ? void 0 : _k.ospContactScoreLevel, null, (_l = output.sexualPredictorScore) === null || _l === void 0 ? void 0 : _l.ospContactPercentageScore, dateFormatDayMonthYear),
38
+ ospiic: mapPredictor('OSP-IIC', (_m = output.sexualPredictorScore) === null || _m === void 0 ? void 0 : _m.ospIndecentScoreLevel, null, (_o = output.sexualPredictorScore) === null || _o === void 0 ? void 0 : _o.ospIndecentPercentageScore, dateFormatDayMonthYear),
33
39
  };
34
40
  }
35
41
  if (dto.outputVersion === '2') {
36
42
  return {
37
43
  outputVersion: '2',
38
44
  completedDateTime: dateFormatDayMonthYearTime,
39
- allReoffendingPredictor: mapPredictor('All Reoffending Predictor', output.allReoffendingPredictor.band, output.allReoffendingPredictor.staticOrDynamic, output.allReoffendingPredictor.score, dateFormatDayMonthYear),
40
- violentReoffendingPredictor: mapPredictor('Violent Reoffending Predictor', output.violentReoffendingPredictor.band, output.violentReoffendingPredictor.staticOrDynamic, output.violentReoffendingPredictor.score, dateFormatDayMonthYear),
41
- seriousViolentReoffendingPredictor: mapPredictor('Serious Violent Reoffending Predictor', output.seriousViolentReoffendingPredictor.band, output.seriousViolentReoffendingPredictor.staticOrDynamic, output.seriousViolentReoffendingPredictor.score, dateFormatDayMonthYear),
42
- directContactSexualReoffendingPredictor: mapPredictor('Direct Contact - Sexual Reoffending Predictor', output.directContactSexualReoffendingPredictor.band, null, output.directContactSexualReoffendingPredictor.score, dateFormatDayMonthYear),
43
- indirectImageContactSexualReoffendingPredictor: mapPredictor('Images and Indirect Contact – Sexual Reoffending Predictor', output.indirectImageContactSexualReoffendingPredictor.band, null, output.indirectImageContactSexualReoffendingPredictor.score, dateFormatDayMonthYear),
44
- combinedSeriousReoffendingPredictor: mapPredictor('Combined Serious Reoffending Predictor', output.combinedSeriousReoffendingPredictor.band, output.combinedSeriousReoffendingPredictor.staticOrDynamic, output.combinedSeriousReoffendingPredictor.score, dateFormatDayMonthYear),
45
+ allReoffendingPredictor: mapPredictor('All Reoffending Predictor', (_p = output.allReoffendingPredictor) === null || _p === void 0 ? void 0 : _p.band, (_q = output.allReoffendingPredictor) === null || _q === void 0 ? void 0 : _q.staticOrDynamic, (_r = output.allReoffendingPredictor) === null || _r === void 0 ? void 0 : _r.score, dateFormatDayMonthYear),
46
+ violentReoffendingPredictor: mapPredictor('Violent Reoffending Predictor', (_s = output.violentReoffendingPredictor) === null || _s === void 0 ? void 0 : _s.band, (_t = output.violentReoffendingPredictor) === null || _t === void 0 ? void 0 : _t.staticOrDynamic, (_u = output.violentReoffendingPredictor) === null || _u === void 0 ? void 0 : _u.score, dateFormatDayMonthYear),
47
+ seriousViolentReoffendingPredictor: mapPredictor('Serious Violent Reoffending Predictor', (_v = output.seriousViolentReoffendingPredictor) === null || _v === void 0 ? void 0 : _v.band, (_w = output.seriousViolentReoffendingPredictor) === null || _w === void 0 ? void 0 : _w.staticOrDynamic, (_x = output.seriousViolentReoffendingPredictor) === null || _x === void 0 ? void 0 : _x.score, dateFormatDayMonthYear),
48
+ directContactSexualReoffendingPredictor: mapPredictor('Direct Contact - Sexual Reoffending Predictor', (_y = output.directContactSexualReoffendingPredictor) === null || _y === void 0 ? void 0 : _y.band, null, (_z = output.directContactSexualReoffendingPredictor) === null || _z === void 0 ? void 0 : _z.score, dateFormatDayMonthYear),
49
+ indirectImageContactSexualReoffendingPredictor: mapPredictor('Images and Indirect Contact – Sexual Reoffending Predictor', (_0 = output.indirectImageContactSexualReoffendingPredictor) === null || _0 === void 0 ? void 0 : _0.band, null, (_1 = output.indirectImageContactSexualReoffendingPredictor) === null || _1 === void 0 ? void 0 : _1.score, dateFormatDayMonthYear),
50
+ combinedSeriousReoffendingPredictor: mapPredictor('Combined Serious Reoffending Predictor', (_2 = output.combinedSeriousReoffendingPredictor) === null || _2 === void 0 ? void 0 : _2.band, (_3 = output.combinedSeriousReoffendingPredictor) === null || _3 === void 0 ? void 0 : _3.staticOrDynamic, (_4 = output.combinedSeriousReoffendingPredictor) === null || _4 === void 0 ? void 0 : _4.score, dateFormatDayMonthYear),
45
51
  };
46
52
  }
47
53
  throw new Error(`Unsupported output version: ${dto.outputVersion}`);
@@ -50,7 +56,7 @@ function transformAllPredictorVersionedDtoToAssessments(dtos) {
50
56
  function mapPredictor(name, band, staticOrDynamic, score, date) {
51
57
  return {
52
58
  name,
53
- band: band.replace(/_/g, ' ').toUpperCase(),
59
+ band: band === null || band === void 0 ? void 0 : band.replace(/_/g, ' ').toUpperCase(),
54
60
  staticOrDynamic: staticOrDynamic
55
61
  ? staticOrDynamic.charAt(0).toUpperCase() + staticOrDynamic.slice(1).toLowerCase()
56
62
  : null,
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/transformers/AllPredictorVersionedDtoToAssessment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KAAK,CAAC,CAAC,CAAC,CAAC,WAAW;AAChF,cAAE,IAAI;QACR,KAAK;AACL,QAAA,aAAa,EAAE,IAAI;KACpB;AACH;;ACpIc,MAAO,cAAc,CAAA;AAGjC,IAAA,WAAA,CACE,oBAA0C,EAC1C,MAA4B,EAC5B,SAA2B,OAAO,EAAA;AAElC,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,CAAC;IACpF;AAEA,IAAA,MAAM,WAAW,CACf,WAAiC,EACjC,cAAsB,EACtB,eAAuB,EAAA;QAEvB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACxC,EAAE,IAAI,EAAE,CAAA,sBAAA,EAAyB,cAAc,CAAA,CAAA,EAAI,eAAe,EAAE,EAAE,EACtE,WAAW,CACZ;QAED,OAAO;AACL,YAAA,WAAW,EAAE,8CAA8C,CAAC,QAAQ,CAAC;SACtE;IACH;AACD;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/transformers/AllPredictorVersionedDtoToAssessmentsTransformer.ts","../src/ArnsComponents.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;AAIM,SAAU,8CAA8C,CAAC,IAAgC,EAAA;;AAE7F,IAAA,MAAM,UAAU,GAA+B,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAC3D,CAAC,CAA2B,EAAE,CAA2B,KAAI;QAC3D,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE;AAClF,IAAA,CAAC,CACF;AAED,IAAA,OAAO,UAAU,CAAC,GAAG,CAAC,GAAG,IAAG;;AAC1B,QAAA,IAAI,0BAAkC;AACtC,QAAA,IAAI,sBAA8B;AAClC,QAAA,IAAI,GAAG,CAAC,aAAa,EAAE;YACrB,MAAM,IA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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-arns-frontend-components-lib",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "ARNS front-end library for risk score visualisations",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",