@itwin/reports-config-widget-react 0.0.7 → 0.1.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/.rush/temp/package-deps_rebuild.json +24 -14
- package/.rush/temp/shrinkwrap-deps.json +17 -17
- package/CHANGELOG.json +24 -0
- package/CHANGELOG.md +15 -1
- package/coverage/clover.xml +354 -128
- package/coverage/coverage-final.json +17 -8
- package/coverage/lcov-report/index.html +36 -21
- 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 +1 -1
- package/coverage/lcov-report/src/widget/components/ActionPanel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/AddMappingsModal.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/BulkExtractor.ts.html +553 -0
- package/coverage/lcov-report/src/widget/components/Constants.ts.html +106 -0
- package/coverage/lcov-report/src/widget/components/DeleteModal.tsx.html +4 -4
- package/coverage/lcov-report/src/widget/components/Extraction.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/FailedExtractionState.tsx.html +187 -0
- package/coverage/lcov-report/src/widget/components/ExtractionStates/QueuedExtractionState.tsx.html +145 -0
- package/coverage/lcov-report/src/widget/components/ExtractionStates/RunningExtractionState.tsx.html +139 -0
- package/coverage/lcov-report/src/widget/components/ExtractionStates/StartingExtractionState.tsx.html +151 -0
- package/coverage/lcov-report/src/widget/components/ExtractionStates/SucceededExtractionState.tsx.html +187 -0
- package/coverage/lcov-report/src/widget/components/ExtractionStates/index.html +176 -0
- package/coverage/lcov-report/src/widget/components/ExtractionStatus.tsx.html +295 -0
- package/coverage/lcov-report/src/widget/components/HorizontalTile.tsx.html +73 -40
- 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 +478 -0
- package/coverage/lcov-report/src/widget/components/ReportMappings.tsx.html +6 -24
- package/coverage/lcov-report/src/widget/components/Reports.tsx.html +129 -111
- package/coverage/lcov-report/src/widget/components/ReportsContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/SearchBar.tsx.html +5 -5
- package/coverage/lcov-report/src/widget/components/SelectIModel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/index.html +83 -23
- package/coverage/lcov-report/src/widget/components/utils.tsx.html +3 -3
- package/coverage/lcov-report/src/widget/context/ReportsApiConfigContext.tsx.html +4 -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 +1 -1
- package/coverage/lcov.info +699 -287
- package/jest.config.js +1 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/widget/components/BulkExtractor.d.ts +28 -0
- package/lib/cjs/widget/components/BulkExtractor.d.ts.map +1 -0
- package/lib/cjs/widget/components/BulkExtractor.js +126 -0
- package/lib/cjs/widget/components/BulkExtractor.js.map +1 -0
- package/lib/cjs/widget/components/Constants.d.ts +4 -0
- package/lib/cjs/widget/components/Constants.d.ts.map +1 -0
- package/lib/cjs/widget/components/Constants.js +11 -0
- package/lib/cjs/widget/components/Constants.js.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/FailedExtractionState.d.ts +8 -0
- package/lib/cjs/widget/components/ExtractionStates/FailedExtractionState.d.ts.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/FailedExtractionState.js +23 -0
- package/lib/cjs/widget/components/ExtractionStates/FailedExtractionState.js.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/QueuedExtractionState.d.ts +3 -0
- package/lib/cjs/widget/components/ExtractionStates/QueuedExtractionState.d.ts.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/QueuedExtractionState.js +18 -0
- package/lib/cjs/widget/components/ExtractionStates/QueuedExtractionState.js.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/RunningExtractionState.d.ts +3 -0
- package/lib/cjs/widget/components/ExtractionStates/RunningExtractionState.d.ts.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/RunningExtractionState.js +17 -0
- package/lib/cjs/widget/components/ExtractionStates/RunningExtractionState.js.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/StartingExtractionState.d.ts +3 -0
- package/lib/cjs/widget/components/ExtractionStates/StartingExtractionState.d.ts.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/StartingExtractionState.js +18 -0
- package/lib/cjs/widget/components/ExtractionStates/StartingExtractionState.js.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/SucceededExtractionState.d.ts +8 -0
- package/lib/cjs/widget/components/ExtractionStates/SucceededExtractionState.d.ts.map +1 -0
- package/lib/cjs/widget/components/ExtractionStates/SucceededExtractionState.js +23 -0
- package/lib/cjs/widget/components/ExtractionStates/SucceededExtractionState.js.map +1 -0
- package/lib/cjs/widget/components/ExtractionStatus.d.ts +17 -0
- package/lib/cjs/widget/components/ExtractionStatus.d.ts.map +1 -0
- package/lib/cjs/widget/components/ExtractionStatus.js +76 -0
- package/lib/cjs/widget/components/ExtractionStatus.js.map +1 -0
- package/lib/cjs/widget/components/ExtractionStatus.scss +27 -0
- package/lib/cjs/widget/components/HorizontalTile.d.ts +8 -7
- package/lib/cjs/widget/components/HorizontalTile.d.ts.map +1 -1
- package/lib/cjs/widget/components/HorizontalTile.js +10 -6
- package/lib/cjs/widget/components/HorizontalTile.js.map +1 -1
- package/lib/cjs/widget/components/HorizontalTile.scss +42 -22
- package/lib/cjs/widget/components/ReportHorizontalTile.d.ts +16 -0
- package/lib/cjs/widget/components/ReportHorizontalTile.d.ts.map +1 -0
- package/lib/cjs/widget/components/ReportHorizontalTile.js +72 -0
- package/lib/cjs/widget/components/ReportHorizontalTile.js.map +1 -0
- package/lib/cjs/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportMappings.js +1 -1
- 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 +34 -26
- package/lib/cjs/widget/components/Reports.js.map +1 -1
- package/lib/cjs/widget/components/Reports.scss +7 -3
- package/lib/cjs/widget/components/ReportsContainer.scss +3 -0
- package/lib/cjs/widget/components/SearchBar.js +1 -1
- package/lib/cjs/widget/components/SearchBar.js.map +1 -1
- package/lib/cjs/widget/components/SearchBar.scss +6 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/widget/components/BulkExtractor.d.ts +28 -0
- package/lib/esm/widget/components/BulkExtractor.d.ts.map +1 -0
- package/lib/esm/widget/components/BulkExtractor.js +123 -0
- package/lib/esm/widget/components/BulkExtractor.js.map +1 -0
- package/lib/esm/widget/components/Constants.d.ts +4 -0
- package/lib/esm/widget/components/Constants.d.ts.map +1 -0
- package/lib/esm/widget/components/Constants.js +8 -0
- package/lib/esm/widget/components/Constants.js.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/FailedExtractionState.d.ts +8 -0
- package/lib/esm/widget/components/ExtractionStates/FailedExtractionState.d.ts.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/FailedExtractionState.js +16 -0
- package/lib/esm/widget/components/ExtractionStates/FailedExtractionState.js.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/QueuedExtractionState.d.ts +3 -0
- package/lib/esm/widget/components/ExtractionStates/QueuedExtractionState.d.ts.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/QueuedExtractionState.js +11 -0
- package/lib/esm/widget/components/ExtractionStates/QueuedExtractionState.js.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/RunningExtractionState.d.ts +3 -0
- package/lib/esm/widget/components/ExtractionStates/RunningExtractionState.d.ts.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/RunningExtractionState.js +10 -0
- package/lib/esm/widget/components/ExtractionStates/RunningExtractionState.js.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/StartingExtractionState.d.ts +3 -0
- package/lib/esm/widget/components/ExtractionStates/StartingExtractionState.d.ts.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/StartingExtractionState.js +11 -0
- package/lib/esm/widget/components/ExtractionStates/StartingExtractionState.js.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/SucceededExtractionState.d.ts +8 -0
- package/lib/esm/widget/components/ExtractionStates/SucceededExtractionState.d.ts.map +1 -0
- package/lib/esm/widget/components/ExtractionStates/SucceededExtractionState.js +16 -0
- package/lib/esm/widget/components/ExtractionStates/SucceededExtractionState.js.map +1 -0
- package/lib/esm/widget/components/ExtractionStatus.d.ts +17 -0
- package/lib/esm/widget/components/ExtractionStatus.d.ts.map +1 -0
- package/lib/esm/widget/components/ExtractionStatus.js +53 -0
- package/lib/esm/widget/components/ExtractionStatus.js.map +1 -0
- package/lib/esm/widget/components/ExtractionStatus.scss +27 -0
- package/lib/esm/widget/components/HorizontalTile.d.ts +8 -7
- package/lib/esm/widget/components/HorizontalTile.d.ts.map +1 -1
- package/lib/esm/widget/components/HorizontalTile.js +10 -6
- package/lib/esm/widget/components/HorizontalTile.js.map +1 -1
- package/lib/esm/widget/components/HorizontalTile.scss +42 -22
- package/lib/esm/widget/components/ReportHorizontalTile.d.ts +16 -0
- package/lib/esm/widget/components/ReportHorizontalTile.d.ts.map +1 -0
- package/lib/esm/widget/components/ReportHorizontalTile.js +65 -0
- package/lib/esm/widget/components/ReportHorizontalTile.js.map +1 -0
- package/lib/esm/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportMappings.js +1 -1
- 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 +36 -28
- package/lib/esm/widget/components/Reports.js.map +1 -1
- package/lib/esm/widget/components/Reports.scss +7 -3
- package/lib/esm/widget/components/ReportsContainer.scss +3 -0
- package/lib/esm/widget/components/SearchBar.js +1 -1
- package/lib/esm/widget/components/SearchBar.js.map +1 -1
- package/lib/esm/widget/components/SearchBar.scss +6 -0
- package/lib/public/locales/en/ReportsConfigWidget.json +2 -1
- package/package.json +5 -2
- package/public/locales/en/ReportsConfigWidget.json +2 -1
- package/reports-config-widget-react.build.error.log +4 -4
- package/reports-config-widget-react.build.log +44 -34
- package/src/widget/components/BulkExtractor.ts +156 -0
- package/src/widget/components/Constants.ts +7 -0
- package/src/widget/components/ExtractionStates/FailedExtractionState.tsx +34 -0
- package/src/widget/components/ExtractionStates/QueuedExtractionState.tsx +20 -0
- package/src/widget/components/ExtractionStates/RunningExtractionState.tsx +18 -0
- package/src/widget/components/ExtractionStates/StartingExtractionState.tsx +22 -0
- package/src/widget/components/ExtractionStates/SucceededExtractionState.tsx +34 -0
- package/src/widget/components/ExtractionStatus.scss +27 -0
- package/src/widget/components/ExtractionStatus.tsx +70 -0
- package/src/widget/components/HorizontalTile.scss +42 -22
- package/src/widget/components/HorizontalTile.tsx +45 -34
- package/src/widget/components/ReportHorizontalTile.tsx +131 -0
- package/src/widget/components/ReportMappings.tsx +4 -10
- package/src/widget/components/Reports.scss +7 -3
- package/src/widget/components/Reports.tsx +66 -60
- package/src/widget/components/ReportsContainer.scss +3 -0
- package/src/widget/components/SearchBar.scss +6 -0
- package/src/widget/components/SearchBar.tsx +1 -1
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for src/widget/components/ExtractionStatus.tsx</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/widget/components</a> ExtractionStatus.tsx</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">51.42% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>18/35</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">20% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>2/10</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">16.66% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>1/6</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">53.12% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>17/32</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line medium'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
|
103
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
|
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>
|
|
113
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
+
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
+
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
+
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
+
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
+
<a name='L63'></a><a href='#L63'>63</a>
|
|
129
|
+
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
|
+
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
|
+
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
+
<a name='L67'></a><a href='#L67'>67</a>
|
|
133
|
+
<a name='L68'></a><a href='#L68'>68</a>
|
|
134
|
+
<a name='L69'></a><a href='#L69'>69</a>
|
|
135
|
+
<a name='L70'></a><a href='#L70'>70</a>
|
|
136
|
+
<a name='L71'></a><a href='#L71'>71</a></td><td class="line-coverage quiet"><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-neutral"> </span>
|
|
140
|
+
<span class="cline-any cline-yes">4x</span>
|
|
141
|
+
<span class="cline-any cline-yes">4x</span>
|
|
142
|
+
<span class="cline-any cline-yes">4x</span>
|
|
143
|
+
<span class="cline-any cline-yes">4x</span>
|
|
144
|
+
<span class="cline-any cline-yes">4x</span>
|
|
145
|
+
<span class="cline-any cline-yes">4x</span>
|
|
146
|
+
<span class="cline-any cline-yes">4x</span>
|
|
147
|
+
<span class="cline-any cline-yes">4x</span>
|
|
148
|
+
<span class="cline-any cline-yes">4x</span>
|
|
149
|
+
<span class="cline-any cline-neutral"> </span>
|
|
150
|
+
<span class="cline-any cline-yes">4x</span>
|
|
151
|
+
<span class="cline-any cline-yes">4x</span>
|
|
152
|
+
<span class="cline-any cline-yes">4x</span>
|
|
153
|
+
<span class="cline-any cline-yes">4x</span>
|
|
154
|
+
<span class="cline-any cline-yes">4x</span>
|
|
155
|
+
<span class="cline-any cline-yes">4x</span>
|
|
156
|
+
<span class="cline-any cline-yes">4x</span>
|
|
157
|
+
<span class="cline-any cline-neutral"> </span>
|
|
158
|
+
<span class="cline-any cline-neutral"> </span>
|
|
159
|
+
<span class="cline-any cline-neutral"> </span>
|
|
160
|
+
<span class="cline-any cline-neutral"> </span>
|
|
161
|
+
<span class="cline-any cline-neutral"> </span>
|
|
162
|
+
<span class="cline-any cline-neutral"> </span>
|
|
163
|
+
<span class="cline-any cline-neutral"> </span>
|
|
164
|
+
<span class="cline-any cline-yes">4x</span>
|
|
165
|
+
<span class="cline-any cline-neutral"> </span>
|
|
166
|
+
<span class="cline-any cline-neutral"> </span>
|
|
167
|
+
<span class="cline-any cline-neutral"> </span>
|
|
168
|
+
<span class="cline-any cline-no"> </span>
|
|
169
|
+
<span class="cline-any cline-neutral"> </span>
|
|
170
|
+
<span class="cline-any cline-no"> </span>
|
|
171
|
+
<span class="cline-any cline-no"> </span>
|
|
172
|
+
<span class="cline-any cline-no"> </span>
|
|
173
|
+
<span class="cline-any cline-neutral"> </span>
|
|
174
|
+
<span class="cline-any cline-neutral"> </span>
|
|
175
|
+
<span class="cline-any cline-no"> </span>
|
|
176
|
+
<span class="cline-any cline-neutral"> </span>
|
|
177
|
+
<span class="cline-any cline-no"> </span>
|
|
178
|
+
<span class="cline-any cline-neutral"> </span>
|
|
179
|
+
<span class="cline-any cline-neutral"> </span>
|
|
180
|
+
<span class="cline-any cline-no"> </span>
|
|
181
|
+
<span class="cline-any cline-neutral"> </span>
|
|
182
|
+
<span class="cline-any cline-no"> </span>
|
|
183
|
+
<span class="cline-any cline-neutral"> </span>
|
|
184
|
+
<span class="cline-any cline-neutral"> </span>
|
|
185
|
+
<span class="cline-any cline-no"> </span>
|
|
186
|
+
<span class="cline-any cline-neutral"> </span>
|
|
187
|
+
<span class="cline-any cline-no"> </span>
|
|
188
|
+
<span class="cline-any cline-neutral"> </span>
|
|
189
|
+
<span class="cline-any cline-no"> </span>
|
|
190
|
+
<span class="cline-any cline-neutral"> </span>
|
|
191
|
+
<span class="cline-any cline-no"> </span>
|
|
192
|
+
<span class="cline-any cline-neutral"> </span>
|
|
193
|
+
<span class="cline-any cline-no"> </span>
|
|
194
|
+
<span class="cline-any cline-neutral"> </span>
|
|
195
|
+
<span class="cline-any cline-neutral"> </span>
|
|
196
|
+
<span class="cline-any cline-neutral"> </span>
|
|
197
|
+
<span class="cline-any cline-neutral"> </span>
|
|
198
|
+
<span class="cline-any cline-no"> </span>
|
|
199
|
+
<span class="cline-any cline-neutral"> </span>
|
|
200
|
+
<span class="cline-any cline-neutral"> </span>
|
|
201
|
+
<span class="cline-any cline-neutral"> </span>
|
|
202
|
+
<span class="cline-any cline-neutral"> </span>
|
|
203
|
+
<span class="cline-any cline-no"> </span>
|
|
204
|
+
<span class="cline-any cline-neutral"> </span>
|
|
205
|
+
<span class="cline-any cline-neutral"> </span>
|
|
206
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/*---------------------------------------------------------------------------------------------
|
|
207
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
208
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
209
|
+
*--------------------------------------------------------------------------------------------*/
|
|
210
|
+
import * as React from "react";
|
|
211
|
+
import { useEffect, useState } from "react";
|
|
212
|
+
import "./ExtractionStatus.scss";
|
|
213
|
+
import { STATUS_CHECK_INTERVAL } from "./Constants";
|
|
214
|
+
import { StartingExtractionState } from "./ExtractionStates/StartingExtractionState";
|
|
215
|
+
import { RunningExtractionState } from "./ExtractionStates/RunningExtractionState";
|
|
216
|
+
import { FailedExtractionState } from "./ExtractionStates/FailedExtractionState";
|
|
217
|
+
import { QueuedExtractionState } from "./ExtractionStates/QueuedExtractionState";
|
|
218
|
+
import { SucceededExtractionState } from "./ExtractionStates/SucceededExtractionState";
|
|
219
|
+
|
|
220
|
+
export enum ExtractionStates {
|
|
221
|
+
None,
|
|
222
|
+
Starting,
|
|
223
|
+
Queued,
|
|
224
|
+
Running,
|
|
225
|
+
Succeeded,
|
|
226
|
+
Failed,
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
interface ExtractionStatusProps {
|
|
230
|
+
state: ExtractionStates;
|
|
231
|
+
clearExtractionState: () => void;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export const ExtractionStatus = <span class="fstat-no" title="function not covered" >({</span>
|
|
235
|
+
state,
|
|
236
|
+
clearExtractionState,
|
|
237
|
+
}: ExtractionStatusProps) => {
|
|
238
|
+
const [fadeOut, setFadeOut] = <span class="cstat-no" title="statement not covered" >useState<boolean>(false);</span>
|
|
239
|
+
|
|
240
|
+
const onAnimationEnd = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >() =</span>> {</span>
|
|
241
|
+
<span class="cstat-no" title="statement not covered" > clearExtractionState();</span>
|
|
242
|
+
<span class="cstat-no" title="statement not covered" > setFadeOut(false);</span>
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
<span class="cstat-no" title="statement not covered" > useEffect(<span class="fstat-no" title="function not covered" >() =</span>> {</span>
|
|
246
|
+
let timer: number;
|
|
247
|
+
<span class="cstat-no" title="statement not covered" > switch (state) {</span>
|
|
248
|
+
case ExtractionStates.Succeeded:
|
|
249
|
+
case ExtractionStates.Failed:
|
|
250
|
+
<span class="cstat-no" title="statement not covered" > timer = window.setTimeout(<span class="fstat-no" title="function not covered" >() =</span>> <span class="cstat-no" title="statement not covered" >setFadeOut(true),</span> STATUS_CHECK_INTERVAL);</span>
|
|
251
|
+
}
|
|
252
|
+
<span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >() =</span>> <span class="cstat-no" title="statement not covered" >window.clearTimeout(timer);</span></span>
|
|
253
|
+
}, [state]);
|
|
254
|
+
|
|
255
|
+
<span class="cstat-no" title="statement not covered" > switch (state) {</span>
|
|
256
|
+
case ExtractionStates.Starting:
|
|
257
|
+
<span class="cstat-no" title="statement not covered" > return (<StartingExtractionState />);</span>
|
|
258
|
+
case ExtractionStates.Queued:
|
|
259
|
+
<span class="cstat-no" title="statement not covered" > return (<QueuedExtractionState />);</span>
|
|
260
|
+
case ExtractionStates.Running:
|
|
261
|
+
<span class="cstat-no" title="statement not covered" > return (<RunningExtractionState />);</span>
|
|
262
|
+
case ExtractionStates.Succeeded:
|
|
263
|
+
<span class="cstat-no" title="statement not covered" > return (<SucceededExtractionState</span>
|
|
264
|
+
animation={fadeOut}
|
|
265
|
+
onAnimationEnd={onAnimationEnd}
|
|
266
|
+
/>);
|
|
267
|
+
case ExtractionStates.Failed:
|
|
268
|
+
<span class="cstat-no" title="statement not covered" > return (<FailedExtractionState</span>
|
|
269
|
+
animation={fadeOut}
|
|
270
|
+
onAnimationEnd={onAnimationEnd}
|
|
271
|
+
/>);
|
|
272
|
+
default:
|
|
273
|
+
<span class="cstat-no" title="statement not covered" > return <></>;</span>
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
</pre></td></tr></table></pre>
|
|
277
|
+
|
|
278
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
279
|
+
</div><!-- /wrapper -->
|
|
280
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
281
|
+
Code coverage generated by
|
|
282
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
283
|
+
at Mon Oct 31 2022 19:03:26 GMT+0000 (Coordinated Universal Time)
|
|
284
|
+
</div>
|
|
285
|
+
<script src="../../../prettify.js"></script>
|
|
286
|
+
<script>
|
|
287
|
+
window.onload = function () {
|
|
288
|
+
prettyPrint();
|
|
289
|
+
};
|
|
290
|
+
</script>
|
|
291
|
+
<script src="../../../sorter.js"></script>
|
|
292
|
+
<script src="../../../block-navigation.js"></script>
|
|
293
|
+
</body>
|
|
294
|
+
</html>
|
|
295
|
+
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>8/8</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">100% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>2/2</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>7/7</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -120,7 +120,18 @@
|
|
|
120
120
|
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
121
|
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
122
|
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
-
<a name='L58'></a><a href='#L58'>58</a
|
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
+
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
+
<a name='L63'></a><a href='#L63'>63</a>
|
|
129
|
+
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
|
+
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
|
+
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
+
<a name='L67'></a><a href='#L67'>67</a>
|
|
133
|
+
<a name='L68'></a><a href='#L68'>68</a>
|
|
134
|
+
<a name='L69'></a><a href='#L69'>69</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
124
135
|
<span class="cline-any cline-neutral"> </span>
|
|
125
136
|
<span class="cline-any cline-neutral"> </span>
|
|
126
137
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -128,6 +139,8 @@
|
|
|
128
139
|
<span class="cline-any cline-yes">4x</span>
|
|
129
140
|
<span class="cline-any cline-yes">4x</span>
|
|
130
141
|
<span class="cline-any cline-yes">4x</span>
|
|
142
|
+
<span class="cline-any cline-yes">4x</span>
|
|
143
|
+
<span class="cline-any cline-neutral"> </span>
|
|
131
144
|
<span class="cline-any cline-neutral"> </span>
|
|
132
145
|
<span class="cline-any cline-neutral"> </span>
|
|
133
146
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -146,7 +159,16 @@
|
|
|
146
159
|
<span class="cline-any cline-neutral"> </span>
|
|
147
160
|
<span class="cline-any cline-neutral"> </span>
|
|
148
161
|
<span class="cline-any cline-neutral"> </span>
|
|
149
|
-
<span class="cline-any cline-
|
|
162
|
+
<span class="cline-any cline-neutral"> </span>
|
|
163
|
+
<span class="cline-any cline-neutral"> </span>
|
|
164
|
+
<span class="cline-any cline-neutral"> </span>
|
|
165
|
+
<span class="cline-any cline-yes">357x</span>
|
|
166
|
+
<span class="cline-any cline-neutral"> </span>
|
|
167
|
+
<span class="cline-any cline-yes">357x</span>
|
|
168
|
+
<span class="cline-any cline-neutral"> </span>
|
|
169
|
+
<span class="cline-any cline-neutral"> </span>
|
|
170
|
+
<span class="cline-any cline-neutral"> </span>
|
|
171
|
+
<span class="cline-any cline-neutral"> </span>
|
|
150
172
|
<span class="cline-any cline-neutral"> </span>
|
|
151
173
|
<span class="cline-any cline-neutral"> </span>
|
|
152
174
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -185,51 +207,62 @@ import type { ReactNode } from "react";
|
|
|
185
207
|
import React from "react";
|
|
186
208
|
import { Text } from "@itwin/itwinui-react";
|
|
187
209
|
import "./HorizontalTile.scss";
|
|
210
|
+
import classNames from "classnames";
|
|
188
211
|
|
|
189
|
-
interface HorizontalTileProps {
|
|
212
|
+
export interface HorizontalTileProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
190
213
|
title: string;
|
|
191
|
-
|
|
192
|
-
subText
|
|
193
|
-
onClickTitle?:
|
|
194
|
-
titleTooltip
|
|
214
|
+
actionGroup: ReactNode;
|
|
215
|
+
subText: string;
|
|
216
|
+
onClickTitle?: React.MouseEventHandler;
|
|
217
|
+
titleTooltip: string;
|
|
195
218
|
subtextToolTip?: string;
|
|
219
|
+
selected?: boolean;
|
|
196
220
|
}
|
|
197
221
|
|
|
198
|
-
export const HorizontalTile = ({
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
222
|
+
export const HorizontalTile = (props: HorizontalTileProps) => {
|
|
223
|
+
const {
|
|
224
|
+
title,
|
|
225
|
+
titleTooltip,
|
|
226
|
+
subText,
|
|
227
|
+
subtextToolTip,
|
|
228
|
+
actionGroup,
|
|
229
|
+
selected,
|
|
230
|
+
className,
|
|
231
|
+
onClickTitle,
|
|
232
|
+
...rest
|
|
233
|
+
} = props;
|
|
234
|
+
|
|
206
235
|
return (
|
|
207
236
|
<div
|
|
208
|
-
className=
|
|
237
|
+
className={classNames(
|
|
238
|
+
"rcw-horizontal-tile-container",
|
|
239
|
+
{ "rcw-horizontal-tile-selected": selected },
|
|
240
|
+
className
|
|
241
|
+
)}
|
|
242
|
+
onClick={rest.onClick}
|
|
209
243
|
data-testid="horizontal-tile"
|
|
210
244
|
>
|
|
211
|
-
<div className="body">
|
|
212
|
-
<
|
|
213
|
-
className={
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
>
|
|
218
|
-
{title}
|
|
219
|
-
</Text>
|
|
220
|
-
{subText && (
|
|
221
|
-
<Text
|
|
222
|
-
className="body-text"
|
|
223
|
-
isMuted={true}
|
|
224
|
-
title={subtextToolTip}
|
|
225
|
-
variant="small"
|
|
226
|
-
>
|
|
227
|
-
{subText}
|
|
245
|
+
<div className="rcw-body-container">
|
|
246
|
+
<div className="rcw-body">
|
|
247
|
+
<Text className={classNames("rcw-body-text", { "iui-anchor": !!onClickTitle })}
|
|
248
|
+
onClick={onClickTitle}
|
|
249
|
+
variant="body"
|
|
250
|
+
title={titleTooltip}>{title}
|
|
228
251
|
</Text>
|
|
229
|
-
|
|
252
|
+
{
|
|
253
|
+
subText &&
|
|
254
|
+
<Text className="rcw-body-text"
|
|
255
|
+
isMuted={true}
|
|
256
|
+
title={subtextToolTip}
|
|
257
|
+
variant="small">{subText}
|
|
258
|
+
</Text>
|
|
259
|
+
}
|
|
260
|
+
</div>
|
|
230
261
|
</div>
|
|
231
|
-
<div
|
|
232
|
-
|
|
262
|
+
<div
|
|
263
|
+
className="rcw-action-button"
|
|
264
|
+
data-testid="tile-action-button">
|
|
265
|
+
{actionGroup}
|
|
233
266
|
</div>
|
|
234
267
|
</div>
|
|
235
268
|
);
|
|
@@ -241,7 +274,7 @@ export const HorizontalTile = ({
|
|
|
241
274
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
242
275
|
Code coverage generated by
|
|
243
276
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
244
|
-
at Mon
|
|
277
|
+
at Mon Oct 31 2022 19:03:26 GMT+0000 (Coordinated Universal Time)
|
|
245
278
|
</div>
|
|
246
279
|
<script src="../../../prettify.js"></script>
|
|
247
280
|
<script>
|
|
@@ -247,7 +247,7 @@ export const LocalizedTablePaginator = (props: TablePaginatorRendererProps) =>
|
|
|
247
247
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
248
248
|
Code coverage generated by
|
|
249
249
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
250
|
-
at Mon
|
|
250
|
+
at Mon Oct 31 2022 19:03:26 GMT+0000 (Coordinated Universal Time)
|
|
251
251
|
</div>
|
|
252
252
|
<script src="../../../prettify.js"></script>
|
|
253
253
|
<script>
|
|
@@ -508,7 +508,7 @@ export default ReportAction;
|
|
|
508
508
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
509
509
|
Code coverage generated by
|
|
510
510
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
511
|
-
at Mon
|
|
511
|
+
at Mon Oct 31 2022 19:03:26 GMT+0000 (Coordinated Universal Time)
|
|
512
512
|
</div>
|
|
513
513
|
<script src="../../../prettify.js"></script>
|
|
514
514
|
<script>
|