supernav-test 2.2.14 → 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.d.ts +1 -0
- package/dist/App.test.js +9 -0
- package/dist/LsacContainer.d.ts +4 -0
- package/dist/LsacContainer.js +29 -0
- package/dist/components/lsac-supernavbar/AuthWrapper.d.ts +4 -0
- package/dist/components/lsac-supernavbar/AuthWrapper.js +95 -0
- package/dist/components/lsac-supernavbar/LsacSidebar.d.ts +44 -0
- package/dist/components/lsac-supernavbar/LsacSidebar.js +48 -0
- package/dist/components/lsac-supernavbar/Store.d.ts +3 -0
- package/dist/components/lsac-supernavbar/Store.js +22 -0
- package/dist/components/lsac-supernavbar/actions/AuthActions.d.ts +8 -0
- package/dist/components/lsac-supernavbar/actions/AuthActions.js +29 -0
- package/dist/components/lsac-supernavbar/actions/SidebarActions.d.ts +23 -0
- package/dist/components/lsac-supernavbar/actions/SidebarActions.js +95 -0
- package/dist/components/lsac-supernavbar/components/Sidebar.d.ts +13 -0
- package/dist/components/lsac-supernavbar/components/Sidebar.js +317 -0
- package/dist/components/lsac-supernavbar/components/SidebarForm.d.ts +5 -0
- package/dist/components/lsac-supernavbar/components/SidebarForm.js +21 -0
- package/dist/components/lsac-supernavbar/components/SidebarMainLink.d.ts +14 -0
- package/dist/components/lsac-supernavbar/components/SidebarMainLink.js +124 -0
- package/dist/components/lsac-supernavbar/components/SidebarOption.d.ts +4 -0
- package/dist/components/lsac-supernavbar/components/SidebarOption.js +22 -0
- package/dist/components/lsac-supernavbar/components/SidebarSubMenu.d.ts +5 -0
- package/dist/components/lsac-supernavbar/components/SidebarSubMenu.js +154 -0
- package/dist/components/lsac-supernavbar/components/SidebarTab.d.ts +1 -0
- package/dist/components/lsac-supernavbar/components/SidebarTab.js +69 -0
- package/dist/components/lsac-supernavbar/components/Topnav.d.ts +14 -0
- package/dist/components/lsac-supernavbar/components/Topnav.js +173 -0
- package/dist/components/lsac-supernavbar/components/sidebar_submenus/CategorizedSubmenu.d.ts +9 -0
- package/dist/components/lsac-supernavbar/components/sidebar_submenus/CategorizedSubmenu.js +104 -0
- package/dist/components/lsac-supernavbar/components/sidebar_submenus/Marketplace.d.ts +5 -0
- package/dist/components/lsac-supernavbar/components/sidebar_submenus/Marketplace.js +19 -0
- package/dist/components/lsac-supernavbar/constants/SidebarConstants.d.ts +8 -0
- package/dist/components/lsac-supernavbar/constants/SidebarConstants.js +17 -0
- package/dist/components/lsac-supernavbar/constants/UtilityConstants.d.ts +15 -0
- package/dist/components/lsac-supernavbar/constants/UtilityConstants.js +32 -0
- package/dist/components/lsac-supernavbar/interfaces/Models.d.ts +65 -0
- package/dist/components/lsac-supernavbar/interfaces/Models.js +17 -0
- package/dist/components/lsac-supernavbar/interfaces/Redux.d.ts +7 -0
- package/dist/components/lsac-supernavbar/interfaces/Redux.js +5 -0
- package/dist/components/lsac-supernavbar/reducers/AuthReducer.d.ts +7 -0
- package/dist/components/lsac-supernavbar/reducers/AuthReducer.js +41 -0
- package/dist/components/lsac-supernavbar/reducers/RootReducer.d.ts +5 -0
- package/dist/components/lsac-supernavbar/reducers/RootReducer.js +19 -0
- package/dist/components/lsac-supernavbar/reducers/SidebarReducer.d.ts +17 -0
- package/dist/components/lsac-supernavbar/reducers/SidebarReducer.js +96 -0
- package/dist/components/lsac-supernavbar/resources/icomoon-library.json +1 -0
- 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.d.ts +1 -0
- package/dist/components/lsac-supernavbar/test/App.test.js +28 -0
- package/dist/components/lsac-supernavbar/util/SubmenuUtil.d.ts +9 -0
- package/dist/components/lsac-supernavbar/util/SubmenuUtil.js +208 -0
- package/dist/components/lsac-supernavbar/util/Util.d.ts +4 -0
- package/dist/components/lsac-supernavbar/util/Util.js +51 -0
- package/dist/index.css +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +22 -67
- package/dist/logo.svg +1 -0
- package/dist/react-app-env.d.js +2 -0
- package/dist/reportWebVitals.d.ts +3 -0
- package/dist/reportWebVitals.js +34 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +3 -0
- package/package.json +11 -4
- package/src/App.css +38 -0
- package/src/App.test.tsx +8 -0
- package/src/LsacContainer.tsx +17 -0
- package/src/components/lsac-supernavbar/AuthWrapper.tsx +63 -0
- package/src/components/lsac-supernavbar/LsacSidebar.tsx +60 -0
- package/src/components/lsac-supernavbar/Store.ts +8 -0
- package/src/components/lsac-supernavbar/actions/AuthActions.ts +21 -0
- package/src/components/lsac-supernavbar/actions/SidebarActions.ts +81 -0
- package/src/components/lsac-supernavbar/components/Sidebar.tsx +235 -0
- package/src/components/lsac-supernavbar/components/SidebarForm.tsx +15 -0
- package/src/components/lsac-supernavbar/components/SidebarMainLink.tsx +86 -0
- package/src/components/lsac-supernavbar/components/SidebarOption.tsx +13 -0
- package/src/components/lsac-supernavbar/components/SidebarSubMenu.tsx +82 -0
- package/src/components/lsac-supernavbar/components/SidebarTab.jsx +56 -0
- package/src/components/lsac-supernavbar/components/Topnav.tsx +140 -0
- package/src/components/lsac-supernavbar/components/sidebar_submenus/CategorizedSubmenu.tsx +69 -0
- package/src/components/lsac-supernavbar/components/sidebar_submenus/Marketplace.tsx +13 -0
- package/src/components/lsac-supernavbar/constants/SidebarConstants.ts +8 -0
- package/src/components/lsac-supernavbar/constants/UtilityConstants.ts +17 -0
- package/src/components/lsac-supernavbar/interfaces/Models.ts +71 -0
- package/src/components/lsac-supernavbar/interfaces/Redux.ts +9 -0
- package/src/components/lsac-supernavbar/reducers/AuthReducer.ts +24 -0
- package/src/components/lsac-supernavbar/reducers/RootReducer.ts +13 -0
- package/src/components/lsac-supernavbar/reducers/SidebarReducer.ts +73 -0
- package/src/components/lsac-supernavbar/resources/icomoon-library.json +1 -0
- package/src/components/lsac-supernavbar/static/images/close-hamburger-icon.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/hamburger-icon.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/icon-user.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/saama_logo.png +0 -0
- package/src/components/lsac-supernavbar/static/images/saama_logo.svg +26 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/caret_down.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/caret_left.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/caret_right.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/caret_up.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/glyph1_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/management_icon.svg +12 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/marketplace_icon.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/my_apps.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/rbqm-triangle.svg +31 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/rightIcon.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/space_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/triangle-exclamation.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E$A32_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E$A36_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E0$A1_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E0$E$B_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E0$F0_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E00$B_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E00$D_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E002_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E070_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E086_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E092_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$B$A_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$B$F_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$B5_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$C8_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D$C_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D$F_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D5_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D6_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D9_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$F$E_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$F7_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$C_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$D_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$E_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$F_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E101_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E110_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E115_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E123_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E138_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E14$B_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E150_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E185_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E186_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E187_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$A7_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$A9_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$B7_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$C$F_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$D$C_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$D$D_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$F$F_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E20$B_comprehend.svg +10 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E201_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E204_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E23$A_comprehend.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E250_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E279_comprehend.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E28$E_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E29$C_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$A7_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$A8_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$B3_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$D3_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$D4_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$D7_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E301_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E35$A_comprehend.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E35$E_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E36$E_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E362_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E37$A_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E370_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E2_comprehend.svg +11 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E4_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E5_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E7_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E418_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E42$E_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E42$F_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E43$A_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E43$B_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E430_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E431_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E445_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E465_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E475_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E481_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$A_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$B_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$C_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$D_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$E_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$F_comprehend.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E600_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E601_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E602_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E603_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E604_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E605_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E606_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E607_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E608_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E609_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$A_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$B_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$C_comprehend.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$F_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E610_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E611_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E612_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E613_comprehend.svg +12 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E614_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E615_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E616_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E617_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E618_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E619_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E620_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E621_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E622_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E623_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E624_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E625_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E626_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$A_comprehend.svg +12 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$B_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$C_comprehend.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$D_comprehend.svg +14 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$E_comprehend.svg +10 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$F_comprehend.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E900_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E901_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E902_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E903_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E904_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E905_comprehend.svg +12 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E907_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E908_comprehend.svg +16 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E909_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$A_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$C_comprehend.svg +9 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$E_comprehend.svg +12 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$F_comprehend.svg +16 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E910_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E911_comprehend.svg +12 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E912_comprehend.svg +11 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E913_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E914_comprehend.svg +11 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E915_comprehend.svg +8 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E917_comprehend.svg +34 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E918_comprehend.svg +7 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E919_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E920_comprehend.svg +11 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E921_comprehend.svg +12 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni$E93$D_comprehend.svg +13 -0
- package/src/components/lsac-supernavbar/static/images/sidebar-icons/uni0001_comprehend.svg +6 -0
- package/src/components/lsac-supernavbar/stylesheets/LsacSidebar.css +73 -0
- package/src/components/lsac-supernavbar/stylesheets/font-face.scss +12 -0
- package/src/components/lsac-supernavbar/stylesheets/font-sizer.scss +4 -0
- package/src/components/lsac-supernavbar/stylesheets/fontIcons.css +540 -0
- package/src/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.eot +0 -0
- package/src/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.svg +3521 -0
- package/src/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.ttf +0 -0
- package/src/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.woff +0 -0
- package/src/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.woff2 +0 -0
- package/src/components/lsac-supernavbar/stylesheets/fonts/comprehend.eot +0 -0
- package/src/components/lsac-supernavbar/stylesheets/fonts/comprehend.svg +190 -0
- package/src/components/lsac-supernavbar/stylesheets/fonts/comprehend.ttf +0 -0
- package/src/components/lsac-supernavbar/stylesheets/fonts/comprehend.woff +0 -0
- package/src/components/lsac-supernavbar/stylesheets/form.scss +16 -0
- package/src/components/lsac-supernavbar/stylesheets/sidebar-main-link.scss +72 -0
- package/src/components/lsac-supernavbar/stylesheets/sidebar.scss +222 -0
- package/src/components/lsac-supernavbar/stylesheets/study-filter.scss +358 -0
- package/src/components/lsac-supernavbar/stylesheets/topnav.scss +371 -0
- package/src/components/lsac-supernavbar/test/App.test.js +20 -0
- package/src/components/lsac-supernavbar/util/SubmenuUtil.tsx +153 -0
- package/src/components/lsac-supernavbar/util/Util.ts +24 -0
- package/src/index.css +13 -0
- package/src/index.tsx +18 -0
- package/src/logo.svg +1 -0
- package/src/react-app-env.d.ts +1 -0
- package/src/reportWebVitals.ts +15 -0
- package/src/setupTests.ts +5 -0
- package/dist/1.index.js +0 -1
- package/dist/caf68d0a64d31f733320266312e3a2ca.svg +0 -1
- package/dist/index.html +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "supernav-test",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.18",
|
4
4
|
"private": false,
|
5
5
|
"dependencies": {
|
6
6
|
"@testing-library/jest-dom": "5.14.1",
|
@@ -34,10 +34,13 @@
|
|
34
34
|
"@types/classnames": "2.2.11",
|
35
35
|
"@types/react": "17.0.21",
|
36
36
|
"@types/react-dom": "17.0.9",
|
37
|
-
"@types/react-redux": "7.1.11",
|
37
|
+
"@types/react-redux": "^7.1.11",
|
38
38
|
"@types/react-router": "5.1.8",
|
39
|
+
"@types/redux": "^3.6.0",
|
40
|
+
"@types/redux-thunk": "^2.1.0",
|
39
41
|
"@webpack-cli/serve": "^1.5.2",
|
40
42
|
"babel-loader": "8.1.0",
|
43
|
+
"copyfiles": "^2.4.1",
|
41
44
|
"css-loader": "5.0.0",
|
42
45
|
"customize-cra": "1.0.0",
|
43
46
|
"eslint-plugin-node": "11.0.0",
|
@@ -61,9 +64,11 @@
|
|
61
64
|
"webpack": "4.44.2",
|
62
65
|
"webpack-cli": "3.3.12"
|
63
66
|
},
|
64
|
-
"main": "dist/
|
67
|
+
"main": "dist/LsacContainer.js",
|
68
|
+
"types": "dist/LsacContainer.d.ts",
|
65
69
|
"files": [
|
66
70
|
"dist",
|
71
|
+
"src",
|
67
72
|
"README.md"
|
68
73
|
],
|
69
74
|
"scripts": {
|
@@ -73,7 +78,9 @@
|
|
73
78
|
"eject": "react-scripts eject",
|
74
79
|
"clean": "rm dist/index.js",
|
75
80
|
"build-dev": "webpack --mode development",
|
76
|
-
"build-prod": "webpack --mode production"
|
81
|
+
"build-prod": "webpack --mode production",
|
82
|
+
"tsc-build": "copyfiles -u 1 src/**/*.html src/**/*.css && npx tsc",
|
83
|
+
"publish:npm": "set NODE_ENV=production && rm -rf dist && mkdir dist && npx babel --extensions .tsx,.jsx,.ts,.js src --out-dir dist --copy-files"
|
77
84
|
},
|
78
85
|
"eslintConfig": {
|
79
86
|
"extends": [
|
package/src/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/src/App.test.tsx
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './App.css';
|
3
|
+
import LsacSidebar, { LsacSidebarProps } from './components/lsac-supernavbar/LsacSidebar';
|
4
|
+
import { Provider } from "react-redux";
|
5
|
+
import store from './components/lsac-supernavbar/Store';
|
6
|
+
|
7
|
+
function LsacContainer(props: any) {
|
8
|
+
return (
|
9
|
+
<div className="App">
|
10
|
+
<Provider store={store}>
|
11
|
+
<LsacSidebar {...props} />
|
12
|
+
</Provider>
|
13
|
+
</div>
|
14
|
+
);
|
15
|
+
}
|
16
|
+
|
17
|
+
export default LsacContainer;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import React, { useEffect } from 'react';
|
2
|
+
import { useDispatch } from "react-redux";
|
3
|
+
import { setUiDevMode, setUserInfo } from "./actions/AuthActions";
|
4
|
+
import { SetLocalApps } from './actions/SidebarActions';
|
5
|
+
import TopNav from './components/Topnav';
|
6
|
+
import Sidebar from "./components/Sidebar";
|
7
|
+
import { LsacSidebarProps } from "./LsacSidebar";
|
8
|
+
import { RunModes } from "./constants/UtilityConstants";
|
9
|
+
import { UserInfo } from "./interfaces/Models";
|
10
|
+
import Util from "./util/Util";
|
11
|
+
|
12
|
+
function AuthWrapper(props: LsacSidebarProps) {
|
13
|
+
const { currentNav, sidebarOptions, appContext, extraTopNavComponent, ignoreUniversalFontSizer, topNavHeight, applicationTitle, runMode, userInfo, accountName, accountSwitchUrl, logoutUrl, topnavDisplayMode, sidebarDisplayMode } = props;
|
14
|
+
const uiDevMode = runMode === RunModes.UI_DEV_MODE;
|
15
|
+
const dispatch = useDispatch();
|
16
|
+
|
17
|
+
useEffect(() => {
|
18
|
+
dispatch(setUiDevMode(uiDevMode));
|
19
|
+
}, [uiDevMode]);
|
20
|
+
|
21
|
+
// Once we have an initialized keycloak, then fetch the userInfo's information
|
22
|
+
useEffect(() => {
|
23
|
+
if (!uiDevMode && userInfo) {
|
24
|
+
dispatch(setUserInfo(userInfo));
|
25
|
+
}
|
26
|
+
}, [uiDevMode, userInfo]);
|
27
|
+
|
28
|
+
useEffect(() => {
|
29
|
+
if (uiDevMode) {
|
30
|
+
dispatch(setUserInfo({
|
31
|
+
name: 'test-userInfo'
|
32
|
+
} as UserInfo));
|
33
|
+
}
|
34
|
+
}, [uiDevMode]);
|
35
|
+
|
36
|
+
// If the calling application has local application links, set those in the store so they can be consumed by the Sidebar
|
37
|
+
useEffect(() => {
|
38
|
+
if (sidebarOptions && sidebarOptions.length > 0) {
|
39
|
+
const applications = Util.sidebarOptionsToApplication(sidebarOptions);
|
40
|
+
dispatch(SetLocalApps(applications));
|
41
|
+
}
|
42
|
+
}, [sidebarOptions]);
|
43
|
+
|
44
|
+
const isReady = uiDevMode || userInfo;
|
45
|
+
|
46
|
+
return isReady
|
47
|
+
? (
|
48
|
+
<div id='lsac-supernavbar-root'>
|
49
|
+
<TopNav extraTopNavComponent={extraTopNavComponent} topNavHeight={topNavHeight} applicationTitle={applicationTitle}
|
50
|
+
accountName={accountName} accountSwitchUrl={accountSwitchUrl} logoutUrl={logoutUrl} sidebarDisplayMode={sidebarDisplayMode}
|
51
|
+
topnavDisplayMode={topnavDisplayMode} />
|
52
|
+
<Sidebar currentNav={currentNav}
|
53
|
+
appContext={appContext}
|
54
|
+
topNavHeight={topNavHeight}
|
55
|
+
sidebarDisplayMode={sidebarDisplayMode}
|
56
|
+
sidebarOptions={sidebarOptions}
|
57
|
+
/>
|
58
|
+
</div>
|
59
|
+
)
|
60
|
+
: null;
|
61
|
+
}
|
62
|
+
|
63
|
+
export default AuthWrapper;
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
2
|
+
import { useDispatch } from "react-redux";
|
3
|
+
|
4
|
+
import AuthWrapper from "./AuthWrapper";
|
5
|
+
import { SidebarOption, UserInfo } from "./interfaces/Models";
|
6
|
+
import { RunModes, SidebarDisplayModes, TopnavDisplayModes } from "./constants/UtilityConstants";
|
7
|
+
|
8
|
+
require('./stylesheets/LsacSidebar.css');
|
9
|
+
require('./stylesheets/fontIcons.css');
|
10
|
+
require('./stylesheets/font-sizer.scss');
|
11
|
+
|
12
|
+
export interface LsacSidebarProps {
|
13
|
+
currentNav: string;
|
14
|
+
sidebarOptions: Array<SidebarOption>;
|
15
|
+
applicationTitle: string;
|
16
|
+
appContext?: string;
|
17
|
+
componentTitle: String;
|
18
|
+
extraTopNavComponent: any;
|
19
|
+
ignoreUniversalFontSizer: boolean;
|
20
|
+
topNavHeight: string;
|
21
|
+
runMode: RunModes;
|
22
|
+
hasKeycloakInstance: boolean;
|
23
|
+
userInfo?: UserInfo;
|
24
|
+
accountName: string;
|
25
|
+
accountSwitchUrl: string;
|
26
|
+
logoutUrl: string;
|
27
|
+
sidebarDisplayMode: SidebarDisplayModes;
|
28
|
+
topnavDisplayMode: TopnavDisplayModes;
|
29
|
+
}
|
30
|
+
|
31
|
+
function LsacSidebar(props: LsacSidebarProps) {
|
32
|
+
|
33
|
+
const content = <AuthWrapper {...props} />;
|
34
|
+
|
35
|
+
return (
|
36
|
+
content
|
37
|
+
)
|
38
|
+
}
|
39
|
+
|
40
|
+
LsacSidebar.defaultProps = {
|
41
|
+
componentTitle: 'Lsac Supernavbar',
|
42
|
+
apiKey: null,
|
43
|
+
currentNav: '',
|
44
|
+
appContext: '',
|
45
|
+
sidebarOptions: [],
|
46
|
+
extraTopNavComponent: null,
|
47
|
+
ignoreUniversalFontSizer: false,
|
48
|
+
topNavHeight: '3.5rem',
|
49
|
+
applicationTitle: '',
|
50
|
+
runMode: 'ui_dev_mode',
|
51
|
+
hasKeycloakInstance: false,
|
52
|
+
userInfo: null,
|
53
|
+
accountName: '',
|
54
|
+
accountSwitchUrl: '',
|
55
|
+
logoutUrl: '',
|
56
|
+
topnavDisplayMode: TopnavDisplayModes.ALL,
|
57
|
+
sidebarDisplayMode: SidebarDisplayModes.MINIMAL
|
58
|
+
};
|
59
|
+
|
60
|
+
export default LsacSidebar;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import {createStore, applyMiddleware, compose, Store} from "redux";
|
2
|
+
import thunk from 'redux-thunk';
|
3
|
+
import RootReducer from "./reducers/RootReducer";
|
4
|
+
|
5
|
+
// @ts-ignore
|
6
|
+
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
7
|
+
const store:Store<any> = createStore(RootReducer, /* preloadedState, */ composeEnhancers(applyMiddleware(thunk)));
|
8
|
+
export default store;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import {Action, ThunkAction} from "../interfaces/Redux";
|
2
|
+
import {UserInfo} from "../interfaces/Models";
|
3
|
+
|
4
|
+
export enum actionTypes {
|
5
|
+
SET_UI_DEV_MODE = 'SET_UI_DEV_MODE',
|
6
|
+
SET_USER_INFO = 'SET_USER_INFO',
|
7
|
+
}
|
8
|
+
|
9
|
+
export function setUserInfo(user: UserInfo): Action {
|
10
|
+
return {
|
11
|
+
type: actionTypes.SET_USER_INFO,
|
12
|
+
payload: user,
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
export function setUiDevMode(uiDevMode: boolean): Action {
|
17
|
+
return {
|
18
|
+
type: actionTypes.SET_UI_DEV_MODE,
|
19
|
+
payload: uiDevMode,
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
import {Application, SidebarOption} from "../interfaces/Models";
|
2
|
+
import {Action, ThunkAction} from "../interfaces/Redux";
|
3
|
+
import { SidebarMenuTypes } from "../constants/SidebarConstants";
|
4
|
+
|
5
|
+
export enum actionTypes {
|
6
|
+
EXPAND_APP = 'EXPAND_APP',
|
7
|
+
REGISTER_EXTRA_TOP_NAV_COMPONENT = 'REGISTER_EXTRA_TOP_NAV_COMPONENT',
|
8
|
+
REGISTER_SIDEBAR_OPTIONS = 'REGISTER_SIDEBAR_OPTIONS',
|
9
|
+
SET_LOCAL_APPLICATIONS = 'SET_LOCAL_APPLICATIONS',
|
10
|
+
SET_EXPAND_SIDEBAR = 'SET_EXPAND_SIDEBAR',
|
11
|
+
SET_SELECTED_SIDEBAR_OPTION = 'SET_SELECTED_SIDEBAR_OPTION',
|
12
|
+
SET_TOPNAV_TOGGLE_REF = 'SET_TOPNAV_TOGGLE_REF',
|
13
|
+
SET_MINIMAL_SIDEBAR = 'SET_MINIMAL_SIDEBAR',
|
14
|
+
SET_SHOW_EXPANDED_APPS = 'SET_SHOW_EXPANDED_APPS'
|
15
|
+
}
|
16
|
+
|
17
|
+
export function registerSidebarOptions(options: SidebarOption): Action {
|
18
|
+
return {
|
19
|
+
type: actionTypes.REGISTER_SIDEBAR_OPTIONS,
|
20
|
+
payload: options,
|
21
|
+
};
|
22
|
+
}
|
23
|
+
|
24
|
+
export function registerExtraTopNavComponent(component: Element): Action {
|
25
|
+
return {
|
26
|
+
type: actionTypes.REGISTER_EXTRA_TOP_NAV_COMPONENT,
|
27
|
+
payload: component,
|
28
|
+
};
|
29
|
+
}
|
30
|
+
|
31
|
+
export function SetTopnavToggleref(ref: any): Action {
|
32
|
+
return {
|
33
|
+
type: actionTypes.SET_TOPNAV_TOGGLE_REF,
|
34
|
+
payload: ref
|
35
|
+
};
|
36
|
+
}
|
37
|
+
|
38
|
+
export function SetExpandSidebar(isExpanded: boolean): Action {
|
39
|
+
return {
|
40
|
+
type: actionTypes.SET_EXPAND_SIDEBAR,
|
41
|
+
payload: isExpanded,
|
42
|
+
};
|
43
|
+
}
|
44
|
+
|
45
|
+
export function SetMinimalSidebar(isMinimal: boolean): Action {
|
46
|
+
return {
|
47
|
+
type: actionTypes.SET_MINIMAL_SIDEBAR,
|
48
|
+
payload: isMinimal,
|
49
|
+
};
|
50
|
+
}
|
51
|
+
|
52
|
+
export function SetLocalApps(localApps: Array<Application>): Action {
|
53
|
+
return {
|
54
|
+
type: actionTypes.SET_LOCAL_APPLICATIONS,
|
55
|
+
payload: localApps,
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
export function SetSelectedSidebarOption(menuType: SidebarMenuTypes): Action {
|
60
|
+
return {
|
61
|
+
type: actionTypes.SET_SELECTED_SIDEBAR_OPTION,
|
62
|
+
payload: menuType,
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
export function ExpandApp(appKey: string, isExpanded: boolean): Action {
|
67
|
+
return {
|
68
|
+
type: actionTypes.EXPAND_APP,
|
69
|
+
payload: {
|
70
|
+
appKey,
|
71
|
+
isExpanded
|
72
|
+
},
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
export function SetShowExpandedApps(expanded: boolean): Action {
|
77
|
+
return {
|
78
|
+
type: actionTypes.SET_SHOW_EXPANDED_APPS,
|
79
|
+
payload: expanded
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1,235 @@
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react';
|
2
|
+
import { useDispatch, useSelector } from "react-redux";
|
3
|
+
import cx from 'classnames';
|
4
|
+
import SidebarForm from "./SidebarForm";
|
5
|
+
import { RootState } from "../reducers/RootReducer";
|
6
|
+
import { SetExpandSidebar, SetSelectedSidebarOption, SetMinimalSidebar, SetShowExpandedApps } from "../actions/SidebarActions";
|
7
|
+
import SidebarMainLink, { SidebarMainLinkProps } from "./SidebarMainLink";
|
8
|
+
import SidebarSubMenu from "./SidebarSubMenu";
|
9
|
+
import { SidebarMenuTypes } from "../constants/SidebarConstants";
|
10
|
+
import { SidebarDisplayModes } from "../constants/UtilityConstants";
|
11
|
+
import { KeycloakAppInfo, SidebarCategory, SidebarOption } from "../interfaces/Models";
|
12
|
+
// icon imports
|
13
|
+
import iconSet from "../resources/icomoon-library.json";
|
14
|
+
import IcomoonReact from "icomoon-react";
|
15
|
+
|
16
|
+
const styles = require('../stylesheets/sidebar.scss');
|
17
|
+
|
18
|
+
interface SidebarProps {
|
19
|
+
currentNav: string;
|
20
|
+
appContext?: string;
|
21
|
+
topNavHeight: string;
|
22
|
+
sidebarDisplayMode: SidebarDisplayModes;
|
23
|
+
sidebarOptions: Array<SidebarOption>;
|
24
|
+
}
|
25
|
+
|
26
|
+
// TODO - get proper icons
|
27
|
+
const SidebarMainLinks: Array<SidebarMainLinkProps> = [
|
28
|
+
{
|
29
|
+
id: SidebarMenuTypes.Home,
|
30
|
+
label: 'My Home',
|
31
|
+
icon: (<IcomoonReact
|
32
|
+
iconSet={iconSet}
|
33
|
+
icon="home"
|
34
|
+
/>),
|
35
|
+
onClick: () => console.log('My Home'),
|
36
|
+
subMenu: false,
|
37
|
+
},
|
38
|
+
{
|
39
|
+
id: SidebarMenuTypes.MyApps,
|
40
|
+
label: 'My Apps',
|
41
|
+
icon: (<IcomoonReact
|
42
|
+
iconSet={iconSet}
|
43
|
+
icon="my-apps"
|
44
|
+
/>),
|
45
|
+
onClick: () => console.log('My Apps'),
|
46
|
+
subMenu: false,
|
47
|
+
},
|
48
|
+
{
|
49
|
+
id: SidebarMenuTypes.Management,
|
50
|
+
label: 'Administration',
|
51
|
+
icon: (<IcomoonReact
|
52
|
+
iconSet={iconSet}
|
53
|
+
icon="marketplace-administration"
|
54
|
+
/>),
|
55
|
+
onClick: () => console.log('Management'),
|
56
|
+
subMenu: false,
|
57
|
+
},
|
58
|
+
{
|
59
|
+
id: SidebarMenuTypes.Marketplace,
|
60
|
+
label: 'Marketplace',
|
61
|
+
icon: (<IcomoonReact
|
62
|
+
iconSet={iconSet}
|
63
|
+
icon="marketplace"
|
64
|
+
/>),
|
65
|
+
onClick: () => console.log('Marketplace'),
|
66
|
+
subMenu: false,
|
67
|
+
},
|
68
|
+
{
|
69
|
+
id: SidebarMenuTypes.Collaboration,
|
70
|
+
label: 'Collaboration',
|
71
|
+
icon: (<IcomoonReact
|
72
|
+
iconSet={iconSet}
|
73
|
+
icon="collboration"
|
74
|
+
/>),
|
75
|
+
onClick: () => console.log('Collaboration'),
|
76
|
+
subMenu: false,
|
77
|
+
},
|
78
|
+
{
|
79
|
+
id: SidebarMenuTypes.Engagement,
|
80
|
+
label: 'Engagement',
|
81
|
+
icon: (<IcomoonReact
|
82
|
+
iconSet={iconSet}
|
83
|
+
icon="engagement"
|
84
|
+
/>),
|
85
|
+
onClick: () => console.log('Engagement'),
|
86
|
+
subMenu: false,
|
87
|
+
}
|
88
|
+
];
|
89
|
+
|
90
|
+
|
91
|
+
function Sidebar(props: SidebarProps) {
|
92
|
+
const { appContext, topNavHeight, sidebarDisplayMode, sidebarOptions } = props;
|
93
|
+
|
94
|
+
const reduxDispatch = useDispatch();
|
95
|
+
const expanded = useSelector((state: RootState) => sidebarDisplayMode === SidebarDisplayModes.ALL ? true : state.sidebar.expanded);
|
96
|
+
const isMinimal = useSelector((state: RootState) => state.sidebar.isMinimal);
|
97
|
+
const topNavToggleref = useSelector((state: RootState) => state.sidebar.topnavToggleref);
|
98
|
+
const selectedOption = mapContextToAppsId();
|
99
|
+
|
100
|
+
function mapContextToAppsId() {
|
101
|
+
let selectedSidebarOption = SidebarMenuTypes.MyApps;
|
102
|
+
if (appContext === 'management') {
|
103
|
+
selectedSidebarOption = SidebarMenuTypes.Management;
|
104
|
+
} else if (appContext === 'marketplace') {
|
105
|
+
selectedSidebarOption = SidebarMenuTypes.Marketplace;
|
106
|
+
} else if (appContext === 'collaboration') {
|
107
|
+
selectedSidebarOption = SidebarMenuTypes.Collaboration;
|
108
|
+
} else if (appContext === 'home') {
|
109
|
+
selectedSidebarOption = SidebarMenuTypes.Home;
|
110
|
+
}
|
111
|
+
return selectedSidebarOption;
|
112
|
+
}
|
113
|
+
// When component is loaded fetch the userInfo's available applications
|
114
|
+
useEffect(() => {
|
115
|
+
let selectedSidebarOption = mapContextToAppsId()
|
116
|
+
reduxDispatch(SetMinimalSidebar(sidebarDisplayMode === SidebarDisplayModes.MINIMAL));
|
117
|
+
reduxDispatch(SetSelectedSidebarOption(selectedSidebarOption))
|
118
|
+
}, [reduxDispatch, appContext]);
|
119
|
+
|
120
|
+
//when sidebar is loaded attach listener to detect clicks external to it
|
121
|
+
function useExternalClickListener(ref: any) {
|
122
|
+
useEffect(() => {
|
123
|
+
function handleClickOutside(event: any) {
|
124
|
+
let eventPath = event.composedPath();
|
125
|
+
if (ref.current && !(eventPath.includes(ref.current) || eventPath.includes(topNavToggleref.current)) && expanded === true) {
|
126
|
+
reduxDispatch(SetExpandSidebar(false));
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
// Bind the event listener
|
131
|
+
document.addEventListener("mousedown", handleClickOutside);
|
132
|
+
|
133
|
+
return () => {
|
134
|
+
// Unbind the event listener on clean up
|
135
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
136
|
+
};
|
137
|
+
}, [ref, topNavToggleref, expanded]);
|
138
|
+
}
|
139
|
+
|
140
|
+
const [showForm, setShowForm] = useState(false);
|
141
|
+
const formDisplay = showForm ? <SidebarForm /> : '';
|
142
|
+
|
143
|
+
function CheckManagementAndMarketplaceAccess() {
|
144
|
+
const apps = useSelector((state: RootState) => state.auth.userInfo?.applications || new Array<KeycloakAppInfo>());
|
145
|
+
const appCategories = apps.filter((e:any) => e.attributes !== undefined)
|
146
|
+
.filter((e:any) => e.attributes['category'] !== undefined)
|
147
|
+
.filter((d:any) => Object.keys(d.attributes).length > 0)
|
148
|
+
.map((app:any) => app.attributes['category'].toLowerCase());
|
149
|
+
const appCategoriesForSubApps = apps.filter((e:any) => e.attributes !== undefined)
|
150
|
+
.filter((e:any) => e.attributes['category'] !== undefined)
|
151
|
+
.map((app:any) => app.attributes['category'].toLowerCase());
|
152
|
+
|
153
|
+
let appCategorySubAppsCount = appCategoriesForSubApps.reduce((object:any, element:any) => {
|
154
|
+
object[element] = ++object[element] || 1;
|
155
|
+
return object;
|
156
|
+
}, {});
|
157
|
+
|
158
|
+
if (appCategorySubAppsCount['my_apps'] >= 1) {
|
159
|
+
const index = SidebarMainLinks.findIndex((e:any) => e.id === 'my_apps')
|
160
|
+
SidebarMainLinks[index].subMenu = true
|
161
|
+
}
|
162
|
+
|
163
|
+
if (appCategorySubAppsCount['management'] >= 1) {
|
164
|
+
const index = SidebarMainLinks.findIndex((e:any) => e.id === 'management')
|
165
|
+
SidebarMainLinks[index].subMenu = true
|
166
|
+
}
|
167
|
+
|
168
|
+
const isCollaboration = sidebarOptions.filter(option => option.category === SidebarCategory.COLLABORATION)
|
169
|
+
if (appCategorySubAppsCount['engagement'] >= 1) {
|
170
|
+
const index = SidebarMainLinks.findIndex((e:any) => e.id === 'engagement')
|
171
|
+
SidebarMainLinks[index].subMenu = true
|
172
|
+
}
|
173
|
+
|
174
|
+
|
175
|
+
if (appCategorySubAppsCount['collaboration'] >= 1 || isCollaboration.length) {
|
176
|
+
const index = SidebarMainLinks.findIndex((e:any) => e.id === 'collaboration')
|
177
|
+
SidebarMainLinks[index].subMenu = true
|
178
|
+
}
|
179
|
+
|
180
|
+
const hasManagementAccess = appCategories.includes(SidebarCategory.MANAGEMENT);
|
181
|
+
const hasMarketplaceAccess = appCategories.includes(SidebarCategory.MARKETPLACE);
|
182
|
+
const hasHomeAccess = appCategories.includes(SidebarCategory.MY_HOME);
|
183
|
+
const hasMyAppAccess = appCategories.includes(SidebarCategory.MY_APPS);
|
184
|
+
const hasCollaborationAccess = appCategories.includes(SidebarCategory.COLLABORATION) || sidebarOptions.map(option => option.category).includes(SidebarCategory.COLLABORATION);
|
185
|
+
|
186
|
+
return SidebarMainLinks.filter(mainLinkProps => (mainLinkProps.id.toLowerCase() !== SidebarMenuTypes.Marketplace || hasMarketplaceAccess))
|
187
|
+
.filter(mainLinkProps => (mainLinkProps.id.toLowerCase() !== SidebarMenuTypes.Management || hasManagementAccess))
|
188
|
+
.filter(mainLinkProps => (mainLinkProps.id.toLowerCase() !== SidebarMenuTypes.Home || hasHomeAccess))
|
189
|
+
.filter(mainLinkProps => (mainLinkProps.id.toLowerCase() !== SidebarMenuTypes.MyApps || hasMyAppAccess))
|
190
|
+
.filter(mainLinkProps => (mainLinkProps.id.toLowerCase() !== SidebarMenuTypes.Collaboration || hasCollaborationAccess))
|
191
|
+
.map((mainLinkProps, index) => <SidebarMainLink appContext={appContext} {...mainLinkProps} key={`lsac-sidebar-main-link-${index}`} selectedOption={selectedOption} />);
|
192
|
+
}
|
193
|
+
const mainLinks = CheckManagementAndMarketplaceAccess();
|
194
|
+
|
195
|
+
const topNavHeightBuffer: React.CSSProperties = {
|
196
|
+
top: topNavHeight
|
197
|
+
};
|
198
|
+
|
199
|
+
const sidebarRef = useRef(null);
|
200
|
+
useExternalClickListener(sidebarRef);
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
const handleMouseLeave = () => {
|
205
|
+
if (!isMinimal) {
|
206
|
+
reduxDispatch(SetExpandSidebar(false));
|
207
|
+
reduxDispatch(SetMinimalSidebar(true));
|
208
|
+
}
|
209
|
+
reduxDispatch(SetSelectedSidebarOption(selectedOption));
|
210
|
+
reduxDispatch(SetShowExpandedApps(false));
|
211
|
+
};
|
212
|
+
|
213
|
+
return (
|
214
|
+
<div className={'lsac-sidebar-container'}>
|
215
|
+
<div className={cx('lsac-sidebar', { expanded, isMinimal })}
|
216
|
+
style={topNavHeightBuffer}
|
217
|
+
ref={sidebarRef}
|
218
|
+
|
219
|
+
onMouseLeave={handleMouseLeave}
|
220
|
+
>
|
221
|
+
<div className='icon-strip'>
|
222
|
+
{mainLinks}
|
223
|
+
</div>
|
224
|
+
<div className='submenu'>
|
225
|
+
<SidebarSubMenu />
|
226
|
+
</div>
|
227
|
+
</div>
|
228
|
+
{formDisplay}
|
229
|
+
</div>
|
230
|
+
)
|
231
|
+
}
|
232
|
+
|
233
|
+
const MemoizedSidebar = React.memo(Sidebar);
|
234
|
+
|
235
|
+
export default MemoizedSidebar;
|