@holmdigital/standards 1.0.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/LICENSE +59 -0
- package/README.md +41 -0
- package/data/ict-manual-checks.json +189 -0
- package/data/rules.de.json +1945 -0
- package/data/rules.en.json +1946 -0
- package/data/rules.es.json +1945 -0
- package/data/rules.fr.json +1945 -0
- package/data/rules.sv.json +1946 -0
- package/data/wcag-to-en301549.json +1946 -0
- package/dist/index.d.mts +117 -0
- package/dist/index.d.ts +117 -0
- package/dist/index.js +10223 -0
- package/dist/index.mjs +10181 -0
- package/package.json +62 -0
- package/schema/convergence-schema.json +191 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Holm Digital AB
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
================================================================================
|
|
24
|
+
|
|
25
|
+
THIRD PARTY NOTICES
|
|
26
|
+
|
|
27
|
+
This project includes code or libraries from third parties.
|
|
28
|
+
|
|
29
|
+
1. axe-core
|
|
30
|
+
License: Mozilla Public License 2.0 (MPL-2.0)
|
|
31
|
+
Source: https://github.com/dequelabs/axe-core
|
|
32
|
+
|
|
33
|
+
This software is used unmodified as a dependency.
|
|
34
|
+
The Source Code Form of axe-core is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
35
|
+
If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
36
|
+
|
|
37
|
+
2. puppeteer
|
|
38
|
+
License: Apache License 2.0
|
|
39
|
+
Source: https://github.com/puppeteer/puppeteer
|
|
40
|
+
|
|
41
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
42
|
+
you may not use this file except in compliance with the License.
|
|
43
|
+
You may obtain a copy of the License at
|
|
44
|
+
|
|
45
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
46
|
+
|
|
47
|
+
Unless required by applicable law or agreed to in writing, software
|
|
48
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
49
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
50
|
+
See the License for the specific language governing permissions and
|
|
51
|
+
limitations under the License.
|
|
52
|
+
|
|
53
|
+
3. React & ReactDOM
|
|
54
|
+
License: MIT
|
|
55
|
+
Source: https://github.com/facebook/react
|
|
56
|
+
|
|
57
|
+
4. Vite
|
|
58
|
+
License: MIT
|
|
59
|
+
Source: https://github.com/vitejs/vite
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @holmdigital/standards
|
|
2
|
+
|
|
3
|
+
> Machine-readable regulatory database for WCAG, EN 301 549, and the DOS Act.
|
|
4
|
+
|
|
5
|
+
This package provides the "truth" for accessibility compliance mapping. It connects:
|
|
6
|
+
1. **WCAG 2.1 Criteria** (Technical)
|
|
7
|
+
2. **EN 301 549** (EU Standard)
|
|
8
|
+
3. **National Laws** (e.g., Sweden's *Lag (2018:1937) om tillgänglighet till digital offentlig service*)
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install @holmdigital/standards
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
- **Multi-Language Support**: Separate data rules for English (`en`), Swedish (`sv`), German (`de`), French (`fr`), and Spanish (`es`).
|
|
19
|
+
- **Risk Assessment**: DIGG-aligned risk levels (`critical`, `high`, `medium`, `low`).
|
|
20
|
+
- **Remediation**: Maps issues to `@holmdigital/components` for fixing.
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import {
|
|
26
|
+
getEN301549Mapping,
|
|
27
|
+
getDOSLagenReference
|
|
28
|
+
} from '@holmdigital/standards';
|
|
29
|
+
|
|
30
|
+
// 1. Get Mapping (Default: English)
|
|
31
|
+
const enMapping = getEN301549Mapping('1.4.3');
|
|
32
|
+
// Output: { en301549Criteria: "9.1.4.3", ... }
|
|
33
|
+
|
|
34
|
+
// 2. Get Mapping (Swedish Context)
|
|
35
|
+
const svMapping = getEN301549Mapping('1.4.3', 'sv');
|
|
36
|
+
// Output: Includes 'dosLagenReference' specific to Swedish law.
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT © Holm Digital AB
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "5.1.3.1",
|
|
4
|
+
"chapter": 5,
|
|
5
|
+
"title": "Auditory output",
|
|
6
|
+
"description": "Where ICT provides auditory output, the auditory output shall be available without requiring the use of hearing.",
|
|
7
|
+
"applicableFor": [
|
|
8
|
+
"hardware",
|
|
9
|
+
"kiosks",
|
|
10
|
+
"atm"
|
|
11
|
+
],
|
|
12
|
+
"manualVerification": true,
|
|
13
|
+
"checklistItem": "Check that auditory output is available and can be used with headphones or other assistive technology.",
|
|
14
|
+
"swedishGuidance": "For public terminals (e.g. ticket machines) auditory output must be available for screen reader functionality.",
|
|
15
|
+
"diggRelevance": "medium",
|
|
16
|
+
"eaaRelevance": "high"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "5.1.3.16",
|
|
20
|
+
"chapter": 5,
|
|
21
|
+
"title": "Tactilely discernible parts",
|
|
22
|
+
"description": "Where ICT has physical controls, these must be tactilely discernible.",
|
|
23
|
+
"applicableFor": [
|
|
24
|
+
"hardware",
|
|
25
|
+
"kiosks",
|
|
26
|
+
"atm",
|
|
27
|
+
"physical-devices"
|
|
28
|
+
],
|
|
29
|
+
"manualVerification": true,
|
|
30
|
+
"checklistItem": "Check that physical buttons and controls can be identified by touch.",
|
|
31
|
+
"swedishGuidance": "Important for self-service terminals in the public sector.",
|
|
32
|
+
"diggRelevance": "low",
|
|
33
|
+
"eaaRelevance": "high"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "5.5.2",
|
|
37
|
+
"chapter": 5,
|
|
38
|
+
"title": "Operable parts discernibility",
|
|
39
|
+
"description": "Where ICT has operable parts, these must be visually discernible.",
|
|
40
|
+
"applicableFor": [
|
|
41
|
+
"hardware",
|
|
42
|
+
"kiosks"
|
|
43
|
+
],
|
|
44
|
+
"manualVerification": true,
|
|
45
|
+
"checklistItem": "Check that buttons and controls have sufficient contrast against the background.",
|
|
46
|
+
"swedishGuidance": "Also applies to touch screens on public terminals.",
|
|
47
|
+
"diggRelevance": "medium",
|
|
48
|
+
"eaaRelevance": "high"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "10.1.1.1",
|
|
52
|
+
"chapter": 10,
|
|
53
|
+
"title": "Non-text content (non-web documents)",
|
|
54
|
+
"description": "Non-web documents shall satisfy WCAG 2.1 Success Criterion 1.1.1.",
|
|
55
|
+
"applicableFor": [
|
|
56
|
+
"pdf",
|
|
57
|
+
"word",
|
|
58
|
+
"excel",
|
|
59
|
+
"powerpoint",
|
|
60
|
+
"ebook",
|
|
61
|
+
"epub"
|
|
62
|
+
],
|
|
63
|
+
"manualVerification": true,
|
|
64
|
+
"checklistItem": "Check that all images in documents have alternative text.",
|
|
65
|
+
"swedishGuidance": "PDF documents and E-books (EPUB) must have alt-text. MTM supervises e-books compliance.",
|
|
66
|
+
"diggRelevance": "high",
|
|
67
|
+
"eaaRelevance": "medium"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "10.2.1.1",
|
|
71
|
+
"chapter": 10,
|
|
72
|
+
"title": "Keyboard (non-web documents)",
|
|
73
|
+
"description": "Non-web documents shall be navigable by keyboard.",
|
|
74
|
+
"applicableFor": [
|
|
75
|
+
"pdf",
|
|
76
|
+
"word",
|
|
77
|
+
"excel"
|
|
78
|
+
],
|
|
79
|
+
"manualVerification": true,
|
|
80
|
+
"checklistItem": "Check that documents can be navigated with keyboard (Tab, arrow keys).",
|
|
81
|
+
"swedishGuidance": "PDF forms and E-book navigation must be operable via keyboard/reading systems.",
|
|
82
|
+
"diggRelevance": "high",
|
|
83
|
+
"eaaRelevance": "medium"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "10.2.4.2",
|
|
87
|
+
"chapter": 10,
|
|
88
|
+
"title": "Document titled (non-web documents)",
|
|
89
|
+
"description": "Non-web documents shall have a title.",
|
|
90
|
+
"applicableFor": [
|
|
91
|
+
"pdf",
|
|
92
|
+
"word",
|
|
93
|
+
"excel",
|
|
94
|
+
"powerpoint"
|
|
95
|
+
],
|
|
96
|
+
"manualVerification": true,
|
|
97
|
+
"checklistItem": "Check that documents have a descriptive title in metadata.",
|
|
98
|
+
"swedishGuidance": "PDF documents must have title set in document properties.",
|
|
99
|
+
"diggRelevance": "medium",
|
|
100
|
+
"eaaRelevance": "low"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "11.5.2.5",
|
|
104
|
+
"chapter": 11,
|
|
105
|
+
"title": "Object information (software)",
|
|
106
|
+
"description": "Software shall expose object information to assistive technology.",
|
|
107
|
+
"applicableFor": [
|
|
108
|
+
"desktop-software",
|
|
109
|
+
"mobile-apps"
|
|
110
|
+
],
|
|
111
|
+
"manualVerification": true,
|
|
112
|
+
"checklistItem": "Check that UI elements expose name, role, value, and state to screen readers.",
|
|
113
|
+
"swedishGuidance": "Mobile apps from public authorities must work with iOS VoiceOver and Android TalkBack.",
|
|
114
|
+
"diggRelevance": "high",
|
|
115
|
+
"eaaRelevance": "high"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "11.8.2",
|
|
119
|
+
"chapter": 11,
|
|
120
|
+
"title": "Authoring tool accessibility (software)",
|
|
121
|
+
"description": "If the software is an authoring tool, it must support accessible content creation.",
|
|
122
|
+
"applicableFor": [
|
|
123
|
+
"cms",
|
|
124
|
+
"authoring-tools",
|
|
125
|
+
"editors"
|
|
126
|
+
],
|
|
127
|
+
"manualVerification": true,
|
|
128
|
+
"checklistItem": "Check that CMS/authoring tools have features to create accessible content (e.g. alt-text fields).",
|
|
129
|
+
"swedishGuidance": "CMS used by authorities must encourage/require accessible content.",
|
|
130
|
+
"diggRelevance": "medium",
|
|
131
|
+
"eaaRelevance": "medium"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "12.1.1",
|
|
135
|
+
"chapter": 12,
|
|
136
|
+
"title": "Accessibility and compatibility features",
|
|
137
|
+
"description": "Product documentation shall describe accessibility features.",
|
|
138
|
+
"applicableFor": [
|
|
139
|
+
"all"
|
|
140
|
+
],
|
|
141
|
+
"manualVerification": true,
|
|
142
|
+
"checklistItem": "Check that documentation lists all accessibility features and how to use them.",
|
|
143
|
+
"swedishGuidance": "Accessibility statement must include information about accessibility features. Applies to public sector (DOS-law), private actors (Accessibility Act), and E-book distributors.",
|
|
144
|
+
"diggRelevance": "high",
|
|
145
|
+
"eaaRelevance": "medium"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "12.1.2",
|
|
149
|
+
"chapter": 12,
|
|
150
|
+
"title": "Accessible documentation",
|
|
151
|
+
"description": "Product documentation shall be accessible.",
|
|
152
|
+
"applicableFor": [
|
|
153
|
+
"all"
|
|
154
|
+
],
|
|
155
|
+
"manualVerification": true,
|
|
156
|
+
"checklistItem": "Check that user manual and help documentation meet WCAG 2.1 AA.",
|
|
157
|
+
"swedishGuidance": "Help pages and user guides must be accessible. Critical for e-commerce and banking services under the Accessibility Act.",
|
|
158
|
+
"diggRelevance": "medium",
|
|
159
|
+
"eaaRelevance": "medium"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"id": "12.2.2",
|
|
163
|
+
"chapter": 12,
|
|
164
|
+
"title": "Information on accessibility and compatibility features",
|
|
165
|
+
"description": "Support services shall be knowledgeable about accessibility features.",
|
|
166
|
+
"applicableFor": [
|
|
167
|
+
"support-services"
|
|
168
|
+
],
|
|
169
|
+
"manualVerification": true,
|
|
170
|
+
"checklistItem": "Check that support staff is trained in the product's accessibility features.",
|
|
171
|
+
"swedishGuidance": "Support services (helpdesk/technical support) must be able to assist users with disabilities. Applies to all actors covered by the Accessibility Act.",
|
|
172
|
+
"diggRelevance": "low",
|
|
173
|
+
"eaaRelevance": "medium"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"id": "12.2.4",
|
|
177
|
+
"chapter": 12,
|
|
178
|
+
"title": "Accessible support services",
|
|
179
|
+
"description": "Support services shall be accessible.",
|
|
180
|
+
"applicableFor": [
|
|
181
|
+
"support-services"
|
|
182
|
+
],
|
|
183
|
+
"manualVerification": true,
|
|
184
|
+
"checklistItem": "Check that support is available via multiple channels (phone, email, chat) and is accessible.",
|
|
185
|
+
"swedishGuidance": "Support channels must be accessible. Private actors offering services to consumers must ensure their support is inclusive.",
|
|
186
|
+
"diggRelevance": "medium",
|
|
187
|
+
"eaaRelevance": "high"
|
|
188
|
+
}
|
|
189
|
+
]
|