summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-os/ngappsrc/src/app/welcome-module/welcome-dashboard/welcome-dashboard.component.html
blob: a58d7e5058b6b294911d3402081efb19e422efb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!--
  ============LICENSE_START==========================================
  ONAP Portal SDK
  ===================================================================
  Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
  ===================================================================
 
  Unless otherwise specified, all software contained herein is licensed
  under the Apache License, Version 2.0 (the "License");
  you may not use this software except in compliance with the License.
  You may obtain a copy of the License at
 
              http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 
  Unless otherwise specified, all documentation contained herein is licensed
  under the Creative Commons License, Attribution 4.0 Intl. (the "License");
  you may not use this documentation except in compliance with the License.
  You may obtain a copy of the License at
 
              https://creativecommons.org/licenses/by/4.0/
 
  Unless required by applicable law or agreed to in writing, documentation
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 
  ============LICENSE_END============================================
   
-->

<gridster [options]="gridOptions" class="appCatalogue-boarder">
  <div *ngFor="let item of dashboard">
      <!--Bar Chart-->
      <div *ngIf="item.id===2">
        <gridster-item [item]="item" > 
          <div class="gridster-box"> 
            <div class="gridster-box-header">
              <h3>Call Success Rate</h3>
              <div class="gridster-box-content">
                <app-bar-chart></app-bar-chart>
              </div>      
              <div  *ngIf="item.hasContent">
                <button mat-icon-button mat-raised-button class="drag-handler">
                  <mat-icon>open_with</mat-icon>
                </button>
                <button mat-icon-button mat-raised-button class="remove-button" (mousedown)="removeItem($event, item)"
                        (touchstart)="removeItem($event, item)" matTooltip="Remove">
                  <mat-icon>delete</mat-icon>
                </button>
              </div>
              <label *ngIf="!item.hasContent">{{item.label}}</label>
              <button mat-mini-fab *ngIf="!item.hasContent" (mousedown)="removeItem($event, item)"
                      (touchstart)="removeItem($event, item)" matTooltip="Remove">
                <mat-icon>delete</mat-icon>
              </button>
            </div>
          </div>
        </gridster-item>
      </div>

      <!--  Pie Chart -->
      <div *ngIf="item.id===3">
        <gridster-item [item]="item" > 
            <div class="gridster-box"> 
              <div class="gridster-box-header">
                <h3>Call Position Method Distribution on 10/14/2001</h3>
                <div class="gridster-box-content">
                  <app-pie-chart></app-pie-chart>
                </div>      
                <div  *ngIf="item.hasContent">
                  <button mat-icon-button mat-raised-button class="drag-handler">
                    <mat-icon>open_with</mat-icon>
                  </button>
                  <button mat-icon-button mat-raised-button class="remove-button" (mousedown)="removeItem($event, item)"
                          (touchstart)="removeItem($event, item)" matTooltip="Remove">
                    <mat-icon>delete</mat-icon>
                  </button>
                </div>
                <label *ngIf="!item.hasContent">{{item.label}}</label>
                <button mat-mini-fab *ngIf="!item.hasContent" (mousedown)="removeItem($event, item)"
                        (touchstart)="removeItem($event, item)" matTooltip="Remove">
                  <mat-icon>delete</mat-icon>
                </button>
              </div>
            </div>
          </gridster-item>
      </div>


      <!--  important links -->
      <div *ngIf="item.id===4">
        <gridster-item [item]="item" > 
          <div class="gridster-box"> 
            <div class="gridster-box-header">
                <h3>Important Links</h3>
                <div class="gridster-box-content" style="height:390px">
                  <div>
                    <table>
                      <thead>
                        <th></th>
                        <th></th>
                      </thead>
                      <tbody>
                        <tr>
                          <td>1. <td>
                          <td><a href="#" target="_blank">Sample Network Simulator</a>
                        </td>
                        </tr>               
                        <tr> 
                          <td>2. <td>                 
                          <td><a href="#" target="_blank">Work Space – Shared Folder</a></td>                
                        </tr>
                        <tr>
                          <td>3. <td>
                          <td><a href="#" target="_blank">Sample Help Documents</a></td>                            
                        </tr>
                      </tbody>
                    </table>
                  </div>
                </div>      
                <div  *ngIf="item.hasContent">
                  <button mat-icon-button mat-raised-button class="drag-handler">
                    <mat-icon>open_with</mat-icon>
                  </button>
                  <button mat-icon-button mat-raised-button class="remove-button" (mousedown)="removeItem($event, item)"
                            (touchstart)="removeItem($event, item)" matTooltip="Remove">
                      <mat-icon>delete</mat-icon>
                  </button>
                </div>
                <label *ngIf="!item.hasContent">{{item.label}}</label>
                <button mat-mini-fab *ngIf="!item.hasContent" (mousedown)="removeItem($event, item)"
                          (touchstart)="removeItem($event, item)" matTooltip="Remove">
                  <mat-icon>delete</mat-icon>
                </button>
              </div>
            </div>
          </gridster-item>
        </div>

        <!--  Sticky Notes -->
        <div *ngIf="item.id===5">
          <gridster-item [item]="item" > 
          <div class="gridster-box"> 
            <div class="gridster-box-header">
              <h3>Sticky Notes</h3>
              <div class="gridster-box-content">
                <mat-card>
                  <mat-card-header>
                      <mat-card-title>
                        Sticky Notes
                        <button mat-icon-button class="more-button" [matMenuTriggerFor]="menu" aria-label="Toggle menu">
                          <mat-icon>more_vert</mat-icon>
                        </button>
                        <mat-menu #menu="matMenu" xPosition="before">
                          
                        </mat-menu>
                      
                          <button class="add material-icons" (click)="addNote()" >
                          note_add
                          </button>
                      
                      </mat-card-title>
                    </mat-card-header>
                    <mat-card-content class="dashboard-card-content">
                      
                      
                        <div class="app">
                          <app-note *ngFor="let note of notes" (dismiss)="deleteNote($event)" (focusout)="saveNote($event)" id="{{note.id}}">{{note.content}}</app-note>
                        </div>
                        
                    </mat-card-content>
                  </mat-card>
                </div>      
                <div  *ngIf="item.hasContent">
                  <button mat-icon-button mat-raised-button class="drag-handler">
                    <mat-icon>open_with</mat-icon>
                  </button>
                  <button mat-icon-button mat-raised-button class="remove-button" (mousedown)="removeItem($event, item)"
                      (touchstart)="removeItem($event, item)" matTooltip="Remove">
                    <mat-icon>delete</mat-icon>
                  </button>
                </div>
                <label *ngIf="!item.hasContent">{{item.label}}</label>
                <button mat-mini-fab *ngIf="!item.hasContent" (mousedown)="removeItem($event, item)"
                    (touchstart)="removeItem($event, item)" matTooltip="Remove">
                  <mat-icon>delete</mat-icon>
                </button>
              </div>
            </div>
          </gridster-item>
        </div>
    </div>
</gridster>