import * as ko from "knockout" ; import "./property-grid.scss" ; const templateHtml = require ( "./property-grid.html" ) ; import { PropertyGridObjectEditorModel } from "../questionEditors/questionEditor" ; import { SurveyCreator } from "../editor" ; import { editorLocalization } from "../editorLocalization" ; export class PropertyGridViewModel { constructor ( public koObjects , public koSelectedObject , public propertyGridObjectEditorModel ) { } public getLocString ( str ) { return editorLocalization . getString ( str ) ; } } ko . components . register ( "svd-property-grid" , { viewModel : { createViewModel : ( params , componentInfo ) => { const creator = params . creator ; return new PropertyGridViewModel ( creator . koObjects , creator . koSelectedObject , creator . propertyGridObjectEditorModel ) ; } , } , template : templateHtml , } ) ;