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,13 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { SidebarDisplayModes } from "../constants/UtilityConstants";
|
3
|
+
import { SidebarOption } from "../interfaces/Models";
|
4
|
+
interface SidebarProps {
|
5
|
+
currentNav: string;
|
6
|
+
appContext?: string;
|
7
|
+
topNavHeight: string;
|
8
|
+
sidebarDisplayMode: SidebarDisplayModes;
|
9
|
+
sidebarOptions: Array<SidebarOption>;
|
10
|
+
}
|
11
|
+
declare function Sidebar(props: SidebarProps): JSX.Element;
|
12
|
+
declare const MemoizedSidebar: React.MemoExoticComponent<typeof Sidebar>;
|
13
|
+
export default MemoizedSidebar;
|
@@ -0,0 +1,317 @@
|
|
1
|
+
"use strict";
|
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 _classnames = _interopRequireDefault(require("classnames"));
|
15
|
+
|
16
|
+
var _SidebarForm = _interopRequireDefault(require("./SidebarForm"));
|
17
|
+
|
18
|
+
var _SidebarActions = require("../actions/SidebarActions");
|
19
|
+
|
20
|
+
var _SidebarMainLink = _interopRequireDefault(require("./SidebarMainLink"));
|
21
|
+
|
22
|
+
var _SidebarSubMenu = _interopRequireDefault(require("./SidebarSubMenu"));
|
23
|
+
|
24
|
+
var _SidebarConstants = require("../constants/SidebarConstants");
|
25
|
+
|
26
|
+
var _UtilityConstants = require("../constants/UtilityConstants");
|
27
|
+
|
28
|
+
var _Models = require("../interfaces/Models");
|
29
|
+
|
30
|
+
var _icomoonLibrary = _interopRequireDefault(require("../resources/icomoon-library.json"));
|
31
|
+
|
32
|
+
var _icomoonReact = _interopRequireDefault(require("icomoon-react"));
|
33
|
+
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
35
|
+
|
36
|
+
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); }
|
37
|
+
|
38
|
+
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; }
|
39
|
+
|
40
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
41
|
+
|
42
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
43
|
+
|
44
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
45
|
+
|
46
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
47
|
+
|
48
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
49
|
+
|
50
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
51
|
+
|
52
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
53
|
+
|
54
|
+
var styles = require('../stylesheets/sidebar.scss');
|
55
|
+
|
56
|
+
// TODO - get proper icons
|
57
|
+
var SidebarMainLinks = [{
|
58
|
+
id: _SidebarConstants.SidebarMenuTypes.Home,
|
59
|
+
label: 'My Home',
|
60
|
+
icon: /*#__PURE__*/_react.default.createElement(_icomoonReact.default, {
|
61
|
+
iconSet: _icomoonLibrary.default,
|
62
|
+
icon: "home"
|
63
|
+
}),
|
64
|
+
onClick: function onClick() {
|
65
|
+
return console.log('My Home');
|
66
|
+
},
|
67
|
+
subMenu: false
|
68
|
+
}, {
|
69
|
+
id: _SidebarConstants.SidebarMenuTypes.MyApps,
|
70
|
+
label: 'My Apps',
|
71
|
+
icon: /*#__PURE__*/_react.default.createElement(_icomoonReact.default, {
|
72
|
+
iconSet: _icomoonLibrary.default,
|
73
|
+
icon: "my-apps"
|
74
|
+
}),
|
75
|
+
onClick: function onClick() {
|
76
|
+
return console.log('My Apps');
|
77
|
+
},
|
78
|
+
subMenu: false
|
79
|
+
}, {
|
80
|
+
id: _SidebarConstants.SidebarMenuTypes.Management,
|
81
|
+
label: 'Administration',
|
82
|
+
icon: /*#__PURE__*/_react.default.createElement(_icomoonReact.default, {
|
83
|
+
iconSet: _icomoonLibrary.default,
|
84
|
+
icon: "marketplace-administration"
|
85
|
+
}),
|
86
|
+
onClick: function onClick() {
|
87
|
+
return console.log('Management');
|
88
|
+
},
|
89
|
+
subMenu: false
|
90
|
+
}, {
|
91
|
+
id: _SidebarConstants.SidebarMenuTypes.Marketplace,
|
92
|
+
label: 'Marketplace',
|
93
|
+
icon: /*#__PURE__*/_react.default.createElement(_icomoonReact.default, {
|
94
|
+
iconSet: _icomoonLibrary.default,
|
95
|
+
icon: "marketplace"
|
96
|
+
}),
|
97
|
+
onClick: function onClick() {
|
98
|
+
return console.log('Marketplace');
|
99
|
+
},
|
100
|
+
subMenu: false
|
101
|
+
}, {
|
102
|
+
id: _SidebarConstants.SidebarMenuTypes.Collaboration,
|
103
|
+
label: 'Collaboration',
|
104
|
+
icon: /*#__PURE__*/_react.default.createElement(_icomoonReact.default, {
|
105
|
+
iconSet: _icomoonLibrary.default,
|
106
|
+
icon: "collboration"
|
107
|
+
}),
|
108
|
+
onClick: function onClick() {
|
109
|
+
return console.log('Collaboration');
|
110
|
+
},
|
111
|
+
subMenu: false
|
112
|
+
}, {
|
113
|
+
id: _SidebarConstants.SidebarMenuTypes.Engagement,
|
114
|
+
label: 'Engagement',
|
115
|
+
icon: /*#__PURE__*/_react.default.createElement(_icomoonReact.default, {
|
116
|
+
iconSet: _icomoonLibrary.default,
|
117
|
+
icon: "engagement"
|
118
|
+
}),
|
119
|
+
onClick: function onClick() {
|
120
|
+
return console.log('Engagement');
|
121
|
+
},
|
122
|
+
subMenu: false
|
123
|
+
}];
|
124
|
+
|
125
|
+
function Sidebar(props) {
|
126
|
+
var appContext = props.appContext,
|
127
|
+
topNavHeight = props.topNavHeight,
|
128
|
+
sidebarDisplayMode = props.sidebarDisplayMode,
|
129
|
+
sidebarOptions = props.sidebarOptions;
|
130
|
+
var reduxDispatch = (0, _reactRedux.useDispatch)();
|
131
|
+
var expanded = (0, _reactRedux.useSelector)(function (state) {
|
132
|
+
return sidebarDisplayMode === _UtilityConstants.SidebarDisplayModes.ALL ? true : state.sidebar.expanded;
|
133
|
+
});
|
134
|
+
var isMinimal = (0, _reactRedux.useSelector)(function (state) {
|
135
|
+
return state.sidebar.isMinimal;
|
136
|
+
});
|
137
|
+
var topNavToggleref = (0, _reactRedux.useSelector)(function (state) {
|
138
|
+
return state.sidebar.topnavToggleref;
|
139
|
+
});
|
140
|
+
var selectedOption = mapContextToAppsId();
|
141
|
+
|
142
|
+
function mapContextToAppsId() {
|
143
|
+
var selectedSidebarOption = _SidebarConstants.SidebarMenuTypes.MyApps;
|
144
|
+
|
145
|
+
if (appContext === 'management') {
|
146
|
+
selectedSidebarOption = _SidebarConstants.SidebarMenuTypes.Management;
|
147
|
+
} else if (appContext === 'marketplace') {
|
148
|
+
selectedSidebarOption = _SidebarConstants.SidebarMenuTypes.Marketplace;
|
149
|
+
} else if (appContext === 'collaboration') {
|
150
|
+
selectedSidebarOption = _SidebarConstants.SidebarMenuTypes.Collaboration;
|
151
|
+
} else if (appContext === 'home') {
|
152
|
+
selectedSidebarOption = _SidebarConstants.SidebarMenuTypes.Home;
|
153
|
+
}
|
154
|
+
|
155
|
+
return selectedSidebarOption;
|
156
|
+
} // When component is loaded fetch the userInfo's available applications
|
157
|
+
|
158
|
+
|
159
|
+
(0, _react.useEffect)(function () {
|
160
|
+
var selectedSidebarOption = mapContextToAppsId();
|
161
|
+
reduxDispatch((0, _SidebarActions.SetMinimalSidebar)(sidebarDisplayMode === _UtilityConstants.SidebarDisplayModes.MINIMAL));
|
162
|
+
reduxDispatch((0, _SidebarActions.SetSelectedSidebarOption)(selectedSidebarOption));
|
163
|
+
}, [reduxDispatch, appContext]); //when sidebar is loaded attach listener to detect clicks external to it
|
164
|
+
|
165
|
+
function useExternalClickListener(ref) {
|
166
|
+
(0, _react.useEffect)(function () {
|
167
|
+
function handleClickOutside(event) {
|
168
|
+
var eventPath = event.composedPath();
|
169
|
+
|
170
|
+
if (ref.current && !(eventPath.includes(ref.current) || eventPath.includes(topNavToggleref.current)) && expanded === true) {
|
171
|
+
reduxDispatch((0, _SidebarActions.SetExpandSidebar)(false));
|
172
|
+
}
|
173
|
+
} // Bind the event listener
|
174
|
+
|
175
|
+
|
176
|
+
document.addEventListener("mousedown", handleClickOutside);
|
177
|
+
return function () {
|
178
|
+
// Unbind the event listener on clean up
|
179
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
180
|
+
};
|
181
|
+
}, [ref, topNavToggleref, expanded]);
|
182
|
+
}
|
183
|
+
|
184
|
+
var _useState = (0, _react.useState)(false),
|
185
|
+
_useState2 = _slicedToArray(_useState, 2),
|
186
|
+
showForm = _useState2[0],
|
187
|
+
setShowForm = _useState2[1];
|
188
|
+
|
189
|
+
var formDisplay = showForm ? /*#__PURE__*/_react.default.createElement(_SidebarForm.default, null) : '';
|
190
|
+
|
191
|
+
function CheckManagementAndMarketplaceAccess() {
|
192
|
+
var apps = (0, _reactRedux.useSelector)(function (state) {
|
193
|
+
var _state$auth$userInfo;
|
194
|
+
|
195
|
+
return ((_state$auth$userInfo = state.auth.userInfo) === null || _state$auth$userInfo === void 0 ? void 0 : _state$auth$userInfo.applications) || new Array();
|
196
|
+
});
|
197
|
+
var appCategories = apps.filter(function (e) {
|
198
|
+
return e.attributes !== undefined;
|
199
|
+
}).filter(function (e) {
|
200
|
+
return e.attributes['category'] !== undefined;
|
201
|
+
}).filter(function (d) {
|
202
|
+
return Object.keys(d.attributes).length > 0;
|
203
|
+
}).map(function (app) {
|
204
|
+
return app.attributes['category'].toLowerCase();
|
205
|
+
});
|
206
|
+
var appCategoriesForSubApps = apps.filter(function (e) {
|
207
|
+
return e.attributes !== undefined;
|
208
|
+
}).filter(function (e) {
|
209
|
+
return e.attributes['category'] !== undefined;
|
210
|
+
}).map(function (app) {
|
211
|
+
return app.attributes['category'].toLowerCase();
|
212
|
+
});
|
213
|
+
var appCategorySubAppsCount = appCategoriesForSubApps.reduce(function (object, element) {
|
214
|
+
object[element] = ++object[element] || 1;
|
215
|
+
return object;
|
216
|
+
}, {});
|
217
|
+
|
218
|
+
if (appCategorySubAppsCount['my_apps'] >= 1) {
|
219
|
+
var index = SidebarMainLinks.findIndex(function (e) {
|
220
|
+
return e.id === 'my_apps';
|
221
|
+
});
|
222
|
+
SidebarMainLinks[index].subMenu = true;
|
223
|
+
}
|
224
|
+
|
225
|
+
if (appCategorySubAppsCount['management'] >= 1) {
|
226
|
+
var _index = SidebarMainLinks.findIndex(function (e) {
|
227
|
+
return e.id === 'management';
|
228
|
+
});
|
229
|
+
|
230
|
+
SidebarMainLinks[_index].subMenu = true;
|
231
|
+
}
|
232
|
+
|
233
|
+
var isCollaboration = sidebarOptions.filter(function (option) {
|
234
|
+
return option.category === _Models.SidebarCategory.COLLABORATION;
|
235
|
+
});
|
236
|
+
|
237
|
+
if (appCategorySubAppsCount['engagement'] >= 1) {
|
238
|
+
var _index2 = SidebarMainLinks.findIndex(function (e) {
|
239
|
+
return e.id === 'engagement';
|
240
|
+
});
|
241
|
+
|
242
|
+
SidebarMainLinks[_index2].subMenu = true;
|
243
|
+
}
|
244
|
+
|
245
|
+
if (appCategorySubAppsCount['collaboration'] >= 1 || isCollaboration.length) {
|
246
|
+
var _index3 = SidebarMainLinks.findIndex(function (e) {
|
247
|
+
return e.id === 'collaboration';
|
248
|
+
});
|
249
|
+
|
250
|
+
SidebarMainLinks[_index3].subMenu = true;
|
251
|
+
}
|
252
|
+
|
253
|
+
var hasManagementAccess = appCategories.includes(_Models.SidebarCategory.MANAGEMENT);
|
254
|
+
var hasMarketplaceAccess = appCategories.includes(_Models.SidebarCategory.MARKETPLACE);
|
255
|
+
var hasHomeAccess = appCategories.includes(_Models.SidebarCategory.MY_HOME);
|
256
|
+
var hasMyAppAccess = appCategories.includes(_Models.SidebarCategory.MY_APPS);
|
257
|
+
var hasCollaborationAccess = appCategories.includes(_Models.SidebarCategory.COLLABORATION) || sidebarOptions.map(function (option) {
|
258
|
+
return option.category;
|
259
|
+
}).includes(_Models.SidebarCategory.COLLABORATION);
|
260
|
+
return SidebarMainLinks.filter(function (mainLinkProps) {
|
261
|
+
return mainLinkProps.id.toLowerCase() !== _SidebarConstants.SidebarMenuTypes.Marketplace || hasMarketplaceAccess;
|
262
|
+
}).filter(function (mainLinkProps) {
|
263
|
+
return mainLinkProps.id.toLowerCase() !== _SidebarConstants.SidebarMenuTypes.Management || hasManagementAccess;
|
264
|
+
}).filter(function (mainLinkProps) {
|
265
|
+
return mainLinkProps.id.toLowerCase() !== _SidebarConstants.SidebarMenuTypes.Home || hasHomeAccess;
|
266
|
+
}).filter(function (mainLinkProps) {
|
267
|
+
return mainLinkProps.id.toLowerCase() !== _SidebarConstants.SidebarMenuTypes.MyApps || hasMyAppAccess;
|
268
|
+
}).filter(function (mainLinkProps) {
|
269
|
+
return mainLinkProps.id.toLowerCase() !== _SidebarConstants.SidebarMenuTypes.Collaboration || hasCollaborationAccess;
|
270
|
+
}).map(function (mainLinkProps, index) {
|
271
|
+
return /*#__PURE__*/_react.default.createElement(_SidebarMainLink.default, _extends({
|
272
|
+
appContext: appContext
|
273
|
+
}, mainLinkProps, {
|
274
|
+
key: "lsac-sidebar-main-link-".concat(index),
|
275
|
+
selectedOption: selectedOption
|
276
|
+
}));
|
277
|
+
});
|
278
|
+
}
|
279
|
+
|
280
|
+
var mainLinks = CheckManagementAndMarketplaceAccess();
|
281
|
+
var topNavHeightBuffer = {
|
282
|
+
top: topNavHeight
|
283
|
+
};
|
284
|
+
var sidebarRef = (0, _react.useRef)(null);
|
285
|
+
useExternalClickListener(sidebarRef);
|
286
|
+
|
287
|
+
var handleMouseLeave = function handleMouseLeave() {
|
288
|
+
if (!isMinimal) {
|
289
|
+
reduxDispatch((0, _SidebarActions.SetExpandSidebar)(false));
|
290
|
+
reduxDispatch((0, _SidebarActions.SetMinimalSidebar)(true));
|
291
|
+
}
|
292
|
+
|
293
|
+
reduxDispatch((0, _SidebarActions.SetSelectedSidebarOption)(selectedOption));
|
294
|
+
reduxDispatch((0, _SidebarActions.SetShowExpandedApps)(false));
|
295
|
+
};
|
296
|
+
|
297
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
298
|
+
className: 'lsac-sidebar-container'
|
299
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
300
|
+
className: (0, _classnames.default)('lsac-sidebar', {
|
301
|
+
expanded: expanded,
|
302
|
+
isMinimal: isMinimal
|
303
|
+
}),
|
304
|
+
style: topNavHeightBuffer,
|
305
|
+
ref: sidebarRef,
|
306
|
+
onMouseLeave: handleMouseLeave
|
307
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
308
|
+
className: "icon-strip"
|
309
|
+
}, mainLinks), /*#__PURE__*/_react.default.createElement("div", {
|
310
|
+
className: "submenu"
|
311
|
+
}, /*#__PURE__*/_react.default.createElement(_SidebarSubMenu.default, null))), formDisplay);
|
312
|
+
}
|
313
|
+
|
314
|
+
var MemoizedSidebar = /*#__PURE__*/_react.default.memo(Sidebar);
|
315
|
+
|
316
|
+
var _default = MemoizedSidebar;
|
317
|
+
exports.default = _default;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var styles = require('../stylesheets/form.scss');
|
9
|
+
|
10
|
+
function SidebarForm(props) {
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
12
|
+
className: "sidebar-form"
|
13
|
+
}, /*#__PURE__*/React.createElement("div", {
|
14
|
+
className: "sidebar-header"
|
15
|
+
}, "Form Launched From Sidebar Action"), /*#__PURE__*/React.createElement("div", {
|
16
|
+
className: "sidebar-form-body"
|
17
|
+
}, "Contents of the form"));
|
18
|
+
}
|
19
|
+
|
20
|
+
var _default = SidebarForm;
|
21
|
+
exports.default = _default;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { SidebarMenuTypes } from "../constants/SidebarConstants";
|
3
|
+
export interface SidebarMainLinkProps {
|
4
|
+
appContext?: string;
|
5
|
+
id: SidebarMenuTypes;
|
6
|
+
icon?: any;
|
7
|
+
label: string;
|
8
|
+
onClick: () => void;
|
9
|
+
click?: () => void;
|
10
|
+
selectedOption?: any;
|
11
|
+
subMenu: boolean;
|
12
|
+
}
|
13
|
+
declare function SidebarMainLink(props: SidebarMainLinkProps): JSX.Element;
|
14
|
+
export default SidebarMainLink;
|
@@ -0,0 +1,124 @@
|
|
1
|
+
"use strict";
|
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 _classnames = _interopRequireDefault(require("classnames"));
|
13
|
+
|
14
|
+
var _reactRedux = require("react-redux");
|
15
|
+
|
16
|
+
var _SidebarActions = require("../actions/SidebarActions");
|
17
|
+
|
18
|
+
var _Models = require("../interfaces/Models");
|
19
|
+
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
|
+
|
22
|
+
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); }
|
23
|
+
|
24
|
+
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; }
|
25
|
+
|
26
|
+
// import IconRight from '../static/images/sidebar-icons/rightIcon.svg';
|
27
|
+
var styles = require('../stylesheets/sidebar-main-link.scss');
|
28
|
+
|
29
|
+
function SidebarMainLink(props) {
|
30
|
+
var icon = props.icon,
|
31
|
+
label = props.label,
|
32
|
+
id = props.id,
|
33
|
+
click = props.click,
|
34
|
+
selectedOption = props.selectedOption,
|
35
|
+
subMenu = props.subMenu;
|
36
|
+
var dispatch = (0, _reactRedux.useDispatch)();
|
37
|
+
var selectedSidebarOption = (0, _reactRedux.useSelector)(function (state) {
|
38
|
+
return state.sidebar.selectedSidebarOption;
|
39
|
+
});
|
40
|
+
var selected = id === selectedSidebarOption;
|
41
|
+
var apps = (0, _reactRedux.useSelector)(function (state) {
|
42
|
+
var _state$auth$userInfo;
|
43
|
+
|
44
|
+
return ((_state$auth$userInfo = state.auth.userInfo) === null || _state$auth$userInfo === void 0 ? void 0 : _state$auth$userInfo.applications) || new Array();
|
45
|
+
});
|
46
|
+
var active = id === selectedOption;
|
47
|
+
var onClick = (0, _react.useCallback)(function () {
|
48
|
+
if (id === 'marketplace') {
|
49
|
+
var marketplaceUrl = apps.filter(function (e) {
|
50
|
+
return e.attributes !== undefined && e.attributes !== null;
|
51
|
+
}).filter(function (f) {
|
52
|
+
return Object.keys(f.attributes).length > 0;
|
53
|
+
}).filter(function (e) {
|
54
|
+
return e.attributes['category'] !== undefined;
|
55
|
+
}).filter(function (app) {
|
56
|
+
return app.attributes['category'].toLowerCase() === _Models.SidebarCategory.MARKETPLACE;
|
57
|
+
})[0].url;
|
58
|
+
window.location.href = marketplaceUrl;
|
59
|
+
dispatch((0, _SidebarActions.SetExpandSidebar)(false));
|
60
|
+
dispatch((0, _SidebarActions.SetMinimalSidebar)(true));
|
61
|
+
} else if (id === 'home') {
|
62
|
+
var home_url = apps.filter(function (e) {
|
63
|
+
return e.attributes !== undefined;
|
64
|
+
}).filter(function (f) {
|
65
|
+
return Object.keys(f.attributes).length > 0;
|
66
|
+
}).filter(function (e) {
|
67
|
+
return e.attributes['category'] !== undefined;
|
68
|
+
}).filter(function (app) {
|
69
|
+
return app.attributes['category'].toLowerCase() === _Models.SidebarCategory.MY_HOME;
|
70
|
+
})[0].url;
|
71
|
+
window.location.href = home_url;
|
72
|
+
dispatch((0, _SidebarActions.SetExpandSidebar)(false));
|
73
|
+
dispatch((0, _SidebarActions.SetMinimalSidebar)(true));
|
74
|
+
}
|
75
|
+
}, [id, dispatch]);
|
76
|
+
var onHover = (0, _react.useCallback)(function (id) {
|
77
|
+
dispatch((0, _SidebarActions.SetSelectedSidebarOption)(id));
|
78
|
+
|
79
|
+
if (id === 'marketplace' || id === 'home') {
|
80
|
+
dispatch((0, _SidebarActions.SetExpandSidebar)(false));
|
81
|
+
dispatch((0, _SidebarActions.SetMinimalSidebar)(true));
|
82
|
+
} else {
|
83
|
+
dispatch((0, _SidebarActions.SetExpandSidebar)(true));
|
84
|
+
dispatch((0, _SidebarActions.SetMinimalSidebar)(false));
|
85
|
+
}
|
86
|
+
}, [id, dispatch]);
|
87
|
+
|
88
|
+
var iconRight = /*#__PURE__*/_react.default.createElement("div", {
|
89
|
+
className: "icon-right"
|
90
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
91
|
+
className: "icon-right-arrow"
|
92
|
+
}));
|
93
|
+
|
94
|
+
if (subMenu) {
|
95
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
96
|
+
className: (0, _classnames.default)('lsac-sidebar-main-link', {
|
97
|
+
selected: selected
|
98
|
+
}, {
|
99
|
+
active: active
|
100
|
+
}),
|
101
|
+
onClick: onClick,
|
102
|
+
onMouseOver: function onMouseOver(e) {
|
103
|
+
onHover(id);
|
104
|
+
},
|
105
|
+
title: label
|
106
|
+
}, icon, iconRight);
|
107
|
+
} else {
|
108
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
109
|
+
className: (0, _classnames.default)('lsac-sidebar-main-link', {
|
110
|
+
selected: selected
|
111
|
+
}, {
|
112
|
+
active: active
|
113
|
+
}),
|
114
|
+
onClick: onClick,
|
115
|
+
onMouseOver: function onMouseOver(e) {
|
116
|
+
onHover(id);
|
117
|
+
},
|
118
|
+
title: label
|
119
|
+
}, icon);
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
var _default = SidebarMainLink;
|
124
|
+
exports.default = _default;
|