@itwin/reports-config-widget-react 0.6.0 → 0.7.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/CHANGELOG.json +45 -1
- package/CHANGELOG.md +23 -2
- package/README.md +1 -5
- package/api/reports-config-widget-react.api.md +11 -15
- package/api/reports-config-widget-react.exports.csv +1 -1
- package/api/temp/reports-config-widget-react.api.md +11 -15
- package/coverage/clover.xml +187 -190
- package/coverage/coverage-final.json +11 -11
- package/coverage/lcov-report/index.html +19 -19
- package/coverage/lcov-report/src/ReportsConfigWidget.ts.html +2 -2
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/test/index.html +1 -1
- package/coverage/lcov-report/src/test/test-utils.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/ReportsConfigUiProvider.tsx.html +11 -26
- package/coverage/lcov-report/src/widget/components/ActionPanel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/AddMappingsModal.tsx.html +3 -3
- package/coverage/lcov-report/src/widget/components/BulkExtractor.ts.html +7 -10
- package/coverage/lcov-report/src/widget/components/Constants.ts.html +1 -1
- package/coverage/lcov-report/src/widget/components/DeleteModal.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/FailedExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/QueuedExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/RunningExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/StartingExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/SucceededExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/index.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStatus.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionToast.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/HorizontalTile.tsx.html +3 -3
- package/coverage/lcov-report/src/widget/components/LocalizedTablePaginator.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportAction.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportHorizontalTile.tsx.html +15 -15
- package/coverage/lcov-report/src/widget/components/ReportMappingHorizontalTile.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportMappings.tsx.html +14 -23
- package/coverage/lcov-report/src/widget/components/Reports.tsx.html +6 -6
- package/coverage/lcov-report/src/widget/components/ReportsConfigContext.tsx.html +111 -12
- package/coverage/lcov-report/src/widget/components/ReportsContainer.tsx.html +8 -17
- package/coverage/lcov-report/src/widget/components/ReportsHeader.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportsRouter.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/SearchBar.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/SelectIModel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/index.html +11 -11
- package/coverage/lcov-report/src/widget/components/utils.tsx.html +2 -2
- package/coverage/lcov-report/src/widget/context/BulkExtractorContext.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/context/ReportsConfigApiContext.tsx.html +7 -4
- package/coverage/lcov-report/src/widget/context/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/useValidator.ts.html +1 -1
- package/coverage/lcov-report/src/widget/index.html +13 -13
- package/coverage/lcov.info +336 -340
- package/lib/cjs/reports-config-widget-react.d.ts +1 -0
- package/lib/cjs/reports-config-widget-react.d.ts.map +1 -1
- package/lib/cjs/reports-config-widget-react.js +1 -0
- package/lib/cjs/reports-config-widget-react.js.map +1 -1
- package/lib/cjs/test/ReportAction.test.js +3 -0
- package/lib/cjs/test/ReportAction.test.js.map +1 -1
- package/lib/cjs/test/ReportMappings.test.js +4 -1
- package/lib/cjs/test/ReportMappings.test.js.map +1 -1
- package/lib/cjs/test/Reports.test.js +3 -0
- package/lib/cjs/test/Reports.test.js.map +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/widget/ReportsConfigUiProvider.d.ts +3 -4
- package/lib/cjs/widget/ReportsConfigUiProvider.d.ts.map +1 -1
- package/lib/cjs/widget/ReportsConfigUiProvider.js +3 -4
- package/lib/cjs/widget/ReportsConfigUiProvider.js.map +1 -1
- package/lib/cjs/widget/components/AddMappingsModal.d.ts.map +1 -1
- package/lib/cjs/widget/components/AddMappingsModal.js.map +1 -1
- package/lib/cjs/widget/components/BulkExtractor.d.ts +2 -2
- package/lib/cjs/widget/components/BulkExtractor.d.ts.map +1 -1
- package/lib/cjs/widget/components/BulkExtractor.js.map +1 -1
- package/lib/cjs/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportMappings.js +4 -6
- package/lib/cjs/widget/components/ReportMappings.js.map +1 -1
- package/lib/cjs/widget/components/Reports.d.ts.map +1 -1
- package/lib/cjs/widget/components/Reports.js.map +1 -1
- package/lib/cjs/widget/components/ReportsConfigContext.d.ts +26 -4
- package/lib/cjs/widget/components/ReportsConfigContext.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportsConfigContext.js +14 -4
- package/lib/cjs/widget/components/ReportsConfigContext.js.map +1 -1
- package/lib/cjs/widget/components/ReportsContainer.d.ts +3 -6
- package/lib/cjs/widget/components/ReportsContainer.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportsContainer.js +6 -2
- package/lib/cjs/widget/components/ReportsContainer.js.map +1 -1
- package/lib/cjs/widget/context/ReportsConfigApiContext.d.ts +3 -3
- package/lib/cjs/widget/context/ReportsConfigApiContext.d.ts.map +1 -1
- package/lib/cjs/widget/context/ReportsConfigApiContext.js.map +1 -1
- package/lib/esm/reports-config-widget-react.d.ts +1 -0
- package/lib/esm/reports-config-widget-react.d.ts.map +1 -1
- package/lib/esm/reports-config-widget-react.js +1 -0
- package/lib/esm/reports-config-widget-react.js.map +1 -1
- package/lib/esm/test/ReportAction.test.js +3 -0
- package/lib/esm/test/ReportAction.test.js.map +1 -1
- package/lib/esm/test/ReportMappings.test.js +4 -1
- package/lib/esm/test/ReportMappings.test.js.map +1 -1
- package/lib/esm/test/Reports.test.js +3 -0
- package/lib/esm/test/Reports.test.js.map +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/widget/ReportsConfigUiProvider.d.ts +3 -4
- package/lib/esm/widget/ReportsConfigUiProvider.d.ts.map +1 -1
- package/lib/esm/widget/ReportsConfigUiProvider.js +3 -4
- package/lib/esm/widget/ReportsConfigUiProvider.js.map +1 -1
- package/lib/esm/widget/components/AddMappingsModal.d.ts.map +1 -1
- package/lib/esm/widget/components/AddMappingsModal.js.map +1 -1
- package/lib/esm/widget/components/BulkExtractor.d.ts +2 -2
- package/lib/esm/widget/components/BulkExtractor.d.ts.map +1 -1
- package/lib/esm/widget/components/BulkExtractor.js.map +1 -1
- package/lib/esm/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportMappings.js +5 -7
- package/lib/esm/widget/components/ReportMappings.js.map +1 -1
- package/lib/esm/widget/components/Reports.d.ts.map +1 -1
- package/lib/esm/widget/components/Reports.js.map +1 -1
- package/lib/esm/widget/components/ReportsConfigContext.d.ts +26 -4
- package/lib/esm/widget/components/ReportsConfigContext.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportsConfigContext.js +14 -4
- package/lib/esm/widget/components/ReportsConfigContext.js.map +1 -1
- package/lib/esm/widget/components/ReportsContainer.d.ts +3 -6
- package/lib/esm/widget/components/ReportsContainer.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportsContainer.js +6 -2
- package/lib/esm/widget/components/ReportsContainer.js.map +1 -1
- package/lib/esm/widget/context/ReportsConfigApiContext.d.ts +3 -3
- package/lib/esm/widget/context/ReportsConfigApiContext.d.ts.map +1 -1
- package/lib/esm/widget/context/ReportsConfigApiContext.js.map +1 -1
- package/package.json +2 -2
- package/src/reports-config-widget-react.ts +1 -0
- package/src/test/ReportAction.test.tsx +3 -0
- package/src/test/ReportMappings.test.tsx +4 -1
- package/src/test/Reports.test.tsx +3 -0
- package/src/widget/ReportsConfigUiProvider.tsx +3 -8
- package/src/widget/components/AddMappingsModal.tsx +2 -2
- package/src/widget/components/BulkExtractor.ts +5 -6
- package/src/widget/components/ReportMappings.tsx +8 -11
- package/src/widget/components/Reports.tsx +2 -2
- package/src/widget/components/ReportsConfigContext.tsx +41 -8
- package/src/widget/components/ReportsContainer.tsx +5 -8
- package/src/widget/context/ReportsConfigApiContext.tsx +3 -2
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">85.05% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>700/823</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">67.
|
|
33
|
+
<span class="strong">67.42% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>149/
|
|
35
|
+
<span class='fraction'>149/221</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">85.
|
|
47
|
+
<span class="strong">85.84% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>637/742</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -110,32 +110,32 @@
|
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
112
112
|
<td class="file low" data-value="src/widget"><a href="src/widget/index.html">src/widget</a></td>
|
|
113
|
-
<td data-value="
|
|
114
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
113
|
+
<td data-value="46.15" class="pic low">
|
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 46%"></div><div class="cover-empty" style="width: 54%"></div></div>
|
|
115
115
|
</td>
|
|
116
|
-
<td data-value="
|
|
117
|
-
<td data-value="
|
|
116
|
+
<td data-value="46.15" class="pct low">46.15%</td>
|
|
117
|
+
<td data-value="13" class="abs low">6/13</td>
|
|
118
118
|
<td data-value="0" class="pct low">0%</td>
|
|
119
|
-
<td data-value="
|
|
119
|
+
<td data-value="4" class="abs low">0/4</td>
|
|
120
120
|
<td data-value="0" class="pct low">0%</td>
|
|
121
121
|
<td data-value="2" class="abs low">0/2</td>
|
|
122
|
-
<td data-value="
|
|
123
|
-
<td data-value="
|
|
122
|
+
<td data-value="46.15" class="pct low">46.15%</td>
|
|
123
|
+
<td data-value="13" class="abs low">6/13</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
126
|
<tr>
|
|
127
127
|
<td class="file high" data-value="src/widget/components"><a href="src/widget/components/index.html">src/widget/components</a></td>
|
|
128
|
-
<td data-value="84.
|
|
128
|
+
<td data-value="84.74" class="pic high">
|
|
129
129
|
<div class="chart"><div class="cover-fill" style="width: 84%"></div><div class="cover-empty" style="width: 16%"></div></div>
|
|
130
130
|
</td>
|
|
131
|
-
<td data-value="84.
|
|
132
|
-
<td data-value="
|
|
131
|
+
<td data-value="84.74" class="pct high">84.74%</td>
|
|
132
|
+
<td data-value="708" class="abs high">600/708</td>
|
|
133
133
|
<td data-value="69.75" class="pct medium">69.75%</td>
|
|
134
134
|
<td data-value="205" class="abs medium">143/205</td>
|
|
135
135
|
<td data-value="79.39" class="pct medium">79.39%</td>
|
|
136
136
|
<td data-value="165" class="abs medium">131/165</td>
|
|
137
|
-
<td data-value="85.
|
|
138
|
-
<td data-value="
|
|
137
|
+
<td data-value="85.84" class="pct high">85.84%</td>
|
|
138
|
+
<td data-value="636" class="abs high">546/636</td>
|
|
139
139
|
</tr>
|
|
140
140
|
|
|
141
141
|
<tr>
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
192
192
|
Code coverage generated by
|
|
193
193
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
194
|
-
at 2024-
|
|
194
|
+
at 2024-09-12T12:15:28.324Z
|
|
195
195
|
</div>
|
|
196
196
|
<script src="prettify.js"></script>
|
|
197
197
|
<script>
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<span class="cline-any cline-neutral"> </span>
|
|
120
120
|
<span class="cline-any cline-neutral"> </span>
|
|
121
121
|
<span class="cline-any cline-neutral"> </span>
|
|
122
|
-
<span class="cline-any cline-yes">
|
|
122
|
+
<span class="cline-any cline-yes">5110x</span>
|
|
123
123
|
<span class="cline-any cline-neutral"> </span>
|
|
124
124
|
<span class="cline-any cline-neutral"> </span>
|
|
125
125
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -178,7 +178,7 @@ export class ReportsConfigWidget {
|
|
|
178
178
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
179
179
|
Code coverage generated by
|
|
180
180
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
181
|
-
at 2024-
|
|
181
|
+
at 2024-09-12T12:15:28.324Z
|
|
182
182
|
</div>
|
|
183
183
|
<script src="../prettify.js"></script>
|
|
184
184
|
<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 noreferrer">istanbul</a>
|
|
104
|
-
at 2024-
|
|
104
|
+
at 2024-09-12T12:15:28.324Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../prettify.js"></script>
|
|
107
107
|
<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 noreferrer">istanbul</a>
|
|
104
|
-
at 2024-
|
|
104
|
+
at 2024-09-12T12:15:28.324Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -394,7 +394,7 @@ export { render };
|
|
|
394
394
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
395
395
|
Code coverage generated by
|
|
396
396
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
397
|
-
at 2024-
|
|
397
|
+
at 2024-09-12T12:15:28.324Z
|
|
398
398
|
</div>
|
|
399
399
|
<script src="../../prettify.js"></script>
|
|
400
400
|
<script>
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">46.15% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>6/
|
|
28
|
+
<span class='fraction'>6/13</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/4</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">46.15% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>6/
|
|
49
|
+
<span class='fraction'>6/13</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -104,21 +104,16 @@
|
|
|
104
104
|
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
105
|
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
106
|
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
-
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
-
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
-
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
-
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
-
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
-
<a name='L47'></a><a href='#L47'>47</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
107
|
+
<a name='L42'></a><a href='#L42'>42</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
113
108
|
<span class="cline-any cline-neutral"> </span>
|
|
114
109
|
<span class="cline-any cline-neutral"> </span>
|
|
115
110
|
<span class="cline-any cline-neutral"> </span>
|
|
116
111
|
<span class="cline-any cline-neutral"> </span>
|
|
117
112
|
<span class="cline-any cline-yes">7x</span>
|
|
118
113
|
<span class="cline-any cline-neutral"> </span>
|
|
119
|
-
<span class="cline-any cline-neutral"> </span>
|
|
120
114
|
<span class="cline-any cline-yes">7x</span>
|
|
121
115
|
<span class="cline-any cline-yes">7x</span>
|
|
116
|
+
<span class="cline-any cline-neutral"> </span>
|
|
122
117
|
<span class="cline-any cline-yes">7x</span>
|
|
123
118
|
<span class="cline-any cline-neutral"> </span>
|
|
124
119
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -133,14 +128,9 @@
|
|
|
133
128
|
<span class="cline-any cline-yes">7x</span>
|
|
134
129
|
<span class="cline-any cline-no"> </span>
|
|
135
130
|
<span class="cline-any cline-neutral"> </span>
|
|
136
|
-
<span class="cline-any cline-neutral"> </span>
|
|
137
|
-
<span class="cline-any cline-neutral"> </span>
|
|
138
|
-
<span class="cline-any cline-neutral"> </span>
|
|
139
|
-
<span class="cline-any cline-no"> </span>
|
|
140
131
|
<span class="cline-any cline-no"> </span>
|
|
141
132
|
<span class="cline-any cline-neutral"> </span>
|
|
142
133
|
<span class="cline-any cline-neutral"> </span>
|
|
143
|
-
<span class="cline-any cline-neutral"> </span>
|
|
144
134
|
<span class="cline-any cline-no"> </span>
|
|
145
135
|
<span class="cline-any cline-no"> </span>
|
|
146
136
|
<span class="cline-any cline-no"> </span>
|
|
@@ -161,10 +151,10 @@
|
|
|
161
151
|
*--------------------------------------------------------------------------------------------*/
|
|
162
152
|
import type { UiItemsProvider, Widget } from "@itwin/appui-react";
|
|
163
153
|
import { StagePanelLocation, StagePanelSection, StageUsage } from "@itwin/appui-react";
|
|
164
|
-
import type { AccessToken } from "@itwin/core-bentley";
|
|
165
154
|
|
|
166
155
|
import * as React from "react";
|
|
167
156
|
import { ReportsConfigWidget } from "../ReportsConfigWidget";
|
|
157
|
+
import type { ReportsContainerProps } from "./components/ReportsContainer";
|
|
168
158
|
import ReportsContainer from "./components/ReportsContainer";
|
|
169
159
|
|
|
170
160
|
/**
|
|
@@ -178,13 +168,8 @@ export const REPORTS_CONFIG_BASE_URL = "https://api.bentley.com";
|
|
|
178
168
|
*/
|
|
179
169
|
export class ReportsConfigProvider implements UiItemsProvider {
|
|
180
170
|
public readonly <span class="cstat-no" title="statement not covered" >id = "ReportsConfigProvider";</span>
|
|
181
|
-
private readonly _getAccessToken?: () => Promise<AccessToken>;
|
|
182
|
-
private readonly _baseUrl: string;
|
|
183
171
|
|
|
184
|
-
<span class="fstat-no" title="function not covered" > constructor(
|
|
185
|
-
<span class="cstat-no" title="statement not covered" > this._getAccessToken = getAccessToken;</span>
|
|
186
|
-
<span class="cstat-no" title="statement not covered" > this._baseUrl = baseUrl;</span>
|
|
187
|
-
}
|
|
172
|
+
<span class="fstat-no" title="function not covered" > constructor(private <span class="cstat-no" title="statement not covered" >_</span>props?: ReportsContainerProps)</span> { }
|
|
188
173
|
|
|
189
174
|
public <span class="fstat-no" title="function not covered" >provideWidgets(</span>_stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection): ReadonlyArray<Widget> {
|
|
190
175
|
const widgets: Widget[] = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
@@ -192,7 +177,7 @@ export class ReportsConfigProvider implements UiItemsProvider {
|
|
|
192
177
|
const ReportsWidget: Widget = <span class="cstat-no" title="statement not covered" >{</span>
|
|
193
178
|
id: "reports-config-widget",
|
|
194
179
|
label: ReportsConfigWidget.localization.getLocalizedString("ReportsConfigWidget:ReportsConfig"),
|
|
195
|
-
content: <ReportsContainer
|
|
180
|
+
content: <ReportsContainer {...this._props} />,
|
|
196
181
|
};
|
|
197
182
|
|
|
198
183
|
<span class="cstat-no" title="statement not covered" > widgets.push(ReportsWidget);</span>
|
|
@@ -208,7 +193,7 @@ export class ReportsConfigProvider implements UiItemsProvider {
|
|
|
208
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
209
194
|
Code coverage generated by
|
|
210
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
211
|
-
at 2024-
|
|
196
|
+
at 2024-09-12T12:15:28.324Z
|
|
212
197
|
</div>
|
|
213
198
|
<script src="../../prettify.js"></script>
|
|
214
199
|
<script>
|
|
@@ -199,7 +199,7 @@ export default ActionPanel;
|
|
|
199
199
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
200
200
|
Code coverage generated by
|
|
201
201
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
202
|
-
at 2024-
|
|
202
|
+
at 2024-09-12T12:15:28.324Z
|
|
203
203
|
</div>
|
|
204
204
|
<script src="../../../prettify.js"></script>
|
|
205
205
|
<script>
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
*--------------------------------------------------------------------------------------------*/
|
|
342
342
|
import { Modal, Table, tableFilters } from "@itwin/itwinui-react";
|
|
343
343
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
344
|
-
import type {
|
|
344
|
+
import type { IMappingsClient, Mapping } from "@itwin/insights-client";
|
|
345
345
|
import ActionPanel from "./ActionPanel";
|
|
346
346
|
import "./AddMappingsModal.scss";
|
|
347
347
|
import { LocalizedTablePaginator } from "./LocalizedTablePaginator";
|
|
@@ -360,7 +360,7 @@ const fetchMappings = async (
|
|
|
360
360
|
setMappings: (mappings: Mapping[]) => void,
|
|
361
361
|
iModelId: string,
|
|
362
362
|
setIsLoading: (isLoading: boolean) => void,
|
|
363
|
-
mappingsClient:
|
|
363
|
+
mappingsClient: IMappingsClient,
|
|
364
364
|
getAccessToken: () => Promise<AccessToken>,
|
|
365
365
|
) => {
|
|
366
366
|
try {
|
|
@@ -478,7 +478,7 @@ export const AddMappingsModal = ({ reportId, existingMappings, show, onClose, de
|
|
|
478
478
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
479
479
|
Code coverage generated by
|
|
480
480
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
481
|
-
at 2024-
|
|
481
|
+
at 2024-09-12T12:15:28.324Z
|
|
482
482
|
</div>
|
|
483
483
|
<script src="../../../prettify.js"></script>
|
|
484
484
|
<script>
|
|
@@ -264,8 +264,7 @@
|
|
|
264
264
|
<a name='L199'></a><a href='#L199'>199</a>
|
|
265
265
|
<a name='L200'></a><a href='#L200'>200</a>
|
|
266
266
|
<a name='L201'></a><a href='#L201'>201</a>
|
|
267
|
-
<a name='L202'></a><a href='#L202'>202</a>
|
|
268
|
-
<a name='L203'></a><a href='#L203'>203</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
267
|
+
<a name='L202'></a><a href='#L202'>202</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
269
268
|
<span class="cline-any cline-neutral"> </span>
|
|
270
269
|
<span class="cline-any cline-neutral"> </span>
|
|
271
270
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -289,7 +288,6 @@
|
|
|
289
288
|
<span class="cline-any cline-neutral"> </span>
|
|
290
289
|
<span class="cline-any cline-neutral"> </span>
|
|
291
290
|
<span class="cline-any cline-neutral"> </span>
|
|
292
|
-
<span class="cline-any cline-neutral"> </span>
|
|
293
291
|
<span class="cline-any cline-yes">68x</span>
|
|
294
292
|
<span class="cline-any cline-yes">68x</span>
|
|
295
293
|
<span class="cline-any cline-yes">68x</span>
|
|
@@ -475,7 +473,7 @@ import { ExtractionState } from "@itwin/insights-client";
|
|
|
475
473
|
import { handleError } from "./utils";
|
|
476
474
|
import { ExtractionStates } from "./ExtractionStatus";
|
|
477
475
|
import { STATUS_CHECK_INTERVAL } from "./Constants";
|
|
478
|
-
import type {
|
|
476
|
+
import type { ExtractionMapping, ExtractionRequestDetails, IExtractionClient, IReportsClient, ReportMapping } from "@itwin/insights-client";
|
|
479
477
|
import type { AccessToken } from "@itwin/core-bentley";
|
|
480
478
|
|
|
481
479
|
export type ReportMappingAndMapping = ReportMapping & {
|
|
@@ -488,10 +486,9 @@ export type ReportMappingAndMapping = ReportMapping & {
|
|
|
488
486
|
* @public
|
|
489
487
|
*/
|
|
490
488
|
export class BulkExtractor {
|
|
491
|
-
private _reportsClientApi:
|
|
492
|
-
private _extractionClientApi:
|
|
489
|
+
private _reportsClientApi: IReportsClient;
|
|
490
|
+
private _extractionClientApi: IExtractionClient;
|
|
493
491
|
private _accessToken: () => Promise<string>;
|
|
494
|
-
|
|
495
492
|
private _reportIModels = new Map<string, string[]>(); // key: reportId, value: iModels
|
|
496
493
|
private _iModelStates = new Map<string, ExtractionState>(); // key: iModelId, value: state
|
|
497
494
|
private _timeFetched = new Date();
|
|
@@ -503,8 +500,8 @@ export class BulkExtractor {
|
|
|
503
500
|
private _iModels: string[] = [];
|
|
504
501
|
|
|
505
502
|
constructor(
|
|
506
|
-
reportsClient:
|
|
507
|
-
extractionClient:
|
|
503
|
+
reportsClient: IReportsClient,
|
|
504
|
+
extractionClient: IExtractionClient,
|
|
508
505
|
getAccessToken: () => Promise<AccessToken>,
|
|
509
506
|
successfulExtractionToast: (iModelName: string, odataFeedUrl: string) => void,
|
|
510
507
|
failedExtractionToast: (iModelName: string) => void,
|
|
@@ -676,7 +673,7 @@ export class BulkExtractor {
|
|
|
676
673
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
677
674
|
Code coverage generated by
|
|
678
675
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
679
|
-
at 2024-
|
|
676
|
+
at 2024-09-12T12:15:28.324Z
|
|
680
677
|
</div>
|
|
681
678
|
<script src="../../../prettify.js"></script>
|
|
682
679
|
<script>
|
|
@@ -97,7 +97,7 @@ export const IMODELS_BASE_URL = "https://api.bentley.com/imodels";
|
|
|
97
97
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
98
98
|
Code coverage generated by
|
|
99
99
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
100
|
-
at 2024-
|
|
100
|
+
at 2024-09-12T12:15:28.324Z
|
|
101
101
|
</div>
|
|
102
102
|
<script src="../../../prettify.js"></script>
|
|
103
103
|
<script>
|
|
@@ -262,7 +262,7 @@ export default DeleteModal;
|
|
|
262
262
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
263
263
|
Code coverage generated by
|
|
264
264
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
265
|
-
at 2024-
|
|
265
|
+
at 2024-09-12T12:15:28.324Z
|
|
266
266
|
</div>
|
|
267
267
|
<script src="../../../prettify.js"></script>
|
|
268
268
|
<script>
|
package/coverage/lcov-report/src/widget/components/ExtractionStates/FailedExtractionState.tsx.html
CHANGED
|
@@ -157,7 +157,7 @@ export const FailedExtractionState = <span class="fstat-no" title="function not
|
|
|
157
157
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
158
158
|
Code coverage generated by
|
|
159
159
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
160
|
-
at 2024-
|
|
160
|
+
at 2024-09-12T12:15:28.324Z
|
|
161
161
|
</div>
|
|
162
162
|
<script src="../../../../prettify.js"></script>
|
|
163
163
|
<script>
|
package/coverage/lcov-report/src/widget/components/ExtractionStates/QueuedExtractionState.tsx.html
CHANGED
|
@@ -115,7 +115,7 @@ export const QueuedExtractionState = () => (
|
|
|
115
115
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
116
116
|
Code coverage generated by
|
|
117
117
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
118
|
-
at 2024-
|
|
118
|
+
at 2024-09-12T12:15:28.324Z
|
|
119
119
|
</div>
|
|
120
120
|
<script src="../../../../prettify.js"></script>
|
|
121
121
|
<script>
|
package/coverage/lcov-report/src/widget/components/ExtractionStates/RunningExtractionState.tsx.html
CHANGED
|
@@ -109,7 +109,7 @@ export const RunningExtractionState = () => (
|
|
|
109
109
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
110
110
|
Code coverage generated by
|
|
111
111
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
112
|
-
at 2024-
|
|
112
|
+
at 2024-09-12T12:15:28.324Z
|
|
113
113
|
</div>
|
|
114
114
|
<script src="../../../../prettify.js"></script>
|
|
115
115
|
<script>
|
package/coverage/lcov-report/src/widget/components/ExtractionStates/StartingExtractionState.tsx.html
CHANGED
|
@@ -115,7 +115,7 @@ export const StartingExtractionState = () => (
|
|
|
115
115
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
116
116
|
Code coverage generated by
|
|
117
117
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
118
|
-
at 2024-
|
|
118
|
+
at 2024-09-12T12:15:28.324Z
|
|
119
119
|
</div>
|
|
120
120
|
<script src="../../../../prettify.js"></script>
|
|
121
121
|
<script>
|
|
@@ -160,7 +160,7 @@ export const SucceededExtractionState = ({ animation, onAnimationEnd }: Extracti
|
|
|
160
160
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
161
161
|
Code coverage generated by
|
|
162
162
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
163
|
-
at 2024-
|
|
163
|
+
at 2024-09-12T12:15:28.324Z
|
|
164
164
|
</div>
|
|
165
165
|
<script src="../../../../prettify.js"></script>
|
|
166
166
|
<script>
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
162
162
|
Code coverage generated by
|
|
163
163
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
164
|
-
at 2024-
|
|
164
|
+
at 2024-09-12T12:15:28.324Z
|
|
165
165
|
</div>
|
|
166
166
|
<script src="../../../../prettify.js"></script>
|
|
167
167
|
<script>
|
|
@@ -253,7 +253,7 @@ export const ExtractionStatus = ({ state, clearExtractionState }: ExtractionStat
|
|
|
253
253
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
254
254
|
Code coverage generated by
|
|
255
255
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
256
|
-
at 2024-
|
|
256
|
+
at 2024-09-12T12:15:28.324Z
|
|
257
257
|
</div>
|
|
258
258
|
<script src="../../../prettify.js"></script>
|
|
259
259
|
<script>
|
|
@@ -202,7 +202,7 @@ export const FailedExtractionToast = <span class="fstat-no" title="function not
|
|
|
202
202
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
203
203
|
Code coverage generated by
|
|
204
204
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
205
|
-
at 2024-
|
|
205
|
+
at 2024-09-12T12:15:28.324Z
|
|
206
206
|
</div>
|
|
207
207
|
<script src="../../../prettify.js"></script>
|
|
208
208
|
<script>
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
<span class="cline-any cline-neutral"> </span>
|
|
132
132
|
<span class="cline-any cline-neutral"> </span>
|
|
133
133
|
<span class="cline-any cline-yes">7x</span>
|
|
134
|
-
<span class="cline-any cline-yes">
|
|
134
|
+
<span class="cline-any cline-yes">201x</span>
|
|
135
135
|
<span class="cline-any cline-neutral"> </span>
|
|
136
|
-
<span class="cline-any cline-yes">
|
|
136
|
+
<span class="cline-any cline-yes">201x</span>
|
|
137
137
|
<span class="cline-any cline-neutral"> </span>
|
|
138
138
|
<span class="cline-any cline-neutral"> </span>
|
|
139
139
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -211,7 +211,7 @@ export const HorizontalTile = (props: HorizontalTileProps) => {
|
|
|
211
211
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
212
212
|
Code coverage generated by
|
|
213
213
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
214
|
-
at 2024-
|
|
214
|
+
at 2024-09-12T12:15:28.324Z
|
|
215
215
|
</div>
|
|
216
216
|
<script src="../../../prettify.js"></script>
|
|
217
217
|
<script>
|
|
@@ -154,7 +154,7 @@ export const LocalizedTablePaginator = (props: TablePaginatorRendererProps) =>
|
|
|
154
154
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
155
155
|
Code coverage generated by
|
|
156
156
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
157
|
-
at 2024-
|
|
157
|
+
at 2024-09-12T12:15:28.324Z
|
|
158
158
|
</div>
|
|
159
159
|
<script src="../../../prettify.js"></script>
|
|
160
160
|
<script>
|
|
@@ -418,7 +418,7 @@ export const ReportAction = ({ report, onSaveSuccess, onClickCancel }: ReportAct
|
|
|
418
418
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
419
419
|
Code coverage generated by
|
|
420
420
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
421
|
-
at 2024-
|
|
421
|
+
at 2024-09-12T12:15:28.324Z
|
|
422
422
|
</div>
|
|
423
423
|
<script src="../../../prettify.js"></script>
|
|
424
424
|
<script>
|
|
@@ -209,26 +209,26 @@
|
|
|
209
209
|
<span class="cline-any cline-neutral"> </span>
|
|
210
210
|
<span class="cline-any cline-neutral"> </span>
|
|
211
211
|
<span class="cline-any cline-yes">7x</span>
|
|
212
|
-
<span class="cline-any cline-yes">
|
|
213
|
-
<span class="cline-any cline-yes">
|
|
214
|
-
<span class="cline-any cline-yes">
|
|
212
|
+
<span class="cline-any cline-yes">183x</span>
|
|
213
|
+
<span class="cline-any cline-yes">183x</span>
|
|
214
|
+
<span class="cline-any cline-yes">183x</span>
|
|
215
215
|
<span class="cline-any cline-neutral"> </span>
|
|
216
|
-
<span class="cline-any cline-yes">
|
|
217
|
-
<span class="cline-any cline-yes">
|
|
216
|
+
<span class="cline-any cline-yes">183x</span>
|
|
217
|
+
<span class="cline-any cline-yes">32x</span>
|
|
218
218
|
<span class="cline-any cline-no"> </span>
|
|
219
219
|
<span class="cline-any cline-no"> </span>
|
|
220
220
|
<span class="cline-any cline-no"> </span>
|
|
221
221
|
<span class="cline-any cline-neutral"> </span>
|
|
222
222
|
<span class="cline-any cline-neutral"> </span>
|
|
223
|
-
<span class="cline-any cline-yes">
|
|
223
|
+
<span class="cline-any cline-yes">32x</span>
|
|
224
224
|
<span class="cline-any cline-neutral"> </span>
|
|
225
|
-
<span class="cline-any cline-yes">
|
|
226
|
-
<span class="cline-any cline-yes">
|
|
225
|
+
<span class="cline-any cline-yes">32x</span>
|
|
226
|
+
<span class="cline-any cline-yes">32x</span>
|
|
227
227
|
<span class="cline-any cline-neutral"> </span>
|
|
228
228
|
<span class="cline-any cline-neutral"> </span>
|
|
229
229
|
<span class="cline-any cline-neutral"> </span>
|
|
230
|
-
<span class="cline-any cline-yes">
|
|
231
|
-
<span class="cline-any cline-yes">
|
|
230
|
+
<span class="cline-any cline-yes">183x</span>
|
|
231
|
+
<span class="cline-any cline-yes">32x</span>
|
|
232
232
|
<span class="cline-any cline-no"> </span>
|
|
233
233
|
<span class="cline-any cline-no"> </span>
|
|
234
234
|
<span class="cline-any cline-no"> </span>
|
|
@@ -240,16 +240,16 @@
|
|
|
240
240
|
<span class="cline-any cline-neutral"> </span>
|
|
241
241
|
<span class="cline-any cline-neutral"> </span>
|
|
242
242
|
<span class="cline-any cline-neutral"> </span>
|
|
243
|
-
<span class="cline-any cline-yes">
|
|
243
|
+
<span class="cline-any cline-yes">32x</span>
|
|
244
244
|
<span class="cline-any cline-neutral"> </span>
|
|
245
245
|
<span class="cline-any cline-neutral"> </span>
|
|
246
|
-
<span class="cline-any cline-yes">
|
|
246
|
+
<span class="cline-any cline-yes">183x</span>
|
|
247
247
|
<span class="cline-any cline-yes">4x</span>
|
|
248
248
|
<span class="cline-any cline-yes">4x</span>
|
|
249
249
|
<span class="cline-any cline-neutral"> </span>
|
|
250
250
|
<span class="cline-any cline-neutral"> </span>
|
|
251
251
|
<span class="cline-any cline-neutral"> </span>
|
|
252
|
-
<span class="cline-any cline-yes">
|
|
252
|
+
<span class="cline-any cline-yes">183x</span>
|
|
253
253
|
<span class="cline-any cline-neutral"> </span>
|
|
254
254
|
<span class="cline-any cline-neutral"> </span>
|
|
255
255
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
<span class="cline-any cline-neutral"> </span>
|
|
264
264
|
<span class="cline-any cline-neutral"> </span>
|
|
265
265
|
<span class="cline-any cline-neutral"> </span>
|
|
266
|
-
<span class="cline-any cline-yes">
|
|
266
|
+
<span class="cline-any cline-yes">183x</span>
|
|
267
267
|
<span class="cline-any cline-neutral"> </span>
|
|
268
268
|
<span class="cline-any cline-yes">2x</span>
|
|
269
269
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -427,7 +427,7 @@ export const ReportHorizontalTile = (props: ReportHorizontalTileProps) => {
|
|
|
427
427
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
428
428
|
Code coverage generated by
|
|
429
429
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
430
|
-
at 2024-
|
|
430
|
+
at 2024-09-12T12:15:28.324Z
|
|
431
431
|
</div>
|
|
432
432
|
<script src="../../../prettify.js"></script>
|
|
433
433
|
<script>
|
|
@@ -430,7 +430,7 @@ export const ReportMappingHorizontalTile = (props: ReportMappingHorizontalTilePr
|
|
|
430
430
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
431
431
|
Code coverage generated by
|
|
432
432
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
433
|
-
at 2024-
|
|
433
|
+
at 2024-09-12T12:15:28.324Z
|
|
434
434
|
</div>
|
|
435
435
|
<script src="../../../prettify.js"></script>
|
|
436
436
|
<script>
|