import * as ko from "knockout" ; import "./modal-content.scss" ; import { SurveyPropertyModalEditor } from "../propertyEditors/propertyModalEditor" ; const templateHtml = require ( "./modal-content.html" ) ; export class PropertyEditorModalContent { constructor ( public koHtmlTop , public koHtmlBottom , public editorTypeTemplate , public model , public afterRender ) { } } ko . components . register ( "svd-property-editor-modal-content" , { viewModel : { createViewModel : ( params , componentInfo ) => { const model = params . model ; const afterRender = params . afterRender ; return new PropertyEditorModalContent ( model . koHtmlTop , model . koHtmlBottom , model . editorTypeTemplate , model , afterRender ) ; } , } , template : templateHtml , } ) ;