@baravak/risloo-profile-cli 4.35.0 → 4.37.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baravak/risloo-profile-cli",
3
- "version": "4.35.0",
3
+ "version": "4.37.0",
4
4
  "description": "**Risloo Profile CLI** is a library for creating profiles, reports and sheets for *psychological* samples.",
5
5
  "main": "bin/risloo.js",
6
6
  "publishConfig": {
@@ -91,9 +91,9 @@ class CAATS93 extends Profile {
91
91
  interprets: [
92
92
  { level: 0, title: "بسیارپایین" },
93
93
  { level: 1, title: "مرزی" },
94
- { level: 2, title: "متوسط پایین" },
95
- { level: 3, title: "متوسط (بهنجار)" },
96
- { level: 4, title: "متوسط بالا" },
94
+ { level: 2, title: "متوسط\nپایین" },
95
+ { level: 3, title: "متوسط\n(بهنجار)" },
96
+ { level: 4, title: "متوسط\nبالا" },
97
97
  { level: 5, title: "سرآمد" },
98
98
  { level: 6, title: "خیلی سرآمد" },
99
99
  ],
@@ -62,7 +62,8 @@ class Raven93 extends Profile {
62
62
  dataset,
63
63
  } = this;
64
64
  const report = dataset.score[3]
65
- const iq = dataset.score[1].mark ?? 0
65
+ const iq = dataset.score[1].mark?.toString().replace(/[<>]/, '')
66
+ const iqText = dataset.score[1].mark ?? 0
66
67
  const raw = dataset.score[2].mark ?? 0
67
68
  const percentile = dataset.score[3].mark ?? 0
68
69
  levels[report.mark].selected = true
@@ -89,7 +90,7 @@ class Raven93 extends Profile {
89
90
  iq > 100 ? levels['High average'] : levels['Low average']
90
91
  )
91
92
 
92
- return [{ levels, selected, questions, iq, raw, percentile, indic }];
93
+ return [{ levels, selected, questions, iq, raw, percentile, indic, iqText }];
93
94
  }
94
95
  }
95
96
 
@@ -134,7 +134,7 @@
134
134
  <path d="M25.5 205H28.5V0H25.5V205Z" fill="{{indic.color.[0]}}"/>
135
135
  <path d="M0 219C0 213.477 4.47715 209 10 209H44C49.5228 209 54 213.477 54 219V234C54 239.523 49.5228 244 44 244H10C4.47715 244 0 239.523 0 234V219Z" fill="{{indic.color.[0]}}"/>
136
136
  <path d="M27 203.343L32.6569 209H21.3431L27 203.343Z" fill="{{indic.color.[0]}}"/>
137
- <text x="27" y="233" text-anchor="middle" font-size="20" font-weight="700" fill="#FFFFFF">{{iq}}</text>
137
+ <text x="27" y="233" text-anchor="middle" font-size="20" font-weight="700" fill="#FFFFFF">{{iqText}}</text>
138
138
  <text x="-7" y="227" text-anchor="start" font-size="14" font-weight="500" fill="#334155">{{raw}}</text>
139
139
  <text x="-7" y="237" text-anchor="start" font-size="12" font-weight="400" fill="#64748B">نمره خام</text>
140
140
  <text x="62" y="227" text-anchor="end" font-size="14" font-weight="500" fill="#334155">{{raw}}</text>