@@ -23,6 +23,7 @@ const stats = computed(() => {
2323 total: 100 ,
2424 unit: " %" ,
2525 hasDetails: true ,
26+ theme: " france" ,
2627 },
2728 ]
2829 : []),
@@ -37,6 +38,7 @@ const stats = computed(() => {
3738 total:
3839 report .data ! .totalCriteriaCount * report .data ! .context .samples .length ,
3940 danger: true ,
41+ theme: " marianne" ,
4042 },
4143 {
4244 title: " Critères applicables" ,
@@ -72,6 +74,7 @@ const chartsName = {
7274 :total =" stat.total"
7375 :unit =" stat.unit"
7476 :danger =" stat.danger"
77+ :theme =" stat.theme"
7578 >
7679 <template v-if =" stat .hasDetails " #accordion-title >
7780 En savoir plus sur le calcul du taux
@@ -100,6 +103,25 @@ const chartsName = {
100103 <ResultDetailsCard
101104 class =" fr-mb-6w result-card"
102105 :title =" chartsName.resultDistribution"
106+ :table-data =" [
107+ ['Critères', 'Résultat'],
108+ [
109+ 'Conformes',
110+ `${Math.round(report.data.resultDistribution.compliant.percentage)}%`,
111+ ],
112+ [
113+ 'Non conformes',
114+ `${Math.round(
115+ report.data.resultDistribution.notCompliant.percentage
116+ )}%`,
117+ ],
118+ [
119+ 'Non applicables',
120+ `${Math.round(
121+ report.data.resultDistribution.notApplicable.percentage
122+ )}%`,
123+ ],
124+ ]"
103125 >
104126 <div class =" card-content" >
105127 <ChartLegend class =" card-legend" />
@@ -127,6 +149,22 @@ const chartsName = {
127149 <ResultDetailsCard
128150 class =" fr-mb-6w result-card"
129151 :title =" chartsName.pageDistribution"
152+ :table-data =" [
153+ [
154+ 'Page',
155+ 'Critères conformes',
156+ 'Critères non conformes',
157+ 'Critères non applicables',
158+ ],
159+ ...report.data.pageDistributions.map((p) => {
160+ return [
161+ p.name,
162+ `${Math.round(p.compliant.percentage)}%`,
163+ `${Math.round(p.notCompliant.percentage)}%`,
164+ `${Math.round(p.notApplicable.percentage)}%`,
165+ ];
166+ }),
167+ ]"
130168 >
131169 <div class =" card-content" >
132170 <ChartLegend class =" card-legend" />
@@ -156,6 +194,22 @@ const chartsName = {
156194 <ResultDetailsCard
157195 class =" result-card"
158196 :title =" chartsName.topicDistribution"
197+ :table-data =" [
198+ [
199+ 'Thématique du RGAA',
200+ 'Critères conformes',
201+ 'Critères non conformes',
202+ 'Critères non applicables',
203+ ],
204+ ...report.data.topicDistributions.map((t, i) => {
205+ return [
206+ `${i + 1}. ${t.name}`,
207+ `${Math.round(t.compliant.percentage)}%`,
208+ `${Math.round(t.notCompliant.percentage)}%`,
209+ `${Math.round(t.notApplicable.percentage)}%`,
210+ ];
211+ }),
212+ ]"
159213 >
160214 <div class =" card-content" >
161215 <ChartLegend class =" card-legend" />
0 commit comments