1 import { Component, Input, Output, ViewEncapsulation, EventEmitter, OnInit } from '@angular/core';
2 import { ZoneInstanceType } from '../../../../models/graph/zones/zone-instance';
5 selector: 'zone-container',
6 templateUrl: './zone-container.component.html',
7 styleUrls: ['./zone-container.component.less'],
8 encapsulation: ViewEncapsulation.None
11 export class ZoneContainerComponent implements OnInit {
12 @Input() title:string;
13 @Input() type:ZoneInstanceType;
14 @Input() count:number;
15 @Input() visible:boolean;
16 @Input() minimized:boolean;
17 @Output() minimize: EventEmitter<any> = new EventEmitter<any>();
18 @Output() backgroundClick: EventEmitter<void> = new EventEmitter<void>();
24 this.class = ZoneInstanceType[this.type].toLowerCase();
27 private unminifyZone = () => {
31 private backgroundClicked = () => {
32 this.backgroundClick.emit();