@ng-prism/core 21.4.5 → 21.5.1
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/dist/app/canvas/prism-canvas-rulers.component.d.ts +16 -0
- package/dist/app/canvas/prism-canvas-rulers.component.d.ts.map +1 -0
- package/dist/app/canvas/prism-canvas-rulers.component.js +177 -0
- package/dist/app/canvas/prism-canvas-toolbar.component.d.ts +14 -0
- package/dist/app/canvas/prism-canvas-toolbar.component.d.ts.map +1 -0
- package/dist/app/canvas/prism-canvas-toolbar.component.js +144 -0
- package/dist/app/canvas/prism-code-drawer.component.d.ts +12 -0
- package/dist/app/canvas/prism-code-drawer.component.d.ts.map +1 -0
- package/dist/app/canvas/prism-code-drawer.component.js +114 -0
- package/dist/app/component-head/prism-component-head.component.d.ts +15 -0
- package/dist/app/component-head/prism-component-head.component.d.ts.map +1 -0
- package/dist/app/component-head/prism-component-head.component.js +207 -0
- package/dist/app/component-head/prism-stat.component.d.ts +10 -0
- package/dist/app/component-head/prism-stat.component.d.ts.map +1 -0
- package/dist/app/component-head/prism-stat.component.js +52 -0
- package/dist/app/controls/boolean-control.component.d.ts.map +1 -1
- package/dist/app/controls/boolean-control.component.js +16 -44
- package/dist/app/controls/json-control.component.d.ts.map +1 -1
- package/dist/app/controls/json-control.component.js +33 -54
- package/dist/app/controls/number-control.component.d.ts.map +1 -1
- package/dist/app/controls/number-control.component.js +18 -35
- package/dist/app/controls/string-control.component.d.ts.map +1 -1
- package/dist/app/controls/string-control.component.js +14 -41
- package/dist/app/controls/union-control.component.d.ts.map +1 -1
- package/dist/app/controls/union-control.component.js +26 -50
- package/dist/app/directives/prism-resizer.directive.d.ts +14 -0
- package/dist/app/directives/prism-resizer.directive.d.ts.map +1 -0
- package/dist/app/directives/prism-resizer.directive.js +71 -0
- package/dist/app/header/prism-header.component.d.ts +3 -0
- package/dist/app/header/prism-header.component.d.ts.map +1 -1
- package/dist/app/header/prism-header.component.js +91 -215
- package/dist/app/icons/prism-icon.component.d.ts +10 -0
- package/dist/app/icons/prism-icon.component.d.ts.map +1 -0
- package/dist/app/icons/prism-icon.component.js +64 -0
- package/dist/app/index.d.ts +4 -3
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +4 -3
- package/dist/app/layout-menu/prism-layout-menu.component.d.ts.map +1 -1
- package/dist/app/layout-menu/prism-layout-menu.component.js +63 -69
- package/dist/app/panels/a11y/a11y-core.plugin.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-core.plugin.js +1 -0
- package/dist/app/panels/a11y/a11y-keyboard.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-keyboard.component.js +61 -100
- package/dist/app/panels/a11y/a11y-overlay-host.component.d.ts +4 -0
- package/dist/app/panels/a11y/a11y-overlay-host.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-overlay-host.component.js +87 -11
- package/dist/app/panels/a11y/a11y-panel.component.d.ts +0 -2
- package/dist/app/panels/a11y/a11y-panel.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-panel.component.js +70 -85
- package/dist/app/panels/a11y/a11y-score.component.d.ts +2 -1
- package/dist/app/panels/a11y/a11y-score.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-score.component.js +55 -49
- package/dist/app/panels/a11y/a11y-sr.component.d.ts +1 -9
- package/dist/app/panels/a11y/a11y-sr.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-sr.component.js +60 -208
- package/dist/app/panels/a11y/a11y-tree.component.d.ts +2 -4
- package/dist/app/panels/a11y/a11y-tree.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-tree.component.js +92 -137
- package/dist/app/panels/a11y/a11y-violations.component.d.ts +2 -6
- package/dist/app/panels/a11y/a11y-violations.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-violations.component.js +126 -373
- package/dist/app/panels/controls/controls-plugin.d.ts.map +1 -1
- package/dist/app/panels/controls/controls-plugin.js +1 -0
- package/dist/app/panels/controls/prism-controls-panel.component.d.ts.map +1 -1
- package/dist/app/panels/controls/prism-controls-panel.component.js +96 -88
- package/dist/app/panels/events/events-plugin.d.ts.map +1 -1
- package/dist/app/panels/events/events-plugin.js +1 -0
- package/dist/app/panels/events/prism-events-panel.component.d.ts +1 -0
- package/dist/app/panels/events/prism-events-panel.component.d.ts.map +1 -1
- package/dist/app/panels/events/prism-events-panel.component.js +44 -46
- package/dist/app/panels/panel-host/prism-panel-host.component.d.ts +7 -2
- package/dist/app/panels/panel-host/prism-panel-host.component.d.ts.map +1 -1
- package/dist/app/panels/panel-host/prism-panel-host.component.js +102 -42
- package/dist/app/renderer/prism-renderer.component.d.ts +5 -6
- package/dist/app/renderer/prism-renderer.component.d.ts.map +1 -1
- package/dist/app/renderer/prism-renderer.component.js +84 -150
- package/dist/app/services/prism-canvas.service.d.ts +18 -0
- package/dist/app/services/prism-canvas.service.d.ts.map +1 -0
- package/dist/app/services/prism-canvas.service.js +63 -0
- package/dist/app/services/prism-theme.service.d.ts +13 -1
- package/dist/app/services/prism-theme.service.d.ts.map +1 -1
- package/dist/app/services/prism-theme.service.js +56 -9
- package/dist/app/shell/prism-shell.component.d.ts +1 -2
- package/dist/app/shell/prism-shell.component.d.ts.map +1 -1
- package/dist/app/shell/prism-shell.component.js +189 -178
- package/dist/app/sidebar/prism-sidebar.component.d.ts +16 -10
- package/dist/app/sidebar/prism-sidebar.component.d.ts.map +1 -1
- package/dist/app/sidebar/prism-sidebar.component.js +318 -204
- package/dist/app/theme/prism-default-theme.d.ts +1 -0
- package/dist/app/theme/prism-default-theme.d.ts.map +1 -1
- package/dist/app/theme/prism-default-theme.js +53 -34
- package/dist/app/variant-ribbon/prism-variant-ribbon.component.d.ts +13 -0
- package/dist/app/variant-ribbon/prism-variant-ribbon.component.d.ts.map +1 -0
- package/dist/app/variant-ribbon/prism-variant-ribbon.component.js +134 -0
- package/dist/app/view-tab-bar/prism-view-tab-bar.component.d.ts.map +1 -1
- package/dist/app/view-tab-bar/prism-view-tab-bar.component.js +15 -11
- package/dist/builder/shared/prism-pipeline.d.ts.map +1 -1
- package/dist/builder/shared/prism-pipeline.js +22 -5
- package/dist/decorator/showcase.decorator.d.ts +1 -3
- package/dist/decorator/showcase.decorator.d.ts.map +1 -1
- package/dist/decorator/showcase.decorator.js +2 -6
- package/dist/plugin/plugin.types.d.ts +1 -0
- package/dist/plugin/plugin.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, computed, inject,
|
|
2
|
-
import { Highlight } from 'ngx-highlightjs';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, inject, } from '@angular/core';
|
|
3
2
|
import { A11yAuditService } from './a11y-audit.service.js';
|
|
4
3
|
import { A11yScoreComponent } from './a11y-score.component.js';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
const _forTrack0 = ($index, $item) => $item.id;
|
|
5
|
+
const _forTrack0 = ($index, $item) => $item.id + $item.impact;
|
|
7
6
|
function A11yViolationsComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
8
7
|
i0.ɵɵelementStart(0, "div", 0);
|
|
9
8
|
i0.ɵɵtext(1);
|
|
@@ -11,278 +10,110 @@ function A11yViolationsComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
11
10
|
} if (rf & 2) {
|
|
12
11
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
13
12
|
i0.ɵɵadvance();
|
|
14
|
-
i0.ɵɵtextInterpolate1("Audit failed: ", ctx_r0.auditService.error());
|
|
13
|
+
i0.ɵɵtextInterpolate1(" Audit failed: ", ctx_r0.auditService.error(), " ");
|
|
15
14
|
} }
|
|
16
|
-
function
|
|
17
|
-
i0.ɵɵelementStart(0, "span"
|
|
18
|
-
i0.ɵɵ
|
|
19
|
-
i0.ɵɵ
|
|
20
|
-
} }
|
|
21
|
-
function A11yViolationsComponent_Conditional_1_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
-
i0.ɵɵelementStart(0, "span", 9);
|
|
23
|
-
i0.ɵɵtext(1);
|
|
15
|
+
function A11yViolationsComponent_Conditional_1_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
+
i0.ɵɵelementStart(0, "span");
|
|
17
|
+
i0.ɵɵelement(1, "i", 11);
|
|
18
|
+
i0.ɵɵtext(2);
|
|
24
19
|
i0.ɵɵelementEnd();
|
|
25
20
|
} if (rf & 2) {
|
|
26
21
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
27
|
-
i0.ɵɵadvance();
|
|
28
|
-
i0.ɵɵtextInterpolate1("
|
|
22
|
+
i0.ɵɵadvance(2);
|
|
23
|
+
i0.ɵɵtextInterpolate1("", ctx_r0.scoreResult().critical, " critical");
|
|
29
24
|
} }
|
|
30
|
-
function
|
|
31
|
-
i0.ɵɵelementStart(0, "span"
|
|
32
|
-
i0.ɵɵ
|
|
25
|
+
function A11yViolationsComponent_Conditional_1_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
+
i0.ɵɵelementStart(0, "span");
|
|
27
|
+
i0.ɵɵelement(1, "i", 12);
|
|
28
|
+
i0.ɵɵtext(2);
|
|
33
29
|
i0.ɵɵelementEnd();
|
|
34
30
|
} if (rf & 2) {
|
|
35
31
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
36
|
-
i0.ɵɵadvance();
|
|
37
|
-
i0.ɵɵtextInterpolate1("
|
|
32
|
+
i0.ɵɵadvance(2);
|
|
33
|
+
i0.ɵɵtextInterpolate1("", ctx_r0.scoreResult().moderate, " moderate");
|
|
38
34
|
} }
|
|
39
|
-
function
|
|
40
|
-
i0.ɵɵelementStart(0, "span"
|
|
35
|
+
function A11yViolationsComponent_Conditional_1_For_13_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
+
i0.ɵɵelementStart(0, "span");
|
|
41
37
|
i0.ɵɵtext(1);
|
|
42
38
|
i0.ɵɵelementEnd();
|
|
43
39
|
} if (rf & 2) {
|
|
44
|
-
const
|
|
40
|
+
const item_r2 = i0.ɵɵnextContext().$implicit;
|
|
45
41
|
i0.ɵɵadvance();
|
|
46
|
-
i0.ɵɵ
|
|
47
|
-
} }
|
|
48
|
-
function A11yViolationsComponent_Conditional_1_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementStart(0, "span", 12);
|
|
50
|
-
i0.ɵɵtext(1, "All clear");
|
|
51
|
-
i0.ɵɵelementEnd();
|
|
52
|
-
} }
|
|
53
|
-
function A11yViolationsComponent_Conditional_1_Conditional_22_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
-
i0.ɵɵelementStart(0, "div", 24);
|
|
55
|
-
i0.ɵɵtext(1, "No violations found.");
|
|
56
|
-
i0.ɵɵelementEnd();
|
|
42
|
+
i0.ɵɵtextInterpolate(item_r2.help);
|
|
57
43
|
} }
|
|
58
|
-
function
|
|
59
|
-
i0.ɵɵelementStart(0, "div",
|
|
60
|
-
i0.ɵɵ
|
|
61
|
-
i0.ɵɵelementEnd()();
|
|
62
|
-
} if (rf & 2) {
|
|
63
|
-
const node_r3 = ctx.$implicit;
|
|
64
|
-
i0.ɵɵadvance(2);
|
|
65
|
-
i0.ɵɵproperty("highlight", node_r3.html);
|
|
66
|
-
} }
|
|
67
|
-
function A11yViolationsComponent_Conditional_1_Conditional_22_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
68
|
-
i0.ɵɵelementStart(0, "div", 25)(1, "div", 26)(2, "span");
|
|
69
|
-
i0.ɵɵtext(3);
|
|
44
|
+
function A11yViolationsComponent_Conditional_1_For_13_Template(rf, ctx) { if (rf & 1) {
|
|
45
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "span", 14);
|
|
46
|
+
i0.ɵɵtext(2);
|
|
70
47
|
i0.ɵɵelementEnd();
|
|
71
|
-
i0.ɵɵelementStart(
|
|
48
|
+
i0.ɵɵelementStart(3, "div", 15)(4, "b");
|
|
72
49
|
i0.ɵɵtext(5);
|
|
73
|
-
i0.ɵɵelementEnd()();
|
|
74
|
-
i0.ɵɵelementStart(6, "p", 28);
|
|
75
|
-
i0.ɵɵtext(7);
|
|
76
50
|
i0.ɵɵelementEnd();
|
|
77
|
-
i0.ɵɵ
|
|
78
|
-
i0.ɵɵelementStart(10, "a", 30);
|
|
79
|
-
i0.ɵɵtext(11, " Learn more \u2197 ");
|
|
80
|
-
i0.ɵɵelementEnd()();
|
|
81
|
-
} if (rf & 2) {
|
|
82
|
-
const item_r4 = ctx.$implicit;
|
|
83
|
-
i0.ɵɵadvance(2);
|
|
84
|
-
i0.ɵɵclassMap(i0.ɵɵinterpolate1("prism-a11y-v__impact prism-a11y-v__impact--", item_r4.impact));
|
|
85
|
-
i0.ɵɵadvance();
|
|
86
|
-
i0.ɵɵtextInterpolate(item_r4.impact);
|
|
87
|
-
i0.ɵɵadvance(2);
|
|
88
|
-
i0.ɵɵtextInterpolate(item_r4.id);
|
|
89
|
-
i0.ɵɵadvance(2);
|
|
90
|
-
i0.ɵɵtextInterpolate(item_r4.description);
|
|
91
|
-
i0.ɵɵadvance();
|
|
92
|
-
i0.ɵɵrepeater(item_r4.nodes);
|
|
93
|
-
i0.ɵɵadvance(2);
|
|
94
|
-
i0.ɵɵproperty("href", item_r4.helpUrl, i0.ɵɵsanitizeUrl);
|
|
95
|
-
} }
|
|
96
|
-
function A11yViolationsComponent_Conditional_1_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
97
|
-
i0.ɵɵelementStart(0, "div", 19);
|
|
98
|
-
i0.ɵɵconditionalCreate(1, A11yViolationsComponent_Conditional_1_Conditional_22_Conditional_1_Template, 2, 0, "div", 24);
|
|
99
|
-
i0.ɵɵrepeaterCreate(2, A11yViolationsComponent_Conditional_1_Conditional_22_For_3_Template, 12, 7, "div", 25, _forTrack0);
|
|
100
|
-
i0.ɵɵelementEnd();
|
|
101
|
-
} if (rf & 2) {
|
|
102
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
103
|
-
i0.ɵɵadvance();
|
|
104
|
-
i0.ɵɵconditional(!ctx_r0.violations().length ? 1 : -1);
|
|
105
|
-
i0.ɵɵadvance();
|
|
106
|
-
i0.ɵɵrepeater(ctx_r0.violations());
|
|
107
|
-
} }
|
|
108
|
-
function A11yViolationsComponent_Conditional_1_Conditional_31_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
109
|
-
i0.ɵɵelementStart(0, "div", 24);
|
|
110
|
-
i0.ɵɵtext(1, "Nothing to review.");
|
|
51
|
+
i0.ɵɵconditionalCreate(6, A11yViolationsComponent_Conditional_1_For_13_Conditional_6_Template, 2, 1, "span");
|
|
111
52
|
i0.ɵɵelementEnd();
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
i0.ɵɵelementStart(0, "div", 25)(1, "div", 26)(2, "span");
|
|
115
|
-
i0.ɵɵtext(3);
|
|
116
|
-
i0.ɵɵelementEnd();
|
|
117
|
-
i0.ɵɵelementStart(4, "span", 27);
|
|
118
|
-
i0.ɵɵtext(5);
|
|
119
|
-
i0.ɵɵelementEnd()();
|
|
120
|
-
i0.ɵɵelementStart(6, "p", 28);
|
|
121
|
-
i0.ɵɵtext(7);
|
|
53
|
+
i0.ɵɵelementStart(7, "span", 16);
|
|
54
|
+
i0.ɵɵtext(8);
|
|
122
55
|
i0.ɵɵelementEnd()();
|
|
123
56
|
} if (rf & 2) {
|
|
124
|
-
const
|
|
57
|
+
const item_r2 = ctx.$implicit;
|
|
58
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
59
|
+
i0.ɵɵstyleProp("--sev-color", ctx_r0.sevColor(item_r2.impact));
|
|
125
60
|
i0.ɵɵadvance(2);
|
|
126
|
-
i0.ɵɵ
|
|
61
|
+
i0.ɵɵtextInterpolate(item_r2.impact ?? "pass");
|
|
62
|
+
i0.ɵɵadvance(3);
|
|
63
|
+
i0.ɵɵtextInterpolate(item_r2.description);
|
|
127
64
|
i0.ɵɵadvance();
|
|
128
|
-
i0.ɵɵ
|
|
129
|
-
i0.ɵɵadvance(2);
|
|
130
|
-
i0.ɵɵtextInterpolate(item_r5.id);
|
|
65
|
+
i0.ɵɵconditional(item_r2.help ? 6 : -1);
|
|
131
66
|
i0.ɵɵadvance(2);
|
|
132
|
-
i0.ɵɵtextInterpolate(
|
|
67
|
+
i0.ɵɵtextInterpolate(item_r2.id);
|
|
133
68
|
} }
|
|
134
|
-
function
|
|
135
|
-
i0.ɵɵelementStart(0, "div",
|
|
136
|
-
i0.ɵɵ
|
|
137
|
-
i0.ɵɵrepeaterCreate(2, A11yViolationsComponent_Conditional_1_Conditional_31_For_3_Template, 8, 6, "div", 25, _forTrack0);
|
|
138
|
-
i0.ɵɵelementEnd();
|
|
139
|
-
} if (rf & 2) {
|
|
140
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
141
|
-
i0.ɵɵadvance();
|
|
142
|
-
i0.ɵɵconditional(!ctx_r0.incomplete().length ? 1 : -1);
|
|
143
|
-
i0.ɵɵadvance();
|
|
144
|
-
i0.ɵɵrepeater(ctx_r0.incomplete());
|
|
145
|
-
} }
|
|
146
|
-
function A11yViolationsComponent_Conditional_1_Conditional_40_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
147
|
-
i0.ɵɵelementStart(0, "div", 24);
|
|
148
|
-
i0.ɵɵtext(1, "No passing rules.");
|
|
69
|
+
function A11yViolationsComponent_Conditional_1_ForEmpty_14_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
71
|
+
i0.ɵɵtext(1, "No results yet.");
|
|
149
72
|
i0.ɵɵelementEnd();
|
|
150
73
|
} }
|
|
151
|
-
function
|
|
152
|
-
i0.ɵɵ
|
|
153
|
-
i0.ɵɵtext(2);
|
|
154
|
-
i0.ɵɵelementEnd();
|
|
155
|
-
i0.ɵɵelementStart(3, "span", 28);
|
|
156
|
-
i0.ɵɵtext(4);
|
|
157
|
-
i0.ɵɵelementEnd()();
|
|
158
|
-
} if (rf & 2) {
|
|
159
|
-
const item_r6 = ctx.$implicit;
|
|
160
|
-
i0.ɵɵadvance(2);
|
|
161
|
-
i0.ɵɵtextInterpolate(item_r6.id);
|
|
162
|
-
i0.ɵɵadvance(2);
|
|
163
|
-
i0.ɵɵtextInterpolate(item_r6.description);
|
|
164
|
-
} }
|
|
165
|
-
function A11yViolationsComponent_Conditional_1_Conditional_40_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
-
i0.ɵɵelementStart(0, "div", 19);
|
|
167
|
-
i0.ɵɵconditionalCreate(1, A11yViolationsComponent_Conditional_1_Conditional_40_Conditional_1_Template, 2, 0, "div", 24);
|
|
168
|
-
i0.ɵɵrepeaterCreate(2, A11yViolationsComponent_Conditional_1_Conditional_40_For_3_Template, 5, 2, "div", 32, _forTrack0);
|
|
169
|
-
i0.ɵɵelementEnd();
|
|
74
|
+
function A11yViolationsComponent_Conditional_1_ForEmpty_14_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
+
i0.ɵɵconditionalCreate(0, A11yViolationsComponent_Conditional_1_ForEmpty_14_Conditional_0_Template, 2, 0, "div", 2);
|
|
170
76
|
} if (rf & 2) {
|
|
171
77
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
172
|
-
i0.ɵɵ
|
|
173
|
-
i0.ɵɵconditional(!ctx_r0.passes().length ? 1 : -1);
|
|
174
|
-
i0.ɵɵadvance();
|
|
175
|
-
i0.ɵɵrepeater(ctx_r0.passes());
|
|
78
|
+
i0.ɵɵconditional(!ctx_r0.auditService.running() ? 0 : -1);
|
|
176
79
|
} }
|
|
177
80
|
function A11yViolationsComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
178
|
-
|
|
179
|
-
i0.ɵɵ
|
|
180
|
-
i0.ɵɵ
|
|
181
|
-
i0.ɵɵ
|
|
182
|
-
i0.ɵɵ
|
|
183
|
-
i0.ɵɵ
|
|
184
|
-
i0.ɵɵ
|
|
185
|
-
i0.ɵɵ
|
|
186
|
-
i0.ɵɵ
|
|
187
|
-
i0.ɵɵ
|
|
188
|
-
i0.ɵɵ
|
|
189
|
-
i0.ɵɵconditionalCreate(9, A11yViolationsComponent_Conditional_1_Conditional_9_Template, 2, 1, "span", 9);
|
|
190
|
-
i0.ɵɵconditionalCreate(10, A11yViolationsComponent_Conditional_1_Conditional_10_Template, 2, 1, "span", 10);
|
|
191
|
-
i0.ɵɵconditionalCreate(11, A11yViolationsComponent_Conditional_1_Conditional_11_Template, 2, 1, "span", 11);
|
|
192
|
-
i0.ɵɵconditionalCreate(12, A11yViolationsComponent_Conditional_1_Conditional_12_Template, 2, 0, "span", 12);
|
|
81
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
|
|
82
|
+
i0.ɵɵelement(2, "prism-a11y-score", 5);
|
|
83
|
+
i0.ɵɵelementStart(3, "div", 6);
|
|
84
|
+
i0.ɵɵtext(4, "axe-core audit");
|
|
85
|
+
i0.ɵɵelementEnd();
|
|
86
|
+
i0.ɵɵelementStart(5, "div", 7);
|
|
87
|
+
i0.ɵɵconditionalCreate(6, A11yViolationsComponent_Conditional_1_Conditional_6_Template, 3, 1, "span");
|
|
88
|
+
i0.ɵɵconditionalCreate(7, A11yViolationsComponent_Conditional_1_Conditional_7_Template, 3, 1, "span");
|
|
89
|
+
i0.ɵɵelementStart(8, "span");
|
|
90
|
+
i0.ɵɵelement(9, "i", 8);
|
|
91
|
+
i0.ɵɵtext(10);
|
|
193
92
|
i0.ɵɵelementEnd()()();
|
|
194
|
-
i0.ɵɵelementStart(
|
|
195
|
-
i0.ɵɵ
|
|
196
|
-
i0.ɵɵelementStart(16, "span", 16);
|
|
197
|
-
i0.ɵɵtext(17);
|
|
198
|
-
i0.ɵɵelementEnd();
|
|
199
|
-
i0.ɵɵelementStart(18, "span", 17);
|
|
200
|
-
i0.ɵɵtext(19, "Violations");
|
|
201
|
-
i0.ɵɵelementEnd();
|
|
202
|
-
i0.ɵɵelementStart(20, "span", 18);
|
|
203
|
-
i0.ɵɵtext(21);
|
|
204
|
-
i0.ɵɵelementEnd()();
|
|
205
|
-
i0.ɵɵconditionalCreate(22, A11yViolationsComponent_Conditional_1_Conditional_22_Template, 4, 1, "div", 19);
|
|
206
|
-
i0.ɵɵelementEnd();
|
|
207
|
-
i0.ɵɵelementStart(23, "div", 14)(24, "button", 20);
|
|
208
|
-
i0.ɵɵlistener("click", function A11yViolationsComponent_Conditional_1_Template_button_click_24_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.toggle("incomplete")); });
|
|
209
|
-
i0.ɵɵelementStart(25, "span", 16);
|
|
210
|
-
i0.ɵɵtext(26);
|
|
211
|
-
i0.ɵɵelementEnd();
|
|
212
|
-
i0.ɵɵelementStart(27, "span", 17);
|
|
213
|
-
i0.ɵɵtext(28, "Needs Review");
|
|
214
|
-
i0.ɵɵelementEnd();
|
|
215
|
-
i0.ɵɵelementStart(29, "span", 21);
|
|
216
|
-
i0.ɵɵtext(30);
|
|
217
|
-
i0.ɵɵelementEnd()();
|
|
218
|
-
i0.ɵɵconditionalCreate(31, A11yViolationsComponent_Conditional_1_Conditional_31_Template, 4, 1, "div", 19);
|
|
219
|
-
i0.ɵɵelementEnd();
|
|
220
|
-
i0.ɵɵelementStart(32, "div", 14)(33, "button", 22);
|
|
221
|
-
i0.ɵɵlistener("click", function A11yViolationsComponent_Conditional_1_Template_button_click_33_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.toggle("passes")); });
|
|
222
|
-
i0.ɵɵelementStart(34, "span", 16);
|
|
223
|
-
i0.ɵɵtext(35);
|
|
224
|
-
i0.ɵɵelementEnd();
|
|
225
|
-
i0.ɵɵelementStart(36, "span", 17);
|
|
226
|
-
i0.ɵɵtext(37, "Passes");
|
|
227
|
-
i0.ɵɵelementEnd();
|
|
228
|
-
i0.ɵɵelementStart(38, "span", 23);
|
|
229
|
-
i0.ɵɵtext(39);
|
|
230
|
-
i0.ɵɵelementEnd()();
|
|
231
|
-
i0.ɵɵconditionalCreate(40, A11yViolationsComponent_Conditional_1_Conditional_40_Template, 4, 1, "div", 19);
|
|
93
|
+
i0.ɵɵelementStart(11, "div", 9);
|
|
94
|
+
i0.ɵɵrepeaterCreate(12, A11yViolationsComponent_Conditional_1_For_13_Template, 9, 6, "div", 10, _forTrack0, false, A11yViolationsComponent_Conditional_1_ForEmpty_14_Template, 1, 1);
|
|
232
95
|
i0.ɵɵelementEnd()();
|
|
233
96
|
} if (rf & 2) {
|
|
234
97
|
let tmp_2_0;
|
|
235
98
|
let tmp_3_0;
|
|
99
|
+
let tmp_4_0;
|
|
236
100
|
let tmp_5_0;
|
|
237
|
-
let tmp_6_0;
|
|
238
|
-
let tmp_7_0;
|
|
239
|
-
let tmp_8_0;
|
|
240
101
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
241
|
-
i0.ɵɵclassProp("
|
|
242
|
-
i0.ɵɵadvance();
|
|
243
|
-
i0.ɵɵproperty("score", ((tmp_2_0 = ctx_r0.scoreResult()) == null ? null : tmp_2_0.score) ?? 0);
|
|
244
|
-
i0.ɵɵadvance(3);
|
|
245
|
-
i0.ɵɵtextInterpolate1(" ", ((tmp_3_0 = ctx_r0.scoreResult()) == null ? null : tmp_3_0.score) ?? 0, " / 100 ");
|
|
246
|
-
i0.ɵɵadvance();
|
|
247
|
-
i0.ɵɵconditional(ctx_r0.auditService.running() ? 5 : -1);
|
|
248
|
-
i0.ɵɵadvance(2);
|
|
249
|
-
i0.ɵɵtextInterpolate2(" ", ((tmp_5_0 = ctx_r0.scoreResult()) == null ? null : tmp_5_0.violations) ?? 0, " Violations \u00B7 ", ((tmp_5_0 = ctx_r0.scoreResult()) == null ? null : tmp_5_0.passes) ?? 0, " Passes ");
|
|
250
|
-
i0.ɵɵadvance(2);
|
|
251
|
-
i0.ɵɵconditional(((tmp_6_0 = ctx_r0.scoreResult()) == null ? null : tmp_6_0.critical) ? 9 : -1);
|
|
252
|
-
i0.ɵɵadvance();
|
|
253
|
-
i0.ɵɵconditional(((tmp_7_0 = ctx_r0.scoreResult()) == null ? null : tmp_7_0.serious) ? 10 : -1);
|
|
254
|
-
i0.ɵɵadvance();
|
|
255
|
-
i0.ɵɵconditional(((tmp_8_0 = ctx_r0.scoreResult()) == null ? null : tmp_8_0.moderate) ? 11 : -1);
|
|
256
|
-
i0.ɵɵadvance();
|
|
257
|
-
i0.ɵɵconditional(ctx_r0.scoreResult() && !ctx_r0.scoreResult().violations ? 12 : -1);
|
|
258
|
-
i0.ɵɵadvance(3);
|
|
259
|
-
i0.ɵɵclassProp("prism-a11y-v__sec-hdr--open", ctx_r0.openSections().has("violations"));
|
|
260
|
-
i0.ɵɵadvance(2);
|
|
261
|
-
i0.ɵɵtextInterpolate(ctx_r0.openSections().has("violations") ? "\u25BE" : "\u25B8");
|
|
262
|
-
i0.ɵɵadvance(4);
|
|
263
|
-
i0.ɵɵtextInterpolate(ctx_r0.violations().length);
|
|
264
|
-
i0.ɵɵadvance();
|
|
265
|
-
i0.ɵɵconditional(ctx_r0.openSections().has("violations") ? 22 : -1);
|
|
102
|
+
i0.ɵɵclassProp("a11y-body--loading", ctx_r0.auditService.running());
|
|
266
103
|
i0.ɵɵadvance(2);
|
|
267
|
-
i0.ɵɵ
|
|
268
|
-
i0.ɵɵadvance(2);
|
|
269
|
-
i0.ɵɵtextInterpolate(ctx_r0.openSections().has("incomplete") ? "\u25BE" : "\u25B8");
|
|
104
|
+
i0.ɵɵproperty("score", ((tmp_2_0 = ctx_r0.scoreResult()) == null ? null : tmp_2_0.score) ?? 0);
|
|
270
105
|
i0.ɵɵadvance(4);
|
|
271
|
-
i0.ɵɵ
|
|
106
|
+
i0.ɵɵconditional(((tmp_3_0 = ctx_r0.scoreResult()) == null ? null : tmp_3_0.critical) ? 6 : -1);
|
|
272
107
|
i0.ɵɵadvance();
|
|
273
|
-
i0.ɵɵconditional(ctx_r0.
|
|
274
|
-
i0.ɵɵadvance(
|
|
275
|
-
i0.ɵɵ
|
|
108
|
+
i0.ɵɵconditional(((tmp_4_0 = ctx_r0.scoreResult()) == null ? null : tmp_4_0.moderate) ? 7 : -1);
|
|
109
|
+
i0.ɵɵadvance(3);
|
|
110
|
+
i0.ɵɵtextInterpolate1("", ((tmp_5_0 = ctx_r0.scoreResult()) == null ? null : tmp_5_0.passes) ?? 0, " pass");
|
|
276
111
|
i0.ɵɵadvance(2);
|
|
277
|
-
i0.ɵɵ
|
|
278
|
-
i0.ɵɵadvance(4);
|
|
279
|
-
i0.ɵɵtextInterpolate(ctx_r0.passes().length);
|
|
280
|
-
i0.ɵɵadvance();
|
|
281
|
-
i0.ɵɵconditional(ctx_r0.openSections().has("passes") ? 40 : -1);
|
|
112
|
+
i0.ɵɵrepeater(ctx_r0.allResults());
|
|
282
113
|
} }
|
|
283
114
|
function A11yViolationsComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
284
|
-
i0.ɵɵelementStart(0, "div",
|
|
285
|
-
i0.ɵɵtext(1, "Select a component to run accessibility audit.");
|
|
115
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
116
|
+
i0.ɵɵtext(1, " Select a component to run accessibility audit. ");
|
|
286
117
|
i0.ɵɵelementEnd();
|
|
287
118
|
} }
|
|
288
119
|
const IMPACT_ORDER = {
|
|
@@ -291,167 +122,89 @@ const IMPACT_ORDER = {
|
|
|
291
122
|
moderate: 2,
|
|
292
123
|
minor: 3,
|
|
293
124
|
};
|
|
294
|
-
|
|
295
|
-
|
|
125
|
+
const IMPACT_COLOR = {
|
|
126
|
+
critical: 'var(--prism-danger)',
|
|
127
|
+
serious: '#fb923c',
|
|
128
|
+
moderate: 'var(--prism-warn)',
|
|
129
|
+
minor: 'var(--prism-text-muted)',
|
|
130
|
+
};
|
|
131
|
+
function sevColor(impact) {
|
|
132
|
+
return IMPACT_COLOR[impact ?? ''] ?? 'var(--prism-success)';
|
|
296
133
|
}
|
|
297
134
|
export class A11yViolationsComponent {
|
|
298
135
|
auditService = inject(A11yAuditService);
|
|
299
136
|
scoreResult = computed(() => this.auditService.scoreResult(), ...(ngDevMode ? [{ debugName: "scoreResult" }] : []));
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
return next;
|
|
312
|
-
});
|
|
137
|
+
allResults = computed(() => {
|
|
138
|
+
const results = this.auditService.results();
|
|
139
|
+
if (!results)
|
|
140
|
+
return [];
|
|
141
|
+
const violations = [...results.violations].sort((a, b) => (IMPACT_ORDER[a.impact ?? ''] ?? 4) -
|
|
142
|
+
(IMPACT_ORDER[b.impact ?? ''] ?? 4));
|
|
143
|
+
const passes = results.passes.slice(0, 4);
|
|
144
|
+
return [...violations, ...passes];
|
|
145
|
+
}, ...(ngDevMode ? [{ debugName: "allResults" }] : []));
|
|
146
|
+
sevColor(impact) {
|
|
147
|
+
return sevColor(impact);
|
|
313
148
|
}
|
|
314
149
|
static ɵfac = function A11yViolationsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || A11yViolationsComponent)(); };
|
|
315
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: A11yViolationsComponent, selectors: [["prism-a11y-violations"]], decls: 3, vars: 1, consts: [[1, "
|
|
316
|
-
i0.ɵɵconditionalCreate(0, A11yViolationsComponent_Conditional_0_Template, 2, 1, "div", 0)(1, A11yViolationsComponent_Conditional_1_Template,
|
|
150
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: A11yViolationsComponent, selectors: [["prism-a11y-violations"]], decls: 3, vars: 1, consts: [[1, "a11y-status", "a11y-status--error"], [1, "a11y-body", 3, "a11y-body--loading"], [1, "a11y-status"], [1, "a11y-body"], [1, "score-wrap"], [3, "score"], [1, "score-label"], [1, "score-meta"], [2, "background", "var(--prism-success)"], [1, "viol-list"], [1, "viol", 3, "--sev-color"], [2, "background", "var(--prism-danger)"], [2, "background", "var(--prism-warn)"], [1, "viol"], [1, "viol-sev"], [1, "viol-text"], [1, "viol-rule"]], template: function A11yViolationsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
151
|
+
i0.ɵɵconditionalCreate(0, A11yViolationsComponent_Conditional_0_Template, 2, 1, "div", 0)(1, A11yViolationsComponent_Conditional_1_Template, 15, 7, "div", 1)(2, A11yViolationsComponent_Conditional_2_Template, 2, 0, "div", 2);
|
|
317
152
|
} if (rf & 2) {
|
|
318
153
|
i0.ɵɵconditional(ctx.auditService.error() ? 0 : ctx.auditService.results() || ctx.auditService.running() ? 1 : 2);
|
|
319
|
-
} }, dependencies: [
|
|
154
|
+
} }, dependencies: [A11yScoreComponent], styles: ["[_nghost-%COMP%] { display: flex; flex-direction: column; height: 100%; overflow: auto; }\n\n .a11y-body[_ngcontent-%COMP%] {\n padding: 18px 20px;\n display: grid;\n grid-template-columns: 220px 1fr;\n gap: 20px;\n min-height: 0;\n }\n .a11y-body--loading[_ngcontent-%COMP%] { opacity: 0.55; transition: opacity var(--dur-base); }\n\n .score-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n padding: 14px;\n background: var(--prism-bg-surface);\n border: 1px solid var(--prism-border);\n border-radius: 10px;\n align-self: start;\n }\n\n .score-label[_ngcontent-%COMP%] {\n font-size: 11px;\n color: var(--prism-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.08em;\n font-weight: 600;\n }\n .score-meta[_ngcontent-%COMP%] {\n display: flex;\n gap: 12px;\n margin-top: 2px;\n font-size: 11px;\n color: var(--prism-text-muted);\n }\n .score-meta[_ngcontent-%COMP%] span[_ngcontent-%COMP%] { display: flex; align-items: center; gap: 4px; }\n .score-meta[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { width: 6px; height: 6px; border-radius: 50%; display: block; }\n\n .viol-list[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 0;\n }\n\n .viol[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: auto 1fr auto;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n background: var(--prism-bg-surface);\n border: 1px solid var(--prism-border);\n border-radius: 8px;\n border-left: 3px solid var(--sev-color, var(--prism-primary));\n transition: border-color var(--dur-fast);\n }\n .viol[_ngcontent-%COMP%]:hover { border-color: var(--prism-border-strong); }\n\n .viol-sev[_ngcontent-%COMP%] {\n font-family: var(--font-mono);\n font-size: 9.5px;\n font-weight: 700;\n padding: 2px 6px;\n border-radius: var(--radius-xs);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n background: color-mix(in srgb, var(--sev-color) 15%, transparent);\n color: var(--sev-color);\n }\n\n .viol-text[_ngcontent-%COMP%] {\n font-size: 12.5px;\n color: var(--prism-text);\n min-width: 0;\n }\n .viol-text[_ngcontent-%COMP%] b[_ngcontent-%COMP%] {\n display: block;\n font-weight: 600;\n margin-bottom: 1px;\n }\n .viol-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n color: var(--prism-text-muted);\n font-size: 11.5px;\n }\n\n .viol-rule[_ngcontent-%COMP%] {\n font-family: var(--font-mono);\n font-size: 11px;\n color: var(--prism-text-ghost);\n padding: 2px 7px;\n background: var(--prism-input-bg);\n border-radius: var(--radius-xs);\n white-space: nowrap;\n }\n\n .a11y-status[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100px;\n color: var(--prism-text-muted);\n font-size: 13px;\n }\n .a11y-status--error[_ngcontent-%COMP%] { color: var(--prism-danger); }\n\n @media (max-width: 1100px) {\n .a11y-body[_ngcontent-%COMP%] { grid-template-columns: 1fr; }\n }"], changeDetection: 0 });
|
|
320
155
|
}
|
|
321
156
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(A11yViolationsComponent, [{
|
|
322
157
|
type: Component,
|
|
323
|
-
args: [{ selector: 'prism-a11y-violations', standalone: true, imports: [
|
|
158
|
+
args: [{ selector: 'prism-a11y-violations', standalone: true, imports: [A11yScoreComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
324
159
|
@if (auditService.error()) {
|
|
325
|
-
|
|
160
|
+
<div class="a11y-status a11y-status--error">
|
|
161
|
+
Audit failed: {{ auditService.error() }}
|
|
162
|
+
</div>
|
|
326
163
|
} @else if (auditService.results() || auditService.running()) {
|
|
327
|
-
|
|
164
|
+
<div class="a11y-body" [class.a11y-body--loading]="auditService.running()">
|
|
165
|
+
<div class="score-wrap">
|
|
328
166
|
<prism-a11y-score [score]="scoreResult()?.score ?? 0" />
|
|
329
|
-
<div class="
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}
|
|
335
|
-
</div>
|
|
336
|
-
<div class="prism-a11y-v__score-detail">
|
|
337
|
-
{{ scoreResult()?.violations ?? 0 }} Violations · {{ scoreResult()?.passes ?? 0 }} Passes
|
|
338
|
-
</div>
|
|
339
|
-
<div class="prism-a11y-v__badges">
|
|
340
|
-
@if (scoreResult()?.critical) {
|
|
341
|
-
<span class="prism-a11y-v__badge prism-a11y-v__badge--critical">
|
|
342
|
-
{{ scoreResult()!.critical }} critical
|
|
343
|
-
</span>
|
|
344
|
-
}
|
|
345
|
-
@if (scoreResult()?.serious) {
|
|
346
|
-
<span class="prism-a11y-v__badge prism-a11y-v__badge--serious">
|
|
347
|
-
{{ scoreResult()!.serious }} serious
|
|
348
|
-
</span>
|
|
349
|
-
}
|
|
350
|
-
@if (scoreResult()?.moderate) {
|
|
351
|
-
<span class="prism-a11y-v__badge prism-a11y-v__badge--moderate">
|
|
352
|
-
{{ scoreResult()!.moderate }} moderate
|
|
353
|
-
</span>
|
|
354
|
-
}
|
|
355
|
-
@if (scoreResult() && !scoreResult()!.violations) {
|
|
356
|
-
<span class="prism-a11y-v__badge prism-a11y-v__badge--pass">All clear</span>
|
|
357
|
-
}
|
|
358
|
-
</div>
|
|
359
|
-
</div>
|
|
360
|
-
</div>
|
|
361
|
-
|
|
362
|
-
<div class="prism-a11y-v__sections">
|
|
363
|
-
<div class="prism-a11y-v__section">
|
|
364
|
-
<button
|
|
365
|
-
class="prism-a11y-v__sec-hdr prism-a11y-v__sec-hdr--violation"
|
|
366
|
-
[class.prism-a11y-v__sec-hdr--open]="openSections().has('violations')"
|
|
367
|
-
(click)="toggle('violations')"
|
|
167
|
+
<div class="score-label">axe-core audit</div>
|
|
168
|
+
<div class="score-meta">
|
|
169
|
+
@if (scoreResult()?.critical) {
|
|
170
|
+
<span
|
|
171
|
+
><i style="background: var(--prism-danger)"></i
|
|
172
|
+
>{{ scoreResult()!.critical }} critical</span
|
|
368
173
|
>
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
@if (openSections().has('violations')) {
|
|
374
|
-
<div class="prism-a11y-v__sec-body">
|
|
375
|
-
@if (!violations().length) {
|
|
376
|
-
<div class="prism-a11y-v__empty">No violations found.</div>
|
|
377
|
-
}
|
|
378
|
-
@for (item of violations(); track item.id) {
|
|
379
|
-
<div class="prism-a11y-v__item">
|
|
380
|
-
<div class="prism-a11y-v__item-hdr">
|
|
381
|
-
<span class="prism-a11y-v__impact prism-a11y-v__impact--{{ item.impact }}">{{ item.impact }}</span>
|
|
382
|
-
<span class="prism-a11y-v__rule-id">{{ item.id }}</span>
|
|
383
|
-
</div>
|
|
384
|
-
<p class="prism-a11y-v__desc">{{ item.description }}</p>
|
|
385
|
-
@for (node of item.nodes; track $index) {
|
|
386
|
-
<div class="prism-a11y-v__code">
|
|
387
|
-
<pre><code [highlight]="node.html" language="xml"></code></pre>
|
|
388
|
-
</div>
|
|
389
|
-
}
|
|
390
|
-
<a class="prism-a11y-v__link" [href]="item.helpUrl" target="_blank" rel="noopener">
|
|
391
|
-
Learn more ↗
|
|
392
|
-
</a>
|
|
393
|
-
</div>
|
|
394
|
-
}
|
|
395
|
-
</div>
|
|
396
|
-
}
|
|
397
|
-
</div>
|
|
398
|
-
|
|
399
|
-
<div class="prism-a11y-v__section">
|
|
400
|
-
<button
|
|
401
|
-
class="prism-a11y-v__sec-hdr prism-a11y-v__sec-hdr--incomplete"
|
|
402
|
-
[class.prism-a11y-v__sec-hdr--open]="openSections().has('incomplete')"
|
|
403
|
-
(click)="toggle('incomplete')"
|
|
174
|
+
} @if (scoreResult()?.moderate) {
|
|
175
|
+
<span
|
|
176
|
+
><i style="background: var(--prism-warn)"></i
|
|
177
|
+
>{{ scoreResult()!.moderate }} moderate</span
|
|
404
178
|
>
|
|
405
|
-
<span class="prism-a11y-v__chevron">{{ openSections().has('incomplete') ? '▾' : '▸' }}</span>
|
|
406
|
-
<span class="prism-a11y-v__sec-title">Needs Review</span>
|
|
407
|
-
<span class="prism-a11y-v__count prism-a11y-v__count--incomplete">{{ incomplete().length }}</span>
|
|
408
|
-
</button>
|
|
409
|
-
@if (openSections().has('incomplete')) {
|
|
410
|
-
<div class="prism-a11y-v__sec-body">
|
|
411
|
-
@if (!incomplete().length) {
|
|
412
|
-
<div class="prism-a11y-v__empty">Nothing to review.</div>
|
|
413
|
-
}
|
|
414
|
-
@for (item of incomplete(); track item.id) {
|
|
415
|
-
<div class="prism-a11y-v__item">
|
|
416
|
-
<div class="prism-a11y-v__item-hdr">
|
|
417
|
-
<span class="prism-a11y-v__impact prism-a11y-v__impact--{{ item.impact }}">{{ item.impact }}</span>
|
|
418
|
-
<span class="prism-a11y-v__rule-id">{{ item.id }}</span>
|
|
419
|
-
</div>
|
|
420
|
-
<p class="prism-a11y-v__desc">{{ item.description }}</p>
|
|
421
|
-
</div>
|
|
422
|
-
}
|
|
423
|
-
</div>
|
|
424
179
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
<button
|
|
429
|
-
class="prism-a11y-v__sec-hdr prism-a11y-v__sec-hdr--pass"
|
|
430
|
-
[class.prism-a11y-v__sec-hdr--open]="openSections().has('passes')"
|
|
431
|
-
(click)="toggle('passes')"
|
|
180
|
+
<span
|
|
181
|
+
><i style="background: var(--prism-success)"></i
|
|
182
|
+
>{{ scoreResult()?.passes ?? 0 }} pass</span
|
|
432
183
|
>
|
|
433
|
-
<span class="prism-a11y-v__chevron">{{ openSections().has('passes') ? '▾' : '▸' }}</span>
|
|
434
|
-
<span class="prism-a11y-v__sec-title">Passes</span>
|
|
435
|
-
<span class="prism-a11y-v__count prism-a11y-v__count--pass">{{ passes().length }}</span>
|
|
436
|
-
</button>
|
|
437
|
-
@if (openSections().has('passes')) {
|
|
438
|
-
<div class="prism-a11y-v__sec-body">
|
|
439
|
-
@if (!passes().length) {
|
|
440
|
-
<div class="prism-a11y-v__empty">No passing rules.</div>
|
|
441
|
-
}
|
|
442
|
-
@for (item of passes(); track item.id) {
|
|
443
|
-
<div class="prism-a11y-v__item prism-a11y-v__item--pass">
|
|
444
|
-
<span class="prism-a11y-v__rule-id">{{ item.id }}</span>
|
|
445
|
-
<span class="prism-a11y-v__desc">{{ item.description }}</span>
|
|
446
|
-
</div>
|
|
447
|
-
}
|
|
448
|
-
</div>
|
|
449
|
-
}
|
|
450
184
|
</div>
|
|
451
185
|
</div>
|
|
186
|
+
<div class="viol-list">
|
|
187
|
+
@for (item of allResults(); track item.id + item.impact) {
|
|
188
|
+
<div class="viol" [style.--sev-color]="sevColor(item.impact)">
|
|
189
|
+
<span class="viol-sev">{{ item.impact ?? 'pass' }}</span>
|
|
190
|
+
<div class="viol-text">
|
|
191
|
+
<b>{{ item.description }}</b>
|
|
192
|
+
@if (item.help) {
|
|
193
|
+
<span>{{ item.help }}</span>
|
|
194
|
+
}
|
|
195
|
+
</div>
|
|
196
|
+
<span class="viol-rule">{{ item.id }}</span>
|
|
197
|
+
</div>
|
|
198
|
+
} @empty { @if (!auditService.running()) {
|
|
199
|
+
<div class="a11y-status">No results yet.</div>
|
|
200
|
+
} }
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
452
203
|
} @else {
|
|
453
|
-
|
|
204
|
+
<div class="a11y-status">
|
|
205
|
+
Select a component to run accessibility audit.
|
|
206
|
+
</div>
|
|
454
207
|
}
|
|
455
|
-
`, styles: ["\n :host {
|
|
208
|
+
`, styles: ["\n :host { display: flex; flex-direction: column; height: 100%; overflow: auto; }\n\n .a11y-body {\n padding: 18px 20px;\n display: grid;\n grid-template-columns: 220px 1fr;\n gap: 20px;\n min-height: 0;\n }\n .a11y-body--loading { opacity: 0.55; transition: opacity var(--dur-base); }\n\n .score-wrap {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n padding: 14px;\n background: var(--prism-bg-surface);\n border: 1px solid var(--prism-border);\n border-radius: 10px;\n align-self: start;\n }\n\n .score-label {\n font-size: 11px;\n color: var(--prism-text-muted);\n text-transform: uppercase;\n letter-spacing: 0.08em;\n font-weight: 600;\n }\n .score-meta {\n display: flex;\n gap: 12px;\n margin-top: 2px;\n font-size: 11px;\n color: var(--prism-text-muted);\n }\n .score-meta span { display: flex; align-items: center; gap: 4px; }\n .score-meta i { width: 6px; height: 6px; border-radius: 50%; display: block; }\n\n .viol-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 0;\n }\n\n .viol {\n display: grid;\n grid-template-columns: auto 1fr auto;\n align-items: center;\n gap: 12px;\n padding: 10px 12px;\n background: var(--prism-bg-surface);\n border: 1px solid var(--prism-border);\n border-radius: 8px;\n border-left: 3px solid var(--sev-color, var(--prism-primary));\n transition: border-color var(--dur-fast);\n }\n .viol:hover { border-color: var(--prism-border-strong); }\n\n .viol-sev {\n font-family: var(--font-mono);\n font-size: 9.5px;\n font-weight: 700;\n padding: 2px 6px;\n border-radius: var(--radius-xs);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n background: color-mix(in srgb, var(--sev-color) 15%, transparent);\n color: var(--sev-color);\n }\n\n .viol-text {\n font-size: 12.5px;\n color: var(--prism-text);\n min-width: 0;\n }\n .viol-text b {\n display: block;\n font-weight: 600;\n margin-bottom: 1px;\n }\n .viol-text span {\n color: var(--prism-text-muted);\n font-size: 11.5px;\n }\n\n .viol-rule {\n font-family: var(--font-mono);\n font-size: 11px;\n color: var(--prism-text-ghost);\n padding: 2px 7px;\n background: var(--prism-input-bg);\n border-radius: var(--radius-xs);\n white-space: nowrap;\n }\n\n .a11y-status {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100px;\n color: var(--prism-text-muted);\n font-size: 13px;\n }\n .a11y-status--error { color: var(--prism-danger); }\n\n @media (max-width: 1100px) {\n .a11y-body { grid-template-columns: 1fr; }\n }\n "] }]
|
|
456
209
|
}], null, null); })();
|
|
457
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(A11yViolationsComponent, { className: "A11yViolationsComponent", filePath: "app/panels/a11y/a11y-violations.component.ts", lineNumber:
|
|
210
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(A11yViolationsComponent, { className: "A11yViolationsComponent", filePath: "app/panels/a11y/a11y-violations.component.ts", lineNumber: 198 }); })();
|