@agility/plenum-ui 1.1.1 → 1.1.4
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/lib/components/Combobox/Combobox.d.ts +9 -9
- package/lib/components/Combobox/Combobox.stories.d.ts +9 -6
- package/lib/components/Forms/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/TreeView/TreeItem/TreeItem.d.ts +2 -11
- package/lib/components/TreeView/TreeItem/TreeItem.stories.d.ts +1 -4
- package/lib/components/TreeView/context.d.ts +8 -5
- package/lib/components/TreeView/sampleData.d.ts +5 -5
- package/lib/index.esm.js +14 -14
- package/lib/index.js +14 -14
- package/package.json +1 -1
- package/coverage/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +0 -204
- package/coverage/Forms/TextInputSelect/InputSelect/index.html +0 -155
- package/coverage/Select/Select.tsx.html +0 -264
- package/coverage/Select/index.html +0 -153
- package/coverage/Select.tsx.html +0 -261
- package/coverage/agility-component-lib-react/index.html +0 -116
- package/coverage/agility-component-lib-react/src/components/Button/Button.tsx.html +0 -343
- package/coverage/agility-component-lib-react/src/components/Button/index.html +0 -116
- package/coverage/agility-component-lib-react/src/components/Checkbox/Checkbox.tsx.html +0 -235
- package/coverage/agility-component-lib-react/src/components/Checkbox/index.html +0 -156
- package/coverage/agility-component-lib-react/src/components/Forms/BaseField/BaseField.tsx.html +0 -406
- package/coverage/agility-component-lib-react/src/components/Forms/BaseField/index.html +0 -116
- package/coverage/agility-component-lib-react/src/components/Forms/Checkbox/Checkbox.tsx.html +0 -283
- package/coverage/agility-component-lib-react/src/components/Forms/Checkbox/index.html +0 -116
- package/coverage/agility-component-lib-react/src/components/Forms/InputCounter/InputCounter.tsx.html +0 -139
- package/coverage/agility-component-lib-react/src/components/Forms/InputCounter/index.html +0 -116
- package/coverage/agility-component-lib-react/src/components/Forms/InputLabel/InputLabel.tsx.html +0 -211
- package/coverage/agility-component-lib-react/src/components/Forms/InputLabel/index.html +0 -131
- package/coverage/agility-component-lib-react/src/components/Forms/InputLabel/index.ts.html +0 -94
- package/coverage/agility-component-lib-react/src/components/Forms/Radio/Radio.tsx.html +0 -271
- package/coverage/agility-component-lib-react/src/components/Forms/Radio/index.html +0 -116
- package/coverage/agility-component-lib-react/src/components/Forms/Select/Select.tsx.html +0 -337
- package/coverage/agility-component-lib-react/src/components/Forms/Select/index.html +0 -116
- package/coverage/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/InputCta.tsx.html +0 -271
- package/coverage/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/index.html +0 -116
- package/coverage/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +0 -217
- package/coverage/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/index.html +0 -116
- package/coverage/agility-component-lib-react/src/components/Radio/Radio.tsx.html +0 -243
- package/coverage/agility-component-lib-react/src/components/Radio/index.html +0 -156
- package/coverage/agility-component-lib-react/src/components/Switch/Switch.tsx.html +0 -214
- package/coverage/agility-component-lib-react/src/components/Switch/index.html +0 -116
- package/coverage/agility-component-lib-react/src/util/DynamicIcons.tsx.html +0 -151
- package/coverage/agility-component-lib-react/src/util/Loader.tsx.html +0 -139
- package/coverage/agility-component-lib-react/src/util/index.html +0 -131
- package/coverage/agility-component-lib-react/styleMock.js.html +0 -91
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -145
- package/coverage/coverage-final.json +0 -5
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -146
- package/coverage/lcov-report/agility-component-lib-react/index.html +0 -153
- package/coverage/lcov-report/agility-component-lib-react/src/components/Button/Button.tsx.html +0 -255
- package/coverage/lcov-report/agility-component-lib-react/src/components/Button/index.html +0 -156
- package/coverage/lcov-report/agility-component-lib-react/src/components/Checkbox/Checkbox.tsx.html +0 -235
- package/coverage/lcov-report/agility-component-lib-react/src/components/Checkbox/index.html +0 -156
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/BaseField/BaseField.tsx.html +0 -330
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/BaseField/index.html +0 -158
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/InputCounter/InputCounter.tsx.html +0 -147
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/InputCounter/index.html +0 -158
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/InputCta.tsx.html +0 -258
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputAddon/InputCta/index.html +0 -159
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +0 -210
- package/coverage/lcov-report/agility-component-lib-react/src/components/Forms/TextInputSelect/InputSelect/index.html +0 -159
- package/coverage/lcov-report/agility-component-lib-react/src/components/Radio/Radio.tsx.html +0 -243
- package/coverage/lcov-report/agility-component-lib-react/src/components/Radio/index.html +0 -156
- package/coverage/lcov-report/agility-component-lib-react/src/components/Switch/Switch.tsx.html +0 -225
- package/coverage/lcov-report/agility-component-lib-react/src/components/Switch/index.html +0 -156
- package/coverage/lcov-report/agility-component-lib-react/src/util/DynamicIcons.tsx.html +0 -137
- package/coverage/lcov-report/agility-component-lib-react/src/util/index.html +0 -155
- package/coverage/lcov-report/agility-component-lib-react/styleMock.js.html +0 -90
- package/coverage/lcov-report/base.css +0 -354
- package/coverage/lcov-report/block-navigation.js +0 -82
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -385
- package/coverage/lcov-report/prettify.css +0 -101
- package/coverage/lcov-report/prettify.js +0 -955
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -189
- package/coverage/lcov.info +0 -267
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/lib/components/Checkbox/Checkbox.d.ts +0 -19
- package/lib/components/Checkbox/Checkbox.stories.d.ts +0 -12
- package/lib/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/lib/components/Checkbox/index.d.ts +0 -1
- package/lib/components/DatePicker/DatePicker.d.ts +0 -7
- package/lib/components/DatePicker/DatePicker.stories.d.ts +0 -6
- package/lib/components/DatePicker/DatePicker.test.d.ts +0 -1
- package/lib/components/DatePicker/index.d.ts +0 -1
- package/lib/components/Forms/InputCta/InputCta.d.ts +0 -16
- package/lib/components/Forms/InputCta/InputCta.stories.d.ts +0 -6
- package/lib/components/Forms/InputCta/InputCta.test.d.ts +0 -1
- package/lib/components/Forms/InputCta/index.d.ts +0 -1
- package/lib/components/InputCounter/InputCounter.d.ts +0 -16
- package/lib/components/InputCounter/InputCounter.stories.d.ts +0 -6
- package/lib/components/InputCounter/InputCounter.test.d.ts +0 -1
- package/lib/components/InputCounter/index.d.ts +0 -1
- package/lib/components/Radio/Radio.d.ts +0 -21
- package/lib/components/Radio/Radio.stories.d.ts +0 -12
- package/lib/components/Radio/Radio.test.d.ts +0 -1
- package/lib/components/Radio/index.d.ts +0 -1
- package/lib/components/Select/Select.d.ts +0 -25
- package/lib/components/Select/Select.stories.d.ts +0 -11
- package/lib/components/Select/Select.test.d.ts +0 -1
- package/lib/components/Select/index.d.ts +0 -1
- package/lib/components/TextInput/TextInput.d.ts +0 -46
- package/lib/components/TextInput/TextInput.stories.d.ts +0 -10
- package/lib/components/TextInput/index.d.ts +0 -1
- package/lib/components/TextInputAddon/TextInputAddon.d.ts +0 -51
- package/lib/components/TextInputAddon/TextInputAddon.stories.d.ts +0 -6
- package/lib/components/TextInputAddon/index.d.ts +0 -1
- package/lib/components/TreeView/types/tree.types.d.ts +0 -21
- package/yarn-error.log +0 -12463
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
body,
|
|
2
|
-
html {
|
|
3
|
-
margin: 0;
|
|
4
|
-
padding: 0;
|
|
5
|
-
height: 100%;
|
|
6
|
-
}
|
|
7
|
-
body {
|
|
8
|
-
font-family: Helvetica Neue, Helvetica, Arial;
|
|
9
|
-
font-size: 14px;
|
|
10
|
-
color: #333;
|
|
11
|
-
}
|
|
12
|
-
.small {
|
|
13
|
-
font-size: 12px;
|
|
14
|
-
}
|
|
15
|
-
*,
|
|
16
|
-
*:after,
|
|
17
|
-
*:before {
|
|
18
|
-
-webkit-box-sizing: border-box;
|
|
19
|
-
-moz-box-sizing: border-box;
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
}
|
|
22
|
-
h1 {
|
|
23
|
-
font-size: 20px;
|
|
24
|
-
margin: 0;
|
|
25
|
-
}
|
|
26
|
-
h2 {
|
|
27
|
-
font-size: 14px;
|
|
28
|
-
}
|
|
29
|
-
pre {
|
|
30
|
-
font: 12px/1.4 Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
31
|
-
margin: 0;
|
|
32
|
-
padding: 0;
|
|
33
|
-
-moz-tab-size: 2;
|
|
34
|
-
-o-tab-size: 2;
|
|
35
|
-
tab-size: 2;
|
|
36
|
-
}
|
|
37
|
-
a {
|
|
38
|
-
color: #0074d9;
|
|
39
|
-
text-decoration: none;
|
|
40
|
-
}
|
|
41
|
-
a:hover {
|
|
42
|
-
text-decoration: underline;
|
|
43
|
-
}
|
|
44
|
-
.strong {
|
|
45
|
-
font-weight: bold;
|
|
46
|
-
}
|
|
47
|
-
.space-top1 {
|
|
48
|
-
padding: 10px 0 0 0;
|
|
49
|
-
}
|
|
50
|
-
.pad2y {
|
|
51
|
-
padding: 20px 0;
|
|
52
|
-
}
|
|
53
|
-
.pad1y {
|
|
54
|
-
padding: 10px 0;
|
|
55
|
-
}
|
|
56
|
-
.pad2x {
|
|
57
|
-
padding: 0 20px;
|
|
58
|
-
}
|
|
59
|
-
.pad2 {
|
|
60
|
-
padding: 20px;
|
|
61
|
-
}
|
|
62
|
-
.pad1 {
|
|
63
|
-
padding: 10px;
|
|
64
|
-
}
|
|
65
|
-
.space-left2 {
|
|
66
|
-
padding-left: 55px;
|
|
67
|
-
}
|
|
68
|
-
.space-right2 {
|
|
69
|
-
padding-right: 20px;
|
|
70
|
-
}
|
|
71
|
-
.center {
|
|
72
|
-
text-align: center;
|
|
73
|
-
}
|
|
74
|
-
.clearfix {
|
|
75
|
-
display: block;
|
|
76
|
-
}
|
|
77
|
-
.clearfix:after {
|
|
78
|
-
content: '';
|
|
79
|
-
display: block;
|
|
80
|
-
height: 0;
|
|
81
|
-
clear: both;
|
|
82
|
-
visibility: hidden;
|
|
83
|
-
}
|
|
84
|
-
.fl {
|
|
85
|
-
float: left;
|
|
86
|
-
}
|
|
87
|
-
@media only screen and (max-width: 640px) {
|
|
88
|
-
.col3 {
|
|
89
|
-
width: 100%;
|
|
90
|
-
max-width: 100%;
|
|
91
|
-
}
|
|
92
|
-
.hide-mobile {
|
|
93
|
-
display: none !important;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.quiet {
|
|
98
|
-
color: #7f7f7f;
|
|
99
|
-
color: rgba(0, 0, 0, 0.5);
|
|
100
|
-
}
|
|
101
|
-
.quiet a {
|
|
102
|
-
opacity: 0.7;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.fraction {
|
|
106
|
-
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
107
|
-
font-size: 10px;
|
|
108
|
-
color: #555;
|
|
109
|
-
background: #e8e8e8;
|
|
110
|
-
padding: 4px 5px;
|
|
111
|
-
border-radius: 3px;
|
|
112
|
-
vertical-align: middle;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
div.path a:link,
|
|
116
|
-
div.path a:visited {
|
|
117
|
-
color: #333;
|
|
118
|
-
}
|
|
119
|
-
table.coverage {
|
|
120
|
-
border-collapse: collapse;
|
|
121
|
-
margin: 10px 0 0 0;
|
|
122
|
-
padding: 0;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
table.coverage td {
|
|
126
|
-
margin: 0;
|
|
127
|
-
padding: 0;
|
|
128
|
-
vertical-align: top;
|
|
129
|
-
}
|
|
130
|
-
table.coverage td.line-count {
|
|
131
|
-
text-align: right;
|
|
132
|
-
padding: 0 5px 0 20px;
|
|
133
|
-
}
|
|
134
|
-
table.coverage td.line-coverage {
|
|
135
|
-
text-align: right;
|
|
136
|
-
padding-right: 10px;
|
|
137
|
-
min-width: 20px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
table.coverage td span.cline-any {
|
|
141
|
-
display: inline-block;
|
|
142
|
-
padding: 0 5px;
|
|
143
|
-
width: 100%;
|
|
144
|
-
}
|
|
145
|
-
.missing-if-branch {
|
|
146
|
-
display: inline-block;
|
|
147
|
-
margin-right: 5px;
|
|
148
|
-
border-radius: 3px;
|
|
149
|
-
position: relative;
|
|
150
|
-
padding: 0 4px;
|
|
151
|
-
background: #333;
|
|
152
|
-
color: yellow;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.skip-if-branch {
|
|
156
|
-
display: none;
|
|
157
|
-
margin-right: 10px;
|
|
158
|
-
position: relative;
|
|
159
|
-
padding: 0 4px;
|
|
160
|
-
background: #ccc;
|
|
161
|
-
color: white;
|
|
162
|
-
}
|
|
163
|
-
.missing-if-branch .typ,
|
|
164
|
-
.skip-if-branch .typ {
|
|
165
|
-
color: inherit !important;
|
|
166
|
-
}
|
|
167
|
-
.coverage-summary {
|
|
168
|
-
border-collapse: collapse;
|
|
169
|
-
width: 100%;
|
|
170
|
-
}
|
|
171
|
-
.coverage-summary tr {
|
|
172
|
-
border-bottom: 1px solid #bbb;
|
|
173
|
-
}
|
|
174
|
-
.keyline-all {
|
|
175
|
-
border: 1px solid #ddd;
|
|
176
|
-
}
|
|
177
|
-
.coverage-summary td,
|
|
178
|
-
.coverage-summary th {
|
|
179
|
-
padding: 10px;
|
|
180
|
-
}
|
|
181
|
-
.coverage-summary tbody {
|
|
182
|
-
border: 1px solid #bbb;
|
|
183
|
-
}
|
|
184
|
-
.coverage-summary td {
|
|
185
|
-
border-right: 1px solid #bbb;
|
|
186
|
-
}
|
|
187
|
-
.coverage-summary td:last-child {
|
|
188
|
-
border-right: none;
|
|
189
|
-
}
|
|
190
|
-
.coverage-summary th {
|
|
191
|
-
text-align: left;
|
|
192
|
-
font-weight: normal;
|
|
193
|
-
white-space: nowrap;
|
|
194
|
-
}
|
|
195
|
-
.coverage-summary th.file {
|
|
196
|
-
border-right: none !important;
|
|
197
|
-
}
|
|
198
|
-
.coverage-summary th.pct {
|
|
199
|
-
}
|
|
200
|
-
.coverage-summary th.pic,
|
|
201
|
-
.coverage-summary th.abs,
|
|
202
|
-
.coverage-summary td.pct,
|
|
203
|
-
.coverage-summary td.abs {
|
|
204
|
-
text-align: right;
|
|
205
|
-
}
|
|
206
|
-
.coverage-summary td.file {
|
|
207
|
-
white-space: nowrap;
|
|
208
|
-
}
|
|
209
|
-
.coverage-summary td.pic {
|
|
210
|
-
min-width: 120px !important;
|
|
211
|
-
}
|
|
212
|
-
.coverage-summary tfoot td {
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.coverage-summary .sorter {
|
|
216
|
-
height: 10px;
|
|
217
|
-
width: 7px;
|
|
218
|
-
display: inline-block;
|
|
219
|
-
margin-left: 0.5em;
|
|
220
|
-
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
221
|
-
}
|
|
222
|
-
.coverage-summary .sorted .sorter {
|
|
223
|
-
background-position: 0 -20px;
|
|
224
|
-
}
|
|
225
|
-
.coverage-summary .sorted-desc .sorter {
|
|
226
|
-
background-position: 0 -10px;
|
|
227
|
-
}
|
|
228
|
-
.status-line {
|
|
229
|
-
height: 10px;
|
|
230
|
-
}
|
|
231
|
-
/* yellow */
|
|
232
|
-
.cbranch-no {
|
|
233
|
-
background: yellow !important;
|
|
234
|
-
color: #111;
|
|
235
|
-
}
|
|
236
|
-
/* dark red */
|
|
237
|
-
.red.solid,
|
|
238
|
-
.status-line.low,
|
|
239
|
-
.low .cover-fill {
|
|
240
|
-
background: #c21f39;
|
|
241
|
-
}
|
|
242
|
-
.low .chart {
|
|
243
|
-
border: 1px solid #c21f39;
|
|
244
|
-
}
|
|
245
|
-
.highlighted,
|
|
246
|
-
.highlighted .cstat-no,
|
|
247
|
-
.highlighted .fstat-no,
|
|
248
|
-
.highlighted .cbranch-no {
|
|
249
|
-
background: #c21f39 !important;
|
|
250
|
-
}
|
|
251
|
-
/* medium red */
|
|
252
|
-
.cstat-no,
|
|
253
|
-
.fstat-no,
|
|
254
|
-
.cbranch-no,
|
|
255
|
-
.cbranch-no {
|
|
256
|
-
background: #f6c6ce;
|
|
257
|
-
}
|
|
258
|
-
/* light red */
|
|
259
|
-
.low,
|
|
260
|
-
.cline-no {
|
|
261
|
-
background: #fce1e5;
|
|
262
|
-
}
|
|
263
|
-
/* light green */
|
|
264
|
-
.high,
|
|
265
|
-
.cline-yes {
|
|
266
|
-
background: rgb(230, 245, 208);
|
|
267
|
-
}
|
|
268
|
-
/* medium green */
|
|
269
|
-
.cstat-yes {
|
|
270
|
-
background: rgb(161, 215, 106);
|
|
271
|
-
}
|
|
272
|
-
/* dark green */
|
|
273
|
-
.status-line.high,
|
|
274
|
-
.high .cover-fill {
|
|
275
|
-
background: rgb(77, 146, 33);
|
|
276
|
-
}
|
|
277
|
-
.high .chart {
|
|
278
|
-
border: 1px solid rgb(77, 146, 33);
|
|
279
|
-
}
|
|
280
|
-
/* dark yellow (gold) */
|
|
281
|
-
.status-line.medium,
|
|
282
|
-
.medium .cover-fill {
|
|
283
|
-
background: #f9cd0b;
|
|
284
|
-
}
|
|
285
|
-
.medium .chart {
|
|
286
|
-
border: 1px solid #f9cd0b;
|
|
287
|
-
}
|
|
288
|
-
/* light yellow */
|
|
289
|
-
.medium {
|
|
290
|
-
background: #fff4c2;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.cstat-skip {
|
|
294
|
-
background: #ddd;
|
|
295
|
-
color: #111;
|
|
296
|
-
}
|
|
297
|
-
.fstat-skip {
|
|
298
|
-
background: #ddd;
|
|
299
|
-
color: #111 !important;
|
|
300
|
-
}
|
|
301
|
-
.cbranch-skip {
|
|
302
|
-
background: #ddd !important;
|
|
303
|
-
color: #111;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
span.cline-neutral {
|
|
307
|
-
background: #eaeaea;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.coverage-summary td.empty {
|
|
311
|
-
opacity: 0.5;
|
|
312
|
-
padding-top: 4px;
|
|
313
|
-
padding-bottom: 4px;
|
|
314
|
-
line-height: 1;
|
|
315
|
-
color: #888;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.cover-fill,
|
|
319
|
-
.cover-empty {
|
|
320
|
-
display: inline-block;
|
|
321
|
-
height: 12px;
|
|
322
|
-
}
|
|
323
|
-
.chart {
|
|
324
|
-
line-height: 0;
|
|
325
|
-
}
|
|
326
|
-
.cover-empty {
|
|
327
|
-
background: white;
|
|
328
|
-
}
|
|
329
|
-
.cover-full {
|
|
330
|
-
border-right: none !important;
|
|
331
|
-
}
|
|
332
|
-
pre.prettyprint {
|
|
333
|
-
border: none !important;
|
|
334
|
-
padding: 0 !important;
|
|
335
|
-
margin: 0 !important;
|
|
336
|
-
}
|
|
337
|
-
.com {
|
|
338
|
-
color: #999 !important;
|
|
339
|
-
}
|
|
340
|
-
.ignore-none {
|
|
341
|
-
color: #999;
|
|
342
|
-
font-weight: normal;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.wrapper {
|
|
346
|
-
min-height: 100%;
|
|
347
|
-
height: auto !important;
|
|
348
|
-
height: 100%;
|
|
349
|
-
margin: 0 auto -48px;
|
|
350
|
-
}
|
|
351
|
-
.footer,
|
|
352
|
-
.push {
|
|
353
|
-
height: 48px;
|
|
354
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
var jumpToCode = (function init() {
|
|
3
|
-
// Classes of code we would like to highlight in the file view
|
|
4
|
-
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
-
|
|
6
|
-
// Elements to highlight in the file listing view
|
|
7
|
-
var fileListingElements = ['td.pct.low'];
|
|
8
|
-
|
|
9
|
-
// We don't want to select elements that are direct descendants of another match
|
|
10
|
-
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
-
|
|
12
|
-
// Selecter that finds elements on the page to which we can jump
|
|
13
|
-
var selector =
|
|
14
|
-
fileListingElements.join(', ') +
|
|
15
|
-
', ' +
|
|
16
|
-
notSelector +
|
|
17
|
-
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
-
|
|
19
|
-
// The NodeList of matching elements
|
|
20
|
-
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
-
|
|
22
|
-
var currentIndex;
|
|
23
|
-
|
|
24
|
-
function toggleClass(index) {
|
|
25
|
-
missingCoverageElements.item(currentIndex).classList.remove('highlighted');
|
|
26
|
-
missingCoverageElements.item(index).classList.add('highlighted');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function makeCurrent(index) {
|
|
30
|
-
toggleClass(index);
|
|
31
|
-
currentIndex = index;
|
|
32
|
-
missingCoverageElements.item(index).scrollIntoView({
|
|
33
|
-
behavior: 'smooth',
|
|
34
|
-
block: 'center',
|
|
35
|
-
inline: 'center'
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function goToPrevious() {
|
|
40
|
-
var nextIndex = 0;
|
|
41
|
-
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
42
|
-
nextIndex = missingCoverageElements.length - 1;
|
|
43
|
-
} else if (missingCoverageElements.length > 1) {
|
|
44
|
-
nextIndex = currentIndex - 1;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
makeCurrent(nextIndex);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function goToNext() {
|
|
51
|
-
var nextIndex = 0;
|
|
52
|
-
|
|
53
|
-
if (typeof currentIndex === 'number' && currentIndex < missingCoverageElements.length - 1) {
|
|
54
|
-
nextIndex = currentIndex + 1;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
makeCurrent(nextIndex);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return function jump(event) {
|
|
61
|
-
if (
|
|
62
|
-
document.getElementById('fileSearch') === document.activeElement &&
|
|
63
|
-
document.activeElement != null
|
|
64
|
-
) {
|
|
65
|
-
// if we're currently focused on the search input, we don't want to navigate
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
switch (event.which) {
|
|
70
|
-
case 78: // n
|
|
71
|
-
case 74: // j
|
|
72
|
-
goToNext();
|
|
73
|
-
break;
|
|
74
|
-
case 66: // b
|
|
75
|
-
case 75: // k
|
|
76
|
-
case 80: // p
|
|
77
|
-
goToPrevious();
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
})();
|
|
82
|
-
window.addEventListener('keydown', jumpToCode);
|
|
Binary file
|