supernav-test 2.2.17 → 2.2.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/App.css +38 -0
- package/dist/App.test.js +8 -6
- package/dist/LsacContainer.js +25 -10
- package/dist/components/lsac-supernavbar/AuthWrapper.js +92 -44
- package/dist/components/lsac-supernavbar/LsacSidebar.js +40 -27
- package/dist/components/lsac-supernavbar/Store.js +20 -10
- package/dist/components/lsac-supernavbar/actions/AuthActions.js +23 -16
- package/dist/components/lsac-supernavbar/actions/SidebarActions.js +75 -61
- package/dist/components/lsac-supernavbar/components/Sidebar.js +308 -184
- package/dist/components/lsac-supernavbar/components/SidebarForm.js +18 -5
- package/dist/components/lsac-supernavbar/components/SidebarMainLink.js +118 -54
- package/dist/components/lsac-supernavbar/components/SidebarOption.js +19 -5
- package/dist/components/lsac-supernavbar/components/SidebarSubMenu.js +147 -61
- package/dist/components/lsac-supernavbar/components/SidebarTab.js +65 -46
- package/dist/components/lsac-supernavbar/components/Topnav.js +160 -63
- package/dist/components/lsac-supernavbar/components/sidebar_submenus/CategorizedSubmenu.js +100 -53
- package/dist/components/lsac-supernavbar/components/sidebar_submenus/Marketplace.js +16 -4
- package/dist/components/lsac-supernavbar/constants/SidebarConstants.js +13 -8
- package/dist/components/lsac-supernavbar/constants/UtilityConstants.js +24 -13
- package/dist/components/lsac-supernavbar/interfaces/Models.js +13 -8
- package/dist/components/lsac-supernavbar/interfaces/Redux.js +4 -1
- package/dist/components/lsac-supernavbar/reducers/AuthReducer.js +37 -15
- package/dist/components/lsac-supernavbar/reducers/RootReducer.js +17 -8
- package/dist/components/lsac-supernavbar/reducers/SidebarReducer.js +92 -45
- package/dist/components/lsac-supernavbar/resources/icomoon-library.json +1 -1
- package/dist/components/lsac-supernavbar/static/images/close-hamburger-icon.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/hamburger-icon.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/icon-user.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/saama_logo.png +0 -0
- package/dist/components/lsac-supernavbar/static/images/saama_logo.svg +26 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/caret_down.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/caret_left.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/caret_right.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/caret_up.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/glyph1_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/management_icon.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/marketplace_icon.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/my_apps.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/rbqm-triangle.svg +31 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/rightIcon.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/space_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/triangle-exclamation.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E$A32_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E$A36_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E0$A1_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E0$E$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E0$F0_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E00$B_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E00$D_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E002_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E070_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E086_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E092_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$B$A_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$B$F_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$B5_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$C8_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D$C_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D$F_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D5_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D6_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D9_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$F$E_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$F7_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$C_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$D_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$E_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$F_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E101_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E110_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E115_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E123_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E138_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E14$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E150_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E185_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E186_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E187_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$A7_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$A9_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$B7_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$C$F_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$D$C_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$D$D_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$F$F_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E20$B_comprehend.svg +10 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E201_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E204_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E23$A_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E250_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E279_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E28$E_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E29$C_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$A7_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$A8_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$B3_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$D3_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$D4_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$D7_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E301_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E35$A_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E35$E_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E36$E_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E362_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E37$A_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E370_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E2_comprehend.svg +11 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E4_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E5_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E7_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E418_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E42$E_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E42$F_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E43$A_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E43$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E430_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E431_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E445_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E465_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E475_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E481_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$A_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$B_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$C_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$D_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$E_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$F_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E600_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E601_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E602_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E603_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E604_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E605_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E606_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E607_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E608_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E609_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$A_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$C_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$F_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E610_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E611_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E612_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E613_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E614_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E615_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E616_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E617_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E618_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E619_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E620_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E621_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E622_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E623_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E624_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E625_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E626_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$A_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$C_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$D_comprehend.svg +14 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$E_comprehend.svg +10 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$F_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E900_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E901_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E902_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E903_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E904_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E905_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E907_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E908_comprehend.svg +16 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E909_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$A_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$C_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$E_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$F_comprehend.svg +16 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E910_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E911_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E912_comprehend.svg +11 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E913_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E914_comprehend.svg +11 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E915_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E917_comprehend.svg +34 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E918_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E919_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E920_comprehend.svg +11 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E921_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E93$D_comprehend.svg +13 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni0001_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/stylesheets/LsacSidebar.css +73 -0
- package/dist/components/lsac-supernavbar/stylesheets/font-face.scss +12 -0
- package/dist/components/lsac-supernavbar/stylesheets/font-sizer.scss +4 -0
- package/dist/components/lsac-supernavbar/stylesheets/fontIcons.css +540 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.eot +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.svg +3521 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.ttf +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.woff +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.woff2 +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/comprehend.eot +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/comprehend.svg +190 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/comprehend.ttf +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/comprehend.woff +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/form.scss +16 -0
- package/dist/components/lsac-supernavbar/stylesheets/sidebar-main-link.scss +72 -0
- package/dist/components/lsac-supernavbar/stylesheets/sidebar.scss +222 -0
- package/dist/components/lsac-supernavbar/stylesheets/study-filter.scss +358 -0
- package/dist/components/lsac-supernavbar/stylesheets/topnav.scss +371 -0
- package/dist/components/lsac-supernavbar/test/App.test.js +25 -19
- package/dist/components/lsac-supernavbar/util/SubmenuUtil.js +200 -104
- package/dist/components/lsac-supernavbar/util/Util.js +49 -22
- package/dist/index.css +13 -0
- package/dist/index.js +17 -12
- package/dist/logo.svg +1 -0
- package/dist/react-app-env.d.js +2 -0
- package/dist/reportWebVitals.js +31 -30
- package/dist/setupTests.js +2 -6
- package/package.json +3 -2
- package/dist/caf68d0a64d31f733320266312e3a2ca.svg +0 -1
- package/dist/index.html +0 -1
package/dist/App.css
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
.App {
|
2
|
+
text-align: center;
|
3
|
+
}
|
4
|
+
|
5
|
+
.App-logo {
|
6
|
+
height: 40vmin;
|
7
|
+
pointer-events: none;
|
8
|
+
}
|
9
|
+
|
10
|
+
@media (prefers-reduced-motion: no-preference) {
|
11
|
+
.App-logo {
|
12
|
+
animation: App-logo-spin infinite 20s linear;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
.App-header {
|
17
|
+
background-color: #282c34;
|
18
|
+
min-height: 100vh;
|
19
|
+
display: flex;
|
20
|
+
flex-direction: column;
|
21
|
+
align-items: center;
|
22
|
+
justify-content: center;
|
23
|
+
font-size: calc(10px + 2vmin);
|
24
|
+
color: white;
|
25
|
+
}
|
26
|
+
|
27
|
+
.App-link {
|
28
|
+
color: #61dafb;
|
29
|
+
}
|
30
|
+
|
31
|
+
@keyframes App-logo-spin {
|
32
|
+
from {
|
33
|
+
transform: rotate(0deg);
|
34
|
+
}
|
35
|
+
to {
|
36
|
+
transform: rotate(360deg);
|
37
|
+
}
|
38
|
+
}
|
package/dist/App.test.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
|
3
|
+
var _react = require("@testing-library/react");
|
4
|
+
|
5
|
+
test('renders learn react link', function () {
|
6
|
+
var linkElement = _react.screen.getByText(/learn react/i);
|
7
|
+
|
8
|
+
expect(linkElement).toBeInTheDocument();
|
9
|
+
});
|
package/dist/LsacContainer.js
CHANGED
@@ -1,14 +1,29 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
|
7
10
|
require("./App.css");
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
+
|
12
|
+
var _LsacSidebar = _interopRequireDefault(require("./components/lsac-supernavbar/LsacSidebar"));
|
13
|
+
|
14
|
+
var _reactRedux = require("react-redux");
|
15
|
+
|
16
|
+
var _Store = _interopRequireDefault(require("./components/lsac-supernavbar/Store"));
|
17
|
+
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
+
|
11
20
|
function LsacContainer(props) {
|
12
|
-
|
21
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
22
|
+
className: "App"
|
23
|
+
}, /*#__PURE__*/_react.default.createElement(_reactRedux.Provider, {
|
24
|
+
store: _Store.default
|
25
|
+
}, /*#__PURE__*/_react.default.createElement(_LsacSidebar.default, props)));
|
13
26
|
}
|
14
|
-
|
27
|
+
|
28
|
+
var _default = LsacContainer;
|
29
|
+
exports.default = _default;
|
@@ -1,47 +1,95 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
11
|
+
|
12
|
+
var _reactRedux = require("react-redux");
|
13
|
+
|
14
|
+
var _AuthActions = require("./actions/AuthActions");
|
15
|
+
|
16
|
+
var _SidebarActions = require("./actions/SidebarActions");
|
17
|
+
|
18
|
+
var _Topnav = _interopRequireDefault(require("./components/Topnav"));
|
19
|
+
|
20
|
+
var _Sidebar = _interopRequireDefault(require("./components/Sidebar"));
|
21
|
+
|
22
|
+
var _UtilityConstants = require("./constants/UtilityConstants");
|
23
|
+
|
24
|
+
var _Util = _interopRequireDefault(require("./util/Util"));
|
25
|
+
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
27
|
+
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
|
+
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
31
|
+
|
15
32
|
function AuthWrapper(props) {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
33
|
+
var currentNav = props.currentNav,
|
34
|
+
sidebarOptions = props.sidebarOptions,
|
35
|
+
appContext = props.appContext,
|
36
|
+
extraTopNavComponent = props.extraTopNavComponent,
|
37
|
+
ignoreUniversalFontSizer = props.ignoreUniversalFontSizer,
|
38
|
+
topNavHeight = props.topNavHeight,
|
39
|
+
applicationTitle = props.applicationTitle,
|
40
|
+
runMode = props.runMode,
|
41
|
+
userInfo = props.userInfo,
|
42
|
+
accountName = props.accountName,
|
43
|
+
accountSwitchUrl = props.accountSwitchUrl,
|
44
|
+
logoutUrl = props.logoutUrl,
|
45
|
+
topnavDisplayMode = props.topnavDisplayMode,
|
46
|
+
sidebarDisplayMode = props.sidebarDisplayMode;
|
47
|
+
var uiDevMode = runMode === _UtilityConstants.RunModes.UI_DEV_MODE;
|
48
|
+
var dispatch = (0, _reactRedux.useDispatch)();
|
49
|
+
(0, _react.useEffect)(function () {
|
50
|
+
dispatch((0, _AuthActions.setUiDevMode)(uiDevMode));
|
51
|
+
}, [uiDevMode]); // Once we have an initialized keycloak, then fetch the userInfo's information
|
52
|
+
|
53
|
+
(0, _react.useEffect)(function () {
|
54
|
+
if (!uiDevMode && userInfo) {
|
55
|
+
dispatch((0, _AuthActions.setUserInfo)(userInfo));
|
56
|
+
}
|
57
|
+
}, [uiDevMode, userInfo]);
|
58
|
+
(0, _react.useEffect)(function () {
|
59
|
+
if (uiDevMode) {
|
60
|
+
dispatch((0, _AuthActions.setUserInfo)({
|
61
|
+
name: 'test-userInfo'
|
62
|
+
}));
|
63
|
+
}
|
64
|
+
}, [uiDevMode]); // If the calling application has local application links, set those in the store so they can be consumed by the Sidebar
|
65
|
+
|
66
|
+
(0, _react.useEffect)(function () {
|
67
|
+
if (sidebarOptions && sidebarOptions.length > 0) {
|
68
|
+
var applications = _Util.default.sidebarOptionsToApplication(sidebarOptions);
|
69
|
+
|
70
|
+
dispatch((0, _SidebarActions.SetLocalApps)(applications));
|
71
|
+
}
|
72
|
+
}, [sidebarOptions]);
|
73
|
+
var isReady = uiDevMode || userInfo;
|
74
|
+
return isReady ? /*#__PURE__*/_react.default.createElement("div", {
|
75
|
+
id: "lsac-supernavbar-root"
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_Topnav.default, {
|
77
|
+
extraTopNavComponent: extraTopNavComponent,
|
78
|
+
topNavHeight: topNavHeight,
|
79
|
+
applicationTitle: applicationTitle,
|
80
|
+
accountName: accountName,
|
81
|
+
accountSwitchUrl: accountSwitchUrl,
|
82
|
+
logoutUrl: logoutUrl,
|
83
|
+
sidebarDisplayMode: sidebarDisplayMode,
|
84
|
+
topnavDisplayMode: topnavDisplayMode
|
85
|
+
}), /*#__PURE__*/_react.default.createElement(_Sidebar.default, {
|
86
|
+
currentNav: currentNav,
|
87
|
+
appContext: appContext,
|
88
|
+
topNavHeight: topNavHeight,
|
89
|
+
sidebarDisplayMode: sidebarDisplayMode,
|
90
|
+
sidebarOptions: sidebarOptions
|
91
|
+
})) : null;
|
46
92
|
}
|
47
|
-
|
93
|
+
|
94
|
+
var _default = AuthWrapper;
|
95
|
+
exports.default = _default;
|
@@ -1,35 +1,48 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
|
10
|
+
var _AuthWrapper = _interopRequireDefault(require("./AuthWrapper"));
|
11
|
+
|
12
|
+
var _UtilityConstants = require("./constants/UtilityConstants");
|
13
|
+
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
+
|
9
16
|
require('./stylesheets/LsacSidebar.css');
|
17
|
+
|
10
18
|
require('./stylesheets/fontIcons.css');
|
19
|
+
|
11
20
|
require('./stylesheets/font-sizer.scss');
|
21
|
+
|
12
22
|
function LsacSidebar(props) {
|
13
|
-
|
14
|
-
|
23
|
+
var content = /*#__PURE__*/_react.default.createElement(_AuthWrapper.default, props);
|
24
|
+
|
25
|
+
return content;
|
15
26
|
}
|
27
|
+
|
16
28
|
LsacSidebar.defaultProps = {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
componentTitle: 'Lsac Supernavbar',
|
30
|
+
apiKey: null,
|
31
|
+
currentNav: '',
|
32
|
+
appContext: '',
|
33
|
+
sidebarOptions: [],
|
34
|
+
extraTopNavComponent: null,
|
35
|
+
ignoreUniversalFontSizer: false,
|
36
|
+
topNavHeight: '3.5rem',
|
37
|
+
applicationTitle: '',
|
38
|
+
runMode: 'ui_dev_mode',
|
39
|
+
hasKeycloakInstance: false,
|
40
|
+
userInfo: null,
|
41
|
+
accountName: '',
|
42
|
+
accountSwitchUrl: '',
|
43
|
+
logoutUrl: '',
|
44
|
+
topnavDisplayMode: _UtilityConstants.TopnavDisplayModes.ALL,
|
45
|
+
sidebarDisplayMode: _UtilityConstants.SidebarDisplayModes.MINIMAL
|
34
46
|
};
|
35
|
-
|
47
|
+
var _default = LsacSidebar;
|
48
|
+
exports.default = _default;
|
@@ -1,12 +1,22 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _redux = require("redux");
|
9
|
+
|
10
|
+
var _reduxThunk = _interopRequireDefault(require("redux-thunk"));
|
11
|
+
|
12
|
+
var _RootReducer = _interopRequireDefault(require("./reducers/RootReducer"));
|
13
|
+
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
+
|
9
16
|
// @ts-ignore
|
10
|
-
|
11
|
-
|
12
|
-
|
17
|
+
var composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || _redux.compose;
|
18
|
+
var store = (0, _redux.createStore)(_RootReducer.default,
|
19
|
+
/* preloadedState, */
|
20
|
+
composeEnhancers((0, _redux.applyMiddleware)(_reduxThunk.default)));
|
21
|
+
var _default = store;
|
22
|
+
exports.default = _default;
|
@@ -1,22 +1,29 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.setUserInfo = setUserInfo;
|
7
|
+
exports.setUiDevMode = setUiDevMode;
|
8
|
+
exports.actionTypes = void 0;
|
4
9
|
var actionTypes;
|
10
|
+
exports.actionTypes = actionTypes;
|
11
|
+
|
5
12
|
(function (actionTypes) {
|
6
|
-
|
7
|
-
|
8
|
-
})(actionTypes
|
13
|
+
actionTypes["SET_UI_DEV_MODE"] = "SET_UI_DEV_MODE";
|
14
|
+
actionTypes["SET_USER_INFO"] = "SET_USER_INFO";
|
15
|
+
})(actionTypes || (exports.actionTypes = actionTypes = {}));
|
16
|
+
|
9
17
|
function setUserInfo(user) {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
18
|
+
return {
|
19
|
+
type: actionTypes.SET_USER_INFO,
|
20
|
+
payload: user
|
21
|
+
};
|
14
22
|
}
|
15
|
-
|
23
|
+
|
16
24
|
function setUiDevMode(uiDevMode) {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
exports.setUiDevMode = setUiDevMode;
|
25
|
+
return {
|
26
|
+
type: actionTypes.SET_UI_DEV_MODE,
|
27
|
+
payload: uiDevMode
|
28
|
+
};
|
29
|
+
}
|
@@ -1,81 +1,95 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.registerSidebarOptions = registerSidebarOptions;
|
7
|
+
exports.registerExtraTopNavComponent = registerExtraTopNavComponent;
|
8
|
+
exports.SetTopnavToggleref = SetTopnavToggleref;
|
9
|
+
exports.SetExpandSidebar = SetExpandSidebar;
|
10
|
+
exports.SetMinimalSidebar = SetMinimalSidebar;
|
11
|
+
exports.SetLocalApps = SetLocalApps;
|
12
|
+
exports.SetSelectedSidebarOption = SetSelectedSidebarOption;
|
13
|
+
exports.ExpandApp = ExpandApp;
|
14
|
+
exports.SetShowExpandedApps = SetShowExpandedApps;
|
15
|
+
exports.actionTypes = void 0;
|
4
16
|
var actionTypes;
|
17
|
+
exports.actionTypes = actionTypes;
|
18
|
+
|
5
19
|
(function (actionTypes) {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
})(actionTypes
|
20
|
+
actionTypes["EXPAND_APP"] = "EXPAND_APP";
|
21
|
+
actionTypes["REGISTER_EXTRA_TOP_NAV_COMPONENT"] = "REGISTER_EXTRA_TOP_NAV_COMPONENT";
|
22
|
+
actionTypes["REGISTER_SIDEBAR_OPTIONS"] = "REGISTER_SIDEBAR_OPTIONS";
|
23
|
+
actionTypes["SET_LOCAL_APPLICATIONS"] = "SET_LOCAL_APPLICATIONS";
|
24
|
+
actionTypes["SET_EXPAND_SIDEBAR"] = "SET_EXPAND_SIDEBAR";
|
25
|
+
actionTypes["SET_SELECTED_SIDEBAR_OPTION"] = "SET_SELECTED_SIDEBAR_OPTION";
|
26
|
+
actionTypes["SET_TOPNAV_TOGGLE_REF"] = "SET_TOPNAV_TOGGLE_REF";
|
27
|
+
actionTypes["SET_MINIMAL_SIDEBAR"] = "SET_MINIMAL_SIDEBAR";
|
28
|
+
actionTypes["SET_SHOW_EXPANDED_APPS"] = "SET_SHOW_EXPANDED_APPS";
|
29
|
+
})(actionTypes || (exports.actionTypes = actionTypes = {}));
|
30
|
+
|
16
31
|
function registerSidebarOptions(options) {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
32
|
+
return {
|
33
|
+
type: actionTypes.REGISTER_SIDEBAR_OPTIONS,
|
34
|
+
payload: options
|
35
|
+
};
|
21
36
|
}
|
22
|
-
|
37
|
+
|
23
38
|
function registerExtraTopNavComponent(component) {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
39
|
+
return {
|
40
|
+
type: actionTypes.REGISTER_EXTRA_TOP_NAV_COMPONENT,
|
41
|
+
payload: component
|
42
|
+
};
|
28
43
|
}
|
29
|
-
|
44
|
+
|
30
45
|
function SetTopnavToggleref(ref) {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
46
|
+
return {
|
47
|
+
type: actionTypes.SET_TOPNAV_TOGGLE_REF,
|
48
|
+
payload: ref
|
49
|
+
};
|
35
50
|
}
|
36
|
-
|
51
|
+
|
37
52
|
function SetExpandSidebar(isExpanded) {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
53
|
+
return {
|
54
|
+
type: actionTypes.SET_EXPAND_SIDEBAR,
|
55
|
+
payload: isExpanded
|
56
|
+
};
|
42
57
|
}
|
43
|
-
|
58
|
+
|
44
59
|
function SetMinimalSidebar(isMinimal) {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
60
|
+
return {
|
61
|
+
type: actionTypes.SET_MINIMAL_SIDEBAR,
|
62
|
+
payload: isMinimal
|
63
|
+
};
|
49
64
|
}
|
50
|
-
|
65
|
+
|
51
66
|
function SetLocalApps(localApps) {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
67
|
+
return {
|
68
|
+
type: actionTypes.SET_LOCAL_APPLICATIONS,
|
69
|
+
payload: localApps
|
70
|
+
};
|
56
71
|
}
|
57
|
-
|
72
|
+
|
58
73
|
function SetSelectedSidebarOption(menuType) {
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
74
|
+
return {
|
75
|
+
type: actionTypes.SET_SELECTED_SIDEBAR_OPTION,
|
76
|
+
payload: menuType
|
77
|
+
};
|
63
78
|
}
|
64
|
-
|
79
|
+
|
65
80
|
function ExpandApp(appKey, isExpanded) {
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
81
|
+
return {
|
82
|
+
type: actionTypes.EXPAND_APP,
|
83
|
+
payload: {
|
84
|
+
appKey: appKey,
|
85
|
+
isExpanded: isExpanded
|
86
|
+
}
|
87
|
+
};
|
73
88
|
}
|
74
|
-
|
89
|
+
|
75
90
|
function SetShowExpandedApps(expanded) {
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
}
|
81
|
-
exports.SetShowExpandedApps = SetShowExpandedApps;
|
91
|
+
return {
|
92
|
+
type: actionTypes.SET_SHOW_EXPANDED_APPS,
|
93
|
+
payload: expanded
|
94
|
+
};
|
95
|
+
}
|