Merge "InvalidRoleException-junits"
[portal.git] / portal-FE-os / src / app / layout / components / header-menu / header-menu.component.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6   ===================================================================
7  
8   Unless otherwise specified, all software contained herein is licensed
9   under the Apache License, Version 2.0 (the "License");
10   you may not use this software except in compliance with the License.
11   You may obtain a copy of the License at
12  
13               http://www.apache.org/licenses/LICENSE-2.0
14  
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20  
21   Unless otherwise specified, all documentation contained herein is licensed
22   under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23   you may not use this documentation except in compliance with the License.
24   You may obtain a copy of the License at
25  
26               https://creativecommons.org/licenses/by/4.0/
27  
28   Unless required by applicable law or agreed to in writing, documentation
29   distributed under the License is distributed on an "AS IS" BASIS,
30   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31   See the License for the specific language governing permissions and
32   limitations under the License.
33  
34   ============LICENSE_END============================================
35  
36   
37   -->
38 <div id="container" style="width: 100%;" (clickOutside)="clickOutSide($event)">
39   <!-- First Level menu -->
40   <div id="megaMenu-{{item.text.split(' ').join('-')}}"
41     *ngFor="let item of megaMenuDataObject;let megaMenuIndex = index" (mousedown)="loadFirstLevel(megaMenuIndex)"
42     role="presentation" class="header-menu-item-div"><a href="javascript:void(0);" id="parentmenu-tabs" role="menuitem"
43       class="header-menu-item-link">{{item.text}}<b class="caret"></b><span class="sr-only"></span></a>
44
45     <div class="header-secondlevel-menu" *ngIf="item.active_yn=='Y' && hideMenus[megaMenuIndex]">
46       <ul class="header-secondary" role="menu">
47         <!-- Second Level menu -->
48         <li class="header-menu-item-li" id="subItem-{{i.text.split(' ').join('-')}}"
49           *ngFor="let i of item.children;let secondLevelIndex = index"
50           (mousemove)="hideThirdLevelMenu(megaMenuIndex,secondLevelIndex)" role="presentation">
51           <!-- Favorites -->
52
53           <div *ngIf="i.text=='Favorites'">
54             <a href="javascript:void(0);" class="menu__item" role="menuitem">{{i.text}}</a>
55             <i id="favorite-star" data-size="large" class="icon-star favorites-icon-active"></i>
56             <div class="header-columns-div" *ngIf="hideSecondLevelMenus[megaMenuIndex][secondLevelIndex]">
57               <div class="header-tertiary-wrapper" id="header-favorites">
58                 <ul class="header-tertiary" role="menu">
59                   <li role="presentation">
60                     <div *ngFor="let subItem of (favoritesMenuItems ? favoritesMenuItems : [])"
61                       id="favoritesMenuItems-{{subItem.text.split(' ').join('-')}}">
62                       <div class="fav-links">
63                         <i id="favorite-selector-favorites-list" class="icon-star favorites-icon-active"
64                           (click)="removeAsFavoriteItem($event, subItem.menuId)"
65                           (mousedown)="removeAsFavoriteItem($event, subItem.menuId)">
66                         </i> <a id="favorites-list" (click)="goToUrl(subItem)">{{subItem.text}}</a>
67                       </div>
68                     </div>
69
70                     <div id="favorites-empty" class="favorites-window-empty" *ngIf="emptyFavorites">
71                       <p id="p-no-favs-icon" class="no-fav-icon">
72                         <span class="icon-star"></span>
73                       </p>
74                       <p id="p-no-favs" class="largeText">{{'No
75                               Favorites'}}</p>
76                       <p id="p-no-favs-desc" class="normal">{{'Add your
77                               favorite items for quick access'}}.</p>
78                     </div>
79                   </li>
80                 </ul>
81               </div>
82             </div>
83           </div> <!-- Support or Help -->
84           <div *ngIf="item.text=='Support' || item.text=='Help'" id="second-level-menus-help">
85             <a id="second-level-menus-{{i.text.split(' ').join('-')}}-help" href="javascript:void(0);"
86               (click)="goToUrl(i);auditLog(i,'Support')" class="menu__item" role="menuitem">{{i.text}}</a>
87           </div> <!-- Others -->
88           <div *ngIf="i.text!='Favorites' && (item.text!='Support' && item.text!='Help')">
89             <a href="javascript:void(0);" class="menu__item" role="menuitem">{{i.text}}</a>
90             <div class="header-thirdlevel-menu" *ngIf="hideSecondLevelMenus[megaMenuIndex][secondLevelIndex]">
91               <ul class="third-level-menu" role="menu" id="third-level-menus">
92                 <!-- Third Level menu -->
93
94                 <li *ngFor="let link of i.children" role="presentation"><i id="level3-star-inactive-{{link.menuId}}"
95                     class="icon-star favorites-icon-inactive" data-size="large"
96                     (mousedown)="setAsFavoriteItem($event, link.menuId)"
97                     *ngIf="link.url.length > 1 && isUrlFavorite(link.menuId)==false">
98                   </i> <i id="level3-star-active-{{link.menuId}}"
99                     *ngIf="link.url.length > 1 && isUrlFavorite(link.menuId)" class="icon-star favorites-icon-active"
100                     data-size="large" (mousedown)="removeAsFavoriteItem($event, link.menuId)">
101                   </i> <a class="third-level-title"
102                     (mousedown)="goToUrl(link);auditLog(link,'application')">{{link.text}}</a>
103                   <!-- Fourth Level menu -->
104                   <div *ngFor="let title of link.children">
105                     <i id="level4-star-inactive-{{title.menuId}}" class="icon-star favorites-icon-inactive"
106                       (mousedown)="setAsFavoriteItem($event, title.menuId)"
107                       *ngIf="title.url.length > 1 && isUrlFavorite(title.menuId)==false">
108                     </i> <i id="level4-star-active-{{title.menuId}}" class="icon-star favorites-icon-active"
109                       (mousedown)="removeAsFavoriteItem($event, title.menuId)"
110                       *ngIf="title.url.length > 1 && isUrlFavorite(title.menuId)">
111                     </i> <a href="javascript:void(0);" class="header-tertiaryitem"
112                       [ngClass]="{'disabled': title.disabled}" role="menuitem"
113                       (mousedown)="goToUrl(title);auditLog(title,'functional')">{{title.text}}</a>
114                   </div>
115                 </li>
116
117
118
119
120               </ul>
121             </div>
122           </div>
123
124         </li>
125       </ul>
126     </div>
127   </div>
128 </div>