import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from "@angular/core"; import { PepLayoutService, PepScreenSizeType } from '@pepperi-addons/ngx-lib'; import { TranslateService } from '@ngx-translate/core'; import { AddonService } from "./addon.service"; @Component({ selector: 'addon-block', templateUrl: './addon.component.html', styleUrls: ['./addon.component.scss'] }) export class BlockComponent implements OnInit { @Input() hostObject: any; @Output() hostEvents: EventEmitter = new EventEmitter(); screenSize: PepScreenSizeType; constructor( public addonService: AddonService, public layoutService: PepLayoutService, public translate: TranslateService ) { this.layoutService.onResize$.subscribe(size => { this.screenSize = size; }); } ngOnInit() { } openDialog() { } }