qpp-style 9.34.3 → 9.34.4
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 +139 -142
- package/coverage/coverage-final.json +13 -12
- package/coverage/lcov-report/Infotip.jsx.html +298 -0
- package/coverage/lcov-report/InfotipContent.jsx.html +223 -0
- package/coverage/lcov-report/InfotipIcon.jsx.html +208 -0
- package/coverage/lcov-report/index.html +51 -51
- package/coverage/lcov-report/index.js.html +94 -0
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +14 -14
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +16 -16
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +10 -10
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +5 -5
- package/coverage/lcov-report/react/components/Error/error.js.html +4 -4
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/footer.js.html +5 -5
- 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 +9 -9
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +3 -3
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +22 -16
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +64 -10
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +8 -8
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +38 -38
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +10 -10
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +10 -10
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +5 -5
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +17 -14
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +25 -25
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/header.js.html +4 -4
- package/coverage/lcov-report/react/components/Header/hooks.js.html +9 -9
- package/coverage/lcov-report/react/components/Header/index.html +13 -13
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +2 -2
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +41 -41
- package/coverage/lcov-report/react/components/Infotip/InfotipContent.jsx.html +18 -18
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Infotip/index.html +38 -23
- package/coverage/lcov-report/react/components/Infotip/index.js.html +2 -2
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +6 -6
- package/coverage/lcov-report/react/components/NotificationBanner/CollapsedView.js.html +5 -5
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +6 -6
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +29 -29
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +178 -178
- package/coverage/lcov-report/react/components/Session/Session.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Session/SessionDialogWrapped.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Session/index.html +1 -1
- package/coverage/lcov-report/react/components/Session/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +11 -11
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +23 -23
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +4 -4
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +5 -5
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +8 -8
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +33 -33
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +15 -15
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +8 -8
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +36 -126
- package/coverage/lcov-report/react/components/SideNav/UI/default-markup.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +96 -84
- package/coverage/lcov-report/react/components/SideNav/index.html +10 -10
- package/coverage/lcov-report/react/components/SideNav/index.js.html +4 -4
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +7 -7
- 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 +1 -1
- package/coverage/lcov-report/react/lib/index.html +1 -1
- package/coverage/lcov-report/react/session/index.html +20 -20
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/isAuthV2.js.html +2 -2
- package/coverage/lcov-report/react/session/logout.js.html +43 -43
- package/coverage/lcov-report/react/session/refresh.js.html +2 -2
- package/coverage/lcov-report/react/session/ttl.js.html +2 -2
- package/coverage/lcov.info +253 -258
- 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 +14 -20
- package/test/components/FooterUI.test.js +18 -19
- package/test/components/Infotip.test.js +29 -31
- package/test/session/session.test.js +64 -65
|
@@ -375,18 +375,18 @@ const extractCookieValues = <span class="fstat-no" title="function not covered"
|
|
|
375
375
|
};
|
|
376
376
|
|
|
377
377
|
const reviewerRoles = [
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
378
|
+
"QPP Self-Nomination",
|
|
379
|
+
"QPP Targeted Review & Exceptions",
|
|
380
|
+
"QPP Case Management - PIMMS Reviewer",
|
|
381
|
+
"QPP Case Management - ACO PAC Reviewer",
|
|
382
|
+
"QPP Case Management - CMS Reviewer",
|
|
383
383
|
];
|
|
384
384
|
|
|
385
385
|
const cmsRoles = [
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
386
|
+
"QPP Content Management - Author",
|
|
387
|
+
"QPP Content Management - Approver",
|
|
388
|
+
"QPP Content Management - Admin",
|
|
389
|
+
"QPP Front-end - Author",
|
|
390
390
|
];
|
|
391
391
|
|
|
392
392
|
/**
|
|
@@ -422,7 +422,7 @@ const hasReviewerRole = <span class="fstat-no" title="function not covered" >(c<
|
|
|
422
422
|
*/
|
|
423
423
|
const hasHelpdeskRole = <span class="fstat-no" title="function not covered" >(c</span>msInternalRoles) => {
|
|
424
424
|
<span class="cstat-no" title="statement not covered" > if (!cmsInternalRoles) <span class="cstat-no" title="statement not covered" >return false;</span></span>
|
|
425
|
-
<span class="cstat-no" title="statement not covered" > return cmsInternalRoles.includes(
|
|
425
|
+
<span class="cstat-no" title="statement not covered" > return cmsInternalRoles.includes("QPP Helpdesk");</span>
|
|
426
426
|
};
|
|
427
427
|
|
|
428
428
|
const hasContentMgmtRole = <span class="fstat-no" title="function not covered" >(c</span>msInternalRoles) => {
|
|
@@ -439,17 +439,17 @@ const transformCookieValues = <span class="fstat-no" title="function not covered
|
|
|
439
439
|
const optionValues = <span class="cstat-no" title="statement not covered" >[];</span>
|
|
440
440
|
const [hasAuthorizations, cmsInternalRoles] = <span class="cstat-no" title="statement not covered" >values;</span>
|
|
441
441
|
|
|
442
|
-
<span class="cstat-no" title="statement not covered" > if (hasAuthorizations ===
|
|
443
|
-
<span class="cstat-no" title="statement not covered" > optionValues.push({ name:
|
|
442
|
+
<span class="cstat-no" title="statement not covered" > if (hasAuthorizations === "true") {</span>
|
|
443
|
+
<span class="cstat-no" title="statement not covered" > optionValues.push({ name: "QPP User", value: "QPP User" });</span>
|
|
444
444
|
}
|
|
445
445
|
<span class="cstat-no" title="statement not covered" > if (hasReviewerRole(cmsInternalRoles)) {</span>
|
|
446
|
-
<span class="cstat-no" title="statement not covered" > optionValues.push({ name:
|
|
446
|
+
<span class="cstat-no" title="statement not covered" > optionValues.push({ name: "Reviewer", value: "Reviewer" });</span>
|
|
447
447
|
}
|
|
448
448
|
<span class="cstat-no" title="statement not covered" > if (hasHelpdeskRole(cmsInternalRoles)) {</span>
|
|
449
|
-
<span class="cstat-no" title="statement not covered" > optionValues.push({ name:
|
|
449
|
+
<span class="cstat-no" title="statement not covered" > optionValues.push({ name: "Helpdesk Viewer", value: "Helpdesk Viewer" });</span>
|
|
450
450
|
}
|
|
451
451
|
<span class="cstat-no" title="statement not covered" > if (hasContentMgmtRole(cmsInternalRoles)) {</span>
|
|
452
|
-
<span class="cstat-no" title="statement not covered" > optionValues.push({ name:
|
|
452
|
+
<span class="cstat-no" title="statement not covered" > optionValues.push({ name: "Content Manager", value: "Content Manager" });</span>
|
|
453
453
|
}
|
|
454
454
|
<span class="cstat-no" title="statement not covered" > return optionValues;</span>
|
|
455
455
|
};
|
|
@@ -465,10 +465,10 @@ export const loadRoleOptions = <span class="fstat-no" title="function not covere
|
|
|
465
465
|
};
|
|
466
466
|
|
|
467
467
|
const defaultPageByRole = {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
Reviewer:
|
|
471
|
-
|
|
468
|
+
"QPP User": "/user/submissions",
|
|
469
|
+
"Helpdesk Viewer": "/user/helpdesk-viewing-tool",
|
|
470
|
+
Reviewer: "/user/reviewers",
|
|
471
|
+
"Content Manager": "/user/content-management",
|
|
472
472
|
};
|
|
473
473
|
|
|
474
474
|
/**
|
|
@@ -488,7 +488,7 @@ export const redirectPage = <span class="fstat-no" title="function not covered"
|
|
|
488
488
|
* @returns {object}
|
|
489
489
|
*/
|
|
490
490
|
export const getLocalStorageRoleState = <span class="fstat-no" title="function not covered" >()</span> => (<span class="cstat-no" title="statement not covered" >{</span>
|
|
491
|
-
selectedUserRole: localStorage.getItem(
|
|
491
|
+
selectedUserRole: localStorage.getItem("selectedUserRole"),
|
|
492
492
|
});
|
|
493
493
|
|
|
494
494
|
/**
|
|
@@ -500,7 +500,7 @@ export const initializeLocalStorageRoleState = <span class="fstat-no" title="fun
|
|
|
500
500
|
const localStorageValues = <span class="cstat-no" title="statement not covered" >getLocalStorageRoleState();</span>
|
|
501
501
|
|
|
502
502
|
<span class="cstat-no" title="statement not covered" > if (!localStorageValues.selectedUserRole) {</span>
|
|
503
|
-
<span class="cstat-no" title="statement not covered" > localStorage.setItem(
|
|
503
|
+
<span class="cstat-no" title="statement not covered" > localStorage.setItem("selectedUserRole", roleValue);</span>
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
|
|
@@ -509,7 +509,7 @@ export const initializeLocalStorageRoleState = <span class="fstat-no" title="fun
|
|
|
509
509
|
* @param {string} updatedRole new user role selected from dropdown
|
|
510
510
|
*/
|
|
511
511
|
export const updateLocalStorageRoleState = <span class="fstat-no" title="function not covered" >(u</span>pdatedRole) =>
|
|
512
|
-
<span class="cstat-no" title="statement not covered" > localStorage.setItem(
|
|
512
|
+
<span class="cstat-no" title="statement not covered" > localStorage.setItem("selectedUserRole", updatedRole);</span>
|
|
513
513
|
</pre></td></tr></table></pre>
|
|
514
514
|
|
|
515
515
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -517,7 +517,7 @@ export const updateLocalStorageRoleState = <span class="fstat-no" title="functio
|
|
|
517
517
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
518
518
|
Code coverage generated by
|
|
519
519
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
520
|
-
at 2023-
|
|
520
|
+
at 2023-10-09T20:35:15.116Z
|
|
521
521
|
</div>
|
|
522
522
|
<script src="../../../../../prettify.js"></script>
|
|
523
523
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-
|
|
119
|
+
at 2023-10-09T20:35:15.116Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<a name='L4'></a><a href='#L4'>4</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
70
70
|
<span class="cline-any cline-neutral"> </span>
|
|
71
71
|
<span class="cline-any cline-neutral"> </span>
|
|
72
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import LevelOneContent from
|
|
72
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import LevelOneContent from "./LevelOneContent";
|
|
73
73
|
|
|
74
74
|
export { LevelOneContent };
|
|
75
75
|
</pre></td></tr></table></pre>
|
|
@@ -79,7 +79,7 @@ export { LevelOneContent };
|
|
|
79
79
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
80
|
Code coverage generated by
|
|
81
81
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at 2023-
|
|
82
|
+
at 2023-10-09T20:35:15.116Z
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../../../../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
<span class="cline-any cline-neutral"> </span>
|
|
100
100
|
<span class="cline-any cline-neutral"> </span>
|
|
101
101
|
<span class="cline-any cline-neutral"> </span>
|
|
102
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
103
|
-
import PropTypes from
|
|
102
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
103
|
+
import PropTypes from "prop-types";
|
|
104
104
|
|
|
105
105
|
const IndividualDetails = <span class="fstat-no" title="function not covered" >({</span> individualName, individualNpi }) => {
|
|
106
106
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
@@ -124,7 +124,7 @@ export default IndividualDetails;
|
|
|
124
124
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
125
|
Code coverage generated by
|
|
126
126
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
127
|
-
at 2023-
|
|
127
|
+
at 2023-10-09T20:35:15.116Z
|
|
128
128
|
</div>
|
|
129
129
|
<script src="../../../../prettify.js"></script>
|
|
130
130
|
<script>
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
<span class="cline-any cline-neutral"> </span>
|
|
166
166
|
<span class="cline-any cline-neutral"> </span>
|
|
167
167
|
<span class="cline-any cline-neutral"> </span>
|
|
168
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
169
|
-
import PropTypes from
|
|
168
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
169
|
+
import PropTypes from "prop-types";
|
|
170
170
|
|
|
171
171
|
const PracticeDetails = <span class="fstat-no" title="function not covered" >({</span>
|
|
172
172
|
practiceName,
|
|
@@ -199,7 +199,7 @@ const PracticeDetails = <span class="fstat-no" title="function not covered" >({<
|
|
|
199
199
|
|
|
200
200
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
201
201
|
<div className="practice-container">
|
|
202
|
-
<h2 className="practice-name">{practiceName ||
|
|
202
|
+
<h2 className="practice-name">{practiceName || "No name on record"}</h2>
|
|
203
203
|
{renderId()}
|
|
204
204
|
</div>
|
|
205
205
|
);
|
|
@@ -223,7 +223,7 @@ export default PracticeDetails;
|
|
|
223
223
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
224
224
|
Code coverage generated by
|
|
225
225
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
226
|
-
at 2023-
|
|
226
|
+
at 2023-10-09T20:35:15.116Z
|
|
227
227
|
</div>
|
|
228
228
|
<script src="../../../../prettify.js"></script>
|
|
229
229
|
<script>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2023-
|
|
134
|
+
at 2023-10-09T20:35:15.116Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../../../../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
<span class="cline-any cline-neutral"> </span>
|
|
72
72
|
<span class="cline-any cline-neutral"> </span>
|
|
73
73
|
<span class="cline-any cline-neutral"> </span>
|
|
74
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import IndividualDetails from
|
|
75
|
-
import PracticeDetails from
|
|
74
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import IndividualDetails from "./IndividualDetails";
|
|
75
|
+
import PracticeDetails from "./PracticeDetails";
|
|
76
76
|
|
|
77
77
|
export { IndividualDetails, PracticeDetails };
|
|
78
78
|
</pre></td></tr></table></pre>
|
|
@@ -82,7 +82,7 @@ export { IndividualDetails, PracticeDetails };
|
|
|
82
82
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
83
83
|
Code coverage generated by
|
|
84
84
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
85
|
-
at 2023-
|
|
85
|
+
at 2023-10-09T20:35:15.116Z
|
|
86
86
|
</div>
|
|
87
87
|
<script src="../../../../prettify.js"></script>
|
|
88
88
|
<script>
|
|
@@ -145,10 +145,10 @@
|
|
|
145
145
|
<span class="cline-any cline-neutral"> </span>
|
|
146
146
|
<span class="cline-any cline-neutral"> </span>
|
|
147
147
|
<span class="cline-any cline-neutral"> </span>
|
|
148
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
149
|
-
import PropTypes from
|
|
150
|
-
import { handleNavigation } from
|
|
151
|
-
import { SwitchPractice, ChevronRight } from
|
|
148
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
149
|
+
import PropTypes from "prop-types";
|
|
150
|
+
import { handleNavigation } from "../helpers";
|
|
151
|
+
import { SwitchPractice, ChevronRight } from "../../../lib/SvgComponents.jsx";
|
|
152
152
|
|
|
153
153
|
const CmsSwitchLink = <span class="fstat-no" title="function not covered" >({</span> linkCallback, url, label }) => {
|
|
154
154
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
@@ -193,7 +193,7 @@ export default CmsSwitchLink;
|
|
|
193
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
194
194
|
Code coverage generated by
|
|
195
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
196
|
-
at 2023-
|
|
196
|
+
at 2023-10-09T20:35:15.116Z
|
|
197
197
|
</div>
|
|
198
198
|
<script src="../../../../prettify.js"></script>
|
|
199
199
|
<script>
|
|
@@ -171,9 +171,9 @@
|
|
|
171
171
|
<span class="cline-any cline-neutral"> </span>
|
|
172
172
|
<span class="cline-any cline-neutral"> </span>
|
|
173
173
|
<span class="cline-any cline-neutral"> </span>
|
|
174
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
175
|
-
import AnimationGroup from
|
|
176
|
-
import PropTypes from
|
|
174
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
175
|
+
import AnimationGroup from "../AnimationGroup/AnimationGroup";
|
|
176
|
+
import PropTypes from "prop-types";
|
|
177
177
|
|
|
178
178
|
const NavItemInline = <span class="fstat-no" title="function not covered" >(p</span>rops) => {
|
|
179
179
|
const {
|
|
@@ -189,18 +189,18 @@ const NavItemInline = <span class="fstat-no" title="function not covered" >(p</s
|
|
|
189
189
|
|
|
190
190
|
const localUrl = <span class="cstat-no" title="statement not covered" >urlExpressionToMatch || url;</span>
|
|
191
191
|
const urlRegExp = <span class="cstat-no" title="statement not covered" >new RegExp(`${localUrl}/?$`);</span>
|
|
192
|
-
const path = <span class="cstat-no" title="statement not covered" >window.location.href && window.location.href.split(
|
|
192
|
+
const path = <span class="cstat-no" title="statement not covered" >window.location.href && window.location.href.split("?")[0];</span>
|
|
193
193
|
const currentPage = <span class="cstat-no" title="statement not covered" >path && path.match(urlRegExp);</span>
|
|
194
194
|
|
|
195
195
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
196
196
|
<div
|
|
197
|
-
className={`${className} ${isActive || currentPage ?
|
|
198
|
-
disabled ?
|
|
197
|
+
className={`${className} ${isActive || currentPage ? "active" : ""} ${
|
|
198
|
+
disabled ? "disabled" : ""
|
|
199
199
|
}`}
|
|
200
200
|
aria-label={label}
|
|
201
201
|
>
|
|
202
202
|
<svg
|
|
203
|
-
className={`left-icon ${disabled ?
|
|
203
|
+
className={`left-icon ${disabled ? "disabled" : ""}`}
|
|
204
204
|
aria-hidden="true"
|
|
205
205
|
focusable="false"
|
|
206
206
|
>
|
|
@@ -232,7 +232,7 @@ export default NavItemInline;
|
|
|
232
232
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
233
233
|
Code coverage generated by
|
|
234
234
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
235
|
-
at 2023-
|
|
235
|
+
at 2023-10-09T20:35:15.116Z
|
|
236
236
|
</div>
|
|
237
237
|
<script src="../../../../prettify.js"></script>
|
|
238
238
|
<script>
|
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
<span class="cline-any cline-neutral"> </span>
|
|
140
140
|
<span class="cline-any cline-neutral"> </span>
|
|
141
141
|
<span class="cline-any cline-neutral"> </span>
|
|
142
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from
|
|
143
|
-
import PropTypes from
|
|
142
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from "react";
|
|
143
|
+
import PropTypes from "prop-types";
|
|
144
144
|
|
|
145
145
|
const NavLinkContainer = <span class="fstat-no" title="function not covered" >({</span> listOfLinks, linkActiveFunc }) => {
|
|
146
146
|
const [activeLink, setActiveLink] = <span class="cstat-no" title="statement not covered" >useState(null);</span>
|
|
@@ -184,7 +184,7 @@ export default NavLinkContainer;
|
|
|
184
184
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
185
185
|
Code coverage generated by
|
|
186
186
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
187
|
-
at 2023-
|
|
187
|
+
at 2023-10-09T20:35:15.116Z
|
|
188
188
|
</div>
|
|
189
189
|
<script src="../../../../prettify.js"></script>
|
|
190
190
|
<script>
|
|
@@ -653,11 +653,11 @@
|
|
|
653
653
|
<span class="cline-any cline-neutral"> </span>
|
|
654
654
|
<span class="cline-any cline-neutral"> </span>
|
|
655
655
|
<span class="cline-any cline-neutral"> </span>
|
|
656
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect } from
|
|
657
|
-
import PropTypes from
|
|
656
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect } from "react";
|
|
657
|
+
import PropTypes from "prop-types";
|
|
658
658
|
|
|
659
|
-
import { handleNavigation } from
|
|
660
|
-
import AnimationGroup from
|
|
659
|
+
import { handleNavigation } from "../helpers";
|
|
660
|
+
import AnimationGroup from "../AnimationGroup/AnimationGroup";
|
|
661
661
|
|
|
662
662
|
const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</span>
|
|
663
663
|
className,
|
|
@@ -682,13 +682,13 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
682
682
|
largerDrawerBottomPadding,
|
|
683
683
|
}) => {
|
|
684
684
|
const [isOpen, setIsOpen] = <span class="cstat-no" title="statement not covered" >useState(openByDefault);</span>
|
|
685
|
-
const MANAGE_ACCESS = <span class="cstat-no" title="statement not covered" >
|
|
686
|
-
const ELIGIBILITY_REPORTING = <span class="cstat-no" title="statement not covered" >
|
|
687
|
-
const REGISTRATION = <span class="cstat-no" title="statement not covered" >
|
|
688
|
-
const SUBMISSION_FEEDBACK = <span class="cstat-no" title="statement not covered" >
|
|
685
|
+
const MANAGE_ACCESS = <span class="cstat-no" title="statement not covered" >"/user/manage-access";</span>
|
|
686
|
+
const ELIGIBILITY_REPORTING = <span class="cstat-no" title="statement not covered" >"/user/dashboard";</span>
|
|
687
|
+
const REGISTRATION = <span class="cstat-no" title="statement not covered" >"/user/registration";</span>
|
|
688
|
+
const SUBMISSION_FEEDBACK = <span class="cstat-no" title="statement not covered" >"/user/submissions/feedback";</span>
|
|
689
689
|
|
|
690
690
|
const toggleDrawer = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
691
|
-
<span class="cstat-no" title="statement not covered" > if (!isExpanded && typeof sidebarExpand ===
|
|
691
|
+
<span class="cstat-no" title="statement not covered" > if (!isExpanded && typeof sidebarExpand === "function") {</span>
|
|
692
692
|
<span class="cstat-no" title="statement not covered" > sidebarExpand();</span>
|
|
693
693
|
<span class="cstat-no" title="statement not covered" > setIsOpen(true);</span>
|
|
694
694
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
@@ -722,7 +722,7 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
722
722
|
};
|
|
723
723
|
|
|
724
724
|
const isLinkActive = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(l</span>ink, func) => {</span>
|
|
725
|
-
<span class="cstat-no" title="statement not covered" > if (typeof func ===
|
|
725
|
+
<span class="cstat-no" title="statement not covered" > if (typeof func === "function") {</span>
|
|
726
726
|
<span class="cstat-no" title="statement not covered" > return func(link);</span>
|
|
727
727
|
}
|
|
728
728
|
<span class="cstat-no" title="statement not covered" > return window.location.href.indexOf(link.url) > 0;</span>
|
|
@@ -747,7 +747,7 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
<span class="cstat-no" title="statement not covered" > if (isHighlighted) {</span>
|
|
750
|
-
<span class="cstat-no" title="statement not covered" > leftIcon +=
|
|
750
|
+
<span class="cstat-no" title="statement not covered" > leftIcon += " fill-white";</span>
|
|
751
751
|
}
|
|
752
752
|
|
|
753
753
|
<span class="cstat-no" title="statement not covered" > return leftIcon;</span>
|
|
@@ -758,7 +758,7 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
758
758
|
{ items, listOfLinks, url },
|
|
759
759
|
linkActiveFunc,
|
|
760
760
|
);
|
|
761
|
-
const expandedClass = <span class="cstat-no" title="statement not covered" >currentPage ?
|
|
761
|
+
const expandedClass = <span class="cstat-no" title="statement not covered" >currentPage ? "expanded" : "";</span>
|
|
762
762
|
|
|
763
763
|
const renderLeftIcon = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(l</span>eftIcon) => {</span>
|
|
764
764
|
<span class="cstat-no" title="statement not covered" > if (leftIcon) {</span>
|
|
@@ -775,35 +775,35 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
775
775
|
};
|
|
776
776
|
|
|
777
777
|
const hasDarkerBackground = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(d</span>arkerBackground) => {</span>
|
|
778
|
-
<span class="cstat-no" title="statement not covered" > return darkerBackground ?
|
|
778
|
+
<span class="cstat-no" title="statement not covered" > return darkerBackground ? "background-highlight" : "";</span>
|
|
779
779
|
};
|
|
780
780
|
|
|
781
781
|
const hasDarkerTitle = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(d</span>arkerBackground) => {</span>
|
|
782
|
-
<span class="cstat-no" title="statement not covered" > return darkerBackground ?
|
|
782
|
+
<span class="cstat-no" title="statement not covered" > return darkerBackground ? "expanded currentPage" : "";</span>
|
|
783
783
|
};
|
|
784
784
|
|
|
785
785
|
const isLeftBorderHighlightDisabled = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(l</span>eftBorderHighlightDisabled) => {</span>
|
|
786
|
-
<span class="cstat-no" title="statement not covered" > return leftBorderHighlightDisabled ?
|
|
786
|
+
<span class="cstat-no" title="statement not covered" > return leftBorderHighlightDisabled ? "left-border-disabled" : "";</span>
|
|
787
787
|
};
|
|
788
788
|
|
|
789
789
|
const isLabelSectionHidden = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(h</span>ideLabelSection) => {</span>
|
|
790
|
-
<span class="cstat-no" title="statement not covered" > return hideLabelSection ?
|
|
790
|
+
<span class="cstat-no" title="statement not covered" > return hideLabelSection ? "hidden-label-section" : "";</span>
|
|
791
791
|
};
|
|
792
792
|
|
|
793
793
|
const isHiddenWhileCollapsed = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(i</span>sLeftBorderDisabled, isExpanded) => {</span>
|
|
794
|
-
<span class="cstat-no" title="statement not covered" > return isLeftBorderDisabled && !isExpanded ?
|
|
794
|
+
<span class="cstat-no" title="statement not covered" > return isLeftBorderDisabled && !isExpanded ? "hidden-nav-link-item" : "";</span>
|
|
795
795
|
};
|
|
796
796
|
|
|
797
797
|
const highlightTitle = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(i</span>sHighlighted) => {</span>
|
|
798
|
-
<span class="cstat-no" title="statement not covered" > return isHighlighted && isExpanded ?
|
|
798
|
+
<span class="cstat-no" title="statement not covered" > return isHighlighted && isExpanded ? "highlight" : "";</span>
|
|
799
799
|
};
|
|
800
800
|
|
|
801
801
|
const hasLargerDrawBottomPadding = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(l</span>argerDrawerBottomPadding) => {</span>
|
|
802
|
-
<span class="cstat-no" title="statement not covered" > return largerDrawerBottomPadding ?
|
|
802
|
+
<span class="cstat-no" title="statement not covered" > return largerDrawerBottomPadding ? "larger-drawer-bottom-padding" : "";</span>
|
|
803
803
|
};
|
|
804
804
|
|
|
805
805
|
const adjustItemSpacing = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(l</span>argerDrawerBottomPadding) => {</span>
|
|
806
|
-
<span class="cstat-no" title="statement not covered" > return largerDrawerBottomPadding ?
|
|
806
|
+
<span class="cstat-no" title="statement not covered" > return largerDrawerBottomPadding ? "larger-item-spacing" : "";</span>
|
|
807
807
|
};
|
|
808
808
|
|
|
809
809
|
<span class="cstat-no" title="statement not covered" > useEffect(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
@@ -817,11 +817,11 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
817
817
|
|
|
818
818
|
// Render the links recursively. This will theoretically allow for an infinite number of nested link items.
|
|
819
819
|
// className will either be empty, parent-link - top most node, or child-link.
|
|
820
|
-
const renderDrawerLinksRecursively = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(n</span>avLinks, className = <span class="branch-0 cbranch-no" title="branch not covered" >
|
|
820
|
+
const renderDrawerLinksRecursively = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(n</span>avLinks, className = <span class="branch-0 cbranch-no" title="branch not covered" >"")</span> => {</span>
|
|
821
821
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
822
822
|
navLinks &&
|
|
823
823
|
navLinks.map(<span class="fstat-no" title="function not covered" >(l</span>ink, index) => {
|
|
824
|
-
<span class="cstat-no" title="statement not covered" > if (link.type ===
|
|
824
|
+
<span class="cstat-no" title="statement not covered" > if (link.type === "divider") {</span>
|
|
825
825
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
826
826
|
<AnimationGroup display={true} key={index}>
|
|
827
827
|
<hr />
|
|
@@ -842,10 +842,10 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
842
842
|
<a
|
|
843
843
|
href={link.url}
|
|
844
844
|
onClick={<span class="fstat-no" title="function not covered" >(e</span>) => <span class="cstat-no" title="statement not covered" >handleNavigation(e, linkCallback, link.label)}</span>
|
|
845
|
-
tabIndex={isOpen ?
|
|
845
|
+
tabIndex={isOpen ? "0" : "-1"}
|
|
846
846
|
data-track-category="SidebarNav"
|
|
847
847
|
data-track-action={`GoTo${
|
|
848
|
-
link.label ? link.label.split(
|
|
848
|
+
link.label ? link.label.split(" ").join("") : ""
|
|
849
849
|
}`}
|
|
850
850
|
data-track-label={link.label}
|
|
851
851
|
target="_self"
|
|
@@ -857,7 +857,7 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
857
857
|
)}
|
|
858
858
|
{link.items && link.items.length > 0 && (
|
|
859
859
|
<ul aria-hidden={!isOpen}>
|
|
860
|
-
{renderDrawerLinksRecursively(link.items,
|
|
860
|
+
{renderDrawerLinksRecursively(link.items, "child-link")}
|
|
861
861
|
</ul>
|
|
862
862
|
)}
|
|
863
863
|
</li>
|
|
@@ -867,11 +867,11 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
867
867
|
};
|
|
868
868
|
|
|
869
869
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
870
|
-
<div className={staticDrawer ?
|
|
870
|
+
<div className={staticDrawer ? "static-drawer link-drawer" : "link-drawer"}>
|
|
871
871
|
{label && (
|
|
872
872
|
<button
|
|
873
873
|
onClick={toggleDrawer}
|
|
874
|
-
{...(!isAlwaysOpen ? {
|
|
874
|
+
{...(!isAlwaysOpen ? { "aria-pressed": isOpen } : {})}
|
|
875
875
|
tabIndex="0"
|
|
876
876
|
aria-label={label}
|
|
877
877
|
{...((parentReroute(url) && isAlwaysOpen) || disabled
|
|
@@ -880,13 +880,13 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
880
880
|
className={`${className} ${expandedClass} ${highlightTitle(
|
|
881
881
|
isHighlighted,
|
|
882
882
|
)} ${hasDarkerTitle(darkerBackground)}
|
|
883
|
-
${currentPage ?
|
|
883
|
+
${currentPage ? "currentPage" : ""} ${isLeftBorderHighlightDisabled(
|
|
884
884
|
leftBorderHighlightDisabled,
|
|
885
885
|
)}
|
|
886
886
|
${isLabelSectionHidden(hideLabelSection)}
|
|
887
887
|
${isHiddenWhileCollapsed(leftBorderHighlightDisabled, isExpanded)}`}
|
|
888
888
|
>
|
|
889
|
-
<div className={isExpanded ?
|
|
889
|
+
<div className={isExpanded ? "link-body" : "link-body collapsed"}>
|
|
890
890
|
{renderLeftIcon(leftIcon)}
|
|
891
891
|
<AnimationGroup display={isExpanded}>
|
|
892
892
|
<span className="sidebar-inline-link-label">{label}</span>
|
|
@@ -894,7 +894,7 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
894
894
|
</div>
|
|
895
895
|
{isExpanded && !isAlwaysOpen && (
|
|
896
896
|
<svg
|
|
897
|
-
className={`${isOpen ?
|
|
897
|
+
className={`${isOpen ? "right-icon rotated" : "right-icon"}`}
|
|
898
898
|
focusable="false"
|
|
899
899
|
aria-hidden="true"
|
|
900
900
|
>
|
|
@@ -905,8 +905,8 @@ const NavLinkDrawer = <span class="fstat-no" title="function not covered" >({</s
|
|
|
905
905
|
)}
|
|
906
906
|
<AnimationGroup display={isExpanded}>
|
|
907
907
|
<div
|
|
908
|
-
className={`${currentPage ?
|
|
909
|
-
isOpen && !disabled ?
|
|
908
|
+
className={`${currentPage ? "currentPage" : ""} ${
|
|
909
|
+
isOpen && !disabled ? "drawer open" : "drawer"
|
|
910
910
|
} ${hasDarkerBackground(
|
|
911
911
|
darkerBackground,
|
|
912
912
|
)} ${hasLargerDrawBottomPadding(largerDrawerBottomPadding)}`}
|
|
@@ -955,7 +955,7 @@ export default NavLinkDrawer;
|
|
|
955
955
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
956
956
|
Code coverage generated by
|
|
957
957
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
958
|
-
at 2023-
|
|
958
|
+
at 2023-10-09T20:35:15.116Z
|
|
959
959
|
</div>
|
|
960
960
|
<script src="../../../../prettify.js"></script>
|
|
961
961
|
<script>
|
|
@@ -283,10 +283,10 @@
|
|
|
283
283
|
<span class="cline-any cline-neutral"> </span>
|
|
284
284
|
<span class="cline-any cline-neutral"> </span>
|
|
285
285
|
<span class="cline-any cline-neutral"> </span>
|
|
286
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from
|
|
287
|
-
import { handleNavigation } from
|
|
288
|
-
import AnimationGroup from
|
|
289
|
-
import PropTypes from
|
|
286
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from "react";
|
|
287
|
+
import { handleNavigation } from "../helpers";
|
|
288
|
+
import AnimationGroup from "../AnimationGroup/AnimationGroup";
|
|
289
|
+
import PropTypes from "prop-types";
|
|
290
290
|
|
|
291
291
|
const NavLinkInline = <span class="fstat-no" title="function not covered" >({</span>
|
|
292
292
|
url,
|
|
@@ -303,7 +303,7 @@ const NavLinkInline = <span class="fstat-no" title="function not covered" >({</s
|
|
|
303
303
|
}) => {
|
|
304
304
|
const localUrl = <span class="cstat-no" title="statement not covered" >urlExpressionToMatch || url;</span>
|
|
305
305
|
const urlRegExp = <span class="cstat-no" title="statement not covered" >new RegExp(`${localUrl}/?$`);</span>
|
|
306
|
-
const path = <span class="cstat-no" title="statement not covered" >window.location.href && window.location.href.split(
|
|
306
|
+
const path = <span class="cstat-no" title="statement not covered" >window.location.href && window.location.href.split("?")[0];</span>
|
|
307
307
|
const currentPage = <span class="cstat-no" title="statement not covered" >path && path.match(urlRegExp);</span>
|
|
308
308
|
const svgRef = <span class="cstat-no" title="statement not covered" >React.useRef();</span>
|
|
309
309
|
const [showTooltip, setShowTooltip] = <span class="cstat-no" title="statement not covered" >useState(false);</span>
|
|
@@ -318,18 +318,18 @@ const NavLinkInline = <span class="fstat-no" title="function not covered" >({</s
|
|
|
318
318
|
<span class="cstat-no" title="statement not covered" > if (tooltipRef.current) {</span>
|
|
319
319
|
const svgOffset = <span class="cstat-no" title="statement not covered" >svgRef.current.getBoundingClientRect();</span>
|
|
320
320
|
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.top = `${svgOffset.top - 5}px`;</span>
|
|
321
|
-
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.display =
|
|
321
|
+
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.display = "block";</span>
|
|
322
322
|
}
|
|
323
|
-
<span class="cstat-no" title="statement not covered" > if (typeof existingMouseenter ===
|
|
323
|
+
<span class="cstat-no" title="statement not covered" > if (typeof existingMouseenter === "function") {</span>
|
|
324
324
|
<span class="cstat-no" title="statement not covered" > existingMouseenter();</span>
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
327
|
|
|
328
328
|
<span class="cstat-no" title="statement not covered" > svgRef.current.onmouseout = <span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
329
329
|
<span class="cstat-no" title="statement not covered" > if (tooltipRef.current) {</span>
|
|
330
|
-
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.display =
|
|
330
|
+
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.display = "none";</span>
|
|
331
331
|
}
|
|
332
|
-
<span class="cstat-no" title="statement not covered" > if (typeof existingMouseout ===
|
|
332
|
+
<span class="cstat-no" title="statement not covered" > if (typeof existingMouseout === "function") {</span>
|
|
333
333
|
<span class="cstat-no" title="statement not covered" > existingMouseout();</span>
|
|
334
334
|
}
|
|
335
335
|
};
|
|
@@ -345,17 +345,17 @@ const NavLinkInline = <span class="fstat-no" title="function not covered" >({</s
|
|
|
345
345
|
<a
|
|
346
346
|
href={disabled ? undefined : url}
|
|
347
347
|
onClick={<span class="fstat-no" title="function not covered" >(e</span>) => <span class="cstat-no" title="statement not covered" >handleNavigation(e, linkCallback, label)}</span>
|
|
348
|
-
className={`${className} ${currentPage || isActive ?
|
|
349
|
-
disabled ?
|
|
348
|
+
className={`${className} ${currentPage || isActive ? "active" : ""} ${
|
|
349
|
+
disabled ? "disabled" : ""
|
|
350
350
|
}`}
|
|
351
351
|
data-track-category="SidebarNav"
|
|
352
|
-
data-track-action={`GoTo${label ? label.split(
|
|
352
|
+
data-track-action={`GoTo${label ? label.split(" ").join("") : ""}`}
|
|
353
353
|
data-track-label={label}
|
|
354
354
|
aria-label={label}
|
|
355
|
-
target={`${target ? target :
|
|
355
|
+
target={`${target ? target : "_self"}`}
|
|
356
356
|
>
|
|
357
357
|
<svg
|
|
358
|
-
className={`left-icon ${disabled ?
|
|
358
|
+
className={`left-icon ${disabled ? "disabled" : ""}`}
|
|
359
359
|
aria-hidden="true"
|
|
360
360
|
focusable="false"
|
|
361
361
|
ref={svgRef}
|
|
@@ -400,7 +400,7 @@ export default NavLinkInline;
|
|
|
400
400
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
401
401
|
Code coverage generated by
|
|
402
402
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
403
|
-
at 2023-
|
|
403
|
+
at 2023-10-09T20:35:15.116Z
|
|
404
404
|
</div>
|
|
405
405
|
<script src="../../../../prettify.js"></script>
|
|
406
406
|
<script>
|