import { ThyAbstractInternalOverlayRef , ThyAbstractOverlayPosition , ThyAbstractOverlayRef } from 'ngx-tethys/core' ; import { GlobalPositionStrategy , OverlayRef } from '@angular/cdk/overlay' ; import { ThyDialogContainerComponent } from './dialog-container.component' ; import { ThyDialogConfig } from './dialog.config' ; import { dialogAbstractOverlayOptions } from './dialog.options' ; export abstract class ThyDialogRef < T , TResult = unknown > extends ThyAbstractOverlayRef < T , ThyDialogContainerComponent , TResult > { } export class ThyInternalDialogRef < T , TResult = unknown > extends ThyAbstractInternalOverlayRef < T , ThyDialogContainerComponent , TResult > { constructor ( overlayRef , containerInstance , config ) { super ( dialogAbstractOverlayOptions , overlayRef , containerInstance , config ) ; } param position updatePosition ( position ? ) { this . updateGlobalPosition ( position ) ; return this ; } param width param height updateSizeAndPosition ( width = '' , height = '' , position ? ) { ( this . getPositionStrategy ( ) as GlobalPositionStrategy ) . width ( width ) . height ( height ) ; this . updatePosition ( position ) ; return this ; } }