@npm_leadtech/legal-lib-components 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +1 -1
- package/coverage/clover.xml +43 -12
- package/coverage/coverage-final.json +13 -748
- package/coverage/lcov-report/block-navigation.js +68 -56
- package/coverage/lcov-report/components/atoms/AddButton/AddButton.js.html +1 -2
- package/coverage/lcov-report/components/atoms/AddButton/index.html +1 -2
- package/coverage/lcov-report/components/atoms/Button/Button.js.html +550 -0
- package/coverage/lcov-report/components/atoms/Button/index.html +116 -0
- package/coverage/lcov-report/components/atoms/CardPane/CardPane.js.html +74 -18
- package/coverage/lcov-report/components/atoms/CardPane/index.html +15 -16
- package/coverage/lcov-report/components/atoms/Checkbox/Checkbox.js.html +1 -2
- package/coverage/lcov-report/components/atoms/Checkbox/index.html +1 -2
- package/coverage/lcov-report/components/atoms/Disclaimer/Disclaimer.js.html +1 -2
- package/coverage/lcov-report/components/atoms/Disclaimer/index.html +1 -2
- package/coverage/lcov-report/components/atoms/DocumentStatus/DocumentStatus.js.html +1 -2
- package/coverage/lcov-report/components/atoms/DocumentStatus/index.html +1 -2
- package/coverage/lcov-report/components/atoms/FormFaq/FormFaq.js.html +9 -4
- package/coverage/lcov-report/components/atoms/FormFaq/index.html +1 -2
- package/coverage/lcov-report/components/atoms/LogoText/LogoText.js.html +1 -2
- package/coverage/lcov-report/components/atoms/LogoText/index.html +1 -2
- package/coverage/lcov-report/components/atoms/Message/Message.js.html +1 -2
- package/coverage/lcov-report/components/atoms/Message/index.html +1 -2
- package/coverage/lcov-report/components/atoms/RemoveButton/RemoveButton.js.html +1 -2
- package/coverage/lcov-report/components/atoms/RemoveButton/index.html +1 -2
- package/coverage/lcov-report/components/atoms/SearchSelect/SearchSelect.js.html +1 -2
- package/coverage/lcov-report/components/atoms/SearchSelect/index.html +1 -2
- package/coverage/lcov-report/components/atoms/Toggle/Toggle.js.html +1 -2
- package/coverage/lcov-report/components/atoms/Toggle/index.html +1 -2
- package/coverage/lcov-report/index.html +32 -18
- package/coverage/lcov-report/prettify.js +1 -895
- package/coverage/lcov-report/sorter.js +172 -165
- package/coverage/lcov-report/utils/envVariables.js.html +1 -2
- package/coverage/lcov-report/utils/index.html +1 -2
- package/coverage/lcov.info +90 -16
- package/package.json +1 -1
|
@@ -1,75 +1,87 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
var jumpToCode = (function init() {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
// Classes of code we would like to highlight in the file view
|
|
4
|
+
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// Elements to highlight in the file listing view
|
|
7
|
+
var fileListingElements = ['td.pct.low'];
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
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
11
|
|
|
12
|
-
|
|
13
|
-
|
|
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`
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
// The NodeList of matching elements
|
|
20
|
+
var missingCoverageElements = document.querySelectorAll(selector);
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
var currentIndex;
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function makeCurrent(index) {
|
|
26
|
-
toggleClass(index);
|
|
27
|
-
currentIndex = index;
|
|
28
|
-
missingCoverageElements.item(index).scrollIntoView({
|
|
29
|
-
behavior: 'smooth',
|
|
30
|
-
block: 'center',
|
|
31
|
-
inline: 'center',
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function goToPrevious() {
|
|
36
|
-
var nextIndex = 0;
|
|
37
|
-
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
38
|
-
nextIndex = missingCoverageElements.length - 1;
|
|
39
|
-
} else if (missingCoverageElements.length > 1) {
|
|
40
|
-
nextIndex = currentIndex - 1;
|
|
24
|
+
function toggleClass(index) {
|
|
25
|
+
missingCoverageElements
|
|
26
|
+
.item(currentIndex)
|
|
27
|
+
.classList.remove('highlighted');
|
|
28
|
+
missingCoverageElements.item(index).classList.add('highlighted');
|
|
41
29
|
}
|
|
42
30
|
|
|
43
|
-
makeCurrent(
|
|
44
|
-
|
|
31
|
+
function makeCurrent(index) {
|
|
32
|
+
toggleClass(index);
|
|
33
|
+
currentIndex = index;
|
|
34
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
+
behavior: 'smooth',
|
|
36
|
+
block: 'center',
|
|
37
|
+
inline: 'center'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
45
40
|
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
function goToPrevious() {
|
|
42
|
+
var nextIndex = 0;
|
|
43
|
+
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
+
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
+
} else if (missingCoverageElements.length > 1) {
|
|
46
|
+
nextIndex = currentIndex - 1;
|
|
47
|
+
}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
nextIndex = currentIndex + 1;
|
|
49
|
+
makeCurrent(nextIndex);
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
function goToNext() {
|
|
53
|
+
var nextIndex = 0;
|
|
55
54
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
if (
|
|
56
|
+
typeof currentIndex === 'number' &&
|
|
57
|
+
currentIndex < missingCoverageElements.length - 1
|
|
58
|
+
) {
|
|
59
|
+
nextIndex = currentIndex + 1;
|
|
60
|
+
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
case 78: // n
|
|
64
|
-
case 74: // j
|
|
65
|
-
goToNext();
|
|
66
|
-
break;
|
|
67
|
-
case 66: // b
|
|
68
|
-
case 75: // k
|
|
69
|
-
case 80: // p
|
|
70
|
-
goToPrevious();
|
|
71
|
-
break;
|
|
62
|
+
makeCurrent(nextIndex);
|
|
72
63
|
}
|
|
73
|
-
|
|
64
|
+
|
|
65
|
+
return function jump(event) {
|
|
66
|
+
if (
|
|
67
|
+
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
+
document.activeElement != null
|
|
69
|
+
) {
|
|
70
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
switch (event.which) {
|
|
75
|
+
case 78: // n
|
|
76
|
+
case 74: // j
|
|
77
|
+
goToNext();
|
|
78
|
+
break;
|
|
79
|
+
case 66: // b
|
|
80
|
+
case 75: // k
|
|
81
|
+
case 80: // p
|
|
82
|
+
goToPrevious();
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
74
86
|
})();
|
|
75
87
|
window.addEventListener('keydown', jumpToCode);
|
|
@@ -214,9 +214,8 @@ AddButton.propTypes = {
|
|
|
214
214
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
215
215
|
Code coverage generated by
|
|
216
216
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
217
|
-
at Tue Dec 28 2021
|
|
217
|
+
at Tue Dec 28 2021 16:21:31 GMT+0100 (GMT+01:00)
|
|
218
218
|
</div>
|
|
219
|
-
</div>
|
|
220
219
|
<script src="../../../prettify.js"></script>
|
|
221
220
|
<script>
|
|
222
221
|
window.onload = function () {
|
|
@@ -101,9 +101,8 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
104
|
-
at Tue Dec 28 2021
|
|
104
|
+
at Tue Dec 28 2021 16:21:31 GMT+0100 (GMT+01:00)
|
|
105
105
|
</div>
|
|
106
|
-
</div>
|
|
107
106
|
<script src="../../../prettify.js"></script>
|
|
108
107
|
<script>
|
|
109
108
|
window.onload = function () {
|