blob: d314528b961312bdf8ad81c23ca41df524e4be23 [file] [log] [blame]
Sean Condonf4f54a12018-10-10 23:25:46 +01001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { Component, OnInit } from '@angular/core';
17import { animate, state, style, transition, trigger } from '@angular/animations';
18import {
19 LogService,
20 LoadingService,
21 FnService,
22 PanelBaseImpl
23} from 'gui2-fw-lib';
24
25/*
26 ONOS GUI -- Topology Summary Module.
27 Defines modeling of ONOS Summary Panel.
28 */
29@Component({
30 selector: 'onos-summary',
31 templateUrl: './summary.component.html',
32 styleUrls: [
33 './summary.component.css',
34 '../../topology.common.css',
35 '../../../../fw/widget/panel.css', '../../../../fw/widget/panel-theme.css'
36 ],
37 animations: [
38 trigger('summaryPanelState', [
39 state('true', style({
40 transform: 'translateX(0%)',
41 opacity: '100'
42 })),
43 state('false', style({
44 transform: 'translateX(100%)',
45 opacity: '0'
46 })),
47 transition('0 => 1', animate('100ms ease-in')),
48 transition('1 => 0', animate('100ms ease-out'))
49 ])
50 ]
51})
52export class SummaryComponent extends PanelBaseImpl implements OnInit {
53
54 constructor(
55 protected fs: FnService,
56 protected log: LogService,
57 protected ls: LoadingService,
58 ) {
59 super(fs, ls, log);
60 this.log.debug('SummaryComponent constructed');
61 }
62
63
64 ngOnInit() {
65 }
66
67}