qpp-style 9.22.2 → 9.22.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/coverage/clover.xml +386 -382
- package/coverage/coverage-final.json +72 -73
- 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/Button/index.html +116 -0
- package/coverage/lcov-report/components/Button/index.js.html +355 -0
- 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 +189 -348
- 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/{SideNav/Links/NavLinkInline.jsx.html → Header/HeaderAccountMenu.jsx.html} +118 -157
- 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/CmsSwitchLink.jsx.html → Header/HeaderLogo.jsx.html} +61 -58
- 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/{SideNav/Links/NavLinkToggle.jsx.html → Header/HeaderMobileButton.js.html} +54 -45
- package/coverage/lcov-report/components/{Footer/LegacyFooterUI.jsx.html → Header/HeaderUI.jsx.html} +198 -303
- 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/{SideNav/AnimationGroup/AnimationGroup.jsx.html → Header/NavigationButtonIcon.jsx.html} +48 -48
- package/coverage/lcov-report/components/Header/hooks.js.html +283 -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 +5 -5
- 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/Links/NavLinkContainer.jsx.html → NotificationBanner/CollapsedView.js.html} +61 -58
- 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 +46 -46
- package/coverage/lcov-report/components/{SideNav/Content/LevelOneContent.jsx.html → NotificationBanner/index.js.html} +281 -242
- 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/{AnimationGroup → Content/SelectRole}/index.html +30 -30
- package/coverage/lcov-report/components/SideNav/Content/SelectRole/utils.js.html +505 -0
- package/coverage/lcov-report/components/SideNav/helpers.js.html +895 -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 +5 -5
- package/coverage/lcov-report/components/hooks/useGetConfig.js.html +18 -15
- package/coverage/lcov-report/components/index.html +1 -1
- package/coverage/lcov-report/index.html +56 -56
- package/coverage/lcov-report/lib/Chevron.jsx.html +5 -5
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +105 -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 +32 -17
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +1 -1
- 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 +3 -3
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +26 -251
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +19 -19
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +2 -2
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +89 -113
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +5 -5
- 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 +59 -17
- package/coverage/lcov-report/react/components/Header/index.html +28 -28
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +4 -4
- 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/react/components/NotificationBanner/CollapsedView.js.html +49 -28
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +11 -11
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +32 -32
- 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 +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +13 -13
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +60 -24
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- 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 +3 -3
- 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 +2 -20
- 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 +78 -12
- 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 +19 -19
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +37 -37
- 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 +2 -2
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +7 -4
- package/coverage/lcov-report/react/lib/index.html +5 -20
- 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 +581 -577
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +4 -4
- 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
- package/styles/components/_footer.scss +0 -593
- package/styles/components/_header.scss +0 -890
- package/styles/components/_sidebar.scss +0 -8
- package/styles/components/sidebar/_animations.scss +0 -38
- package/styles/components/sidebar/_cms.scss +0 -61
- package/styles/components/sidebar/_details.scss +0 -58
- package/styles/components/sidebar/_links.scss +0 -415
- package/styles/components/sidebar/_sidebar-animation.scss +0 -121
- package/styles/components/sidebar/_sidebar-tooltip.scss +0 -33
- package/styles/components/sidebar/_sidebar.scss +0 -141
- package/styles/components/sidebar/project-specific/_wi.scss +0 -42
- package/styles/qppds/components/_infotip-content.scss +0 -47
- package/styles/qppds/components/_spinner.scss +0 -46
|
@@ -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/HeaderAccountMenu.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> HeaderAccountMenu.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">58.82% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>10/17</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">43.75% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>7/16</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">33.33% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>1/3</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">58.82% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>10/17</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>
|
|
@@ -157,81 +157,51 @@
|
|
|
157
157
|
<a name='L92'></a><a href='#L92'>92</a>
|
|
158
158
|
<a name='L93'></a><a href='#L93'>93</a>
|
|
159
159
|
<a name='L94'></a><a href='#L94'>94</a>
|
|
160
|
-
<a name='L95'></a><a href='#L95'>95</a>
|
|
161
|
-
<a name='L96'></a><a href='#L96'>96</a>
|
|
162
|
-
<a name='L97'></a><a href='#L97'>97</a>
|
|
163
|
-
<a name='L98'></a><a href='#L98'>98</a>
|
|
164
|
-
<a name='L99'></a><a href='#L99'>99</a>
|
|
165
|
-
<a name='L100'></a><a href='#L100'>100</a>
|
|
166
|
-
<a name='L101'></a><a href='#L101'>101</a>
|
|
167
|
-
<a name='L102'></a><a href='#L102'>102</a>
|
|
168
|
-
<a name='L103'></a><a href='#L103'>103</a>
|
|
169
|
-
<a name='L104'></a><a href='#L104'>104</a>
|
|
170
|
-
<a name='L105'></a><a href='#L105'>105</a>
|
|
171
|
-
<a name='L106'></a><a href='#L106'>106</a>
|
|
172
|
-
<a name='L107'></a><a href='#L107'>107</a>
|
|
173
|
-
<a name='L108'></a><a href='#L108'>108</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
160
|
+
<a name='L95'></a><a href='#L95'>95</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
174
161
|
<span class="cline-any cline-neutral"> </span>
|
|
175
162
|
<span class="cline-any cline-neutral"> </span>
|
|
176
163
|
<span class="cline-any cline-neutral"> </span>
|
|
177
164
|
<span class="cline-any cline-neutral"> </span>
|
|
178
|
-
<span class="cline-any cline-yes">1x</span>
|
|
179
165
|
<span class="cline-any cline-neutral"> </span>
|
|
180
166
|
<span class="cline-any cline-neutral"> </span>
|
|
167
|
+
<span class="cline-any cline-yes">1x</span>
|
|
168
|
+
<span class="cline-any cline-yes">1x</span>
|
|
181
169
|
<span class="cline-any cline-neutral"> </span>
|
|
170
|
+
<span class="cline-any cline-yes">1x</span>
|
|
182
171
|
<span class="cline-any cline-neutral"> </span>
|
|
172
|
+
<span class="cline-any cline-yes">1x</span>
|
|
183
173
|
<span class="cline-any cline-neutral"> </span>
|
|
174
|
+
<span class="cline-any cline-yes">1x</span>
|
|
175
|
+
<span class="cline-any cline-no"> </span>
|
|
184
176
|
<span class="cline-any cline-neutral"> </span>
|
|
185
177
|
<span class="cline-any cline-neutral"> </span>
|
|
186
178
|
<span class="cline-any cline-neutral"> </span>
|
|
179
|
+
<span class="cline-any cline-yes">1x</span>
|
|
180
|
+
<span class="cline-any cline-yes">1x</span>
|
|
181
|
+
<span class="cline-any cline-no"> </span>
|
|
187
182
|
<span class="cline-any cline-neutral"> </span>
|
|
188
183
|
<span class="cline-any cline-neutral"> </span>
|
|
189
184
|
<span class="cline-any cline-neutral"> </span>
|
|
190
185
|
<span class="cline-any cline-neutral"> </span>
|
|
191
|
-
<span class="cline-any cline-no"> </span>
|
|
192
|
-
<span class="cline-any cline-no"> </span>
|
|
193
|
-
<span class="cline-any cline-no"> </span>
|
|
194
|
-
<span class="cline-any cline-no"> </span>
|
|
195
|
-
<span class="cline-any cline-no"> </span>
|
|
196
|
-
<span class="cline-any cline-no"> </span>
|
|
197
|
-
<span class="cline-any cline-no"> </span>
|
|
198
186
|
<span class="cline-any cline-neutral"> </span>
|
|
199
187
|
<span class="cline-any cline-no"> </span>
|
|
200
188
|
<span class="cline-any cline-no"> </span>
|
|
201
|
-
<span class="cline-any cline-no"> </span>
|
|
202
|
-
<span class="cline-any cline-no"> </span>
|
|
203
189
|
<span class="cline-any cline-neutral"> </span>
|
|
204
|
-
<span class="cline-any cline-no"> </span>
|
|
205
|
-
<span class="cline-any cline-no"> </span>
|
|
206
|
-
<span class="cline-any cline-no"> </span>
|
|
207
|
-
<span class="cline-any cline-no"> </span>
|
|
208
|
-
<span class="cline-any cline-no"> </span>
|
|
209
190
|
<span class="cline-any cline-neutral"> </span>
|
|
210
|
-
<span class="cline-any cline-no"> </span>
|
|
211
|
-
<span class="cline-any cline-no"> </span>
|
|
212
191
|
<span class="cline-any cline-neutral"> </span>
|
|
213
192
|
<span class="cline-any cline-neutral"> </span>
|
|
214
193
|
<span class="cline-any cline-neutral"> </span>
|
|
215
|
-
<span class="cline-any cline-no"> </span>
|
|
216
|
-
<span class="cline-any cline-no"> </span>
|
|
217
|
-
<span class="cline-any cline-no"> </span>
|
|
218
194
|
<span class="cline-any cline-neutral"> </span>
|
|
219
|
-
<span class="cline-any cline-no"> </span>
|
|
220
|
-
<span class="cline-any cline-no"> </span>
|
|
221
195
|
<span class="cline-any cline-neutral"> </span>
|
|
222
196
|
<span class="cline-any cline-neutral"> </span>
|
|
223
|
-
<span class="cline-any cline-no"> </span>
|
|
224
197
|
<span class="cline-any cline-neutral"> </span>
|
|
225
|
-
<span class="cline-any cline-no"> </span>
|
|
226
|
-
<span class="cline-any cline-no"> </span>
|
|
227
198
|
<span class="cline-any cline-neutral"> </span>
|
|
228
199
|
<span class="cline-any cline-neutral"> </span>
|
|
229
200
|
<span class="cline-any cline-neutral"> </span>
|
|
230
|
-
<span class="cline-any cline-no"> </span>
|
|
231
201
|
<span class="cline-any cline-neutral"> </span>
|
|
232
202
|
<span class="cline-any cline-neutral"> </span>
|
|
203
|
+
<span class="cline-any cline-yes">1x</span>
|
|
233
204
|
<span class="cline-any cline-neutral"> </span>
|
|
234
|
-
<span class="cline-any cline-no"> </span>
|
|
235
205
|
<span class="cline-any cline-neutral"> </span>
|
|
236
206
|
<span class="cline-any cline-neutral"> </span>
|
|
237
207
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -239,6 +209,7 @@
|
|
|
239
209
|
<span class="cline-any cline-neutral"> </span>
|
|
240
210
|
<span class="cline-any cline-neutral"> </span>
|
|
241
211
|
<span class="cline-any cline-neutral"> </span>
|
|
212
|
+
<span class="cline-any cline-no"> </span>
|
|
242
213
|
<span class="cline-any cline-neutral"> </span>
|
|
243
214
|
<span class="cline-any cline-neutral"> </span>
|
|
244
215
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -251,6 +222,8 @@
|
|
|
251
222
|
<span class="cline-any cline-neutral"> </span>
|
|
252
223
|
<span class="cline-any cline-neutral"> </span>
|
|
253
224
|
<span class="cline-any cline-neutral"> </span>
|
|
225
|
+
<span class="cline-any cline-no"> </span>
|
|
226
|
+
<span class="cline-any cline-no"> </span>
|
|
254
227
|
<span class="cline-any cline-neutral"> </span>
|
|
255
228
|
<span class="cline-any cline-neutral"> </span>
|
|
256
229
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -262,128 +235,116 @@
|
|
|
262
235
|
<span class="cline-any cline-neutral"> </span>
|
|
263
236
|
<span class="cline-any cline-neutral"> </span>
|
|
264
237
|
<span class="cline-any cline-neutral"> </span>
|
|
265
|
-
<span class="cline-any cline-yes">1x</span>
|
|
266
238
|
<span class="cline-any cline-neutral"> </span>
|
|
267
239
|
<span class="cline-any cline-neutral"> </span>
|
|
268
240
|
<span class="cline-any cline-neutral"> </span>
|
|
269
241
|
<span class="cline-any cline-neutral"> </span>
|
|
270
242
|
<span class="cline-any cline-neutral"> </span>
|
|
243
|
+
<span class="cline-any cline-yes">1x</span>
|
|
271
244
|
<span class="cline-any cline-neutral"> </span>
|
|
272
245
|
<span class="cline-any cline-neutral"> </span>
|
|
273
246
|
<span class="cline-any cline-neutral"> </span>
|
|
274
247
|
<span class="cline-any cline-neutral"> </span>
|
|
275
248
|
<span class="cline-any cline-neutral"> </span>
|
|
249
|
+
<span class="cline-any cline-yes">1x</span>
|
|
276
250
|
<span class="cline-any cline-neutral"> </span>
|
|
277
251
|
<span class="cline-any cline-neutral"> </span>
|
|
278
252
|
<span class="cline-any cline-neutral"> </span>
|
|
279
253
|
<span class="cline-any cline-neutral"> </span>
|
|
280
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React
|
|
281
|
-
import { handleNavigation } from '../helpers';
|
|
282
|
-
import AnimationGroup from '../AnimationGroup/AnimationGroup';
|
|
254
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
283
255
|
import PropTypes from 'prop-types';
|
|
256
|
+
import { useHeaderState } from './hooks';
|
|
257
|
+
import { setUtagLink } from './utag-helpers';
|
|
258
|
+
import SessionDialogUI from '../SessionDialogUI';
|
|
259
|
+
import HeaderMenuItem from './HeaderMenuItem';
|
|
284
260
|
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
icon,
|
|
290
|
-
label,
|
|
291
|
-
isActive,
|
|
292
|
-
showLabel,
|
|
293
|
-
linkCallback,
|
|
294
|
-
disabled,
|
|
295
|
-
useTooltips,
|
|
296
|
-
target,
|
|
297
|
-
}) => {
|
|
298
|
-
const localUrl = <span class="cstat-no" title="statement not covered" >urlExpressionToMatch || url;</span>
|
|
299
|
-
const urlRegExp = <span class="cstat-no" title="statement not covered" >new RegExp(`${localUrl}/?$`);</span>
|
|
300
|
-
const path = <span class="cstat-no" title="statement not covered" >window.location.href && window.location.href.split('?')[0];</span>
|
|
301
|
-
const currentPage = <span class="cstat-no" title="statement not covered" >path && path.match(urlRegExp);</span>
|
|
302
|
-
const svgRef = <span class="cstat-no" title="statement not covered" >React.useRef();</span>
|
|
303
|
-
const [showTooltip, setShowTooltip] = <span class="cstat-no" title="statement not covered" >useState(false);</span>
|
|
304
|
-
const tooltipRef = <span class="cstat-no" title="statement not covered" >React.useRef();</span>
|
|
261
|
+
const HeaderAccountMenu = ({ handleClick, isLoginEnabled, isDevPre }) => {
|
|
262
|
+
const { closeMenus, RouterLink, headerContent } = useHeaderState();
|
|
263
|
+
const { isLoggedIn, firstName, devPreMenuLinks, accountMenuLinks } =
|
|
264
|
+
headerContent;
|
|
305
265
|
|
|
306
|
-
|
|
307
|
-
<span class="cstat-no" title="statement not covered" > if (!showLabel && useTooltips && svgRef.current) {</span>
|
|
308
|
-
const existingMouseenter = <span class="cstat-no" title="statement not covered" >svgRef.current.onmouseover;</span>
|
|
309
|
-
const existingMouseout = <span class="cstat-no" title="statement not covered" >svgRef.current.onmouseout;</span>
|
|
266
|
+
const isDevPreAndNotAuthenticated = !isLoggedIn && isDevPre;
|
|
310
267
|
|
|
311
|
-
<span class="
|
|
312
|
-
<span class="cstat-no" title="statement not covered" >
|
|
313
|
-
|
|
314
|
-
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.top = `${svgOffset.top - 5}px`;</span>
|
|
315
|
-
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.display = 'block';</span>
|
|
316
|
-
}
|
|
317
|
-
<span class="cstat-no" title="statement not covered" > if (typeof existingMouseenter === 'function') {</span>
|
|
318
|
-
<span class="cstat-no" title="statement not covered" > existingMouseenter();</span>
|
|
319
|
-
}
|
|
320
|
-
};
|
|
268
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (!isLoginEnabled || isDevPreAndNotAuthenticated) {
|
|
269
|
+
<span class="cstat-no" title="statement not covered" > return null;</span>
|
|
270
|
+
}
|
|
321
271
|
|
|
322
|
-
|
|
323
|
-
<span class="
|
|
324
|
-
<span class="
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
<span class="
|
|
331
|
-
|
|
332
|
-
<span class="cstat-no" title="statement not covered" >
|
|
333
|
-
|
|
272
|
+
// login link
|
|
273
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (!isLoggedIn) {
|
|
274
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (RouterLink) {
|
|
275
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
276
|
+
<li onClick={handleClick} className="header-item-login login">
|
|
277
|
+
<RouterLink
|
|
278
|
+
className="menu-link"
|
|
279
|
+
to="/login"
|
|
280
|
+
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
281
|
+
<span class="cstat-no" title="statement not covered" > closeMenus();</span>
|
|
282
|
+
<span class="cstat-no" title="statement not covered" > setUtagLink('main navbar', 'click', '/login');</span>
|
|
283
|
+
}}
|
|
284
|
+
data-track-category="TopNav"
|
|
285
|
+
data-track-action="click"
|
|
286
|
+
data-track-label="Sign In"
|
|
287
|
+
>
|
|
288
|
+
<div className="nav-title">Sign In</div>
|
|
289
|
+
<div className="nav-description">
|
|
290
|
+
Manage Account <br />
|
|
291
|
+
and Register
|
|
292
|
+
</div>
|
|
293
|
+
</RouterLink>
|
|
294
|
+
</li>
|
|
295
|
+
);
|
|
334
296
|
}
|
|
335
|
-
|
|
336
|
-
&
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
data-track-action={`GoTo${label ? label.split(' ').join('') : ''}`}
|
|
347
|
-
data-track-label={label}
|
|
348
|
-
aria-label={label}
|
|
349
|
-
target={`${target ? target : '_self'}`}
|
|
350
|
-
>
|
|
351
|
-
<svg
|
|
352
|
-
className={`left-icon ${disabled ? 'disabled' : ''}`}
|
|
353
|
-
aria-hidden="true"
|
|
354
|
-
focusable="false"
|
|
355
|
-
ref={svgRef}
|
|
297
|
+
return (
|
|
298
|
+
<li className="header-item-login login">
|
|
299
|
+
<a
|
|
300
|
+
className="menu-link"
|
|
301
|
+
href="/login"
|
|
302
|
+
data-track-category="TopNav"
|
|
303
|
+
data-track-action="click"
|
|
304
|
+
data-track-label="Sign In"
|
|
305
|
+
onClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
306
|
+
<span class="cstat-no" title="statement not covered" > setUtagLink('main navbar', 'click', '/login');</span>
|
|
307
|
+
}}
|
|
356
308
|
>
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
309
|
+
<div className="nav-title">Sign In</div>
|
|
310
|
+
<div className="nav-description">
|
|
311
|
+
Manage Account <br />
|
|
312
|
+
and Register
|
|
313
|
+
</div>
|
|
314
|
+
</a>
|
|
315
|
+
</li>
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
<span class="cstat-no" title="statement not covered" > if (isLoggedIn) {</span>
|
|
320
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
321
|
+
<>
|
|
322
|
+
<SessionDialogUI />
|
|
323
|
+
<HeaderMenuItem
|
|
324
|
+
hasMenu
|
|
325
|
+
menuName="Login"
|
|
326
|
+
name={firstName}
|
|
327
|
+
subtitle="My Account"
|
|
328
|
+
className="account-menu-item"
|
|
329
|
+
columns={isDevPre ? devPreMenuLinks : accountMenuLinks}
|
|
330
|
+
rows={isDevPre ? devPreMenuLinks : accountMenuLinks}
|
|
331
|
+
/>
|
|
332
|
+
</>
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
HeaderAccountMenu.propTypes = {
|
|
338
|
+
isLoginEnabled: PropTypes.bool.isRequired,
|
|
339
|
+
isDevPre: PropTypes.bool,
|
|
340
|
+
handleClick: PropTypes.func.isRequired,
|
|
370
341
|
};
|
|
371
342
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
url: PropTypes.string,
|
|
375
|
-
className: PropTypes.string,
|
|
376
|
-
icon: PropTypes.element,
|
|
377
|
-
label: PropTypes.string,
|
|
378
|
-
isActive: PropTypes.bool,
|
|
379
|
-
showLabel: PropTypes.bool,
|
|
380
|
-
linkCallback: PropTypes.func,
|
|
381
|
-
disabled: PropTypes.bool,
|
|
382
|
-
useTooltips: PropTypes.bool,
|
|
383
|
-
target: PropTypes.string,
|
|
343
|
+
HeaderAccountMenu.defaultProps = {
|
|
344
|
+
isDevPre: false,
|
|
384
345
|
};
|
|
385
346
|
|
|
386
|
-
export default
|
|
347
|
+
export default HeaderAccountMenu;
|
|
387
348
|
</pre></td></tr></table></pre>
|
|
388
349
|
|
|
389
350
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -391,16 +352,16 @@ export default NavLinkInline;
|
|
|
391
352
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
392
353
|
Code coverage generated by
|
|
393
354
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
394
|
-
at
|
|
355
|
+
at Tue Nov 29 2022 19:35:20 GMT-0800 (Pacific Standard Time)
|
|
395
356
|
</div>
|
|
396
|
-
<script src="
|
|
357
|
+
<script src="../../prettify.js"></script>
|
|
397
358
|
<script>
|
|
398
359
|
window.onload = function () {
|
|
399
360
|
prettyPrint();
|
|
400
361
|
};
|
|
401
362
|
</script>
|
|
402
|
-
<script src="
|
|
403
|
-
<script src="
|
|
363
|
+
<script src="../../sorter.js"></script>
|
|
364
|
+
<script src="../../block-navigation.js"></script>
|
|
404
365
|
</body>
|
|
405
366
|
</html>
|
|
406
367
|
|
|
@@ -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/HeaderCancel.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,7 +19,7 @@
|
|
|
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> HeaderCancel.jsx</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -79,9 +79,7 @@
|
|
|
79
79
|
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
80
|
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
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></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
85
83
|
<span class="cline-any cline-neutral"> </span>
|
|
86
84
|
<span class="cline-any cline-neutral"> </span>
|
|
87
85
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -92,31 +90,27 @@
|
|
|
92
90
|
<span class="cline-any cline-neutral"> </span>
|
|
93
91
|
<span class="cline-any cline-neutral"> </span>
|
|
94
92
|
<span class="cline-any cline-neutral"> </span>
|
|
95
|
-
<span class="cline-any cline-neutral"> </span>
|
|
96
93
|
<span class="cline-any cline-yes">1x</span>
|
|
97
94
|
<span class="cline-any cline-neutral"> </span>
|
|
98
95
|
<span class="cline-any cline-neutral"> </span>
|
|
99
96
|
<span class="cline-any cline-neutral"> </span>
|
|
100
97
|
<span class="cline-any cline-neutral"> </span>
|
|
101
|
-
<span class="cline-any cline-neutral"> </span>
|
|
102
98
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
103
99
|
import PropTypes from 'prop-types';
|
|
104
100
|
|
|
105
|
-
const
|
|
101
|
+
const HeaderCancel = <span class="fstat-no" title="function not covered" >({</span> handleCancel }) => {
|
|
106
102
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
</div>
|
|
103
|
+
<button className="header-cancel" onClick={handleCancel}>
|
|
104
|
+
Cancel
|
|
105
|
+
</button>
|
|
111
106
|
);
|
|
112
107
|
};
|
|
113
108
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
individualNpi: PropTypes.string,
|
|
109
|
+
HeaderCancel.propTypes = {
|
|
110
|
+
handleCancel: PropTypes.func,
|
|
117
111
|
};
|
|
118
112
|
|
|
119
|
-
export default
|
|
113
|
+
export default HeaderCancel;
|
|
120
114
|
</pre></td></tr></table></pre>
|
|
121
115
|
|
|
122
116
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -124,16 +118,16 @@ export default IndividualDetails;
|
|
|
124
118
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
119
|
Code coverage generated by
|
|
126
120
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
127
|
-
at
|
|
121
|
+
at Tue Nov 29 2022 19:35:20 GMT-0800 (Pacific Standard Time)
|
|
128
122
|
</div>
|
|
129
|
-
<script src="
|
|
123
|
+
<script src="../../prettify.js"></script>
|
|
130
124
|
<script>
|
|
131
125
|
window.onload = function () {
|
|
132
126
|
prettyPrint();
|
|
133
127
|
};
|
|
134
128
|
</script>
|
|
135
|
-
<script src="
|
|
136
|
-
<script src="
|
|
129
|
+
<script src="../../sorter.js"></script>
|
|
130
|
+
<script src="../../block-navigation.js"></script>
|
|
137
131
|
</body>
|
|
138
132
|
</html>
|
|
139
133
|
|