@baravak/risloo-profile-cli 4.46.1 → 4.46.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baravak/risloo-profile-cli",
3
- "version": "4.46.1",
3
+ "version": "4.46.2",
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": {
@@ -74,7 +74,7 @@ class FRHPT9A extends Profile {
74
74
  L57_1: { eng: "indicators_midpoint_responses_value", fa: "احتیاط در پاسخ"},
75
75
  L57_2: { eng: "indicators_midpoint_responses_level" },
76
76
 
77
- L60_1: { eng: "indicators_validity_median_value", fa: "بیش از ۳۰ پاسخ میانه", length: 116},
77
+ L60_1: { eng: "indicators_validity_median_value", fa: "بیش از ۲۰ پاسخ میانه", length: 116},
78
78
  L60_2: { eng: "indicators_validity_median_error" },
79
79
  };
80
80
 
@@ -156,14 +156,6 @@ class FRHPT9A extends Profile {
156
156
  ];
157
157
  }
158
158
  }
159
- function rowMap(r, i){
160
- return {
161
- ...r,
162
- color: i % 2 === 0 ? colors.bars[0] : colors.bars[1],
163
- bg: `url(#${i % 2 === 0 ? 'bgbar1' : 'bgbar2'})`
164
- }
165
- }
166
-
167
159
  class FG {
168
160
  factors = {};
169
161
  _result = {};
@@ -55,28 +55,18 @@
55
55
  <g>
56
56
  {{#each groups as |item index|}}
57
57
  <g transform="translate(0, {{math index '*' 40}})">
58
- {{# if (boolean key '!==' 'MO')}}
59
- <g transform='translate(158, 12)'>
60
- {{bar (math 480 '*' percentage) 16 (object tl=0 bl=0 tr=2 br=2) (toRad 0) fill='url(#bgbarg)' clip-path='url(#cbgbarg)'}}
61
- <text x="{{math (math 480 '*' percentage) '+' (ternary (boolean percentage '<=' 0.24) 4 -6)}}" y="8" font-size="13" font-weight="500" dy=".3em" fill="{{ternary (boolean percentage '<=' 0.24) ../colors.bars.[0].[1] 'white'}}" text-anchor="{{ternary (boolean percentage '<=' 0.24) 'end' 'start'}}">
62
- {{percentageText}} ٪
63
- </text>
64
- </g>
65
- <rect x="659" y="11" width="36" height="18" rx="4" fill="{{../colors.bars.[0].[2]}}" />
66
- <text x="677" y="20" font-size="13" font-weight="500" dy=".3em" fill="white" text-anchor="middle">{{item.mark}}</text>
67
- <text x="755" y="20" font-size="12" font-weight="400" dy=".3em" fill="#64748B" text-anchor="middle">{{item.levelText}}</text>
68
- <text x="149" y="20" font-size="13" font-weight="400" dy=".3em" fill="#475569" text-anchor="start">{{item.key}}</text>
69
- <text x="121" y="20" font-size="13" font-weight="400" dy=".3em" fill="#475569" text-anchor="start">-</text>
70
- <text x="110" y="20" font-size="13" font-weight="400" dy=".3em" fill="#475569" text-anchor="start">{{item.label.fa}}</text>
71
- {{else}}
72
- <rect x="659" y="11" width="36" height="18" rx="4" fill="#CBD5E1" />
73
- <text x="677" y="20" font-size="13" font-weight="500" dy=".3em" fill="white" text-anchor="middle">-</text>
74
- <text x="755" y="20" font-size="13" font-weight="500" dy=".3em" fill="#64748B" text-anchor="middle">-</text>
75
- <text x="149" y="20" font-size="13" font-weight="400" dy=".3em" fill="#94A3B8" text-anchor="start">{{item.key}}</text>
76
- <text x="121" y="20" font-size="13" font-weight="400" dy=".3em" fill="#94A3B8" text-anchor="start">-</text>
77
- <text x="110" y="20" font-size="13" font-weight="400" dy=".3em" fill="#94A3B8" text-anchor="start">{{item.label.fa}}</text>
78
- {{/if}}
79
-
58
+ <g transform='translate(158, 12)'>
59
+ {{bar (math 480 '*' percentage) 16 (object tl=0 bl=0 tr=2 br=2) (toRad 0) fill='url(#bgbarg)' clip-path='url(#cbgbarg)'}}
60
+ <text x="{{math (math 480 '*' percentage) '+' (ternary (boolean percentage '<=' 0.24) 4 -6)}}" y="8" font-size="13" font-weight="500" dy=".3em" fill="{{ternary (boolean percentage '<=' 0.24) ../colors.bars.[0].[1] 'white'}}" text-anchor="{{ternary (boolean percentage '<=' 0.24) 'end' 'start'}}">
61
+ {{percentageText}} ٪
62
+ </text>
63
+ </g>
64
+ <rect x="659" y="11" width="36" height="18" rx="4" fill="{{../colors.bars.[0].[2]}}" />
65
+ <text x="677" y="20" font-size="13" font-weight="500" dy=".3em" fill="white" text-anchor="middle">{{item.mark}}</text>
66
+ <text x="755" y="20" font-size="12" font-weight="400" dy=".3em" fill="#64748B" text-anchor="middle">{{item.levelText}}</text>
67
+ <text x="149" y="20" font-size="13" font-weight="400" dy=".3em" fill="#475569" text-anchor="start">{{item.key}}</text>
68
+ <text x="121" y="20" font-size="13" font-weight="400" dy=".3em" fill="#475569" text-anchor="start">-</text>
69
+ <text x="110" y="20" font-size="13" font-weight="400" dy=".3em" fill="#475569" text-anchor="start">{{item.label.fa}}</text>
80
70
  </g>
81
71
  {{/each}}
82
72
  </g>