import { injectable } from '@cloudbeaver/core-di' ; import { IScreen , ScreenService } from '@cloudbeaver/core-routing' ; import type { ISqlEditorScreenParams } from './ISqlEditorScreenParams' ; import { SqlEditorScreen } from './SqlEditorScreen' ; @ injectable ( ) export class SqlEditorScreenService { readonly screen : IScreen < ISqlEditorScreenParams > ; constructor ( private readonly screenService ) { this . screen = { name : 'sql-editor' , routes : [ { name : 'sql-editor' , path : '/sql-editor/:connectionId/:contextId' } , ] , component : SqlEditorScreen , } ; } createURL ( params ) { return this . screenService . buildUrl ( this . screen . name , params ) ; } navigate ( params ) { this . screenService . navigate ( this . screen . name , params ) ; } }