qpp-style 9.20.2 → 9.20.3
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/components/Footer/FooterUI.jsx +16 -14
- package/coverage/clover.xml +335 -291
- package/coverage/coverage-final.json +72 -71
- package/coverage/lcov-report/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/components/Accordion/index.jsx.html +4 -4
- package/coverage/lcov-report/components/{SideNav/AnimationGroup → Button}/index.html +30 -30
- package/coverage/lcov-report/components/{SideNav/Links/NavLinkInline.jsx.html → Button/index.js.html} +101 -152
- package/coverage/lcov-report/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/components/Error/index.html +1 -1
- package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +184 -358
- package/coverage/lcov-report/components/Footer/SocialLinks.jsx.html +11 -11
- package/coverage/lcov-report/components/Footer/Subscribe.jsx.html +11 -11
- package/coverage/lcov-report/components/Footer/index.html +29 -44
- package/coverage/lcov-report/components/{SideNav/UI → GovBanner}/index.html +27 -42
- package/coverage/lcov-report/components/GovBanner/index.js.html +436 -0
- package/coverage/lcov-report/components/Header/HeaderAccountMenu.jsx.html +592 -0
- package/coverage/lcov-report/components/{SideNav/Details/IndividualDetails.jsx.html → Header/HeaderCancel.jsx.html} +18 -24
- package/coverage/lcov-report/components/Header/HeaderContainer.jsx.html +280 -0
- package/coverage/lcov-report/components/{SideNav/Links/NavLinkContainer.jsx.html → Header/HeaderLogo.jsx.html} +72 -60
- package/coverage/lcov-report/components/{SideNav/Links/NavItemInline.jsx.html → Header/HeaderMenuButton.js.html} +63 -75
- package/coverage/lcov-report/components/{SideNav/Content/LevelTwoContent.jsx.html → Header/HeaderMenuItem.jsx.html} +305 -236
- package/coverage/lcov-report/components/Header/HeaderMenuLink.js.html +253 -0
- package/coverage/lcov-report/components/Header/HeaderMenuSignOutButton.js.html +271 -0
- package/coverage/lcov-report/components/Header/HeaderMobileButton.js.html +196 -0
- package/coverage/lcov-report/components/{Footer/LegacyFooterUI.jsx.html → Header/HeaderUI.jsx.html} +193 -274
- package/coverage/lcov-report/components/Header/HelpIcon.jsx.html +181 -0
- package/coverage/lcov-report/components/Header/ImpersonatorBanner.jsx.html +331 -0
- package/coverage/lcov-report/components/Header/NavigationButtonIcon.jsx.html +166 -0
- package/coverage/lcov-report/components/Header/hooks.js.html +241 -0
- package/coverage/lcov-report/components/Header/index.html +326 -0
- package/coverage/lcov-report/components/{SideNav/Links/index.js.html → Header/utag-helpers.js.html} +28 -40
- package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +2 -2
- package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +5 -5
- package/coverage/lcov-report/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +3 -3
- package/coverage/lcov-report/components/Modal/Modal.jsx.html +5 -5
- package/coverage/lcov-report/components/Modal/index.html +1 -1
- package/coverage/lcov-report/components/Modal/index.jsx.html +5 -5
- package/coverage/lcov-report/components/{SideNav/AnimationGroup/AnimationGroup.jsx.html → NotificationBanner/CollapsedView.js.html} +56 -41
- package/coverage/lcov-report/components/{SideNav/Details/PracticeDetails.jsx.html → NotificationBanner/ExpandedView.js.html} +64 -64
- package/coverage/lcov-report/components/{SideNav/Details → NotificationBanner}/index.html +40 -40
- package/coverage/lcov-report/components/{SideNav/Content/LevelOneContent.jsx.html → NotificationBanner/index.js.html} +283 -244
- package/coverage/lcov-report/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/components/SessionDialogUI.jsx.html +4 -4
- package/coverage/lcov-report/components/SideNav/Chart/ScoreChart.jsx.html +7 -7
- package/coverage/lcov-report/components/SideNav/Chart/index.html +1 -16
- package/coverage/lcov-report/components/SideNav/helpers.js.html +829 -10
- package/coverage/lcov-report/components/SideNav/index.html +17 -17
- package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +8 -8
- package/coverage/lcov-report/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/components/hooks/index.html +19 -19
- package/coverage/lcov-report/components/hooks/useGetConfig.js.html +39 -36
- package/coverage/lcov-report/components/index.html +1 -1
- package/coverage/lcov-report/index.html +63 -63
- package/coverage/lcov-report/lib/Chevron.jsx.html +5 -5
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +102 -12
- package/coverage/lcov-report/lib/index.html +15 -30
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/error.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +16 -16
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
- package/coverage/lcov-report/react/components/Footer/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +26 -8
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/header.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/hooks.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/index.html +17 -17
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +1 -1
- package/coverage/lcov-report/{components/SideNav/Links/NavLinkToggle.jsx.html → react/components/NotificationBanner/CollapsedView.js.html} +40 -46
- package/coverage/lcov-report/{components/SideNav/Links/CmsSwitchLink.jsx.html → react/components/NotificationBanner/ExpandedView.js.html} +55 -43
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +51 -21
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +172 -304
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +109 -31
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +14 -14
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +10 -16
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +51 -27
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +4 -16
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +197 -17
- package/coverage/lcov-report/react/components/SideNav/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +1 -1
- package/coverage/lcov-report/react/components/index.html +1 -1
- package/coverage/lcov-report/react/index.html +1 -1
- package/coverage/lcov-report/react/index.js.html +1 -1
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +57 -9
- package/coverage/lcov-report/react/lib/index.html +14 -29
- package/coverage/lcov-report/react/lib/svg-definitions.svg.html +1 -1
- package/coverage/lcov-report/react/session/index.html +1 -1
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/logout.js.html +1 -1
- package/coverage/lcov-report/react/session/refresh.js.html +1 -1
- package/coverage/lcov-report/react/session/ttl.js.html +1 -1
- package/coverage/lcov-report/session/index.html +20 -20
- package/coverage/lcov-report/session/index.js.html +1 -1
- package/coverage/lcov-report/session/logout.js.html +24 -15
- package/coverage/lcov-report/session/refresh.js.html +2 -2
- package/coverage/lcov-report/session/ttl.js.html +2 -2
- package/coverage/lcov.info +530 -454
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/qppds/components/_footer.scss +2 -0
- package/coverage/lcov-report/components/SideNav/Chart/index.js.html +0 -94
- package/coverage/lcov-report/components/SideNav/Content/index.html +0 -146
- package/coverage/lcov-report/components/SideNav/Content/index.js.html +0 -97
- package/coverage/lcov-report/components/SideNav/Details/index.js.html +0 -97
- package/coverage/lcov-report/components/SideNav/Links/NavLinkDrawer.jsx.html +0 -832
- package/coverage/lcov-report/components/SideNav/Links/index.html +0 -206
- package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +0 -1084
- package/coverage/lcov-report/components/SideNav/UI/index.js.html +0 -94
- package/coverage/lcov-report/lib/svg-definitions.svg.html +0 -460
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/
|
|
6
|
+
<title>Code coverage report for components/Header/HeaderMenuItem.jsx</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
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
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,34 +19,34 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">components/Header</a> HeaderMenuItem.jsx</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">57.77% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>26/45</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">27.77% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>10/36</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">38.46% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>5/13</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">56.81% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>25/44</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line medium'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -279,12 +279,30 @@
|
|
|
279
279
|
<a name='L214'></a><a href='#L214'>214</a>
|
|
280
280
|
<a name='L215'></a><a href='#L215'>215</a>
|
|
281
281
|
<a name='L216'></a><a href='#L216'>216</a>
|
|
282
|
-
<a name='L217'></a><a href='#L217'>217</a
|
|
283
|
-
<
|
|
284
|
-
<
|
|
285
|
-
<
|
|
286
|
-
<
|
|
287
|
-
<
|
|
282
|
+
<a name='L217'></a><a href='#L217'>217</a>
|
|
283
|
+
<a name='L218'></a><a href='#L218'>218</a>
|
|
284
|
+
<a name='L219'></a><a href='#L219'>219</a>
|
|
285
|
+
<a name='L220'></a><a href='#L220'>220</a>
|
|
286
|
+
<a name='L221'></a><a href='#L221'>221</a>
|
|
287
|
+
<a name='L222'></a><a href='#L222'>222</a>
|
|
288
|
+
<a name='L223'></a><a href='#L223'>223</a>
|
|
289
|
+
<a name='L224'></a><a href='#L224'>224</a>
|
|
290
|
+
<a name='L225'></a><a href='#L225'>225</a>
|
|
291
|
+
<a name='L226'></a><a href='#L226'>226</a>
|
|
292
|
+
<a name='L227'></a><a href='#L227'>227</a>
|
|
293
|
+
<a name='L228'></a><a href='#L228'>228</a>
|
|
294
|
+
<a name='L229'></a><a href='#L229'>229</a>
|
|
295
|
+
<a name='L230'></a><a href='#L230'>230</a>
|
|
296
|
+
<a name='L231'></a><a href='#L231'>231</a>
|
|
297
|
+
<a name='L232'></a><a href='#L232'>232</a>
|
|
298
|
+
<a name='L233'></a><a href='#L233'>233</a>
|
|
299
|
+
<a name='L234'></a><a href='#L234'>234</a>
|
|
300
|
+
<a name='L235'></a><a href='#L235'>235</a>
|
|
301
|
+
<a name='L236'></a><a href='#L236'>236</a>
|
|
302
|
+
<a name='L237'></a><a href='#L237'>237</a>
|
|
303
|
+
<a name='L238'></a><a href='#L238'>238</a>
|
|
304
|
+
<a name='L239'></a><a href='#L239'>239</a>
|
|
305
|
+
<a name='L240'></a><a href='#L240'>240</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
288
306
|
<span class="cline-any cline-neutral"> </span>
|
|
289
307
|
<span class="cline-any cline-neutral"> </span>
|
|
290
308
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -294,20 +312,20 @@
|
|
|
294
312
|
<span class="cline-any cline-neutral"> </span>
|
|
295
313
|
<span class="cline-any cline-neutral"> </span>
|
|
296
314
|
<span class="cline-any cline-neutral"> </span>
|
|
315
|
+
<span class="cline-any cline-yes">1x</span>
|
|
297
316
|
<span class="cline-any cline-neutral"> </span>
|
|
298
317
|
<span class="cline-any cline-neutral"> </span>
|
|
299
318
|
<span class="cline-any cline-neutral"> </span>
|
|
300
319
|
<span class="cline-any cline-neutral"> </span>
|
|
301
320
|
<span class="cline-any cline-neutral"> </span>
|
|
302
321
|
<span class="cline-any cline-neutral"> </span>
|
|
322
|
+
<span class="cline-any cline-yes">1x</span>
|
|
303
323
|
<span class="cline-any cline-neutral"> </span>
|
|
304
324
|
<span class="cline-any cline-neutral"> </span>
|
|
305
325
|
<span class="cline-any cline-neutral"> </span>
|
|
306
326
|
<span class="cline-any cline-neutral"> </span>
|
|
307
327
|
<span class="cline-any cline-neutral"> </span>
|
|
308
|
-
<span class="cline-any cline-yes">1x</span>
|
|
309
328
|
<span class="cline-any cline-neutral"> </span>
|
|
310
|
-
<span class="cline-any cline-yes">1x</span>
|
|
311
329
|
<span class="cline-any cline-neutral"> </span>
|
|
312
330
|
<span class="cline-any cline-neutral"> </span>
|
|
313
331
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -317,6 +335,7 @@
|
|
|
317
335
|
<span class="cline-any cline-neutral"> </span>
|
|
318
336
|
<span class="cline-any cline-neutral"> </span>
|
|
319
337
|
<span class="cline-any cline-neutral"> </span>
|
|
338
|
+
<span class="cline-any cline-yes">1x</span>
|
|
320
339
|
<span class="cline-any cline-neutral"> </span>
|
|
321
340
|
<span class="cline-any cline-neutral"> </span>
|
|
322
341
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -326,22 +345,33 @@
|
|
|
326
345
|
<span class="cline-any cline-neutral"> </span>
|
|
327
346
|
<span class="cline-any cline-neutral"> </span>
|
|
328
347
|
<span class="cline-any cline-neutral"> </span>
|
|
348
|
+
<span class="cline-any cline-yes">4x</span>
|
|
349
|
+
<span class="cline-any cline-yes">4x</span>
|
|
329
350
|
<span class="cline-any cline-neutral"> </span>
|
|
351
|
+
<span class="cline-any cline-yes">4x</span>
|
|
352
|
+
<span class="cline-any cline-yes">4x</span>
|
|
353
|
+
<span class="cline-any cline-yes">4x</span>
|
|
330
354
|
<span class="cline-any cline-neutral"> </span>
|
|
355
|
+
<span class="cline-any cline-yes">4x</span>
|
|
356
|
+
<span class="cline-any cline-yes">4x</span>
|
|
331
357
|
<span class="cline-any cline-neutral"> </span>
|
|
358
|
+
<span class="cline-any cline-yes">4x</span>
|
|
359
|
+
<span class="cline-any cline-yes">4x</span>
|
|
332
360
|
<span class="cline-any cline-neutral"> </span>
|
|
361
|
+
<span class="cline-any cline-yes">4x</span>
|
|
362
|
+
<span class="cline-any cline-yes">4x</span>
|
|
363
|
+
<span class="cline-any cline-yes">4x</span>
|
|
333
364
|
<span class="cline-any cline-neutral"> </span>
|
|
334
365
|
<span class="cline-any cline-no"> </span>
|
|
335
|
-
<span class="cline-any cline-no"> </span>
|
|
336
|
-
<span class="cline-any cline-neutral"> </span>
|
|
337
|
-
<span class="cline-any cline-no"> </span>
|
|
338
|
-
<span class="cline-any cline-no"> </span>
|
|
339
|
-
<span class="cline-any cline-no"> </span>
|
|
340
366
|
<span class="cline-any cline-neutral"> </span>
|
|
341
367
|
<span class="cline-any cline-neutral"> </span>
|
|
368
|
+
<span class="cline-any cline-no"> </span>
|
|
342
369
|
<span class="cline-any cline-neutral"> </span>
|
|
343
370
|
<span class="cline-any cline-neutral"> </span>
|
|
344
371
|
<span class="cline-any cline-neutral"> </span>
|
|
372
|
+
<span class="cline-any cline-yes">4x</span>
|
|
373
|
+
<span class="cline-any cline-yes">2x</span>
|
|
374
|
+
<span class="cline-any cline-no"> </span>
|
|
345
375
|
<span class="cline-any cline-neutral"> </span>
|
|
346
376
|
<span class="cline-any cline-neutral"> </span>
|
|
347
377
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -351,16 +381,20 @@
|
|
|
351
381
|
<span class="cline-any cline-neutral"> </span>
|
|
352
382
|
<span class="cline-any cline-no"> </span>
|
|
353
383
|
<span class="cline-any cline-neutral"> </span>
|
|
354
|
-
<span class="cline-any cline-
|
|
384
|
+
<span class="cline-any cline-no"> </span>
|
|
355
385
|
<span class="cline-any cline-no"> </span>
|
|
356
386
|
<span class="cline-any cline-neutral"> </span>
|
|
387
|
+
<span class="cline-any cline-yes">2x</span>
|
|
388
|
+
<span class="cline-any cline-yes">2x</span>
|
|
357
389
|
<span class="cline-any cline-neutral"> </span>
|
|
358
390
|
<span class="cline-any cline-neutral"> </span>
|
|
359
|
-
<span class="cline-any cline-
|
|
360
|
-
<span class="cline-any cline-
|
|
391
|
+
<span class="cline-any cline-yes">4x</span>
|
|
392
|
+
<span class="cline-any cline-yes">2x</span>
|
|
393
|
+
<span class="cline-any cline-yes">2x</span>
|
|
361
394
|
<span class="cline-any cline-neutral"> </span>
|
|
362
395
|
<span class="cline-any cline-neutral"> </span>
|
|
363
396
|
<span class="cline-any cline-neutral"> </span>
|
|
397
|
+
<span class="cline-any cline-yes">4x</span>
|
|
364
398
|
<span class="cline-any cline-neutral"> </span>
|
|
365
399
|
<span class="cline-any cline-neutral"> </span>
|
|
366
400
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -375,10 +409,10 @@
|
|
|
375
409
|
<span class="cline-any cline-neutral"> </span>
|
|
376
410
|
<span class="cline-any cline-neutral"> </span>
|
|
377
411
|
<span class="cline-any cline-neutral"> </span>
|
|
412
|
+
<span class="cline-any cline-no"> </span>
|
|
378
413
|
<span class="cline-any cline-neutral"> </span>
|
|
379
414
|
<span class="cline-any cline-neutral"> </span>
|
|
380
415
|
<span class="cline-any cline-neutral"> </span>
|
|
381
|
-
<span class="cline-any cline-no"> </span>
|
|
382
416
|
<span class="cline-any cline-neutral"> </span>
|
|
383
417
|
<span class="cline-any cline-neutral"> </span>
|
|
384
418
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -395,7 +429,10 @@
|
|
|
395
429
|
<span class="cline-any cline-neutral"> </span>
|
|
396
430
|
<span class="cline-any cline-neutral"> </span>
|
|
397
431
|
<span class="cline-any cline-neutral"> </span>
|
|
432
|
+
<span class="cline-any cline-no"> </span>
|
|
433
|
+
<span class="cline-any cline-neutral"> </span>
|
|
398
434
|
<span class="cline-any cline-neutral"> </span>
|
|
435
|
+
<span class="cline-any cline-no"> </span>
|
|
399
436
|
<span class="cline-any cline-neutral"> </span>
|
|
400
437
|
<span class="cline-any cline-neutral"> </span>
|
|
401
438
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -403,19 +440,21 @@
|
|
|
403
440
|
<span class="cline-any cline-neutral"> </span>
|
|
404
441
|
<span class="cline-any cline-neutral"> </span>
|
|
405
442
|
<span class="cline-any cline-neutral"> </span>
|
|
443
|
+
<span class="cline-any cline-no"> </span>
|
|
444
|
+
<span class="cline-any cline-no"> </span>
|
|
406
445
|
<span class="cline-any cline-neutral"> </span>
|
|
407
446
|
<span class="cline-any cline-neutral"> </span>
|
|
408
447
|
<span class="cline-any cline-neutral"> </span>
|
|
409
448
|
<span class="cline-any cline-neutral"> </span>
|
|
410
449
|
<span class="cline-any cline-neutral"> </span>
|
|
411
450
|
<span class="cline-any cline-no"> </span>
|
|
451
|
+
<span class="cline-any cline-no"> </span>
|
|
412
452
|
<span class="cline-any cline-neutral"> </span>
|
|
413
453
|
<span class="cline-any cline-neutral"> </span>
|
|
414
454
|
<span class="cline-any cline-neutral"> </span>
|
|
415
455
|
<span class="cline-any cline-neutral"> </span>
|
|
416
456
|
<span class="cline-any cline-neutral"> </span>
|
|
417
457
|
<span class="cline-any cline-neutral"> </span>
|
|
418
|
-
<span class="cline-any cline-no"> </span>
|
|
419
458
|
<span class="cline-any cline-neutral"> </span>
|
|
420
459
|
<span class="cline-any cline-neutral"> </span>
|
|
421
460
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -446,12 +485,16 @@
|
|
|
446
485
|
<span class="cline-any cline-neutral"> </span>
|
|
447
486
|
<span class="cline-any cline-neutral"> </span>
|
|
448
487
|
<span class="cline-any cline-neutral"> </span>
|
|
488
|
+
<span class="cline-any cline-no"> </span>
|
|
489
|
+
<span class="cline-any cline-no"> </span>
|
|
449
490
|
<span class="cline-any cline-neutral"> </span>
|
|
450
491
|
<span class="cline-any cline-neutral"> </span>
|
|
451
492
|
<span class="cline-any cline-neutral"> </span>
|
|
452
493
|
<span class="cline-any cline-neutral"> </span>
|
|
453
494
|
<span class="cline-any cline-neutral"> </span>
|
|
454
495
|
<span class="cline-any cline-neutral"> </span>
|
|
496
|
+
<span class="cline-any cline-no"> </span>
|
|
497
|
+
<span class="cline-any cline-no"> </span>
|
|
455
498
|
<span class="cline-any cline-neutral"> </span>
|
|
456
499
|
<span class="cline-any cline-neutral"> </span>
|
|
457
500
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -480,6 +523,9 @@
|
|
|
480
523
|
<span class="cline-any cline-neutral"> </span>
|
|
481
524
|
<span class="cline-any cline-neutral"> </span>
|
|
482
525
|
<span class="cline-any cline-neutral"> </span>
|
|
526
|
+
<span class="cline-any cline-yes">1x</span>
|
|
527
|
+
<span class="cline-any cline-neutral"> </span>
|
|
528
|
+
<span class="cline-any cline-neutral"> </span>
|
|
483
529
|
<span class="cline-any cline-neutral"> </span>
|
|
484
530
|
<span class="cline-any cline-neutral"> </span>
|
|
485
531
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -495,222 +541,245 @@
|
|
|
495
541
|
<span class="cline-any cline-neutral"> </span>
|
|
496
542
|
<span class="cline-any cline-neutral"> </span>
|
|
497
543
|
<span class="cline-any cline-neutral"> </span>
|
|
498
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
499
|
-
import {
|
|
500
|
-
NavLinkContainer,
|
|
501
|
-
NavLinkInline,
|
|
502
|
-
NavLinkDrawer,
|
|
503
|
-
NavItemInline,
|
|
504
|
-
} from '../Links';
|
|
505
|
-
import AnimationGroup from '../AnimationGroup/AnimationGroup';
|
|
506
|
-
import { PracticeDetails } from '../Details';
|
|
507
|
-
import { ScoreChart } from '../Chart';
|
|
544
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { Fragment, useRef, useEffect, useState } from 'react';
|
|
508
545
|
import PropTypes from 'prop-types';
|
|
509
|
-
import {
|
|
510
|
-
AccountHomeIcon,
|
|
511
|
-
DashboardIcon,
|
|
512
|
-
StarIcon,
|
|
513
|
-
CliniciansIcon,
|
|
514
|
-
ScoreIncrease,
|
|
515
|
-
TooltipIcon,
|
|
516
|
-
} from '../../../lib/SvgComponents.jsx';
|
|
517
|
-
import {
|
|
518
|
-
submissionsUrl,
|
|
519
|
-
manageUrl,
|
|
520
|
-
dashboardUrl,
|
|
521
|
-
performanceFeedbackUrl,
|
|
522
|
-
} from '../helpers';
|
|
523
546
|
|
|
524
|
-
|
|
547
|
+
import { useWindowWidth, useHeaderState } from './hooks';
|
|
548
|
+
import HeaderMenuLink from './HeaderMenuLink';
|
|
549
|
+
import HeaderMenuButton from './HeaderMenuButton';
|
|
550
|
+
import HeaderMenuSignOutButton from './HeaderMenuSignOutButton';
|
|
551
|
+
import Accordion from '../Accordion';
|
|
552
|
+
import { Chevron } from '../../lib/Chevron.jsx';
|
|
553
|
+
|
|
554
|
+
const menuSizes = {
|
|
555
|
+
1: 315,
|
|
556
|
+
2: 650,
|
|
557
|
+
3: 890,
|
|
558
|
+
4: 1200,
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
const excludedClickOutClasses = [
|
|
562
|
+
'menu-dropdown-toggle',
|
|
563
|
+
'nav-link',
|
|
564
|
+
'nav-link-li',
|
|
565
|
+
'dropdown-description',
|
|
566
|
+
'dropdown-title',
|
|
567
|
+
'dropdown-title-chevron-container',
|
|
568
|
+
'signout-button',
|
|
569
|
+
'submenu-section',
|
|
570
|
+
'accordion',
|
|
571
|
+
'accordion-title',
|
|
572
|
+
'accordion-left-title',
|
|
573
|
+
'header-menu-btn',
|
|
574
|
+
'btn-navigation-icon',
|
|
575
|
+
];
|
|
525
576
|
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
practiceId,
|
|
536
|
-
practiceName,
|
|
537
|
-
practiceTin,
|
|
538
|
-
apmEntityId,
|
|
539
|
-
isConnectedUsersPage,
|
|
540
|
-
vgId,
|
|
541
|
-
roleAbbr,
|
|
542
|
-
performanceYear,
|
|
543
|
-
finalFeedbackOpen,
|
|
544
|
-
isApmPaymentDetailsPage,
|
|
545
|
-
useTooltips,
|
|
546
|
-
cpcPlusId,
|
|
547
|
-
pcfId,
|
|
548
|
-
} = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
577
|
+
const HeaderMenuItem = ({
|
|
578
|
+
handleClick,
|
|
579
|
+
isMobileMenuExpanded,
|
|
580
|
+
columns,
|
|
581
|
+
menuName,
|
|
582
|
+
rows,
|
|
583
|
+
name,
|
|
584
|
+
subtitle,
|
|
585
|
+
className,
|
|
549
586
|
}) => {
|
|
550
|
-
const
|
|
551
|
-
|
|
587
|
+
const [isSubMenuFullWidth, setSubMenuFullWidth] = useState(false);
|
|
588
|
+
const [openMobileSubMenu, setOpenMobileSubMenu] = useState('');
|
|
552
589
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
label="Payment Details"
|
|
560
|
-
urlExpressionToMatch={apmDetailsUrl}
|
|
561
|
-
showLabel={isExpanded}
|
|
562
|
-
/>
|
|
563
|
-
);
|
|
564
|
-
} else {
|
|
565
|
-
const linkLabel = <span class="cstat-no" title="statement not covered" >isConnectedUsersPage</span>
|
|
566
|
-
? 'Connected Users'
|
|
567
|
-
: 'Eligibility & Reporting';
|
|
568
|
-
let items = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
590
|
+
const windowWidth = useWindowWidth();
|
|
591
|
+
const menuButtonRef = useRef(null);
|
|
592
|
+
const menuRef = useRef(null);
|
|
593
|
+
const { RouterLink, handleToggleMenu, currentOpenMenu, closeMenus } =
|
|
594
|
+
useHeaderState();
|
|
595
|
+
const numColumns = (columns || <span class="branch-1 cbranch-no" title="branch not covered" >[])</span>.length;
|
|
569
596
|
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
? practiceId
|
|
573
|
-
: practiceId + '_' + roleAbbr;
|
|
597
|
+
const menuIdentifier = menuName || name;
|
|
598
|
+
const isOpen = menuIdentifier === currentOpenMenu;
|
|
574
599
|
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
label: 'Quality Measures',
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
url: `${submissionsUrl}/reporting/${practiceUrlSegment}/aci`,
|
|
587
|
-
label: 'Promoting Interoperability',
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
url: `${submissionsUrl}/reporting/${practiceUrlSegment}/ia`,
|
|
591
|
-
label: 'Improvement Activities',
|
|
592
|
-
},
|
|
593
|
-
],
|
|
594
|
-
},
|
|
595
|
-
];
|
|
600
|
+
useEffect(() => {
|
|
601
|
+
const isMobile = windowWidth < 768;
|
|
602
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (isOpen) {
|
|
603
|
+
const shouldSetFullWidth =
|
|
604
|
+
<span class="cstat-no" title="statement not covered" > isMobile ||</span>
|
|
605
|
+
menuSizes[numColumns] >
|
|
606
|
+
menuButtonRef.current.getBoundingClientRect().right;
|
|
607
|
+
<span class="cstat-no" title="statement not covered" > setSubMenuFullWidth(shouldSetFullWidth);</span>
|
|
596
608
|
}
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
},
|
|
622
|
-
]
|
|
623
|
-
}
|
|
624
|
-
disabled={isConnectedUsersPage ? true : false}
|
|
625
|
-
/>
|
|
626
|
-
);
|
|
627
|
-
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
628
|
-
(apmEntityId && performanceYear === '2018' && finalFeedbackOpen) ||
|
|
629
|
-
(!apmEntityId &&
|
|
630
|
-
!vgId &&
|
|
631
|
-
!isConnectedUsersPage &&
|
|
632
|
-
PAST_REPORTING_YEARS.indexOf(performanceYear) >= 0)
|
|
633
|
-
) {
|
|
634
|
-
<span class="cstat-no" title="statement not covered" > links.push(</span>
|
|
635
|
-
<NavLinkInline
|
|
636
|
-
key="performance-feedback-link"
|
|
637
|
-
icon={<StarIcon />}
|
|
638
|
-
className={linkClass}
|
|
639
|
-
url={performanceFeedbackUrl(
|
|
640
|
-
finalFeedbackOpen && performanceYear === '2018'
|
|
641
|
-
? performanceYear
|
|
642
|
-
: '2017'
|
|
643
|
-
)}
|
|
644
|
-
label="Performance Feedback"
|
|
645
|
-
linkCallback={linkCallback}
|
|
646
|
-
showLabel={isExpanded}
|
|
647
|
-
useTooltips={useTooltips}
|
|
648
|
-
/>
|
|
649
|
-
);
|
|
609
|
+
}, [windowWidth, isOpen]);
|
|
610
|
+
|
|
611
|
+
useEffect(() => {
|
|
612
|
+
const listener = <span class="fstat-no" title="function not covered" >(e</span>vent) => {
|
|
613
|
+
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
614
|
+
!menuRef ||
|
|
615
|
+
!menuRef.current ||
|
|
616
|
+
menuRef.current.contains(event.target) ||
|
|
617
|
+
excludedClickOutClasses.some(<span class="fstat-no" title="function not covered" >(c</span>lassName) =>
|
|
618
|
+
<span class="cstat-no" title="statement not covered" > event?.target?.classList.contains(className)</span>
|
|
619
|
+
)
|
|
620
|
+
) {
|
|
621
|
+
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
622
|
+
}
|
|
623
|
+
<span class="cstat-no" title="statement not covered" > setOpenMobileSubMenu('');</span>
|
|
624
|
+
<span class="cstat-no" title="statement not covered" > closeMenus();</span>
|
|
625
|
+
};
|
|
626
|
+
document.addEventListener('mousedown', listener);
|
|
627
|
+
return () => document.removeEventListener('mousedown', listener);
|
|
628
|
+
}, [menuRef]);
|
|
629
|
+
|
|
630
|
+
useEffect(() => {
|
|
631
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (!isMobileMenuExpanded || <span class="branch-1 cbranch-no" title="branch not covered" >!isOpen)</span> {
|
|
632
|
+
setOpenMobileSubMenu('');
|
|
650
633
|
}
|
|
651
|
-
}
|
|
634
|
+
}, [isMobileMenuExpanded, isOpen]);
|
|
652
635
|
|
|
653
|
-
|
|
654
|
-
<
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
{...(!pcfId ? {} : { pcfId })}
|
|
675
|
-
/>
|
|
676
|
-
<hr />
|
|
677
|
-
</AnimationGroup>
|
|
678
|
-
<div className="level-two-nav animation-flat">
|
|
679
|
-
<NavLinkContainer listOfLinks={links} />
|
|
680
|
-
<AnimationGroup display={isExpanded && chartActive} className="chart">
|
|
681
|
-
<div>
|
|
682
|
-
<hr />
|
|
683
|
-
<div className="chart-title">
|
|
684
|
-
<p className="title">Final Group Score</p>
|
|
685
|
-
<p className="disclaimer">
|
|
686
|
-
<svg className="left-icon" aria-hidden="true">
|
|
687
|
-
<ScoreIncrease />
|
|
688
|
-
</svg>
|
|
689
|
-
Score may increase
|
|
690
|
-
<svg className="right-icon" aria-hidden="true">
|
|
691
|
-
<TooltipIcon />
|
|
692
|
-
</svg>
|
|
693
|
-
</p>
|
|
694
|
-
{updateTime && (
|
|
695
|
-
<p className="timestamp">Last update at {updateTime}</p>
|
|
696
|
-
)}
|
|
697
|
-
</div>
|
|
698
|
-
<ScoreChart chartData={chartData} linkCallback={linkCallback} />
|
|
636
|
+
return (
|
|
637
|
+
<li
|
|
638
|
+
key={`header-item-${menuIdentifier}`}
|
|
639
|
+
className={`header-item-${menuIdentifier}${
|
|
640
|
+
isSubMenuFullWidth ? <span class="branch-0 cbranch-no" title="branch not covered" >' full-width-menu' </span>: ''
|
|
641
|
+
}${className ? <span class="branch-0 cbranch-no" title="branch not covered" >` ${className}` </span>: ''}`}
|
|
642
|
+
ref={menuRef}
|
|
643
|
+
>
|
|
644
|
+
<button
|
|
645
|
+
ref={menuButtonRef}
|
|
646
|
+
className="menu-dropdown-toggle"
|
|
647
|
+
aria-label={`${name} navigation dropdown`}
|
|
648
|
+
aria-expanded={isOpen}
|
|
649
|
+
aria-controls={`nav-section-${menuIdentifier}`}
|
|
650
|
+
data-toggle="dropdown"
|
|
651
|
+
onClick={<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >handleToggleMenu(menuIdentifier)}</span>
|
|
652
|
+
>
|
|
653
|
+
<div className="dropdown-title-chevron-container">
|
|
654
|
+
<span className="dropdown-title">{name}</span>
|
|
655
|
+
<div className="chevron-container">
|
|
656
|
+
<Chevron focusable="false" />
|
|
699
657
|
</div>
|
|
700
|
-
</
|
|
658
|
+
</div>
|
|
659
|
+
|
|
660
|
+
<span className={`dropdown-description ${isOpen ? <span class="branch-0 cbranch-no" title="branch not covered" >'active' </span>: ''}`}>
|
|
661
|
+
{subtitle}
|
|
662
|
+
</span>
|
|
663
|
+
</button>
|
|
664
|
+
<div
|
|
665
|
+
className={`nav-section${isOpen ? <span class="branch-0 cbranch-no" title="branch not covered" >' open' </span>: ''}`}
|
|
666
|
+
id={`nav-section-${menuIdentifier}`}
|
|
667
|
+
hidden={!isOpen}
|
|
668
|
+
data-columns={numColumns}
|
|
669
|
+
>
|
|
670
|
+
{rows.map(<span class="fstat-no" title="function not covered" >(c</span>olumnContent, index) => {
|
|
671
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
672
|
+
<ul key={`${menuIdentifier}-${index}`} className="nav-column">
|
|
673
|
+
{columnContent.map(<span class="fstat-no" title="function not covered" >(c</span>, cIndex) => {
|
|
674
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
675
|
+
<Fragment key={`${menuIdentifier}-${index}-${cIndex}`}>
|
|
676
|
+
<li className="submenu-section">
|
|
677
|
+
{c.heading && (
|
|
678
|
+
<h3 className="submenu-heading">{c.heading}</h3>
|
|
679
|
+
)}
|
|
680
|
+
<ul>
|
|
681
|
+
{c.items.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => {
|
|
682
|
+
const isSubLink = <span class="cstat-no" title="statement not covered" >item.type === 'sublink';</span>
|
|
683
|
+
const componentsByType = <span class="cstat-no" title="statement not covered" >{</span>
|
|
684
|
+
button: HeaderMenuButton,
|
|
685
|
+
signout: HeaderMenuSignOutButton,
|
|
686
|
+
link: HeaderMenuLink,
|
|
687
|
+
sublink: HeaderMenuLink,
|
|
688
|
+
};
|
|
689
|
+
const SubMenuComponent = <span class="cstat-no" title="statement not covered" >componentsByType[item.type];</span>
|
|
690
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
691
|
+
<li
|
|
692
|
+
onClick={handleClick}
|
|
693
|
+
key={`item-link-${item.name}`}
|
|
694
|
+
className={
|
|
695
|
+
isSubLink
|
|
696
|
+
? 'nav-link-li sublink'
|
|
697
|
+
: 'nav-link-li'
|
|
698
|
+
}
|
|
699
|
+
>
|
|
700
|
+
<SubMenuComponent
|
|
701
|
+
href={item.href}
|
|
702
|
+
name={item.name}
|
|
703
|
+
RouterLink={RouterLink}
|
|
704
|
+
/>
|
|
705
|
+
</li>
|
|
706
|
+
);
|
|
707
|
+
})}
|
|
708
|
+
</ul>
|
|
709
|
+
</li>
|
|
710
|
+
{name === 'MIPS' && (
|
|
711
|
+
<li
|
|
712
|
+
key={`${menuIdentifier}-mobile-${index}-${cIndex}`}
|
|
713
|
+
className="submenu-section-mips-mobile"
|
|
714
|
+
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
715
|
+
<span class="cstat-no" title="statement not covered" > setOpenMobileSubMenu(c.heading);</span>
|
|
716
|
+
}}
|
|
717
|
+
>
|
|
718
|
+
<Accordion
|
|
719
|
+
title={c.heading}
|
|
720
|
+
isOpen={
|
|
721
|
+
isMobileMenuExpanded &&
|
|
722
|
+
openMobileSubMenu === c.heading
|
|
723
|
+
}
|
|
724
|
+
>
|
|
725
|
+
<ul>
|
|
726
|
+
{c.items.map(<span class="fstat-no" title="function not covered" >(i</span>tem) => {
|
|
727
|
+
const isSubLink = <span class="cstat-no" title="statement not covered" >item.type === 'sublink';</span>
|
|
728
|
+
const componentsByType = <span class="cstat-no" title="statement not covered" >{</span>
|
|
729
|
+
button: HeaderMenuButton,
|
|
730
|
+
signout: HeaderMenuSignOutButton,
|
|
731
|
+
link: HeaderMenuLink,
|
|
732
|
+
sublink: HeaderMenuLink,
|
|
733
|
+
};
|
|
734
|
+
const SubMenuComponent =
|
|
735
|
+
<span class="cstat-no" title="statement not covered" > componentsByType[item.type];</span>
|
|
736
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
737
|
+
<li
|
|
738
|
+
onClick={handleClick}
|
|
739
|
+
key={`item-link-${item.name}`}
|
|
740
|
+
className={isSubLink ? 'sublink' : ''}
|
|
741
|
+
>
|
|
742
|
+
<SubMenuComponent
|
|
743
|
+
href={item.href}
|
|
744
|
+
name={item.name}
|
|
745
|
+
RouterLink={RouterLink}
|
|
746
|
+
/>
|
|
747
|
+
</li>
|
|
748
|
+
);
|
|
749
|
+
})}
|
|
750
|
+
</ul>
|
|
751
|
+
</Accordion>
|
|
752
|
+
</li>
|
|
753
|
+
)}
|
|
754
|
+
</Fragment>
|
|
755
|
+
);
|
|
756
|
+
})}
|
|
757
|
+
</ul>
|
|
758
|
+
);
|
|
759
|
+
})}
|
|
701
760
|
</div>
|
|
702
|
-
</
|
|
761
|
+
</li>
|
|
703
762
|
);
|
|
704
763
|
};
|
|
705
764
|
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
765
|
+
HeaderMenuItem.propTypes = {
|
|
766
|
+
columns: PropTypes.array,
|
|
767
|
+
menuName: PropTypes.string,
|
|
768
|
+
rows: PropTypes.array,
|
|
769
|
+
name: PropTypes.string.isRequired,
|
|
770
|
+
subtitle: PropTypes.string.isRequired,
|
|
771
|
+
className: PropTypes.string,
|
|
772
|
+
handleClick: PropTypes.func.isRequired,
|
|
773
|
+
isMobileMenuExpanded: PropTypes.bool.isRequired,
|
|
774
|
+
};
|
|
775
|
+
HeaderMenuItem.defaultProps = {
|
|
776
|
+
menuName: '',
|
|
777
|
+
columns: [],
|
|
778
|
+
rows: [],
|
|
779
|
+
className: null,
|
|
711
780
|
};
|
|
712
781
|
|
|
713
|
-
export default
|
|
782
|
+
export default HeaderMenuItem;
|
|
714
783
|
</pre></td></tr></table></pre>
|
|
715
784
|
|
|
716
785
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -718,16 +787,16 @@ export default LevelTwoContent;
|
|
|
718
787
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
719
788
|
Code coverage generated by
|
|
720
789
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
721
|
-
at
|
|
790
|
+
at Sun Sep 11 2022 11:18:36 GMT-0700 (Pacific Daylight Time)
|
|
722
791
|
</div>
|
|
723
|
-
<script src="
|
|
792
|
+
<script src="../../prettify.js"></script>
|
|
724
793
|
<script>
|
|
725
794
|
window.onload = function () {
|
|
726
795
|
prettyPrint();
|
|
727
796
|
};
|
|
728
797
|
</script>
|
|
729
|
-
<script src="
|
|
730
|
-
<script src="
|
|
798
|
+
<script src="../../sorter.js"></script>
|
|
799
|
+
<script src="../../block-navigation.js"></script>
|
|
731
800
|
</body>
|
|
732
801
|
</html>
|
|
733
802
|
|