@uuv/a11y 0.0.1 → 1.0.0-beta.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.
Files changed (84) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +265 -68
  3. package/bundle/uuv-a11y.bundle.js +2 -2
  4. package/dist/CHANGELOG.md +51 -0
  5. package/dist/README.md +265 -68
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +17 -17
  8. package/dist/lib/engine/engine.d.ts +12 -12
  9. package/dist/lib/engine/engine.js +123 -123
  10. package/dist/lib/index.d.ts +3 -3
  11. package/dist/lib/index.js +19 -19
  12. package/dist/lib/model/checker.d.ts +14 -14
  13. package/dist/lib/model/checker.js +35 -35
  14. package/dist/lib/model/index.d.ts +4 -4
  15. package/dist/lib/model/index.js +20 -20
  16. package/dist/lib/model/reference.d.ts +55 -55
  17. package/dist/lib/model/reference.js +66 -66
  18. package/dist/lib/model/result.d.ts +57 -57
  19. package/dist/lib/model/result.js +144 -144
  20. package/dist/lib/model/rule.d.ts +99 -99
  21. package/dist/lib/model/rule.js +53 -53
  22. package/dist/lib/query/00-query.d.ts +4 -4
  23. package/dist/lib/query/00-query.js +2 -2
  24. package/dist/lib/query/accessible-name.query.d.ts +8 -8
  25. package/dist/lib/query/accessible-name.query.js +34 -34
  26. package/dist/lib/query/by-role.query.d.ts +8 -8
  27. package/dist/lib/query/by-role.query.js +27 -27
  28. package/dist/lib/query/by-tag.query.d.ts +7 -7
  29. package/dist/lib/query/by-tag.query.js +20 -20
  30. package/dist/lib/query/doctype.query.d.ts +5 -5
  31. package/dist/lib/query/doctype.query.js +15 -15
  32. package/dist/lib/query/form.query.d.ts +8 -8
  33. package/dist/lib/query/form.query.js +87 -87
  34. package/dist/lib/query/index.d.ts +6 -6
  35. package/dist/lib/query/index.js +22 -22
  36. package/dist/lib/reference/alix/alix-checker.js +82 -82
  37. package/dist/lib/reference/alix/alix-rules.js +1028 -1028
  38. package/dist/lib/reference/alix/index.js +3 -3
  39. package/dist/lib/reference/index.d.ts +1 -1
  40. package/dist/lib/reference/index.js +18 -18
  41. package/dist/lib/reference/rgaa/common.d.ts +2 -2
  42. package/dist/lib/reference/rgaa/common.js +5 -5
  43. package/dist/lib/reference/rgaa/coverage/coverage-helper.d.ts +2 -2
  44. package/dist/lib/reference/rgaa/coverage/coverage-helper.js +100 -100
  45. package/dist/lib/reference/rgaa/coverage/coverage-statement.json +90 -90
  46. package/dist/lib/reference/rgaa/index.d.ts +2 -2
  47. package/dist/lib/reference/rgaa/index.js +18 -18
  48. package/dist/lib/reference/rgaa/rgaa-checker.d.ts +8 -8
  49. package/dist/lib/reference/rgaa/rgaa-checker.js +31 -31
  50. package/dist/lib/reference/rgaa/rgaa-reference.d.ts +2 -2
  51. package/dist/lib/reference/rgaa/rgaa-reference.js +44 -44
  52. package/dist/lib/reference/rgaa/rgaa_4.1.criteres.json +4144 -4144
  53. package/dist/lib/reference/rgaa/rules/1-image.d.ts +14 -14
  54. package/dist/lib/reference/rgaa/rules/1-image.js +644 -644
  55. package/dist/lib/reference/rgaa/rules/10-display.d.ts +2 -2
  56. package/dist/lib/reference/rgaa/rules/10-display.js +3 -3
  57. package/dist/lib/reference/rgaa/rules/11-form.d.ts +14 -14
  58. package/dist/lib/reference/rgaa/rules/11-form.js +16 -16
  59. package/dist/lib/reference/rgaa/rules/12-navigation.d.ts +2 -2
  60. package/dist/lib/reference/rgaa/rules/12-navigation.js +3 -3
  61. package/dist/lib/reference/rgaa/rules/13-visit.d.ts +2 -2
  62. package/dist/lib/reference/rgaa/rules/13-visit.js +3 -3
  63. package/dist/lib/reference/rgaa/rules/2-frame.d.ts +14 -14
  64. package/dist/lib/reference/rgaa/rules/2-frame.js +34 -34
  65. package/dist/lib/reference/rgaa/rules/3-color.d.ts +14 -14
  66. package/dist/lib/reference/rgaa/rules/3-color.js +50 -50
  67. package/dist/lib/reference/rgaa/rules/4-multimedia.d.ts +2 -2
  68. package/dist/lib/reference/rgaa/rules/4-multimedia.js +3 -3
  69. package/dist/lib/reference/rgaa/rules/5-table.d.ts +2 -2
  70. package/dist/lib/reference/rgaa/rules/5-table.js +3 -3
  71. package/dist/lib/reference/rgaa/rules/6-link.d.ts +2 -2
  72. package/dist/lib/reference/rgaa/rules/6-link.js +3 -3
  73. package/dist/lib/reference/rgaa/rules/7-script.d.ts +2 -2
  74. package/dist/lib/reference/rgaa/rules/7-script.js +3 -3
  75. package/dist/lib/reference/rgaa/rules/8-required-element.d.ts +14 -14
  76. package/dist/lib/reference/rgaa/rules/8-required-element.js +78 -78
  77. package/dist/lib/reference/rgaa/rules/9-structure.d.ts +2 -2
  78. package/dist/lib/reference/rgaa/rules/9-structure.js +3 -3
  79. package/dist/lib/reference/rgaa/selector-helper.d.ts +17 -17
  80. package/dist/lib/reference/rgaa/selector-helper.js +33 -33
  81. package/dist/package.json +3 -1
  82. package/docs/diagram-a11y-rgaa.excalidraw +1654 -0
  83. package/docs/diagram-a11y-rgaa.png +0 -0
  84. package/package.json +3 -1
@@ -1,3 +1,3 @@
1
- "use strict";
2
- // export * from './alix-rules';
3
- // export * from './alix-checker';
1
+ "use strict";
2
+ // export * from './alix-rules';
3
+ // export * from './alix-checker';
@@ -1 +1 @@
1
- export * from "./rgaa";
1
+ export * from "./rgaa";
@@ -1,18 +1,18 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- // export * from './alix';
18
- __exportStar(require("./rgaa"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // export * from './alix';
18
+ __exportStar(require("./rgaa"), exports);
@@ -1,2 +1,2 @@
1
- export declare const REFERENCE_NAME = "RGAA";
2
- export declare const REFERENCE_VERSION = "4.1";
1
+ export declare const REFERENCE_NAME = "RGAA";
2
+ export declare const REFERENCE_VERSION = "4.1";
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REFERENCE_VERSION = exports.REFERENCE_NAME = void 0;
4
- exports.REFERENCE_NAME = "RGAA";
5
- exports.REFERENCE_VERSION = "4.1";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REFERENCE_VERSION = exports.REFERENCE_NAME = void 0;
4
+ exports.REFERENCE_NAME = "RGAA";
5
+ exports.REFERENCE_VERSION = "4.1";
@@ -1,2 +1,2 @@
1
- import { A11yReferenceCoverage } from "../../../model";
2
- export declare function buildCoverage(): A11yReferenceCoverage;
1
+ import { A11yReferenceCoverage } from "../../../model";
2
+ export declare function buildCoverage(): A11yReferenceCoverage;
@@ -1,100 +1,100 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.buildCoverage = void 0;
27
- const model_1 = require("../../../model");
28
- const PARTIAL_COVERAGE = __importStar(require("./coverage-statement.json"));
29
- const common_1 = require("../common");
30
- const REFERENCE_CRITERIUM = __importStar(require("../rgaa_4.1.criteres.json"));
31
- const reference_1 = require("../../../reference");
32
- function getCheckModeForCriteria(criteria) {
33
- const checkModeForCriteria = [];
34
- reference_1.A11Y_RGAA_REFERENCE.rules
35
- .filter(rule => rule.id === criteria)
36
- .forEach(rule => {
37
- if (!checkModeForCriteria.includes(rule.check)) {
38
- checkModeForCriteria.push(rule.check);
39
- }
40
- });
41
- return checkModeForCriteria;
42
- }
43
- function addMessages(itemId, coverage) {
44
- coverage.comments = Object.assign(new model_1.Comments(), PARTIAL_COVERAGE.comments[itemId]);
45
- }
46
- function buildCoverage() {
47
- const referenceCoverage = new model_1.A11yReferenceCoverage(`${common_1.REFERENCE_NAME} ${common_1.REFERENCE_VERSION}`);
48
- REFERENCE_CRITERIUM.topics?.forEach((topic) => {
49
- const topicCoverage = new model_1.A11yReferenceTopicCoverage(topic.number, topic.topic);
50
- addMessages(topic.number + "", topicCoverage);
51
- topic.criteria.forEach((criterion) => {
52
- const completeCriteriaId = `${topic.number}.${criterion.criterium.number}`;
53
- const criteriaCoverage = new model_1.A11yReferenceCriteriaCoverage(completeCriteriaId, criterion.criterium.title);
54
- addMessages(completeCriteriaId, criteriaCoverage);
55
- Object.keys(criterion.criterium.tests).forEach((testId) => {
56
- const completeTestId = `${topic.number}.${criterion.criterium.number}.${testId}`;
57
- const testCoverage = new model_1.A11yReferenceTestCoverage(completeTestId, criterion.criterium.tests[testId].join("<br/>"));
58
- addMessages(completeTestId, testCoverage);
59
- if (PARTIAL_COVERAGE.implemented.find((element) => element === completeTestId)) {
60
- const checkModeForCriteria = getCheckModeForCriteria(completeTestId);
61
- if (checkModeForCriteria.length > 1) {
62
- testCoverage.partial++;
63
- criteriaCoverage.partial++;
64
- topicCoverage.partial++;
65
- }
66
- else if (checkModeForCriteria.length === 1) {
67
- if (checkModeForCriteria[0] === model_1.RuleCheckEnum.AUTO) {
68
- testCoverage.auto++;
69
- criteriaCoverage.auto++;
70
- topicCoverage.auto++;
71
- }
72
- else if (checkModeForCriteria[0] === model_1.RuleCheckEnum.MANUAL) {
73
- testCoverage.manual++;
74
- criteriaCoverage.manual++;
75
- topicCoverage.manual++;
76
- }
77
- }
78
- }
79
- if (PARTIAL_COVERAGE.inProgress.find((element) => element === completeTestId)) {
80
- testCoverage.inProgress++;
81
- criteriaCoverage.inProgress++;
82
- topicCoverage.inProgress++;
83
- }
84
- if (PARTIAL_COVERAGE.wontBeImplemented.find((element) => element === completeTestId)) {
85
- testCoverage.wontBeImplemented++;
86
- criteriaCoverage.wontBeImplemented++;
87
- topicCoverage.wontBeImplemented++;
88
- }
89
- testCoverage.testsCount++;
90
- criteriaCoverage.testsCount++;
91
- topicCoverage.testsCount++;
92
- criteriaCoverage.tests.push(testCoverage);
93
- });
94
- topicCoverage.criterias.push(criteriaCoverage);
95
- });
96
- referenceCoverage.topics.push(topicCoverage);
97
- });
98
- return referenceCoverage;
99
- }
100
- exports.buildCoverage = buildCoverage;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.buildCoverage = void 0;
27
+ const model_1 = require("../../../model");
28
+ const PARTIAL_COVERAGE = __importStar(require("./coverage-statement.json"));
29
+ const common_1 = require("../common");
30
+ const REFERENCE_CRITERIUM = __importStar(require("../rgaa_4.1.criteres.json"));
31
+ const reference_1 = require("../../../reference");
32
+ function getCheckModeForCriteria(criteria) {
33
+ const checkModeForCriteria = [];
34
+ reference_1.A11Y_RGAA_REFERENCE.rules
35
+ .filter(rule => rule.id === criteria)
36
+ .forEach(rule => {
37
+ if (!checkModeForCriteria.includes(rule.check)) {
38
+ checkModeForCriteria.push(rule.check);
39
+ }
40
+ });
41
+ return checkModeForCriteria;
42
+ }
43
+ function addMessages(itemId, coverage) {
44
+ coverage.comments = Object.assign(new model_1.Comments(), PARTIAL_COVERAGE.comments[itemId]);
45
+ }
46
+ function buildCoverage() {
47
+ const referenceCoverage = new model_1.A11yReferenceCoverage(`${common_1.REFERENCE_NAME} ${common_1.REFERENCE_VERSION}`);
48
+ REFERENCE_CRITERIUM.topics?.forEach((topic) => {
49
+ const topicCoverage = new model_1.A11yReferenceTopicCoverage(topic.number, topic.topic);
50
+ addMessages(topic.number + "", topicCoverage);
51
+ topic.criteria.forEach((criterion) => {
52
+ const completeCriteriaId = `${topic.number}.${criterion.criterium.number}`;
53
+ const criteriaCoverage = new model_1.A11yReferenceCriteriaCoverage(completeCriteriaId, criterion.criterium.title);
54
+ addMessages(completeCriteriaId, criteriaCoverage);
55
+ Object.keys(criterion.criterium.tests).forEach((testId) => {
56
+ const completeTestId = `${topic.number}.${criterion.criterium.number}.${testId}`;
57
+ const testCoverage = new model_1.A11yReferenceTestCoverage(completeTestId, criterion.criterium.tests[testId].join("\\\n"));
58
+ addMessages(completeTestId, testCoverage);
59
+ if (PARTIAL_COVERAGE.implemented.find((element) => element === completeTestId)) {
60
+ const checkModeForCriteria = getCheckModeForCriteria(completeTestId);
61
+ if (checkModeForCriteria.length > 1) {
62
+ testCoverage.partial++;
63
+ criteriaCoverage.partial++;
64
+ topicCoverage.partial++;
65
+ }
66
+ else if (checkModeForCriteria.length === 1) {
67
+ if (checkModeForCriteria[0] === model_1.RuleCheckEnum.AUTO) {
68
+ testCoverage.auto++;
69
+ criteriaCoverage.auto++;
70
+ topicCoverage.auto++;
71
+ }
72
+ else if (checkModeForCriteria[0] === model_1.RuleCheckEnum.MANUAL) {
73
+ testCoverage.manual++;
74
+ criteriaCoverage.manual++;
75
+ topicCoverage.manual++;
76
+ }
77
+ }
78
+ }
79
+ if (PARTIAL_COVERAGE.inProgress.find((element) => element === completeTestId)) {
80
+ testCoverage.inProgress++;
81
+ criteriaCoverage.inProgress++;
82
+ topicCoverage.inProgress++;
83
+ }
84
+ if (PARTIAL_COVERAGE.wontBeImplemented.find((element) => element === completeTestId)) {
85
+ testCoverage.wontBeImplemented++;
86
+ criteriaCoverage.wontBeImplemented++;
87
+ topicCoverage.wontBeImplemented++;
88
+ }
89
+ testCoverage.testsCount++;
90
+ criteriaCoverage.testsCount++;
91
+ topicCoverage.testsCount++;
92
+ criteriaCoverage.tests.push(testCoverage);
93
+ });
94
+ topicCoverage.criterias.push(criteriaCoverage);
95
+ });
96
+ referenceCoverage.topics.push(topicCoverage);
97
+ });
98
+ return referenceCoverage;
99
+ }
100
+ exports.buildCoverage = buildCoverage;
@@ -1,90 +1,90 @@
1
- {
2
- "implemented": [
3
- "1.1.1",
4
- "1.1.2",
5
- "1.1.3",
6
- "1.1.5"
7
- ],
8
- "inProgress": [
9
- "1.1.4",
10
- "1.1.6",
11
- "1.1.7",
12
- "1.1.8",
13
- "1.2.1",
14
- "1.2.6",
15
- "1.2.2",
16
- "1.2.3",
17
- "1.2.4",
18
- "1.2.5",
19
- "1.3.1",
20
- "1.3.2",
21
- "1.3.3",
22
- "1.3.4",
23
- "1.3.5",
24
- "1.3.6",
25
- "1.3.7",
26
- "1.3.8",
27
- "1.3.9",
28
- "1.4.1",
29
- "1.4.2",
30
- "1.4.3",
31
- "1.4.4",
32
- "1.4.5",
33
- "1.4.6",
34
- "1.4.7",
35
- "1.5.1",
36
- "1.5.2",
37
- "1.6.1",
38
- "1.6.2",
39
- "1.6.3",
40
- "1.6.4",
41
- "1.6.5",
42
- "1.6.6",
43
- "1.6.7"
44
- ],
45
- "wontBeImplemented": [
46
- "1.1.6"
47
- ],
48
- "comments": {
49
- "1": {
50
- "warning": "La différence entre une image décorative et une image porteuse d'informations étant subjective (comme précisé sur par le [W3C](https://www.w3.org/WAI/tutorials/images/informative/)), nous avons choisi de définir une image porteuse d'informations comme une image ayant une alternative textuelle pour favoriser l'automatisation des contrôles.\\\nPour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
51
- },
52
- "1.1.1": {
53
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
54
- },
55
- "1.1.2": {
56
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
57
- },
58
- "1.1.5": {
59
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
60
- },
61
- "1.1.6": {
62
- "danger": "Soit un mécanisme permet à l'utilisateur de remplacer l'élément `<object>` par un contenu alternatif.",
63
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
64
- },
65
- "1.1.7": {
66
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
67
- },
68
- "1.1.8": {
69
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
70
- },
71
- "1.2.1": {
72
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
73
- },
74
- "1.2.2": {
75
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
76
- },
77
- "1.2.3": {
78
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
79
- },
80
- "1.2.4": {
81
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
82
- },
83
- "1.2.5": {
84
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
85
- },
86
- "1.2.6": {
87
- "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
88
- }
89
- }
90
- }
1
+ {
2
+ "implemented": [
3
+ "1.1.1",
4
+ "1.1.2",
5
+ "1.1.3",
6
+ "1.1.5"
7
+ ],
8
+ "inProgress": [
9
+ "1.1.4",
10
+ "1.1.6",
11
+ "1.1.7",
12
+ "1.1.8",
13
+ "1.2.1",
14
+ "1.2.6",
15
+ "1.2.2",
16
+ "1.2.3",
17
+ "1.2.4",
18
+ "1.2.5",
19
+ "1.3.1",
20
+ "1.3.2",
21
+ "1.3.3",
22
+ "1.3.4",
23
+ "1.3.5",
24
+ "1.3.6",
25
+ "1.3.7",
26
+ "1.3.8",
27
+ "1.3.9",
28
+ "1.4.1",
29
+ "1.4.2",
30
+ "1.4.3",
31
+ "1.4.4",
32
+ "1.4.5",
33
+ "1.4.6",
34
+ "1.4.7",
35
+ "1.5.1",
36
+ "1.5.2",
37
+ "1.6.1",
38
+ "1.6.2",
39
+ "1.6.3",
40
+ "1.6.4",
41
+ "1.6.5",
42
+ "1.6.6",
43
+ "1.6.7"
44
+ ],
45
+ "wontBeImplemented": [
46
+ "1.1.6"
47
+ ],
48
+ "comments": {
49
+ "1": {
50
+ "warning": "La différence entre une image décorative et une image porteuse d'informations étant subjective (comme précisé sur par le [W3C](https://www.w3.org/WAI/tutorials/images/informative/)), nous avons choisi de définir une image porteuse d'informations comme une image ayant une alternative textuelle pour favoriser l'automatisation des contrôles.\\\nPour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
51
+ },
52
+ "1.1.1": {
53
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
54
+ },
55
+ "1.1.2": {
56
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
57
+ },
58
+ "1.1.5": {
59
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
60
+ },
61
+ "1.1.6": {
62
+ "danger": "Soit un mécanisme permet à l'utilisateur de remplacer l'élément `<object>` par un contenu alternatif.",
63
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
64
+ },
65
+ "1.1.7": {
66
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
67
+ },
68
+ "1.1.8": {
69
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
70
+ },
71
+ "1.2.1": {
72
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
73
+ },
74
+ "1.2.2": {
75
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
76
+ },
77
+ "1.2.3": {
78
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
79
+ },
80
+ "1.2.4": {
81
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
82
+ },
83
+ "1.2.5": {
84
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
85
+ },
86
+ "1.2.6": {
87
+ "warning": "Pour les contrôles concernant les alternatives textutelles, nous utilisons la librairie [dom-accessibility-api](https://www.npmjs.com/package/dom-accessibility-api) qui implémente les [règles du W3C](https://w3c.github.io/accname/)"
88
+ }
89
+ }
90
+ }
@@ -1,2 +1,2 @@
1
- export * from "./rgaa-reference";
2
- export * from "./rgaa-checker";
1
+ export * from "./rgaa-reference";
2
+ export * from "./rgaa-checker";
@@ -1,18 +1,18 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./rgaa-reference"), exports);
18
- __exportStar(require("./rgaa-checker"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./rgaa-reference"), exports);
18
+ __exportStar(require("./rgaa-checker"), exports);
@@ -1,8 +1,8 @@
1
- import { Observable } from "rxjs";
2
- import { A11yChecker } from "../../model";
3
- export declare class RgaaChecker extends A11yChecker {
4
- emitter: Observable<boolean>;
5
- constructor(url: string, enabledRules?: string[]);
6
- private focusOnEnabledRules;
7
- rules(): import("../../model").A11yRule[];
8
- }
1
+ import { Observable } from "rxjs";
2
+ import { A11yChecker } from "../../model";
3
+ export declare class RgaaChecker extends A11yChecker {
4
+ emitter: Observable<boolean>;
5
+ constructor(url: string, enabledRules?: string[]);
6
+ private focusOnEnabledRules;
7
+ rules(): import("../../model").A11yRule[];
8
+ }
@@ -1,31 +1,31 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RgaaChecker = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const model_1 = require("../../model");
6
- const engine_1 = require("../../engine/engine");
7
- const rgaa_reference_1 = require("./rgaa-reference");
8
- class RgaaChecker extends model_1.A11yChecker {
9
- emitter = new rxjs_1.Observable();
10
- constructor(url, enabledRules) {
11
- super(url, new engine_1.Engine(url, rgaa_reference_1.A11Y_RGAA_REFERENCE), rgaa_reference_1.A11Y_RGAA_REFERENCE);
12
- if (enabledRules) {
13
- this.focusOnEnabledRules(enabledRules);
14
- }
15
- }
16
- focusOnEnabledRules(enabledRules) {
17
- this.reference.rules = this.reference.rules.filter(rule => enabledRules?.includes(rule.criterion));
18
- }
19
- rules() {
20
- return [...this.reference.rules].sort((a, b) => {
21
- if (a.check > b.check) {
22
- return 1;
23
- }
24
- if (a.check < b.check) {
25
- return -1;
26
- }
27
- return 0;
28
- });
29
- }
30
- }
31
- exports.RgaaChecker = RgaaChecker;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RgaaChecker = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const model_1 = require("../../model");
6
+ const engine_1 = require("../../engine/engine");
7
+ const rgaa_reference_1 = require("./rgaa-reference");
8
+ class RgaaChecker extends model_1.A11yChecker {
9
+ emitter = new rxjs_1.Observable();
10
+ constructor(url, enabledRules) {
11
+ super(url, new engine_1.Engine(url, rgaa_reference_1.A11Y_RGAA_REFERENCE), rgaa_reference_1.A11Y_RGAA_REFERENCE);
12
+ if (enabledRules) {
13
+ this.focusOnEnabledRules(enabledRules);
14
+ }
15
+ }
16
+ focusOnEnabledRules(enabledRules) {
17
+ this.reference.rules = this.reference.rules.filter(rule => enabledRules?.includes(rule.criterion));
18
+ }
19
+ rules() {
20
+ return [...this.reference.rules].sort((a, b) => {
21
+ if (a.check > b.check) {
22
+ return 1;
23
+ }
24
+ if (a.check < b.check) {
25
+ return -1;
26
+ }
27
+ return 0;
28
+ });
29
+ }
30
+ }
31
+ exports.RgaaChecker = RgaaChecker;
@@ -1,2 +1,2 @@
1
- import { A11yReference } from "../../model";
2
- export declare const A11Y_RGAA_REFERENCE: A11yReference;
1
+ import { A11yReference } from "../../model";
2
+ export declare const A11Y_RGAA_REFERENCE: A11yReference;