@npm_leadtech/legal-lib-components 0.32.0 → 0.34.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 +12 -12
- package/coverage/coverage-final.json +1053 -15
- package/coverage/lcov-report/block-navigation.js +56 -68
- package/coverage/lcov-report/components/atoms/AddButton/AddButton.js.html +1 -1
- package/coverage/lcov-report/components/atoms/AddButton/index.html +1 -1
- package/coverage/lcov-report/components/atoms/Button/Button.js.html +1 -1
- package/coverage/lcov-report/components/atoms/Button/index.html +1 -1
- package/coverage/lcov-report/components/atoms/CardPane/CardPane.js.html +1 -1
- package/coverage/lcov-report/components/atoms/CardPane/index.html +1 -1
- package/coverage/lcov-report/components/atoms/Checkbox/Checkbox.js.html +1 -1
- package/coverage/lcov-report/components/atoms/Checkbox/index.html +1 -1
- package/coverage/lcov-report/components/atoms/Disclaimer/Disclaimer.js.html +1 -1
- package/coverage/lcov-report/components/atoms/Disclaimer/index.html +1 -1
- package/coverage/lcov-report/components/atoms/DocumentStatus/DocumentStatus.js.html +1 -1
- package/coverage/lcov-report/components/atoms/DocumentStatus/index.html +1 -1
- package/coverage/lcov-report/components/atoms/FormFaq/FormFaq.js.html +1 -1
- package/coverage/lcov-report/components/atoms/FormFaq/index.html +1 -1
- package/coverage/lcov-report/components/atoms/InfoBox/InfoBox.js.html +1 -1
- package/coverage/lcov-report/components/atoms/InfoBox/index.html +1 -1
- package/coverage/lcov-report/components/atoms/LogoText/LogoText.js.html +1 -1
- package/coverage/lcov-report/components/atoms/LogoText/index.html +1 -1
- package/coverage/lcov-report/components/atoms/Message/Message.js.html +1 -1
- package/coverage/lcov-report/components/atoms/Message/index.html +1 -1
- package/coverage/lcov-report/components/atoms/RemoveButton/RemoveButton.js.html +1 -1
- package/coverage/lcov-report/components/atoms/RemoveButton/index.html +1 -1
- package/coverage/lcov-report/components/atoms/SearchSelect/SearchSelect.js.html +1 -1
- package/coverage/lcov-report/components/atoms/SearchSelect/index.html +1 -1
- package/coverage/lcov-report/components/atoms/SidemenuTab/SidemenuTab.js.html +172 -0
- package/coverage/lcov-report/components/atoms/SidemenuTab/index.html +116 -0
- package/coverage/lcov-report/components/atoms/Toggle/Toggle.js.html +1 -1
- package/coverage/lcov-report/components/atoms/Toggle/index.html +1 -1
- package/coverage/lcov-report/index.html +16 -16
- package/coverage/lcov-report/prettify.js +895 -1
- package/coverage/lcov-report/sorter.js +165 -172
- package/coverage/lcov-report/utils/envVariables.js.html +1 -1
- package/coverage/lcov-report/utils/index.html +1 -1
- package/coverage/lcov.info +15 -15
- package/package.json +1 -1
|
@@ -1,196 +1,189 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
var addSorting = (function() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var addSorting = (function () {
|
|
3
|
+
'use strict';
|
|
4
|
+
var cols,
|
|
5
|
+
currentSort = {
|
|
6
|
+
index: 0,
|
|
7
|
+
desc: false,
|
|
8
|
+
};
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
// returns the summary table element
|
|
11
|
+
function getTable() {
|
|
12
|
+
return document.querySelector('.coverage-summary');
|
|
13
|
+
}
|
|
14
|
+
// returns the thead element of the summary table
|
|
15
|
+
function getTableHeader() {
|
|
16
|
+
return getTable().querySelector('thead tr');
|
|
17
|
+
}
|
|
18
|
+
// returns the tbody element of the summary table
|
|
19
|
+
function getTableBody() {
|
|
20
|
+
return getTable().querySelector('tbody');
|
|
21
|
+
}
|
|
22
|
+
// returns the th element for nth column
|
|
23
|
+
function getNthColumn(n) {
|
|
24
|
+
return getTableHeader().querySelectorAll('th')[n];
|
|
25
|
+
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
row.style.display = '';
|
|
38
|
-
} else {
|
|
39
|
-
row.style.display = 'none';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
27
|
+
function onFilterInput() {
|
|
28
|
+
const searchValue = document.getElementById('fileSearch').value;
|
|
29
|
+
const rows = document.getElementsByTagName('tbody')[0].children;
|
|
30
|
+
for (let i = 0; i < rows.length; i++) {
|
|
31
|
+
const row = rows[i];
|
|
32
|
+
if (row.textContent.toLowerCase().includes(searchValue.toLowerCase())) {
|
|
33
|
+
row.style.display = '';
|
|
34
|
+
} else {
|
|
35
|
+
row.style.display = 'none';
|
|
36
|
+
}
|
|
42
37
|
}
|
|
38
|
+
}
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
// loads the search box
|
|
41
|
+
function addSearchBox() {
|
|
42
|
+
var template = document.getElementById('filterTemplate');
|
|
43
|
+
var templateClone = template.content.cloneNode(true);
|
|
44
|
+
templateClone.getElementById('fileSearch').oninput = onFilterInput;
|
|
45
|
+
template.parentElement.appendChild(templateClone);
|
|
46
|
+
}
|
|
51
47
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
// loads all columns
|
|
49
|
+
function loadColumns() {
|
|
50
|
+
var colNodes = getTableHeader().querySelectorAll('th'),
|
|
51
|
+
colNode,
|
|
52
|
+
cols = [],
|
|
53
|
+
col,
|
|
54
|
+
i;
|
|
59
55
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return cols;
|
|
56
|
+
for (i = 0; i < colNodes.length; i += 1) {
|
|
57
|
+
colNode = colNodes[i];
|
|
58
|
+
col = {
|
|
59
|
+
key: colNode.getAttribute('data-col'),
|
|
60
|
+
sortable: !colNode.getAttribute('data-nosort'),
|
|
61
|
+
type: colNode.getAttribute('data-type') || 'string',
|
|
62
|
+
};
|
|
63
|
+
cols.push(col);
|
|
64
|
+
if (col.sortable) {
|
|
65
|
+
col.defaultDescSort = col.type === 'number';
|
|
66
|
+
colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>';
|
|
67
|
+
}
|
|
75
68
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
69
|
+
return cols;
|
|
70
|
+
}
|
|
71
|
+
// attaches a data attribute to every tr element with an object
|
|
72
|
+
// of data values keyed by column name
|
|
73
|
+
function loadRowData(tableRow) {
|
|
74
|
+
var tableCols = tableRow.querySelectorAll('td'),
|
|
75
|
+
colNode,
|
|
76
|
+
col,
|
|
77
|
+
data = {},
|
|
78
|
+
i,
|
|
79
|
+
val;
|
|
80
|
+
for (i = 0; i < tableCols.length; i += 1) {
|
|
81
|
+
colNode = tableCols[i];
|
|
82
|
+
col = cols[i];
|
|
83
|
+
val = colNode.getAttribute('data-value');
|
|
84
|
+
if (col.type === 'number') {
|
|
85
|
+
val = Number(val);
|
|
86
|
+
}
|
|
87
|
+
data[col.key] = val;
|
|
95
88
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
89
|
+
return data;
|
|
90
|
+
}
|
|
91
|
+
// loads all row data
|
|
92
|
+
function loadData() {
|
|
93
|
+
var rows = getTableBody().querySelectorAll('tr'),
|
|
94
|
+
i;
|
|
100
95
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
96
|
+
for (i = 0; i < rows.length; i += 1) {
|
|
97
|
+
rows[i].data = loadRowData(rows[i]);
|
|
104
98
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
99
|
+
}
|
|
100
|
+
// sorts the table using the data for the ith column
|
|
101
|
+
function sortByIndex(index, desc) {
|
|
102
|
+
var key = cols[index].key,
|
|
103
|
+
sorter = function (a, b) {
|
|
104
|
+
a = a.data[key];
|
|
105
|
+
b = b.data[key];
|
|
106
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
107
|
+
},
|
|
108
|
+
finalSorter = sorter,
|
|
109
|
+
tableBody = document.querySelector('.coverage-summary tbody'),
|
|
110
|
+
rowNodes = tableBody.querySelectorAll('tr'),
|
|
111
|
+
rows = [],
|
|
112
|
+
i;
|
|
118
113
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
if (desc) {
|
|
115
|
+
finalSorter = function (a, b) {
|
|
116
|
+
return -1 * sorter(a, b);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
124
119
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
120
|
+
for (i = 0; i < rowNodes.length; i += 1) {
|
|
121
|
+
rows.push(rowNodes[i]);
|
|
122
|
+
tableBody.removeChild(rowNodes[i]);
|
|
123
|
+
}
|
|
129
124
|
|
|
130
|
-
|
|
125
|
+
rows.sort(finalSorter);
|
|
131
126
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
127
|
+
for (i = 0; i < rows.length; i += 1) {
|
|
128
|
+
tableBody.appendChild(rows[i]);
|
|
135
129
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
130
|
+
}
|
|
131
|
+
// removes sort indicators for current column being sorted
|
|
132
|
+
function removeSortIndicators() {
|
|
133
|
+
var col = getNthColumn(currentSort.index),
|
|
134
|
+
cls = col.className;
|
|
140
135
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
ithSorter = function ithSorter(i) {
|
|
155
|
-
var col = cols[i];
|
|
136
|
+
cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
|
|
137
|
+
col.className = cls;
|
|
138
|
+
}
|
|
139
|
+
// adds sort indicators for current column being sorted
|
|
140
|
+
function addSortIndicators() {
|
|
141
|
+
getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
|
|
142
|
+
}
|
|
143
|
+
// adds event listeners for all sorter widgets
|
|
144
|
+
function enableUI() {
|
|
145
|
+
var i,
|
|
146
|
+
el,
|
|
147
|
+
ithSorter = function ithSorter(i) {
|
|
148
|
+
var col = cols[i];
|
|
156
149
|
|
|
157
|
-
|
|
158
|
-
|
|
150
|
+
return function () {
|
|
151
|
+
var desc = col.defaultDescSort;
|
|
159
152
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
}
|
|
153
|
+
if (currentSort.index === i) {
|
|
154
|
+
desc = !currentSort.desc;
|
|
155
|
+
}
|
|
156
|
+
sortByIndex(i, desc);
|
|
157
|
+
removeSortIndicators();
|
|
158
|
+
currentSort.index = i;
|
|
159
|
+
currentSort.desc = desc;
|
|
160
|
+
addSortIndicators();
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
for (i = 0; i < cols.length; i += 1) {
|
|
164
|
+
if (cols[i].sortable) {
|
|
165
|
+
// add the click event handler on the th so users
|
|
166
|
+
// dont have to click on those tiny arrows
|
|
167
|
+
el = getNthColumn(i).querySelector('.sorter').parentElement;
|
|
168
|
+
if (el.addEventListener) {
|
|
169
|
+
el.addEventListener('click', ithSorter(i));
|
|
170
|
+
} else {
|
|
171
|
+
el.attachEvent('onclick', ithSorter(i));
|
|
181
172
|
}
|
|
173
|
+
}
|
|
182
174
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
175
|
+
}
|
|
176
|
+
// adds sorting functionality to the UI
|
|
177
|
+
return function () {
|
|
178
|
+
if (!getTable()) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
cols = loadColumns();
|
|
182
|
+
loadData();
|
|
183
|
+
addSearchBox();
|
|
184
|
+
addSortIndicators();
|
|
185
|
+
enableUI();
|
|
186
|
+
};
|
|
194
187
|
})();
|
|
195
188
|
|
|
196
189
|
window.addEventListener('load', addSorting);
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
74
74
|
Code coverage generated by
|
|
75
75
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
76
|
-
at
|
|
76
|
+
at Tue Jan 04 2022 11:14:23 GMT+0100 (GMT+01:00)
|
|
77
77
|
</div>
|
|
78
78
|
<script src="../prettify.js"></script>
|
|
79
79
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
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
|
|
104
|
+
at Tue Jan 04 2022 11:14:23 GMT+0100 (GMT+01:00)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../prettify.js"></script>
|
|
107
107
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -285,21 +285,6 @@ BRF:0
|
|
|
285
285
|
BRH:0
|
|
286
286
|
end_of_record
|
|
287
287
|
TN:
|
|
288
|
-
SF:src/components/atoms/ProgressBar/ProgressBar.js
|
|
289
|
-
FN:5,(anonymous_0)
|
|
290
|
-
FNF:1
|
|
291
|
-
FNH:1
|
|
292
|
-
FNDA:1,(anonymous_0)
|
|
293
|
-
DA:5,1
|
|
294
|
-
DA:6,1
|
|
295
|
-
DA:8,1
|
|
296
|
-
DA:16,1
|
|
297
|
-
LF:4
|
|
298
|
-
LH:4
|
|
299
|
-
BRF:0
|
|
300
|
-
BRH:0
|
|
301
|
-
end_of_record
|
|
302
|
-
TN:
|
|
303
288
|
SF:src/components/atoms/RemoveButton/RemoveButton.js
|
|
304
289
|
FN:5,(anonymous_0)
|
|
305
290
|
FNF:1
|
|
@@ -386,6 +371,21 @@ BRF:26
|
|
|
386
371
|
BRH:15
|
|
387
372
|
end_of_record
|
|
388
373
|
TN:
|
|
374
|
+
SF:src/components/atoms/SidemenuTab/SidemenuTab.js
|
|
375
|
+
FN:6,(anonymous_0)
|
|
376
|
+
FNF:1
|
|
377
|
+
FNH:1
|
|
378
|
+
FNDA:4,(anonymous_0)
|
|
379
|
+
DA:6,1
|
|
380
|
+
DA:7,4
|
|
381
|
+
DA:13,4
|
|
382
|
+
DA:23,1
|
|
383
|
+
LF:4
|
|
384
|
+
LH:4
|
|
385
|
+
BRF:0
|
|
386
|
+
BRH:0
|
|
387
|
+
end_of_record
|
|
388
|
+
TN:
|
|
389
389
|
SF:src/components/atoms/Toggle/Toggle.js
|
|
390
390
|
FN:5,(anonymous_0)
|
|
391
391
|
FNF:1
|