blob: 0fcf17911e526a824d6140633f698d447de5b6d0 [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 DetailsPanelBaseImpl,
23 WebSocketService
24} from 'gui2-fw-lib';
25
26/*
27 ONOS GUI -- Topology Details Panel.
28 Displays details of selected device.
29 */
30@Component({
31 selector: 'onos-details',
32 templateUrl: './details.component.html',
33 styleUrls: [
34 './details.component.css', './details.theme.css',
35 '../../topology.common.css',
36 '../../../../fw/widget/panel.css', '../../../../fw/widget/panel-theme.css'
37 ],
38 animations: [
39 trigger('detailsPanelState', [
40 state('true', style({
41 transform: 'translateX(0%)',
42 opacity: '100'
43 })),
44 state('false', style({
45 transform: 'translateX(100%)',
46 opacity: '0'
47 })),
48 transition('0 => 1', animate('100ms ease-in')),
49 transition('1 => 0', animate('100ms ease-out'))
50 ])
51 ]
52})
53export class DetailsComponent extends DetailsPanelBaseImpl implements OnInit {
54
55 constructor(
56 protected fs: FnService,
57 protected log: LogService,
58 protected ls: LoadingService,
59 protected wss: WebSocketService,
60 ) {
61 super(fs, ls, log, wss, 'topo');
62 this.log.debug('InstanceComponent constructed');
63 }
64
65 ngOnInit() {
Sean Condon55c30532018-10-29 12:26:57 +000066 this.on = false;
Sean Condonf4f54a12018-10-10 23:25:46 +010067 }
68
69}