eaa-kit 0.6.0 → 0.9.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.
Files changed (97) hide show
  1. package/README.md +52 -15
  2. package/dist/astro/index.d.ts +1 -1
  3. package/dist/astro/index.js +1 -1
  4. package/dist/audit/runners/worker.js +1 -1
  5. package/dist/audit-CJDCQaFY.js +2 -0
  6. package/dist/{audit-e_uixhPG.js → audit-J2jeLo-y.js} +170 -241
  7. package/dist/{baseline-BscHfFSW.js → baseline-477B1CZ_.js} +1 -1
  8. package/dist/baseline-D9ihb-wk.js +2 -0
  9. package/dist/{baseline-D2qWmUC6.js → baseline-DrFh7joZ.js} +15 -4
  10. package/dist/baseline-wyJsSIFQ.js +127 -0
  11. package/dist/cache-D4dOIuOi.js +219 -0
  12. package/dist/{checklist-BtgkxMEa.js → checklist-Gx2g3LFC.js} +6 -6
  13. package/dist/cli/index.js +103 -147
  14. package/dist/{collect-Cu1q9NTB.js → collect-BJYk7_pJ.js} +1 -1
  15. package/dist/{command-CZKp9Wi_.js → command-BGGMf4vn.js} +35 -8
  16. package/dist/countries-DRTBubeE.js +25 -0
  17. package/dist/countries-Dg0BdytB.js +156 -0
  18. package/dist/coverage-GvaMpV64.js +3 -0
  19. package/dist/{coverage-BD2_CYns.js → coverage-zdzgSKjz.js} +4 -286
  20. package/dist/{crawl-BHkJmUkA.js → crawl-DwdqiljK.js} +5 -3
  21. package/dist/criteria-CnPJKGeb.js +286 -0
  22. package/dist/{load-vZdV_fD1.js → define-Ctf2uOEh.js} +47 -95
  23. package/dist/eleventy/index.d.ts +1 -1
  24. package/dist/eleventy/index.js +1 -1
  25. package/dist/entry-CjqjrUBY.js +174 -0
  26. package/dist/{html-Bmh7X_sM.js → html-whingnfj.js} +9 -5
  27. package/dist/index.d.ts +61 -5
  28. package/dist/index.js +3 -2
  29. package/dist/init-CPbFVMuk.js +293 -0
  30. package/dist/jsdom-BUYuVJJm.js +3 -0
  31. package/dist/{jsdom-CQar6OQS.js → jsdom-CsW_xVcA.js} +11 -12
  32. package/dist/{json-HJDgJp09.js → json-CyLmvF5P.js} +1 -1
  33. package/dist/{json-PNg6BeXp.js → json-SGCgxSPT.js} +4 -3
  34. package/dist/load-CH-ltdlq.js +99 -0
  35. package/dist/load-D7lBeOsq.js +2 -0
  36. package/dist/nuxt/index.d.ts +1 -1
  37. package/dist/nuxt/index.js +1 -1
  38. package/dist/pages-DxY5Z0gl.js +300 -0
  39. package/dist/{playwright-C-miJP2b.js → playwright-ukCr_5o3.js} +1 -1
  40. package/dist/{pool-dkexq5xo.js → pool-B4tEUa2S.js} +6 -2
  41. package/dist/{project-MFrXcw1M.js → project-BLFdCbOq.js} +1 -1
  42. package/dist/{project-CzOnkLH6.js → project-v2PoRw70.js} +18 -1
  43. package/dist/{completeness-Dwq3CPB3.js → remediation-Bbs4KcX1.js} +72 -42
  44. package/dist/{render-CtsqR0k-.js → render-C6zYfaba.js} +69 -7
  45. package/dist/{result-DfUru6y_.js → result-B7_zVxAX.js} +1 -1
  46. package/dist/result-CRmjjoAA.js +2 -0
  47. package/dist/{review-CdMK2GpQ.js → review-Bz0fO9_I.js} +9 -1
  48. package/dist/{review-DIbOTmOM.js → review-a-2ghjQ5.js} +1 -1
  49. package/dist/{routes-CmdRUuOs.js → routes-CSctpS1P.js} +1 -1
  50. package/dist/{run-YiqyQA2b.d.ts → run-BK2blxMI.d.ts} +8 -0
  51. package/dist/{run-D7hdVXLA.js → run-DzVEOkiF.js} +6 -2
  52. package/dist/{sarif-BKvq_AUm.js → sarif-9BAgNiOa.js} +5 -3
  53. package/dist/site-BHMtf3q2.js +72 -0
  54. package/dist/start-DzOM0p6I.js +101 -0
  55. package/dist/statement/templates/at.de.md +14 -0
  56. package/dist/statement/templates/at.en.md +14 -0
  57. package/dist/statement/templates/be.de.md +148 -0
  58. package/dist/statement/templates/be.en.md +142 -0
  59. package/dist/statement/templates/be.fr.md +146 -0
  60. package/dist/statement/templates/be.nl.md +147 -0
  61. package/dist/statement/templates/ch.de.md +14 -0
  62. package/dist/statement/templates/ch.en.md +14 -0
  63. package/dist/statement/templates/cz.cs.md +137 -0
  64. package/dist/statement/templates/cz.en.md +139 -0
  65. package/dist/statement/templates/de.de.md +14 -0
  66. package/dist/statement/templates/de.en.md +14 -0
  67. package/dist/statement/templates/dk.da.md +141 -0
  68. package/dist/statement/templates/dk.en.md +141 -0
  69. package/dist/statement/templates/es.en.md +14 -0
  70. package/dist/statement/templates/es.es.md +15 -0
  71. package/dist/statement/templates/fi.en.md +139 -0
  72. package/dist/statement/templates/fi.fi.md +141 -0
  73. package/dist/statement/templates/fr.en.md +14 -0
  74. package/dist/statement/templates/fr.fr.md +15 -0
  75. package/dist/statement/templates/ie.en.md +144 -0
  76. package/dist/statement/templates/it.en.md +14 -0
  77. package/dist/statement/templates/it.it.md +15 -0
  78. package/dist/statement/templates/nl.en.md +14 -0
  79. package/dist/statement/templates/nl.nl.md +15 -0
  80. package/dist/statement/templates/pl.en.md +143 -0
  81. package/dist/statement/templates/pl.pl.md +144 -0
  82. package/dist/statement/templates/pt.en.md +142 -0
  83. package/dist/statement/templates/pt.pt.md +145 -0
  84. package/dist/statement/templates/se.en.md +139 -0
  85. package/dist/statement/templates/se.sv.md +142 -0
  86. package/dist/vite/index.d.ts +1 -1
  87. package/dist/vite/index.js +1 -1
  88. package/dist/watch-B2RoUbo0.js +122 -0
  89. package/dist/webpack/index.d.ts +1 -1
  90. package/dist/webpack/index.js +1 -1
  91. package/dist/{worksheet-eUjwYLxC.js → worksheet-B_kQ1pxq.js} +3 -2
  92. package/package.json +4 -3
  93. package/dist/audit-DK2StT1_.js +0 -2
  94. package/dist/coverage-7bQqWNfN.js +0 -2
  95. package/dist/init-BjKYttxc.js +0 -119
  96. package/dist/jsdom-DMvU2h-f.js +0 -3
  97. package/dist/load-Bc_xDGAh.js +0 -2
@@ -0,0 +1,145 @@
1
+ # Declaração de Acessibilidade
2
+
3
+ {{ provider.legalName }} compromete-se a tornar o sítio web {{ site.name }} acessível, nos
4
+ termos do Decreto-Lei n.º 82/2022, de 6 de dezembro, que transpõe para a ordem jurídica
5
+ portuguesa a Diretiva (UE) 2019/882 (Ato Europeu da Acessibilidade). As suas obrigações
6
+ relativas a produtos e serviços aplicam-se desde 28 de junho de 2025.
7
+
8
+ A presente declaração de acessibilidade aplica-se a {{ site.url }}.
9
+
10
+ ## Estado de conformidade
11
+
12
+ {{#if compliance.isCompliant}}
13
+ Este sítio web está totalmente conforme com {{ compliance.standard }}.
14
+ {{/if}}
15
+ {{#if compliance.isPartiallyCompliant}}
16
+ Este sítio web está parcialmente conforme com {{ compliance.standard }}. Os conteúdos
17
+ indicados abaixo não são acessíveis, pelos motivos apresentados.
18
+ {{/if}}
19
+ {{#if compliance.isNonCompliant}}
20
+ Este sítio web não está conforme com {{ compliance.standard }}. Os conteúdos indicados
21
+ abaixo não são acessíveis, pelos motivos apresentados.
22
+ {{/if}}
23
+
24
+ ## Conteúdos não acessíveis
25
+
26
+ {{#if hasKnownIssues}}
27
+ {{#each compliance.knownIssues}}
28
+ - {{ description }}
29
+ {{#if standards}}
30
+ Requisito afetado: {{ standards }}
31
+ {{/if}}
32
+ {{#if pageList}}
33
+ Páginas afetadas: {{ pageList }}{{#if hasMorePages}} e mais {{ morePages }}{{/if}}
34
+ {{/if}}
35
+ {{#if isDisproportionateBurden}}
36
+ Motivo: encargo desproporcionado.
37
+ {{/if}}
38
+ {{#if isOutOfScope}}
39
+ Motivo: o conteúdo não se enquadra no âmbito de aplicação deste decreto-lei.
40
+ {{/if}}
41
+ {{#if isFixPlanned}}
42
+ Motivo: a barreira é conhecida e está a ser corrigida.
43
+ {{/if}}
44
+ {{#if remedyByFormatted}}
45
+ Correção prevista até: {{ remedyByFormatted }}
46
+ {{/if}}
47
+ {{#if isFromAudit}}
48
+ Detetado por um teste automático (axe-core, regra {{ ruleId }}); descreva-o por palavras suas.
49
+ {{/if}}
50
+ {{/each}}
51
+ {{/if}}
52
+ {{#if hasNoKnownIssues}}
53
+ No momento da avaliação não era conhecido nenhum conteúdo não acessível.
54
+ {{/if}}
55
+
56
+ ## Elaboração desta declaração
57
+
58
+ A presente declaração foi elaborada em {{ compliance.assessedOnFormatted }}.
59
+
60
+ {{#if compliance.isSelfAssessment}}
61
+ Baseia-se numa autoavaliação realizada por {{ provider.legalName }}.
62
+ {{/if}}
63
+ {{#if compliance.isExternalAudit}}
64
+ Baseia-se numa avaliação realizada por terceiros.
65
+ {{/if}}
66
+
67
+ {{#if review.isSingle}}
68
+ Um dos {{ review.total }} critérios de sucesso das WCAG 2.2 (níveis A e AA) foi verificado
69
+ manualmente.
70
+ {{/if}}
71
+ {{#if review.isPlural}}
72
+ {{ review.answered }} dos {{ review.total }} critérios de sucesso das WCAG 2.2 (níveis A e
73
+ AA) foram verificados manualmente.
74
+ {{/if}}
75
+ {{#if review.hasDate}}
76
+ A mais recente dessas verificações manuais foi registada em {{ review.checkedOnFormatted }}.
77
+ {{/if}}
78
+ {{#if hasReview}}
79
+
80
+ {{/if}}
81
+ {{#if audit.isSinglePage}}
82
+ O teste automático de {{ audit.checkedOnFormatted }} abrangeu uma página deste sítio web.
83
+ {{/if}}
84
+ {{#if audit.isMultiPage}}
85
+ O teste automático de {{ audit.checkedOnFormatted }} abrangeu {{ audit.pages }} páginas
86
+ deste sítio web.
87
+ {{/if}}
88
+ {{#if audit.needsReviewIsSingle}}
89
+ Uma outra verificação de regra requer uma decisão humana.
90
+ {{/if}}
91
+ {{#if audit.needsReviewIsPlural}}
92
+ {{ audit.needsReview }} outras verificações de regras requerem uma decisão humana.
93
+ {{/if}}
94
+ {{#if audit.notEvaluatedIsSingle}}
95
+ Uma verificação de regra não pôde ser decidida pela ferramenta utilizada; não é apresentada
96
+ como cumprida.
97
+ {{/if}}
98
+ {{#if audit.notEvaluatedIsPlural}}
99
+ {{ audit.notEvaluated }} verificações de regras não puderam ser decididas pela ferramenta
100
+ utilizada; não são apresentadas como cumpridas.
101
+ {{/if}}
102
+ {{#if hasAudit}}
103
+
104
+ {{/if}}
105
+ A avaliação baseia-se em parte em testes automáticos. As ferramentas automáticas detetam
106
+ apenas uma parte das barreiras possíveis; não substituem testes manuais nem testes com
107
+ tecnologias de apoio.
108
+
109
+ ## Comentários e contactos
110
+
111
+ Encontrou uma barreira ou precisa de informação num formato acessível? Contacte-nos:
112
+
113
+ - Correio eletrónico: {{ provider.email }}
114
+ {{#if provider.feedbackUrl}}
115
+ - Formulário de contacto: {{ provider.feedbackUrl }}
116
+ {{/if}}
117
+ {{#if provider.phone}}
118
+ - Telefone: {{ provider.phone }}
119
+ {{/if}}
120
+ {{#if provider.address}}
121
+ - Morada: {{ provider.address }}
122
+ {{/if}}
123
+
124
+ Procuramos responder com a maior brevidade possível.
125
+
126
+ ## Procedimento de reclamação
127
+
128
+ Se não ficar satisfeito com a nossa resposta, pode apresentar uma reclamação à entidade
129
+ fiscalizadora competente. A fiscalização está repartida por várias entidades: para os
130
+ serviços de comércio eletrónico é a Autoridade Nacional de Comunicações (ANACOM), e os
131
+ serviços bancários, por exemplo, são fiscalizados pelo Banco de Portugal. As entidades
132
+ fiscalizadoras comunicam os produtos e serviços que não cumprem os requisitos de
133
+ acessibilidade ao Instituto Nacional para a Reabilitação (INR, I.P.).
134
+
135
+ Autoridade Nacional de Comunicações (ANACOM)
136
+ https://www.anacom.pt
137
+
138
+ Os sítios web e as aplicações móveis dos organismos do setor público estão sujeitos a um
139
+ regime próprio, que prevê a sua própria declaração de acessibilidade. O presente documento
140
+ não a substitui.
141
+
142
+ ---
143
+
144
+ Esta declaração foi gerada com o eaa-kit e não constitui aconselhamento jurídico. Reveja-a
145
+ antes de a publicar e, em caso de dúvida, peça a um jurista que a verifique.
@@ -0,0 +1,139 @@
1
+ # Accessibility Statement
2
+
3
+ {{ provider.legalName }} is committed to making the website {{ site.name }} accessible in
4
+ accordance with the Act on the Accessibility of Certain Products and Services (SFS
5
+ 2023:254), which transposes Directive (EU) 2019/882 (the European Accessibility Act) into
6
+ Swedish law. Its requirements apply from 28 June 2025.
7
+
8
+ This accessibility statement applies to {{ site.url }}.
9
+
10
+ ## Compliance status
11
+
12
+ {{#if compliance.isCompliant}}
13
+ This website is fully compliant with {{ compliance.standard }}.
14
+ {{/if}}
15
+ {{#if compliance.isPartiallyCompliant}}
16
+ This website is partially compliant with {{ compliance.standard }}. The content listed in
17
+ the following section is not accessible, for the reasons given.
18
+ {{/if}}
19
+ {{#if compliance.isNonCompliant}}
20
+ This website is not compliant with {{ compliance.standard }}. The content listed in the
21
+ following section is not accessible, for the reasons given.
22
+ {{/if}}
23
+
24
+ ## Non-accessible content
25
+
26
+ {{#if hasKnownIssues}}
27
+ {{#each compliance.knownIssues}}
28
+ - {{ description }}
29
+ {{#if standards}}
30
+ Requirement affected: {{ standards }}
31
+ {{/if}}
32
+ {{#if pageList}}
33
+ Pages affected: {{ pageList }}{{#if hasMorePages}} and {{ morePages }} more{{/if}}
34
+ {{/if}}
35
+ {{#if isDisproportionateBurden}}
36
+ Reason: disproportionate burden.
37
+ {{/if}}
38
+ {{#if isOutOfScope}}
39
+ Reason: the content falls outside the scope of this Act.
40
+ {{/if}}
41
+ {{#if isFixPlanned}}
42
+ Reason: the barrier is known and is being addressed.
43
+ {{/if}}
44
+ {{#if remedyByFormatted}}
45
+ Expected to be resolved by: {{ remedyByFormatted }}
46
+ {{/if}}
47
+ {{#if isFromAudit}}
48
+ Detected by automated testing (axe-core, rule {{ ruleId }}); describe it in your own words.
49
+ {{/if}}
50
+ {{/each}}
51
+ {{/if}}
52
+ {{#if hasNoKnownIssues}}
53
+ No non-accessible content was known at the time of assessment.
54
+ {{/if}}
55
+
56
+ ## Preparation of this statement
57
+
58
+ This statement was prepared on {{ compliance.assessedOnFormatted }}.
59
+
60
+ {{#if compliance.isSelfAssessment}}
61
+ It is based on a self-assessment carried out by {{ provider.legalName }}.
62
+ {{/if}}
63
+ {{#if compliance.isExternalAudit}}
64
+ It is based on an assessment carried out by a third party.
65
+ {{/if}}
66
+
67
+ {{#if review.isSingle}}
68
+ One of the {{ review.total }} success criteria in WCAG 2.2 at Levels A and AA was checked
69
+ manually.
70
+ {{/if}}
71
+ {{#if review.isPlural}}
72
+ {{ review.answered }} of the {{ review.total }} success criteria in WCAG 2.2 at Levels A and
73
+ AA were checked manually.
74
+ {{/if}}
75
+ {{#if review.hasDate}}
76
+ The most recent of those manual checks was recorded on {{ review.checkedOnFormatted }}.
77
+ {{/if}}
78
+ {{#if hasReview}}
79
+
80
+ {{/if}}
81
+ {{#if audit.isSinglePage}}
82
+ The automated test run of {{ audit.checkedOnFormatted }} covered one page of this website.
83
+ {{/if}}
84
+ {{#if audit.isMultiPage}}
85
+ The automated test run of {{ audit.checkedOnFormatted }} covered {{ audit.pages }} pages of
86
+ this website.
87
+ {{/if}}
88
+ {{#if audit.needsReviewIsSingle}}
89
+ One further rule check requires a manual decision.
90
+ {{/if}}
91
+ {{#if audit.needsReviewIsPlural}}
92
+ {{ audit.needsReview }} further rule checks require a manual decision.
93
+ {{/if}}
94
+ {{#if audit.notEvaluatedIsSingle}}
95
+ One rule check could not be decided by the tool that was used; it is not reported as met.
96
+ {{/if}}
97
+ {{#if audit.notEvaluatedIsPlural}}
98
+ {{ audit.notEvaluated }} rule checks could not be decided by the tool that was used; they
99
+ are not reported as met.
100
+ {{/if}}
101
+ {{#if hasAudit}}
102
+
103
+ {{/if}}
104
+ The assessment relies in part on automated testing. Automated tools detect only a subset of
105
+ possible barriers; they are not a substitute for manual testing or for testing with
106
+ assistive technologies.
107
+
108
+ ## Feedback and contact
109
+
110
+ Found a barrier, or need information in an accessible format? Please get in touch:
111
+
112
+ - Email: {{ provider.email }}
113
+ {{#if provider.feedbackUrl}}
114
+ - Contact form: {{ provider.feedbackUrl }}
115
+ {{/if}}
116
+ {{#if provider.phone}}
117
+ - Phone: {{ provider.phone }}
118
+ {{/if}}
119
+ {{#if provider.address}}
120
+ - Address: {{ provider.address }}
121
+ {{/if}}
122
+
123
+ We aim to respond to your feedback promptly.
124
+
125
+ ## Enforcement procedure
126
+
127
+ If you are not satisfied with our response, you can report the matter to the Swedish Post
128
+ and Telecom Authority (PTS), which supervises e-commerce services under the Act.
129
+
130
+ Post- och telestyrelsen (PTS)
131
+ https://pts.se
132
+
133
+ Websites and mobile applications of public sector bodies fall under a separate act, which
134
+ requires an accessibility statement of its own. This document is not that statement.
135
+
136
+ ---
137
+
138
+ This statement was generated with eaa-kit and is not legal advice. Review it before
139
+ publishing, and have it checked by a lawyer if in doubt.
@@ -0,0 +1,142 @@
1
+ # Tillgänglighetsredogörelse
2
+
3
+ {{ provider.legalName }} strävar efter att göra webbplatsen {{ site.name }} tillgänglig i
4
+ enlighet med lagen (2023:254) om vissa produkters och tjänsters tillgänglighet, som genomför
5
+ direktiv (EU) 2019/882 (tillgänglighetsdirektivet) i svensk rätt. Lagens krav gäller från
6
+ den 28 juni 2025.
7
+
8
+ Den här tillgänglighetsredogörelsen gäller {{ site.url }}.
9
+
10
+ ## Efterlevnadsstatus
11
+
12
+ {{#if compliance.isCompliant}}
13
+ Webbplatsen är helt förenlig med {{ compliance.standard }}.
14
+ {{/if}}
15
+ {{#if compliance.isPartiallyCompliant}}
16
+ Webbplatsen är delvis förenlig med {{ compliance.standard }}. Innehållet som anges nedan är
17
+ inte tillgängligt, av de skäl som anges.
18
+ {{/if}}
19
+ {{#if compliance.isNonCompliant}}
20
+ Webbplatsen är inte förenlig med {{ compliance.standard }}. Innehållet som anges nedan är
21
+ inte tillgängligt, av de skäl som anges.
22
+ {{/if}}
23
+
24
+ ## Innehåll som inte är tillgängligt
25
+
26
+ {{#if hasKnownIssues}}
27
+ {{#each compliance.knownIssues}}
28
+ - {{ description }}
29
+ {{#if standards}}
30
+ Berört krav: {{ standards }}
31
+ {{/if}}
32
+ {{#if pageList}}
33
+ Berörda sidor: {{ pageList }}{{#if hasMorePages}} och {{ morePages }} till{{/if}}
34
+ {{/if}}
35
+ {{#if isDisproportionateBurden}}
36
+ Skäl: oskälig börda.
37
+ {{/if}}
38
+ {{#if isOutOfScope}}
39
+ Skäl: innehållet omfattas inte av lagens tillämpningsområde.
40
+ {{/if}}
41
+ {{#if isFixPlanned}}
42
+ Skäl: bristen är känd och håller på att åtgärdas.
43
+ {{/if}}
44
+ {{#if remedyByFormatted}}
45
+ Planeras vara åtgärdat senast: {{ remedyByFormatted }}
46
+ {{/if}}
47
+ {{#if isFromAudit}}
48
+ Upptäckt vid automatiserad testning (axe-core, regel {{ ruleId }}); beskriv det med egna ord.
49
+ {{/if}}
50
+ {{/each}}
51
+ {{/if}}
52
+ {{#if hasNoKnownIssues}}
53
+ Vid bedömningen var inget otillgängligt innehåll känt.
54
+ {{/if}}
55
+
56
+ ## Hur redogörelsen har tagits fram
57
+
58
+ Redogörelsen upprättades den {{ compliance.assessedOnFormatted }}.
59
+
60
+ {{#if compliance.isSelfAssessment}}
61
+ Den bygger på en självskattning som {{ provider.legalName }} har gjort.
62
+ {{/if}}
63
+ {{#if compliance.isExternalAudit}}
64
+ Den bygger på en bedömning som en tredje part har gjort.
65
+ {{/if}}
66
+
67
+ {{#if review.isSingle}}
68
+ Ett av de {{ review.total }} framgångskriterierna i WCAG 2.2 (nivå A och AA) har
69
+ kontrollerats manuellt.
70
+ {{/if}}
71
+ {{#if review.isPlural}}
72
+ {{ review.answered }} av de {{ review.total }} framgångskriterierna i WCAG 2.2 (nivå A och
73
+ AA) har kontrollerats manuellt.
74
+ {{/if}}
75
+ {{#if review.hasDate}}
76
+ Den senaste av dessa manuella kontroller registrerades den {{ review.checkedOnFormatted }}.
77
+ {{/if}}
78
+ {{#if hasReview}}
79
+
80
+ {{/if}}
81
+ {{#if audit.isSinglePage}}
82
+ Den automatiserade testningen den {{ audit.checkedOnFormatted }} omfattade en sida på
83
+ webbplatsen.
84
+ {{/if}}
85
+ {{#if audit.isMultiPage}}
86
+ Den automatiserade testningen den {{ audit.checkedOnFormatted }} omfattade {{ audit.pages }}
87
+ sidor på webbplatsen.
88
+ {{/if}}
89
+ {{#if audit.needsReviewIsSingle}}
90
+ Ytterligare en regelkontroll kräver en manuell bedömning.
91
+ {{/if}}
92
+ {{#if audit.needsReviewIsPlural}}
93
+ Ytterligare {{ audit.needsReview }} regelkontroller kräver en manuell bedömning.
94
+ {{/if}}
95
+ {{#if audit.notEvaluatedIsSingle}}
96
+ En regelkontroll kunde inte avgöras av verktyget som användes; den redovisas inte som
97
+ uppfylld.
98
+ {{/if}}
99
+ {{#if audit.notEvaluatedIsPlural}}
100
+ {{ audit.notEvaluated }} regelkontroller kunde inte avgöras av verktyget som användes; de
101
+ redovisas inte som uppfyllda.
102
+ {{/if}}
103
+ {{#if hasAudit}}
104
+
105
+ {{/if}}
106
+ Bedömningen bygger delvis på automatiserad testning. Automatiserade verktyg hittar bara en
107
+ del av de möjliga bristerna; de ersätter inte manuell testning eller testning med
108
+ hjälpmedel.
109
+
110
+ ## Återkoppling och kontaktuppgifter
111
+
112
+ Har du hittat en brist, eller behöver du information i ett tillgängligt format? Kontakta
113
+ oss:
114
+
115
+ - E-post: {{ provider.email }}
116
+ {{#if provider.feedbackUrl}}
117
+ - Kontaktformulär: {{ provider.feedbackUrl }}
118
+ {{/if}}
119
+ {{#if provider.phone}}
120
+ - Telefon: {{ provider.phone }}
121
+ {{/if}}
122
+ {{#if provider.address}}
123
+ - Adress: {{ provider.address }}
124
+ {{/if}}
125
+
126
+ Vi strävar efter att svara så snart som möjligt.
127
+
128
+ ## Tillsyn
129
+
130
+ Om du inte är nöjd med vårt svar kan du anmäla saken till Post- och telestyrelsen (PTS), som
131
+ har tillsyn över e-handelstjänster enligt lagen.
132
+
133
+ Post- och telestyrelsen (PTS)
134
+ https://pts.se
135
+
136
+ Offentliga aktörers webbplatser och mobila applikationer omfattas av en annan lag, som
137
+ kräver en egen tillgänglighetsredogörelse. Det här dokumentet ersätter inte den.
138
+
139
+ ---
140
+
141
+ Redogörelsen har tagits fram med eaa-kit och är inte juridisk rådgivning. Granska den innan
142
+ den publiceras, och låt en jurist granska den om du är osäker.
@@ -1,4 +1,4 @@
1
- import { n as IntegrationOptions, t as BuildAuditError } from "../run-YiqyQA2b.js";
1
+ import { n as IntegrationOptions, t as BuildAuditError } from "../run-BK2blxMI.js";
2
2
  //#region src/vite/index.d.ts
3
3
  interface EaaKitPluginOptions extends IntegrationOptions {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { n as auditBuild, t as BuildAuditError } from "../run-D7hdVXLA.js";
1
+ import { n as auditBuild, t as BuildAuditError } from "../run-DzVEOkiF.js";
2
2
  import path from "node:path";
3
3
  //#region src/vite/index.ts
4
4
  function eaaKit(options = {}) {
@@ -0,0 +1,122 @@
1
+ import { n as isDirectory } from "./fs-BmPtmFke.js";
2
+ import { d as warn, l as note } from "./command-BGGMf4vn.js";
3
+ import path from "node:path";
4
+ import pc from "picocolors";
5
+ import { watch } from "node:fs";
6
+ //#region src/cli/watch.ts
7
+ const DEFAULT_DEBOUNCE_MS = 150;
8
+ const DEFAULT_POLL_MS = 1e3;
9
+ /**
10
+ * Run, then run again on every change, until the signal fires.
11
+ *
12
+ * Resolves with 0 once the watch is ended, or with 2 when there is nothing it
13
+ * could watch: a run that found its pages over HTTP, or found none at all with
14
+ * no directory named to wait for.
15
+ */
16
+ async function watchAudit(options) {
17
+ const debounceMs = options.debounceMs ?? DEFAULT_DEBOUNCE_MS;
18
+ const pollMs = options.pollMs ?? DEFAULT_POLL_MS;
19
+ const watch = options.watch ?? nodeWatch;
20
+ const { signal, dispose } = stopSignal(options.signal);
21
+ const found = (await options.run(options.directory)).directory ?? options.directory;
22
+ if (found === void 0) {
23
+ dispose();
24
+ warn("--watch needs a build directory to watch, and this run did not read one. Name the directory, e.g. eaa-kit audit ./dist --watch.");
25
+ return 2;
26
+ }
27
+ const target = path.resolve(options.cwd, found);
28
+ const ignored = (options.ignore ?? []).map((entry) => path.resolve(options.cwd, entry));
29
+ let running;
30
+ let pending = false;
31
+ let timer;
32
+ let watcher;
33
+ let poller;
34
+ const runAgain = async () => {
35
+ do {
36
+ pending = false;
37
+ process.stderr.write(`\n${pc.dim(`─── ${(/* @__PURE__ */ new Date()).toLocaleTimeString()} ───`)}\n`);
38
+ await options.run(found);
39
+ } while (pending && !signal.aborted);
40
+ running = void 0;
41
+ if (!signal.aborted) waiting();
42
+ };
43
+ const schedule = () => {
44
+ if (signal.aborted) return;
45
+ if (running !== void 0) {
46
+ pending = true;
47
+ return;
48
+ }
49
+ clearTimeout(timer);
50
+ timer = setTimeout(() => {
51
+ running = runAgain();
52
+ }, debounceMs);
53
+ };
54
+ const isIgnored = (file) => {
55
+ if (file === null) return false;
56
+ const absolute = path.resolve(target, file);
57
+ return ignored.some((entry) => absolute === entry || absolute.startsWith(`${entry}${path.sep}`));
58
+ };
59
+ const arm = async () => {
60
+ if (signal.aborted) return;
61
+ if (!await isDirectory(target)) {
62
+ poller ??= setInterval(() => {
63
+ isDirectory(target).then((present) => {
64
+ if (!present || signal.aborted) return;
65
+ clearInterval(poller);
66
+ poller = void 0;
67
+ arm();
68
+ schedule();
69
+ });
70
+ }, pollMs);
71
+ return;
72
+ }
73
+ watcher = watch(target, (file) => {
74
+ if (!isIgnored(file)) schedule();
75
+ }, () => {
76
+ watcher?.close();
77
+ watcher = void 0;
78
+ arm();
79
+ });
80
+ };
81
+ const waiting = () => {
82
+ note(`Watching ${path.relative(options.cwd, target) || "."} for changes. Ctrl-C to stop.`);
83
+ };
84
+ await arm();
85
+ waiting();
86
+ await new Promise((resolve) => {
87
+ if (signal.aborted) resolve();
88
+ else signal.addEventListener("abort", () => resolve(), { once: true });
89
+ });
90
+ clearTimeout(timer);
91
+ clearInterval(poller);
92
+ watcher?.close();
93
+ dispose();
94
+ await running;
95
+ return 0;
96
+ }
97
+ /** Recursive `fs.watch`, which Node supports on every platform this tool does. */
98
+ function nodeWatch(directory, onChange, onError) {
99
+ const watcher = watch(directory, { recursive: true }, (_event, file) => onChange(file === null ? null : String(file)));
100
+ watcher.on("error", onError);
101
+ return watcher;
102
+ }
103
+ /** The caller's signal, or one that Ctrl-C and SIGTERM fire. */
104
+ function stopSignal(given) {
105
+ if (given !== void 0) return {
106
+ signal: given,
107
+ dispose: () => {}
108
+ };
109
+ const controller = new AbortController();
110
+ const stop = () => controller.abort();
111
+ process.once("SIGINT", stop);
112
+ process.once("SIGTERM", stop);
113
+ return {
114
+ signal: controller.signal,
115
+ dispose: () => {
116
+ process.off("SIGINT", stop);
117
+ process.off("SIGTERM", stop);
118
+ }
119
+ };
120
+ }
121
+ //#endregion
122
+ export { watchAudit };
@@ -1,4 +1,4 @@
1
- import { n as IntegrationOptions, t as BuildAuditError } from "../run-YiqyQA2b.js";
1
+ import { n as IntegrationOptions, t as BuildAuditError } from "../run-BK2blxMI.js";
2
2
  //#region src/webpack/index.d.ts
3
3
  /** The part of a webpack compilation this reads. */
4
4
  interface CompilationLike {
@@ -1,4 +1,4 @@
1
- import { n as auditBuild, r as stderrLogger, t as BuildAuditError } from "../run-D7hdVXLA.js";
1
+ import { n as auditBuild, r as stderrLogger, t as BuildAuditError } from "../run-DzVEOkiF.js";
2
2
  import path from "node:path";
3
3
  //#region src/webpack/index.ts
4
4
  var EaaKitWebpackPlugin = class {
@@ -1,5 +1,6 @@
1
- import { n as DEFAULT_TAGS } from "./result-DfUru6y_.js";
2
- import { a as rulesByCriterion, o as manualCheckFor, s as understandingUrl, t as WCAG22_AA_CRITERIA } from "./coverage-BD2_CYns.js";
1
+ import { t as WCAG22_AA_CRITERIA } from "./criteria-CnPJKGeb.js";
2
+ import { n as DEFAULT_TAGS } from "./result-B7_zVxAX.js";
3
+ import { a as manualCheckFor, i as rulesByCriterion, o as understandingUrl } from "./coverage-zdzgSKjz.js";
3
4
  //#region src/audit/worksheet.ts
4
5
  function buildWorksheet(options) {
5
6
  const rules = rulesByCriterion(options.tags ?? DEFAULT_TAGS);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eaa-kit",
3
- "version": "0.6.0",
4
- "description": "WCAG 2.2 AA auditor and EU accessibility statement generator for seven countries (AT, DE, CH, ES, FR, IT, NL). Audits a static build or a running site from the command line.",
3
+ "version": "0.9.0",
4
+ "description": "WCAG 2.2 AA auditor and EU accessibility statement generator for fifteen countries (AT, BE, CH, CZ, DE, DK, ES, FI, FR, IE, IT, NL, PL, PT, SE). Audits a static build or a running site from the command line.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -79,7 +79,8 @@
79
79
  "typecheck": "tsc --noEmit",
80
80
  "lint": "biome check .",
81
81
  "format": "biome check --write .",
82
- "smoke": "pnpm build && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json && node dist/cli/index.js audit tests/fixtures/site --include \"about/**\" \"blog/**\" \"drafts/**\" \"legacy.htm\" --concurrency 2 && node dist/cli/index.js audit tests/fixtures/site --include about/** --format html && node dist/cli/index.js audit tests/fixtures/site --baseline examples/baseline.json && node -e \"import('./dist/astro/index.js').then(m => { const i = m.default(); if (i.name !== 'eaa-kit' || typeof i.hooks['astro:build:done'] !== 'function') { throw new Error('astro entry point is not an integration') } console.log('astro entry ok') })\" && node dist/cli/index.js baseline tests/fixtures/site --output .eaa-kit/smoke-baseline.json && node dist/cli/index.js baseline tests/fixtures/site --output .eaa-kit/smoke-baseline.json --prune && node dist/cli/index.js checklist --record .eaa-kit/smoke-review.json --output .eaa-kit/smoke-review.md && node dist/cli/index.js audit tests/fixtures/site --include about/** --review .eaa-kit/smoke-review.json --coverage && node dist/cli/index.js statement --config examples/eaa.config.json && node dist/cli/index.js statement --config examples/eaa.config.json --audit examples/report.json --format html && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json --output .eaa-kit/smoke-base.json && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json --output .eaa-kit/smoke-head.json && node dist/cli/index.js diff .eaa-kit/smoke-base.json .eaa-kit/smoke-head.json --format json",
82
+ "smoke": "pnpm build && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json && node dist/cli/index.js audit tests/fixtures/site --include \"about/**\" \"blog/**\" \"drafts/**\" \"legacy.htm\" --concurrency 2 && node dist/cli/index.js audit tests/fixtures/site --include about/** --format html && node dist/cli/index.js audit tests/fixtures/site --baseline examples/baseline.json && node -e \"import('./dist/astro/index.js').then(m => { const i = m.default(); if (i.name !== 'eaa-kit' || typeof i.hooks['astro:build:done'] !== 'function') { throw new Error('astro entry point is not an integration') } console.log('astro entry ok') })\" && node dist/cli/index.js baseline tests/fixtures/site --output .eaa-kit/smoke-baseline.json && node dist/cli/index.js baseline tests/fixtures/site --output .eaa-kit/smoke-baseline.json --prune && node dist/cli/index.js checklist --record .eaa-kit/smoke-review.json --output .eaa-kit/smoke-review.md && node dist/cli/index.js audit tests/fixtures/site --include about/** --review .eaa-kit/smoke-review.json --coverage && node dist/cli/index.js statement --config examples/eaa.config.json && node dist/cli/index.js statement --config examples/eaa.config.json --audit examples/report.json --format html && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json --no-cache --output .eaa-kit/smoke-base.json && node dist/cli/index.js audit tests/fixtures/site --include about/** --format json --no-cache --output .eaa-kit/smoke-head.json && node dist/cli/index.js diff .eaa-kit/smoke-base.json .eaa-kit/smoke-head.json --format json",
83
+ "bench": "pnpm build && node scripts/bench.mjs",
83
84
  "examples": "pnpm build && node scripts/generate-examples.mjs",
84
85
  "test:packaged": "pnpm build && node scripts/test-packaged.mjs"
85
86
  },
@@ -1,2 +0,0 @@
1
- import { n as runAuditCommand } from "./audit-e_uixhPG.js";
2
- export { runAuditCommand };
@@ -1,2 +0,0 @@
1
- import { t as WCAG22_AA_CRITERIA } from "./coverage-BD2_CYns.js";
2
- export { WCAG22_AA_CRITERIA };