supernav-test 2.2.14 → 2.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,15 @@
|
|
|
1
|
+
const styles = require('../stylesheets/form.scss');
|
|
2
|
+
|
|
3
|
+
interface SidebarFormProps {
|
|
4
|
+
|
|
5
|
+
}
|
|
6
|
+
function SidebarForm(props: SidebarFormProps) {
|
|
7
|
+
return (
|
|
8
|
+
<div className='sidebar-form'>
|
|
9
|
+
<div className='sidebar-header'>Form Launched From Sidebar Action</div>
|
|
10
|
+
<div className='sidebar-form-body'>Contents of the form</div>
|
|
11
|
+
</div>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default SidebarForm;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { useSelector, useDispatch } from "react-redux";
|
|
4
|
+
import { RootState } from "../reducers/RootReducer";
|
|
5
|
+
import { SetSelectedSidebarOption, SetExpandSidebar, SetMinimalSidebar } from "../actions/SidebarActions";
|
|
6
|
+
import { SidebarMenuTypes } from "../constants/SidebarConstants";
|
|
7
|
+
import { KeycloakAppInfo, SidebarCategory } from "../interfaces/Models";
|
|
8
|
+
// import IconRight from '../static/images/sidebar-icons/rightIcon.svg';
|
|
9
|
+
|
|
10
|
+
const styles = require('../stylesheets/sidebar-main-link.scss');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export interface SidebarMainLinkProps {
|
|
14
|
+
appContext?: string;
|
|
15
|
+
id: SidebarMenuTypes;
|
|
16
|
+
icon?: any;
|
|
17
|
+
label: string;
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
click?: () => void;
|
|
20
|
+
selectedOption?: any;
|
|
21
|
+
subMenu: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function SidebarMainLink(props: SidebarMainLinkProps) {
|
|
25
|
+
const { icon, label, id, click, selectedOption, subMenu } = props;
|
|
26
|
+
const dispatch = useDispatch();
|
|
27
|
+
|
|
28
|
+
const selectedSidebarOption = useSelector((state: RootState) => state.sidebar.selectedSidebarOption);
|
|
29
|
+
const selected = id === selectedSidebarOption;
|
|
30
|
+
const apps = useSelector((state: RootState) => state.auth.userInfo?.applications || new Array<KeycloakAppInfo>());
|
|
31
|
+
const active = id === selectedOption
|
|
32
|
+
const onClick = useCallback(() => {
|
|
33
|
+
if (id === 'marketplace') {
|
|
34
|
+
const marketplaceUrl = apps.filter((e:any) => e.attributes !== undefined && e.attributes !== null)
|
|
35
|
+
.filter((f:any) => Object.keys(f.attributes).length > 0)
|
|
36
|
+
.filter((e:any) => e.attributes['category'] !== undefined)
|
|
37
|
+
.filter((app:any) => app.attributes['category'].toLowerCase() === SidebarCategory.MARKETPLACE)[0].url;
|
|
38
|
+
window.location.href = marketplaceUrl;
|
|
39
|
+
dispatch(SetExpandSidebar(false));
|
|
40
|
+
dispatch(SetMinimalSidebar(true));
|
|
41
|
+
} else if (id === 'home') {
|
|
42
|
+
const home_url = apps.filter((e:any) => e.attributes !== undefined)
|
|
43
|
+
.filter((f:any) => Object.keys(f.attributes).length > 0)
|
|
44
|
+
.filter((e:any) => e.attributes['category'] !== undefined)
|
|
45
|
+
.filter((app:any) => app.attributes['category'].toLowerCase() === SidebarCategory.MY_HOME)[0].url;
|
|
46
|
+
window.location.href = home_url;
|
|
47
|
+
dispatch(SetExpandSidebar(false));
|
|
48
|
+
dispatch(SetMinimalSidebar(true));
|
|
49
|
+
}
|
|
50
|
+
}, [id, dispatch]);
|
|
51
|
+
|
|
52
|
+
const onHover = useCallback((id: any) => {
|
|
53
|
+
dispatch(SetSelectedSidebarOption(id));
|
|
54
|
+
if (id === 'marketplace' || id === 'home') {
|
|
55
|
+
dispatch(SetExpandSidebar(false));
|
|
56
|
+
dispatch(SetMinimalSidebar(true));
|
|
57
|
+
} else {
|
|
58
|
+
dispatch(SetExpandSidebar(true));
|
|
59
|
+
dispatch(SetMinimalSidebar(false));
|
|
60
|
+
}
|
|
61
|
+
}, [id, dispatch]);
|
|
62
|
+
|
|
63
|
+
const iconRight = (
|
|
64
|
+
<div className="icon-right" >
|
|
65
|
+
<div className="icon-right-arrow">
|
|
66
|
+
{/* <IconRight /> */}
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
if (subMenu) {
|
|
72
|
+
return (
|
|
73
|
+
<div className={cx('lsac-sidebar-main-link', { selected: selected }, { active: active })} onClick={onClick} onMouseOver={(e:any) => { onHover(id) }} title={label}>
|
|
74
|
+
{icon}
|
|
75
|
+
{iconRight}
|
|
76
|
+
</div>);
|
|
77
|
+
} else {
|
|
78
|
+
return (
|
|
79
|
+
<div className={cx('lsac-sidebar-main-link', { selected: selected }, { active: active })} onClick={onClick} onMouseOver={(e:any) => { onHover(id) }} title={label}>
|
|
80
|
+
{icon}
|
|
81
|
+
</div>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export default SidebarMainLink;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {SidebarOption as ISidebarOption} from "../interfaces/Models";
|
|
3
|
+
|
|
4
|
+
function SidebarOption(props: ISidebarOption) {
|
|
5
|
+
const { label, onClick } = props;
|
|
6
|
+
return (
|
|
7
|
+
<div className='lsac-sidebar-option' onClick={onClick}>
|
|
8
|
+
{label}
|
|
9
|
+
</div>
|
|
10
|
+
)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default SidebarOption;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { SidebarMenuTypes } from "../constants/SidebarConstants";
|
|
3
|
+
import CategorizedSubmenu from './sidebar_submenus/CategorizedSubmenu';
|
|
4
|
+
import { Application, KeycloakAppInfo, SidebarCategory } from "../interfaces/Models";
|
|
5
|
+
import { useSelector } from "react-redux";
|
|
6
|
+
import { RootState } from "../reducers/RootReducer";
|
|
7
|
+
|
|
8
|
+
import SubmenuUtil from "../util/SubmenuUtil";
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface GroupedApps {
|
|
15
|
+
myApps: Array<Application>;
|
|
16
|
+
engagementApps: Array<Application>;
|
|
17
|
+
collaborationApps: Array<Application>;
|
|
18
|
+
managementApps: Array<Application>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function groupApplicationsByCategory(applications: Array<Application>) {
|
|
22
|
+
return applications.reduce((memo, application) => {
|
|
23
|
+
const { category } = application;
|
|
24
|
+
const updatedGrouping = { ...memo };
|
|
25
|
+
const { myApps, engagementApps, collaborationApps, managementApps } = updatedGrouping;
|
|
26
|
+
switch (category) {
|
|
27
|
+
case SidebarCategory.COLLABORATION:
|
|
28
|
+
updatedGrouping.collaborationApps = [...collaborationApps, application];
|
|
29
|
+
break;
|
|
30
|
+
case SidebarCategory.ENGAGEMENT:
|
|
31
|
+
updatedGrouping.engagementApps = [...engagementApps, application];
|
|
32
|
+
break;
|
|
33
|
+
case SidebarCategory.MANAGEMENT:
|
|
34
|
+
updatedGrouping.managementApps = [...managementApps, application];
|
|
35
|
+
break;
|
|
36
|
+
case SidebarCategory.MY_APPS:
|
|
37
|
+
updatedGrouping.myApps = [...myApps, application];
|
|
38
|
+
break;
|
|
39
|
+
default:
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return updatedGrouping;
|
|
43
|
+
}, {
|
|
44
|
+
myApps: [],
|
|
45
|
+
engagementApps: [],
|
|
46
|
+
collaborationApps: [],
|
|
47
|
+
managementApps: [],
|
|
48
|
+
} as GroupedApps);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
function getMenuForSelection(selection: SidebarMenuTypes, groupedApps: GroupedApps) {
|
|
53
|
+
const { myApps, engagementApps, collaborationApps, managementApps } = groupedApps;
|
|
54
|
+
const myAppsComponent = <CategorizedSubmenu applications={myApps} title='My Apps' className='lsac-my-apps-pane' />;
|
|
55
|
+
switch (selection) {
|
|
56
|
+
case SidebarMenuTypes.MyApps:
|
|
57
|
+
return myAppsComponent;
|
|
58
|
+
case SidebarMenuTypes.Engagement:
|
|
59
|
+
return <CategorizedSubmenu applications={engagementApps} title='Engagement' className='lsac-engagement-pane' />;
|
|
60
|
+
case SidebarMenuTypes.Collaboration:
|
|
61
|
+
return <CategorizedSubmenu applications={collaborationApps} title='Collaboration' className='lsac-collaboration-pane' />;
|
|
62
|
+
case SidebarMenuTypes.Management:
|
|
63
|
+
return <CategorizedSubmenu applications={managementApps} title='Administration' className='lsac-management-pane'/>;
|
|
64
|
+
case SidebarMenuTypes.Home:
|
|
65
|
+
return null;
|
|
66
|
+
default:
|
|
67
|
+
return <div></div>;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function SidebarSubMenu(props: Props) {
|
|
72
|
+
const selectedOption = useSelector((state: RootState) => state.sidebar.selectedSidebarOption);
|
|
73
|
+
const localApps = useSelector((state: RootState) => state.sidebar.localApplications);
|
|
74
|
+
const keycloakApps: Array<KeycloakAppInfo> = useSelector((state: RootState) => state.auth.userInfo?.applications) || [];
|
|
75
|
+
const applications = useMemo(() => [...localApps, ...(keycloakApps.map(SubmenuUtil.keycloakAppToApplication))], [localApps, keycloakApps]);
|
|
76
|
+
const groupedApps = useMemo(() => groupApplicationsByCategory(applications), [applications]);
|
|
77
|
+
const displayComponent = getMenuForSelection(selectedOption, groupedApps);
|
|
78
|
+
|
|
79
|
+
return displayComponent;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export default SidebarSubMenu;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import SidebarOption from "./SidebarOption";
|
|
4
|
+
|
|
5
|
+
function getDetailsFromType(type) {
|
|
6
|
+
let color;
|
|
7
|
+
let text;
|
|
8
|
+
let options;
|
|
9
|
+
|
|
10
|
+
switch (type) {
|
|
11
|
+
case 'apps':
|
|
12
|
+
color = '#2d7cb5';
|
|
13
|
+
text = 'My Apps';
|
|
14
|
+
options = [];
|
|
15
|
+
break;
|
|
16
|
+
case 'collaboration':
|
|
17
|
+
color = '#0f7a11';
|
|
18
|
+
text = 'Collaboration';
|
|
19
|
+
options = [];
|
|
20
|
+
break;
|
|
21
|
+
case 'management':
|
|
22
|
+
color = '#3c003c';
|
|
23
|
+
text = 'Management';
|
|
24
|
+
options = [];
|
|
25
|
+
break;
|
|
26
|
+
case 'marketplace':
|
|
27
|
+
color = '#9a521c';
|
|
28
|
+
text = 'Marketplace';
|
|
29
|
+
options = [];
|
|
30
|
+
break;
|
|
31
|
+
case 'engage':
|
|
32
|
+
color = '#34190a';
|
|
33
|
+
text = 'Engage';
|
|
34
|
+
options = [];
|
|
35
|
+
break;
|
|
36
|
+
|
|
37
|
+
default:
|
|
38
|
+
color = '#fff';
|
|
39
|
+
text = '';
|
|
40
|
+
options = [];
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function SidebarTab({ type, selectedType }) {
|
|
46
|
+
const { color, text, options } = getDetailsFromType(type);
|
|
47
|
+
|
|
48
|
+
const identifier = `lsac-sidebar-tab-${type}`;
|
|
49
|
+
return (
|
|
50
|
+
<div key={identifier} className={identifier}>
|
|
51
|
+
<div className='lsac-sidebar-tab-text'>{text}</div>
|
|
52
|
+
</div>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const MemoizedSidebarTab = React.memo(SidebarTab);
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import React, {useEffect, useRef} from 'react';
|
|
2
|
+
import {useDispatch, useSelector} from "react-redux";
|
|
3
|
+
// import Hamburger from '../static/images/hamburger-icon.svg';
|
|
4
|
+
// import CloseHamburger from '../static/images/close-hamburger-icon.svg'
|
|
5
|
+
// import SaamaLogo from '../static/images/saama_logo.svg';
|
|
6
|
+
// import UserIcon from '../static/images/icon-user.svg';
|
|
7
|
+
import cx from 'classnames';
|
|
8
|
+
import {RootState} from "../reducers/RootReducer";
|
|
9
|
+
import {SetExpandSidebar, SetTopnavToggleref, SetMinimalSidebar} from "../actions/SidebarActions";
|
|
10
|
+
import {Dropdown} from "react-bootstrap";
|
|
11
|
+
import {SidebarDisplayModes, TopnavDisplayModes} from "../constants/UtilityConstants";
|
|
12
|
+
|
|
13
|
+
// icon imports
|
|
14
|
+
import iconSet from "../resources/icomoon-library.json";
|
|
15
|
+
import IcomoonReact from "icomoon-react";
|
|
16
|
+
|
|
17
|
+
require('../stylesheets/topnav.scss');
|
|
18
|
+
require('../stylesheets/study-filter.scss');
|
|
19
|
+
require('../stylesheets/fontIcons.css');
|
|
20
|
+
|
|
21
|
+
interface Props {
|
|
22
|
+
extraTopNavComponent: any;
|
|
23
|
+
topNavHeight: string;
|
|
24
|
+
applicationTitle: string;
|
|
25
|
+
accountName: string;
|
|
26
|
+
accountSwitchUrl: string;
|
|
27
|
+
logoutUrl: string;
|
|
28
|
+
sidebarDisplayMode: SidebarDisplayModes;
|
|
29
|
+
topnavDisplayMode: TopnavDisplayModes
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function TopNav(props: Props) {
|
|
33
|
+
const { extraTopNavComponent, topNavHeight, applicationTitle, accountName, accountSwitchUrl, logoutUrl, sidebarDisplayMode, topnavDisplayMode } = props;
|
|
34
|
+
|
|
35
|
+
const dispatch = useDispatch();
|
|
36
|
+
const isMinimal = useSelector((state: RootState) => state.sidebar.isMinimal);
|
|
37
|
+
const expanded = useSelector((state: RootState) => state.sidebar.expanded);
|
|
38
|
+
const userName = useSelector((state: RootState) => state.auth.userInfo && state.auth.userInfo.name);
|
|
39
|
+
const uiDevMode = useSelector((state: RootState) => state.auth.uiDevMode);
|
|
40
|
+
const isLogoClickable = sidebarDisplayMode === SidebarDisplayModes.HIDDEN;
|
|
41
|
+
|
|
42
|
+
function handleToggleClick() {
|
|
43
|
+
// Don't handle click events if always showing the sidebar
|
|
44
|
+
if (!isLogoClickable) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
dispatch(SetMinimalSidebar(!isMinimal));
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const extraStyle: React.CSSProperties = {
|
|
51
|
+
height: topNavHeight,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// TODO - figure out what to do about logout
|
|
55
|
+
function logoutMenuClick() {
|
|
56
|
+
// Only handle logout when not in UI Dev mode
|
|
57
|
+
// if (!uiDevMode) {
|
|
58
|
+
// keycloak?.logout();
|
|
59
|
+
// }
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
const expandButtonClassnames = cx('lsac-topnav-toggle', {
|
|
64
|
+
minimal: sidebarDisplayMode === SidebarDisplayModes.MINIMAL,
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
const userMenuClassnames = cx('logout-menu', 'icon-userInfo', {
|
|
68
|
+
"click-disabled": uiDevMode
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const showHamburger = () => {
|
|
72
|
+
let menuIcon;
|
|
73
|
+
if(isLogoClickable){
|
|
74
|
+
// menuIcon = isMinimal || expanded ? <span className="close-hamburger-icon"><CloseHamburger /></span> : <Hamburger />
|
|
75
|
+
}else{
|
|
76
|
+
// menuIcon= <Hamburger />
|
|
77
|
+
}
|
|
78
|
+
return menuIcon
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// create a reference to the topNav toggle button
|
|
82
|
+
// use effect to send that reference to the Sidebar store upon rendering
|
|
83
|
+
const topNavToggleref = useRef(null);
|
|
84
|
+
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
dispatch(SetTopnavToggleref(topNavToggleref));
|
|
87
|
+
}, [topNavToggleref]);
|
|
88
|
+
const expandButton = (
|
|
89
|
+
<div className={expandButtonClassnames} ref = {topNavToggleref}>
|
|
90
|
+
<span className={cx('hamburger-logo',{ clickable: isLogoClickable }, {disable: !isLogoClickable})} onClick={handleToggleClick}>
|
|
91
|
+
{showHamburger() }
|
|
92
|
+
</span>
|
|
93
|
+
<span className={cx('saama-logo', { clickable: isLogoClickable })} onClick={handleToggleClick}>
|
|
94
|
+
{/* <SaamaLogo /> */}
|
|
95
|
+
</span>
|
|
96
|
+
<span className='LSAC-logo'>Life Science <br/>Analytics Cloud</span>
|
|
97
|
+
{ !!applicationTitle ? <span className="app-name">{applicationTitle}</span> : <></>}
|
|
98
|
+
</div>
|
|
99
|
+
);
|
|
100
|
+
const content = topnavDisplayMode === TopnavDisplayModes.MINIMAL ? (
|
|
101
|
+
<div className='top-nav-minimal header-logo'style={extraStyle}>
|
|
102
|
+
{expandButton}
|
|
103
|
+
</div>
|
|
104
|
+
)
|
|
105
|
+
: (
|
|
106
|
+
<div className='top-nav' style={extraStyle}>
|
|
107
|
+
<div className='top-nav-row'>
|
|
108
|
+
<div className='header-logo'>
|
|
109
|
+
{expandButton}
|
|
110
|
+
</div>
|
|
111
|
+
{extraTopNavComponent}
|
|
112
|
+
<div className={userMenuClassnames} onClick={logoutMenuClick}>
|
|
113
|
+
<div className="user-icon">
|
|
114
|
+
<Dropdown>
|
|
115
|
+
<Dropdown.Toggle variant="" id="dropdown-basic">
|
|
116
|
+
<span className="account-name">{accountName}</span>
|
|
117
|
+
{/* <UserIcon /> */}
|
|
118
|
+
</Dropdown.Toggle>
|
|
119
|
+
<div className="user-dropdown-contents">
|
|
120
|
+
<Dropdown.Menu>
|
|
121
|
+
<span>{userName}</span>
|
|
122
|
+
<span className="switch-account-link-wrapper">
|
|
123
|
+
<Dropdown.Item href={accountSwitchUrl}><IcomoonReact iconSet={iconSet} icon="switch" /> Switch Account</Dropdown.Item>
|
|
124
|
+
</span>
|
|
125
|
+
<span className="user-details-logout">
|
|
126
|
+
<Dropdown.Item href={logoutUrl}><IcomoonReact iconSet={iconSet} icon="exit" />Logout</Dropdown.Item>
|
|
127
|
+
</span>
|
|
128
|
+
</Dropdown.Menu>
|
|
129
|
+
</div>
|
|
130
|
+
</Dropdown>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
return content;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export default TopNav;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
3
|
+
import { RootState } from '../../reducers/RootReducer';
|
|
4
|
+
import { Application, KeycloakAppInfo } from "../../interfaces/Models";
|
|
5
|
+
import SubmenuUtil from "../../util/SubmenuUtil";
|
|
6
|
+
import { SetSelectedSidebarOption, SetShowExpandedApps } from '../../actions/SidebarActions';
|
|
7
|
+
|
|
8
|
+
interface MyAppsProps {
|
|
9
|
+
title: string;
|
|
10
|
+
applications: Array<Application>,
|
|
11
|
+
className: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function CategorizedSubmenu(props: MyAppsProps) {
|
|
15
|
+
const Dispatch = useDispatch();
|
|
16
|
+
const { title, applications, className } = props;
|
|
17
|
+
const showExpanded = useSelector((state: RootState) => state.sidebar.showExpandedApps);
|
|
18
|
+
const selectedSidebarOption = useSelector((state: RootState) => state.sidebar.selectedSidebarOption);
|
|
19
|
+
function setSelectedSidebarOption() {
|
|
20
|
+
Dispatch(SetSelectedSidebarOption(selectedSidebarOption));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
function AppSequence(a: any, b: any) {
|
|
24
|
+
let x = (a.rank && a.rank.length > 0) ? parseInt(a.rank) : a.linkInfo.label.toUpperCase(),
|
|
25
|
+
y = (b.rank && b.rank.length > 0) ? parseInt(b.rank) : b.linkInfo.label.toUpperCase();
|
|
26
|
+
return x == y ? 0 : x > y ? 1 : -1;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
function getSortedAppsList() {
|
|
30
|
+
let appWithRank: Array<any> = [], appWithoutRank: Array<any> = [];
|
|
31
|
+
applications.filter((app:any) => app.attributes && !app.attributes['grouping']).forEach(app => {
|
|
32
|
+
if (app.rank && app.rank.length > 0) {
|
|
33
|
+
appWithRank.push(app);
|
|
34
|
+
} else {
|
|
35
|
+
appWithoutRank.push(app);
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
applications.filter((app:any) => app.attributes === undefined).forEach(app => {
|
|
39
|
+
appWithoutRank.push(app);
|
|
40
|
+
})
|
|
41
|
+
appWithRank = appWithRank.sort(AppSequence);
|
|
42
|
+
appWithoutRank = appWithoutRank.sort(AppSequence);
|
|
43
|
+
return [...appWithRank, ...appWithoutRank];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const appLinks = getSortedAppsList();
|
|
47
|
+
const toggleShowExpanded = () => {
|
|
48
|
+
Dispatch(SetShowExpandedApps(!showExpanded));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const expandedApps = title === 'My Apps' && applications.filter((app) => app.attributes['grouping']);
|
|
52
|
+
expandedApps && appLinks.splice(2, 0, expandedApps);
|
|
53
|
+
const rankedApps = appLinks.map((app, idx) => {
|
|
54
|
+
if (app.linkInfo) {
|
|
55
|
+
return SubmenuUtil.generateLink(app, idx);
|
|
56
|
+
} else {
|
|
57
|
+
return SubmenuUtil.generateSubApplications(app, toggleShowExpanded, showExpanded)
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<div className={className} key={Math.random()}>
|
|
63
|
+
<div className='title'>{title}</div>
|
|
64
|
+
{rankedApps}
|
|
65
|
+
</div>
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export default CategorizedSubmenu;
|