import { ThyAbstractInternalOverlayRef , ThyAbstractOverlayRef } from 'ngx-tethys/core' ; import { OverlayRef } from '@angular/cdk/overlay' ; import { ThyPopoverContainerComponent } from './popover-container.component' ; import { ThyPopoverConfig } from './popover.config' ; import { popoverAbstractOverlayOptions } from './popover.options' ; export abstract class ThyPopoverRef < T , TResult = unknown , TData = unknown > extends ThyAbstractOverlayRef < T , ThyPopoverContainerComponent < TData > , TResult > { } export class ThyInternalPopoverRef < T , TResult = unknown > extends ThyAbstractInternalOverlayRef < T , ThyPopoverContainerComponent , TResult > implements ThyPopoverRef < T , TResult > { constructor ( overlayRef , containerInstance , config ) { super ( popoverAbstractOverlayOptions , overlayRef , containerInstance , config ) ; containerInstance . insideClicked . subscribe ( ( ) => { this . close ( ) ; } ) ; containerInstance . outsideClicked . subscribe ( ( ) => { this . close ( ) ; } ) ; } param position updatePosition ( ) { this . overlayRef . updatePosition ( ) ; return this ; } }