govuk_publishing_components 33.1.0 → 34.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/govuk_publishing_components_manifest.js +0 -1
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-core.js +16 -27
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-event-tracker.js +2 -0
- data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +4 -4
- data/app/assets/javascripts/govuk_publishing_components/components/layout-super-navigation-header.js +12 -69
- data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +14 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +28 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +11 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +19 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +20 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +6 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +6 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +83 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +253 -412
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +15 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +6 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +16 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +10 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_contents-list-helper.scss +0 -1
- data/app/controllers/govuk_publishing_components/component_guide_controller.rb +6 -9
- data/app/views/govuk_publishing_components/component_guide/_application_stylesheet.html.erb +0 -3
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +0 -7
- data/app/views/govuk_publishing_components/components/_label.html.erb +3 -2
- data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +1 -2
- data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +94 -143
- data/app/views/govuk_publishing_components/components/docs/label.yml +6 -0
- data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -2
- data/config/locales/ar.yml +4 -8
- data/config/locales/az.yml +5 -8
- data/config/locales/be.yml +4 -8
- data/config/locales/bg.yml +4 -8
- data/config/locales/bn.yml +4 -8
- data/config/locales/cs.yml +4 -8
- data/config/locales/cy.yml +4 -8
- data/config/locales/da.yml +4 -8
- data/config/locales/de.yml +4 -8
- data/config/locales/dr.yml +4 -8
- data/config/locales/el.yml +4 -8
- data/config/locales/en.yml +6 -17
- data/config/locales/es-419.yml +4 -8
- data/config/locales/es.yml +4 -8
- data/config/locales/et.yml +4 -8
- data/config/locales/fa.yml +5 -8
- data/config/locales/fi.yml +4 -8
- data/config/locales/fr.yml +4 -8
- data/config/locales/gd.yml +4 -8
- data/config/locales/gu.yml +4 -8
- data/config/locales/he.yml +4 -8
- data/config/locales/hi.yml +4 -8
- data/config/locales/hr.yml +4 -8
- data/config/locales/hu.yml +4 -8
- data/config/locales/hy.yml +4 -8
- data/config/locales/id.yml +4 -8
- data/config/locales/is.yml +4 -8
- data/config/locales/it.yml +4 -8
- data/config/locales/ja.yml +4 -8
- data/config/locales/ka.yml +4 -8
- data/config/locales/kk.yml +4 -8
- data/config/locales/ko.yml +4 -8
- data/config/locales/lt.yml +4 -8
- data/config/locales/lv.yml +4 -8
- data/config/locales/ms.yml +4 -8
- data/config/locales/mt.yml +4 -8
- data/config/locales/nl.yml +4 -8
- data/config/locales/no.yml +4 -8
- data/config/locales/pa-pk.yml +4 -8
- data/config/locales/pa.yml +4 -8
- data/config/locales/pl.yml +4 -8
- data/config/locales/ps.yml +4 -8
- data/config/locales/pt.yml +4 -8
- data/config/locales/ro.yml +4 -8
- data/config/locales/ru.yml +4 -8
- data/config/locales/si.yml +4 -8
- data/config/locales/sk.yml +4 -8
- data/config/locales/sl.yml +4 -8
- data/config/locales/so.yml +4 -8
- data/config/locales/sq.yml +4 -8
- data/config/locales/sr.yml +4 -8
- data/config/locales/sv.yml +4 -8
- data/config/locales/sw.yml +4 -8
- data/config/locales/ta.yml +4 -8
- data/config/locales/th.yml +4 -8
- data/config/locales/tk.yml +4 -8
- data/config/locales/tr.yml +4 -8
- data/config/locales/uk.yml +4 -8
- data/config/locales/ur.yml +4 -8
- data/config/locales/uz.yml +4 -8
- data/config/locales/vi.yml +4 -8
- data/config/locales/zh-hk.yml +4 -8
- data/config/locales/zh-tw.yml +4 -8
- data/config/locales/zh.yml +4 -8
- data/lib/govuk_publishing_components/config.rb +0 -3
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/axe-core/axe.d.ts +75 -24
- data/node_modules/axe-core/axe.js +4765 -4555
- data/node_modules/axe-core/axe.min.js +2 -2
- data/node_modules/axe-core/package.json +2 -2
- data/node_modules/axe-core/sri-history.json +4 -0
- metadata +2 -17
- data/app/assets/stylesheets/component_guide/print.scss +0 -1
- data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +0 -18
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_accordion.scss +0 -28
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_button.scss +0 -8
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_cards.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_contents-list.scss +0 -19
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_emergency-banner.scss +0 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak-html-publication.scss +0 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +0 -80
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_layout-super-navigation-header.scss +0 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_organisation-logo.scss +0 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav-header.scss +0 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_step-by-step-nav.scss +0 -116
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_textarea.scss +0 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_title.scss +0 -7
data/config/locales/tk.yml
CHANGED
@@ -110,7 +110,10 @@ tk:
|
|
110
110
|
menu_toggle_label:
|
111
111
|
hide:
|
112
112
|
show:
|
113
|
-
|
113
|
+
navigation_link:
|
114
|
+
href:
|
115
|
+
label:
|
116
|
+
navigation_links_columns:
|
114
117
|
navigation_menu_heading:
|
115
118
|
navigation_search_heading:
|
116
119
|
navigation_search_subheading:
|
@@ -157,13 +160,6 @@ tk:
|
|
157
160
|
statistical_data_sets: Statistiki maglumat toplumy
|
158
161
|
topical_events: Möhüm waka
|
159
162
|
topics: Mowzugy öwreniň
|
160
|
-
transition:
|
161
|
-
hub_page_link_path: "/transition-check/questions"
|
162
|
-
hub_page_link_text: Hereketleriň şahsylaşdyrylan sanawyny alyň
|
163
|
-
hub_page_title: Brexit barlaýjy
|
164
|
-
link_path: "/brexit"
|
165
|
-
link_text: Näme etmelidigiňizi belläň
|
166
|
-
title: Brexit
|
167
163
|
ukraine:
|
168
164
|
links:
|
169
165
|
title:
|
data/config/locales/tr.yml
CHANGED
@@ -110,7 +110,10 @@ tr:
|
|
110
110
|
menu_toggle_label:
|
111
111
|
hide:
|
112
112
|
show:
|
113
|
-
|
113
|
+
navigation_link:
|
114
|
+
href:
|
115
|
+
label:
|
116
|
+
navigation_links_columns:
|
114
117
|
navigation_menu_heading:
|
115
118
|
navigation_search_heading:
|
116
119
|
navigation_search_subheading:
|
@@ -157,13 +160,6 @@ tr:
|
|
157
160
|
statistical_data_sets: İstatistiki veri kümesi
|
158
161
|
topical_events: Yerel etkinlik
|
159
162
|
topics: Konuyu keşfet
|
160
|
-
transition:
|
161
|
-
hub_page_link_path: "/transition-check/questions"
|
162
|
-
hub_page_link_text: İşlemlerin kişiselleştirilmiş bir listesini alın
|
163
|
-
hub_page_title: Brexit kontrol aracı
|
164
|
-
link_path: "/brexit"
|
165
|
-
link_text: Ne yapmaya ihtiyacınız olduğunu kontrol edin
|
166
|
-
title: Brexit
|
167
163
|
ukraine:
|
168
164
|
links:
|
169
165
|
title:
|
data/config/locales/uk.yml
CHANGED
@@ -116,7 +116,10 @@ uk:
|
|
116
116
|
menu_toggle_label:
|
117
117
|
hide:
|
118
118
|
show:
|
119
|
-
|
119
|
+
navigation_link:
|
120
|
+
href:
|
121
|
+
label:
|
122
|
+
navigation_links_columns:
|
120
123
|
navigation_menu_heading:
|
121
124
|
navigation_search_heading:
|
122
125
|
navigation_search_subheading:
|
@@ -163,13 +166,6 @@ uk:
|
|
163
166
|
statistical_data_sets: Набір статистичних даних
|
164
167
|
topical_events: Актуальна подія
|
165
168
|
topics: Дослідити тему
|
166
|
-
transition:
|
167
|
-
hub_page_link_path: "/transition-check/questions"
|
168
|
-
hub_page_link_text: Отримати персоналізований список дій
|
169
|
-
hub_page_title: Інструмент перевірки Brexit
|
170
|
-
link_path: "/brexit"
|
171
|
-
link_text: Перевірте, що вам потрібно зробити
|
172
|
-
title: Brexit
|
173
169
|
ukraine:
|
174
170
|
links:
|
175
171
|
title:
|
data/config/locales/ur.yml
CHANGED
@@ -106,7 +106,10 @@ ur:
|
|
106
106
|
menu_toggle_label:
|
107
107
|
hide:
|
108
108
|
show:
|
109
|
-
|
109
|
+
navigation_link:
|
110
|
+
href:
|
111
|
+
label:
|
112
|
+
navigation_links_columns:
|
110
113
|
navigation_menu_heading:
|
111
114
|
navigation_search_heading:
|
112
115
|
navigation_search_subheading:
|
@@ -153,13 +156,6 @@ ur:
|
|
153
156
|
statistical_data_sets: شماریاتی ڈیٹا سیٹ
|
154
157
|
topical_events: موضوعاتی ایونٹ
|
155
158
|
topics: موضوع کے بارے میں مزید جانیں
|
156
|
-
transition:
|
157
|
-
hub_page_link_path: "/transition-check/questions"
|
158
|
-
hub_page_link_text: کارروائیوں کی شخصی کردہ فہرست حاصل کریں
|
159
|
-
hub_page_title: Brexit چیکر
|
160
|
-
link_path: "/brexit"
|
161
|
-
link_text: پڑتال کریں کہ آپ کو کیا کرنے کی ضرورت ہے
|
162
|
-
title: Brexit
|
163
159
|
ukraine:
|
164
160
|
links:
|
165
161
|
title:
|
data/config/locales/uz.yml
CHANGED
@@ -111,7 +111,10 @@ uz:
|
|
111
111
|
menu_toggle_label:
|
112
112
|
hide:
|
113
113
|
show:
|
114
|
-
|
114
|
+
navigation_link:
|
115
|
+
href:
|
116
|
+
label:
|
117
|
+
navigation_links_columns:
|
115
118
|
navigation_menu_heading:
|
116
119
|
navigation_search_heading:
|
117
120
|
navigation_search_subheading:
|
@@ -158,13 +161,6 @@ uz:
|
|
158
161
|
statistical_data_sets: Статистик маълумотлар жамланмаси
|
159
162
|
topical_events: Долзарб воқеа
|
160
163
|
topics: Мавзуни тадқиқот қилиш
|
161
|
-
transition:
|
162
|
-
hub_page_link_path: "/transition-check/questions"
|
163
|
-
hub_page_link_text: Ҳаракатларнинг шахсий рўйхатини олиш
|
164
|
-
hub_page_title: Брексит бўйича текширишлар дастури
|
165
|
-
link_path: "/brexit"
|
166
|
-
link_text: Нима қилиш зарурлигини текшириш
|
167
|
-
title: Брексит
|
168
164
|
ukraine:
|
169
165
|
links:
|
170
166
|
title:
|
data/config/locales/vi.yml
CHANGED
@@ -108,7 +108,10 @@ vi:
|
|
108
108
|
menu_toggle_label:
|
109
109
|
hide:
|
110
110
|
show:
|
111
|
-
|
111
|
+
navigation_link:
|
112
|
+
href:
|
113
|
+
label:
|
114
|
+
navigation_links_columns:
|
112
115
|
navigation_menu_heading:
|
113
116
|
navigation_search_heading:
|
114
117
|
navigation_search_subheading:
|
@@ -155,13 +158,6 @@ vi:
|
|
155
158
|
statistical_data_sets: Bộ dữ liệu thống kê
|
156
159
|
topical_events: Sự kiện chuyên đề
|
157
160
|
topics: Khám phá chủ đề
|
158
|
-
transition:
|
159
|
-
hub_page_link_path: "/transition-check/questions"
|
160
|
-
hub_page_link_text: Nhận danh sách các hành động được cá nhân hóa
|
161
|
-
hub_page_title: Công cụ kiểm tra Brexit
|
162
|
-
link_path: "/brexit"
|
163
|
-
link_text: Kiểm tra những gì bạn cần làm
|
164
|
-
title: Brexit
|
165
161
|
ukraine:
|
166
162
|
links:
|
167
163
|
title:
|
data/config/locales/zh-hk.yml
CHANGED
@@ -107,7 +107,10 @@ zh-hk:
|
|
107
107
|
menu_toggle_label:
|
108
108
|
hide:
|
109
109
|
show:
|
110
|
-
|
110
|
+
navigation_link:
|
111
|
+
href:
|
112
|
+
label:
|
113
|
+
navigation_links_columns:
|
111
114
|
navigation_menu_heading:
|
112
115
|
navigation_search_heading:
|
113
116
|
navigation_search_subheading:
|
@@ -154,13 +157,6 @@ zh-hk:
|
|
154
157
|
statistical_data_sets: 統計資料組
|
155
158
|
topical_events: 專題活動
|
156
159
|
topics: 了解專題
|
157
|
-
transition:
|
158
|
-
hub_page_link_path: "/transition-check/questions"
|
159
|
-
hub_page_link_text: 獲得一份個人化行動列表
|
160
|
-
hub_page_title: 英國脫歐核查
|
161
|
-
link_path: "/brexit"
|
162
|
-
link_text: 查看您需要做的事
|
163
|
-
title: 英國脫歐
|
164
160
|
ukraine:
|
165
161
|
links:
|
166
162
|
title:
|
data/config/locales/zh-tw.yml
CHANGED
@@ -107,7 +107,10 @@ zh-tw:
|
|
107
107
|
menu_toggle_label:
|
108
108
|
hide:
|
109
109
|
show:
|
110
|
-
|
110
|
+
navigation_link:
|
111
|
+
href:
|
112
|
+
label:
|
113
|
+
navigation_links_columns:
|
111
114
|
navigation_menu_heading:
|
112
115
|
navigation_search_heading:
|
113
116
|
navigation_search_subheading:
|
@@ -154,13 +157,6 @@ zh-tw:
|
|
154
157
|
statistical_data_sets: 統計數據組
|
155
158
|
topical_events: 主題活動
|
156
159
|
topics: 探索主題
|
157
|
-
transition:
|
158
|
-
hub_page_link_path: "/transition-check/questions"
|
159
|
-
hub_page_link_text: 獲取個人化操作列表
|
160
|
-
hub_page_title: 脫歐確認器
|
161
|
-
link_path: "/brexit"
|
162
|
-
link_text: 確認你需要:
|
163
|
-
title: 脫歐
|
164
160
|
ukraine:
|
165
161
|
links:
|
166
162
|
title:
|
data/config/locales/zh.yml
CHANGED
@@ -107,7 +107,10 @@ zh:
|
|
107
107
|
menu_toggle_label:
|
108
108
|
hide:
|
109
109
|
show:
|
110
|
-
|
110
|
+
navigation_link:
|
111
|
+
href:
|
112
|
+
label:
|
113
|
+
navigation_links_columns:
|
111
114
|
navigation_menu_heading:
|
112
115
|
navigation_search_heading:
|
113
116
|
navigation_search_subheading:
|
@@ -154,13 +157,6 @@ zh:
|
|
154
157
|
statistical_data_sets: 统计数据集
|
155
158
|
topical_events: 局部事件
|
156
159
|
topics: 探索本主题
|
157
|
-
transition:
|
158
|
-
hub_page_link_path: "/transition-check/questions"
|
159
|
-
hub_page_link_text: 获得个性化的操作列表
|
160
|
-
hub_page_title: 英国脱欧检查程序
|
161
|
-
link_path: "/brexit"
|
162
|
-
link_text: 检查您需要做的事情
|
163
|
-
title: 英国脱欧
|
164
160
|
ukraine:
|
165
161
|
links:
|
166
162
|
title:
|
@@ -12,9 +12,6 @@ module GovukPublishingComponents
|
|
12
12
|
mattr_accessor :application_stylesheet
|
13
13
|
self.application_stylesheet = "application"
|
14
14
|
|
15
|
-
mattr_accessor :application_print_stylesheet
|
16
|
-
self.application_print_stylesheet = "print"
|
17
|
-
|
18
15
|
mattr_accessor :application_javascript
|
19
16
|
self.application_javascript = "application"
|
20
17
|
|
@@ -45,23 +45,65 @@ declare namespace axe {
|
|
45
45
|
| 'embedded'
|
46
46
|
| 'interactive';
|
47
47
|
|
48
|
+
// Array of length 2 or greater
|
49
|
+
type MultiArray<T> = [T, T, ...T[]];
|
50
|
+
|
51
|
+
// Selectors within a frame
|
48
52
|
type BaseSelector = string;
|
49
|
-
type CrossTreeSelector = BaseSelector | BaseSelector[];
|
50
|
-
type CrossFrameSelector = CrossTreeSelector[];
|
51
53
|
|
52
|
-
type
|
53
|
-
|
54
|
-
|
55
|
-
};
|
54
|
+
type ShadowDomSelector = MultiArray<BaseSelector>;
|
55
|
+
type CrossTreeSelector = BaseSelector | ShadowDomSelector;
|
56
|
+
type LabelledShadowDomSelector = { fromShadowDom: ShadowDomSelector };
|
56
57
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
};
|
58
|
+
// Cross-frame selectors
|
59
|
+
type FramesSelector = Array<CrossTreeSelector | LabelledShadowDomSelector>;
|
60
|
+
type UnlabelledFrameSelector = CrossTreeSelector[];
|
61
|
+
type LabelledFramesSelector = { fromFrames: MultiArray<FramesSelector[0]> };
|
62
|
+
/**
|
63
|
+
* @deprecated Use UnlabelledFrameSelector instead
|
64
|
+
*/
|
65
|
+
type CrossFrameSelector = UnlabelledFrameSelector;
|
66
|
+
|
67
|
+
// Context options
|
68
|
+
type Selector =
|
69
|
+
| Node
|
70
|
+
| BaseSelector
|
71
|
+
| LabelledShadowDomSelector
|
72
|
+
| LabelledFramesSelector;
|
73
|
+
type SelectorList = Array<Selector | FramesSelector> | NodeList;
|
74
|
+
type ContextObject =
|
75
|
+
| {
|
76
|
+
include: Selector | SelectorList;
|
77
|
+
exclude?: Selector | SelectorList;
|
78
|
+
}
|
79
|
+
| {
|
80
|
+
exclude: Selector | SelectorList;
|
81
|
+
};
|
82
|
+
type ElementContext = Selector | SelectorList | ContextObject;
|
61
83
|
|
62
|
-
type
|
84
|
+
type SerialSelector =
|
85
|
+
| BaseSelector
|
86
|
+
| LabelledShadowDomSelector
|
87
|
+
| LabelledFramesSelector;
|
88
|
+
type SerialFrameSelector = SerialSelector | FramesSelector;
|
89
|
+
type SerialSelectorList = Array<SerialFrameSelector>;
|
63
90
|
|
64
|
-
type
|
91
|
+
type SerialContextObject =
|
92
|
+
| {
|
93
|
+
include: SerialSelector | SerialSelectorList;
|
94
|
+
exclude?: SerialSelector | SerialSelectorList;
|
95
|
+
}
|
96
|
+
| {
|
97
|
+
exclude: SerialSelector | SerialSelectorList;
|
98
|
+
include?: SerialSelector | SerialSelectorList;
|
99
|
+
};
|
100
|
+
|
101
|
+
interface FrameContextObject {
|
102
|
+
include: UnlabelledFrameSelector[];
|
103
|
+
exclude: UnlabelledFrameSelector[];
|
104
|
+
}
|
105
|
+
|
106
|
+
type RunCallback<T = AxeResults> = (error: Error, results: T) => void;
|
65
107
|
|
66
108
|
interface TestEngine {
|
67
109
|
name: string;
|
@@ -255,9 +297,9 @@ declare namespace axe {
|
|
255
297
|
interface SerialDqElement {
|
256
298
|
source: string;
|
257
299
|
nodeIndexes: number[];
|
258
|
-
selector:
|
300
|
+
selector: UnlabelledFrameSelector;
|
259
301
|
xpath: string[];
|
260
|
-
ancestry:
|
302
|
+
ancestry: UnlabelledFrameSelector;
|
261
303
|
}
|
262
304
|
interface PartialRuleResult {
|
263
305
|
id: string;
|
@@ -274,7 +316,7 @@ declare namespace axe {
|
|
274
316
|
type PartialResults = Array<PartialResult | null>;
|
275
317
|
interface FrameContext {
|
276
318
|
frameSelector: CrossTreeSelector;
|
277
|
-
frameContext:
|
319
|
+
frameContext: FrameContextObject;
|
278
320
|
}
|
279
321
|
interface Utils {
|
280
322
|
getFrameContexts: (
|
@@ -282,6 +324,7 @@ declare namespace axe {
|
|
282
324
|
options?: RunOptions
|
283
325
|
) => FrameContext[];
|
284
326
|
shadowSelect: (selector: CrossTreeSelector) => Element | null;
|
327
|
+
shadowSelectAll: (selector: CrossTreeSelector) => Element[];
|
285
328
|
}
|
286
329
|
interface EnvironmentData {
|
287
330
|
testEngine: TestEngine;
|
@@ -313,19 +356,27 @@ declare namespace axe {
|
|
313
356
|
* @param {RunCallback} callback Optional The function to invoke when analysis is complete.
|
314
357
|
* @returns {Promise<AxeResults>|void} If the callback was not defined, axe will return a Promise.
|
315
358
|
*/
|
316
|
-
function run(context?: ElementContext): Promise<
|
317
|
-
function run(options: RunOptions): Promise<
|
318
|
-
function run
|
319
|
-
|
320
|
-
|
321
|
-
function run(
|
359
|
+
function run<T = AxeResults>(context?: ElementContext): Promise<T>;
|
360
|
+
function run<T = AxeResults>(options: RunOptions): Promise<T>;
|
361
|
+
function run<T = AxeResults>(
|
362
|
+
callback: (error: Error, results: T) => void
|
363
|
+
): void;
|
364
|
+
function run<T = AxeResults>(
|
365
|
+
context: ElementContext,
|
366
|
+
callback: RunCallback<T>
|
367
|
+
): void;
|
368
|
+
function run<T = AxeResults>(
|
369
|
+
options: RunOptions,
|
370
|
+
callback: RunCallback<T>
|
371
|
+
): void;
|
372
|
+
function run<T = AxeResults>(
|
322
373
|
context: ElementContext,
|
323
374
|
options: RunOptions
|
324
|
-
): Promise<
|
325
|
-
function run(
|
375
|
+
): Promise<T>;
|
376
|
+
function run<T = AxeResults>(
|
326
377
|
context: ElementContext,
|
327
378
|
options: RunOptions,
|
328
|
-
callback: RunCallback
|
379
|
+
callback: RunCallback<T>
|
329
380
|
): void;
|
330
381
|
|
331
382
|
/**
|