supernav-test 2.2.17 → 2.2.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/App.css +38 -0
- package/dist/App.test.js +8 -6
- package/dist/LsacContainer.js +25 -10
- package/dist/components/lsac-supernavbar/AuthWrapper.js +92 -44
- package/dist/components/lsac-supernavbar/LsacSidebar.js +40 -27
- package/dist/components/lsac-supernavbar/Store.js +20 -10
- package/dist/components/lsac-supernavbar/actions/AuthActions.js +23 -16
- package/dist/components/lsac-supernavbar/actions/SidebarActions.js +75 -61
- package/dist/components/lsac-supernavbar/components/Sidebar.js +308 -184
- package/dist/components/lsac-supernavbar/components/SidebarForm.js +18 -5
- package/dist/components/lsac-supernavbar/components/SidebarMainLink.js +118 -54
- package/dist/components/lsac-supernavbar/components/SidebarOption.js +19 -5
- package/dist/components/lsac-supernavbar/components/SidebarSubMenu.js +147 -61
- package/dist/components/lsac-supernavbar/components/SidebarTab.js +65 -46
- package/dist/components/lsac-supernavbar/components/Topnav.js +160 -63
- package/dist/components/lsac-supernavbar/components/sidebar_submenus/CategorizedSubmenu.js +100 -53
- package/dist/components/lsac-supernavbar/components/sidebar_submenus/Marketplace.js +16 -4
- package/dist/components/lsac-supernavbar/constants/SidebarConstants.js +13 -8
- package/dist/components/lsac-supernavbar/constants/UtilityConstants.js +24 -13
- package/dist/components/lsac-supernavbar/interfaces/Models.js +13 -8
- package/dist/components/lsac-supernavbar/interfaces/Redux.js +4 -1
- package/dist/components/lsac-supernavbar/reducers/AuthReducer.js +37 -15
- package/dist/components/lsac-supernavbar/reducers/RootReducer.js +17 -8
- package/dist/components/lsac-supernavbar/reducers/SidebarReducer.js +92 -45
- package/dist/components/lsac-supernavbar/resources/icomoon-library.json +1 -1
- package/dist/components/lsac-supernavbar/static/images/close-hamburger-icon.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/hamburger-icon.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/icon-user.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/saama_logo.png +0 -0
- package/dist/components/lsac-supernavbar/static/images/saama_logo.svg +26 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/caret_down.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/caret_left.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/caret_right.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/caret_up.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/glyph1_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/management_icon.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/marketplace_icon.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/my_apps.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/rbqm-triangle.svg +31 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/rightIcon.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/space_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/triangle-exclamation.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E$A32_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E$A36_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E0$A1_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E0$E$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E0$F0_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E00$B_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E00$D_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E002_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E070_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E086_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E092_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$B$A_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$B$F_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$B5_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$C8_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D$C_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D$F_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D5_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D6_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$D9_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$F$E_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E1$F7_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$C_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$D_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$E_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E10$F_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E101_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E110_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E115_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E123_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E138_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E14$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E150_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E185_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E186_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E187_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$A7_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$A9_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$B7_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$C$F_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$D$C_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$D$D_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E2$F$F_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E20$B_comprehend.svg +10 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E201_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E204_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E23$A_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E250_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E279_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E28$E_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E29$C_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$A7_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$A8_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$B3_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$D3_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$D4_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E3$D7_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E301_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E35$A_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E35$E_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E36$E_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E362_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E37$A_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E370_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E2_comprehend.svg +11 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E4_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E5_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E4$E7_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E418_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E42$E_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E42$F_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E43$A_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E43$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E430_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E431_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E445_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E465_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E475_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E481_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$A_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$B_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$C_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$D_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$E_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E60$F_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E600_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E601_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E602_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E603_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E604_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E605_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E606_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E607_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E608_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E609_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$A_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$C_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E61$F_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E610_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E611_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E612_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E613_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E614_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E615_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E616_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E617_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E618_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E619_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E620_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E621_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E622_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E623_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E624_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E625_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E626_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$A_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$B_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$C_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$D_comprehend.svg +14 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$E_comprehend.svg +10 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E90$F_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E900_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E901_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E902_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E903_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E904_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E905_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E907_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E908_comprehend.svg +16 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E909_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$A_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$C_comprehend.svg +9 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$E_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E91$F_comprehend.svg +16 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E910_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E911_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E912_comprehend.svg +11 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E913_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E914_comprehend.svg +11 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E915_comprehend.svg +8 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E917_comprehend.svg +34 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E918_comprehend.svg +7 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E919_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E920_comprehend.svg +11 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E921_comprehend.svg +12 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni$E93$D_comprehend.svg +13 -0
- package/dist/components/lsac-supernavbar/static/images/sidebar-icons/uni0001_comprehend.svg +6 -0
- package/dist/components/lsac-supernavbar/stylesheets/LsacSidebar.css +73 -0
- package/dist/components/lsac-supernavbar/stylesheets/font-face.scss +12 -0
- package/dist/components/lsac-supernavbar/stylesheets/font-sizer.scss +4 -0
- package/dist/components/lsac-supernavbar/stylesheets/fontIcons.css +540 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.eot +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.svg +3521 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.ttf +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.woff +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/ProximaNovaReg.woff2 +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/comprehend.eot +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/comprehend.svg +190 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/comprehend.ttf +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/fonts/comprehend.woff +0 -0
- package/dist/components/lsac-supernavbar/stylesheets/form.scss +16 -0
- package/dist/components/lsac-supernavbar/stylesheets/sidebar-main-link.scss +72 -0
- package/dist/components/lsac-supernavbar/stylesheets/sidebar.scss +222 -0
- package/dist/components/lsac-supernavbar/stylesheets/study-filter.scss +358 -0
- package/dist/components/lsac-supernavbar/stylesheets/topnav.scss +371 -0
- package/dist/components/lsac-supernavbar/test/App.test.js +25 -19
- package/dist/components/lsac-supernavbar/util/SubmenuUtil.js +200 -104
- package/dist/components/lsac-supernavbar/util/Util.js +49 -22
- package/dist/index.css +13 -0
- package/dist/index.js +17 -12
- package/dist/logo.svg +1 -0
- package/dist/react-app-env.d.js +2 -0
- package/dist/reportWebVitals.js +31 -30
- package/dist/setupTests.js +2 -6
- package/package.json +3 -2
- package/dist/caf68d0a64d31f733320266312e3a2ca.svg +0 -1
- package/dist/index.html +0 -1
@@ -1,8 +1,21 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var styles = require('../stylesheets/form.scss');
|
9
|
+
|
5
10
|
function SidebarForm(props) {
|
6
|
-
|
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"));
|
7
18
|
}
|
8
|
-
|
19
|
+
|
20
|
+
var _default = SidebarForm;
|
21
|
+
exports.default = _default;
|
@@ -1,60 +1,124 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
+
|
12
26
|
// import IconRight from '../static/images/sidebar-icons/rightIcon.svg';
|
13
|
-
|
27
|
+
var styles = require('../stylesheets/sidebar-main-link.scss');
|
28
|
+
|
14
29
|
function SidebarMainLink(props) {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
return
|
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));
|
55
74
|
}
|
56
|
-
|
57
|
-
|
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));
|
58
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
|
+
}
|
59
121
|
}
|
60
|
-
|
122
|
+
|
123
|
+
var _default = SidebarMainLink;
|
124
|
+
exports.default = _default;
|
@@ -1,8 +1,22 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11
|
+
|
4
12
|
function SidebarOption(props) {
|
5
|
-
|
6
|
-
|
13
|
+
var label = props.label,
|
14
|
+
onClick = props.onClick;
|
15
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
16
|
+
className: "lsac-sidebar-option",
|
17
|
+
onClick: onClick
|
18
|
+
}, label);
|
7
19
|
}
|
8
|
-
|
20
|
+
|
21
|
+
var _default = SidebarOption;
|
22
|
+
exports.default = _default;
|
@@ -1,68 +1,154 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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 _SidebarConstants = require("../constants/SidebarConstants");
|
13
|
+
|
14
|
+
var _CategorizedSubmenu = _interopRequireDefault(require("./sidebar_submenus/CategorizedSubmenu"));
|
15
|
+
|
16
|
+
var _Models = require("../interfaces/Models");
|
17
|
+
|
18
|
+
var _reactRedux = require("react-redux");
|
19
|
+
|
20
|
+
var _SubmenuUtil = _interopRequireDefault(require("../util/SubmenuUtil"));
|
21
|
+
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
23
|
+
|
24
|
+
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); }
|
25
|
+
|
26
|
+
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; }
|
27
|
+
|
28
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
29
|
+
|
30
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
31
|
+
|
32
|
+
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); }
|
33
|
+
|
34
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
35
|
+
|
36
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
37
|
+
|
38
|
+
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; }
|
39
|
+
|
40
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
41
|
+
|
42
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
43
|
+
|
44
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
45
|
+
|
13
46
|
function groupApplicationsByCategory(applications) {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
47
|
+
return applications.reduce(function (memo, application) {
|
48
|
+
var category = application.category;
|
49
|
+
|
50
|
+
var updatedGrouping = _objectSpread({}, memo);
|
51
|
+
|
52
|
+
var myApps = updatedGrouping.myApps,
|
53
|
+
engagementApps = updatedGrouping.engagementApps,
|
54
|
+
collaborationApps = updatedGrouping.collaborationApps,
|
55
|
+
managementApps = updatedGrouping.managementApps;
|
56
|
+
|
57
|
+
switch (category) {
|
58
|
+
case _Models.SidebarCategory.COLLABORATION:
|
59
|
+
updatedGrouping.collaborationApps = [].concat(_toConsumableArray(collaborationApps), [application]);
|
60
|
+
break;
|
61
|
+
|
62
|
+
case _Models.SidebarCategory.ENGAGEMENT:
|
63
|
+
updatedGrouping.engagementApps = [].concat(_toConsumableArray(engagementApps), [application]);
|
64
|
+
break;
|
65
|
+
|
66
|
+
case _Models.SidebarCategory.MANAGEMENT:
|
67
|
+
updatedGrouping.managementApps = [].concat(_toConsumableArray(managementApps), [application]);
|
68
|
+
break;
|
69
|
+
|
70
|
+
case _Models.SidebarCategory.MY_APPS:
|
71
|
+
updatedGrouping.myApps = [].concat(_toConsumableArray(myApps), [application]);
|
72
|
+
break;
|
73
|
+
|
74
|
+
default:
|
75
|
+
}
|
76
|
+
|
77
|
+
return updatedGrouping;
|
78
|
+
}, {
|
79
|
+
myApps: [],
|
80
|
+
engagementApps: [],
|
81
|
+
collaborationApps: [],
|
82
|
+
managementApps: []
|
83
|
+
});
|
40
84
|
}
|
85
|
+
|
41
86
|
function getMenuForSelection(selection, groupedApps) {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
87
|
+
var myApps = groupedApps.myApps,
|
88
|
+
engagementApps = groupedApps.engagementApps,
|
89
|
+
collaborationApps = groupedApps.collaborationApps,
|
90
|
+
managementApps = groupedApps.managementApps;
|
91
|
+
|
92
|
+
var myAppsComponent = /*#__PURE__*/_react.default.createElement(_CategorizedSubmenu.default, {
|
93
|
+
applications: myApps,
|
94
|
+
title: "My Apps",
|
95
|
+
className: "lsac-my-apps-pane"
|
96
|
+
});
|
97
|
+
|
98
|
+
switch (selection) {
|
99
|
+
case _SidebarConstants.SidebarMenuTypes.MyApps:
|
100
|
+
return myAppsComponent;
|
101
|
+
|
102
|
+
case _SidebarConstants.SidebarMenuTypes.Engagement:
|
103
|
+
return /*#__PURE__*/_react.default.createElement(_CategorizedSubmenu.default, {
|
104
|
+
applications: engagementApps,
|
105
|
+
title: "Engagement",
|
106
|
+
className: "lsac-engagement-pane"
|
107
|
+
});
|
108
|
+
|
109
|
+
case _SidebarConstants.SidebarMenuTypes.Collaboration:
|
110
|
+
return /*#__PURE__*/_react.default.createElement(_CategorizedSubmenu.default, {
|
111
|
+
applications: collaborationApps,
|
112
|
+
title: "Collaboration",
|
113
|
+
className: "lsac-collaboration-pane"
|
114
|
+
});
|
115
|
+
|
116
|
+
case _SidebarConstants.SidebarMenuTypes.Management:
|
117
|
+
return /*#__PURE__*/_react.default.createElement(_CategorizedSubmenu.default, {
|
118
|
+
applications: managementApps,
|
119
|
+
title: "Administration",
|
120
|
+
className: "lsac-management-pane"
|
121
|
+
});
|
122
|
+
|
123
|
+
case _SidebarConstants.SidebarMenuTypes.Home:
|
124
|
+
return null;
|
125
|
+
|
126
|
+
default:
|
127
|
+
return /*#__PURE__*/_react.default.createElement("div", null);
|
128
|
+
}
|
58
129
|
}
|
130
|
+
|
59
131
|
function SidebarSubMenu(props) {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
132
|
+
var selectedOption = (0, _reactRedux.useSelector)(function (state) {
|
133
|
+
return state.sidebar.selectedSidebarOption;
|
134
|
+
});
|
135
|
+
var localApps = (0, _reactRedux.useSelector)(function (state) {
|
136
|
+
return state.sidebar.localApplications;
|
137
|
+
});
|
138
|
+
var keycloakApps = (0, _reactRedux.useSelector)(function (state) {
|
139
|
+
var _state$auth$userInfo;
|
140
|
+
|
141
|
+
return (_state$auth$userInfo = state.auth.userInfo) === null || _state$auth$userInfo === void 0 ? void 0 : _state$auth$userInfo.applications;
|
142
|
+
}) || [];
|
143
|
+
var applications = (0, _react.useMemo)(function () {
|
144
|
+
return [].concat(_toConsumableArray(localApps), _toConsumableArray(keycloakApps.map(_SubmenuUtil.default.keycloakAppToApplication)));
|
145
|
+
}, [localApps, keycloakApps]);
|
146
|
+
var groupedApps = (0, _react.useMemo)(function () {
|
147
|
+
return groupApplicationsByCategory(applications);
|
148
|
+
}, [applications]);
|
149
|
+
var displayComponent = getMenuForSelection(selectedOption, groupedApps);
|
150
|
+
return displayComponent;
|
67
151
|
}
|
68
|
-
|
152
|
+
|
153
|
+
var _default = SidebarSubMenu;
|
154
|
+
exports.default = _default;
|