import * as ko from "knockout" ; import "./error.scss" ; import { SurveyPropertyEditorBase } from "../propertyEditors/propertyEditorBase" ; const templateHtml = require ( "./error.html" ) ; export class PropertyEditorErrorViewModel { constructor ( public koDisplayError , public getLocString , public koErrorText ) { } } ko . components . register ( "svd-property-editor-error" , { viewModel : { createViewModel : ( params , componentInfo ) => { const model = params . model ; return new PropertyEditorErrorViewModel ( model . koDisplayError , model . getLocString , model . koErrorText ) ; } , } , template : templateHtml , } ) ;