import * as ko from "knockout" ; import "./item-values.scss" ; import { SurveyPropertyItemValuesEditor } from "../propertyEditors/propertyItemValuesEditor" ; const templateHtml = require ( "./item-values.html" ) ; export class PropertyEditorItemValuesViewModel { constructor ( public koIsList , public koShowTextView , public koActiveView , public changeToFormViewClick , public changeToTextViewClick , public getLocString , public koItemsText , public readOnly , public model , public afterRender ) { afterRender ( ) ; } } ko . components . register ( "svd-property-editor-item-values" , { viewModel : { createViewModel : ( params , componentInfo ) => { const model = params . model ; return new PropertyEditorItemValuesViewModel ( model . koIsList , model . koShowTextView , model . koActiveView , model . changeToFormViewClick , model . changeToTextViewClick , model . getLocString , model . koItemsText , model . readOnly , model , ( ) => { typeof params . afterRender === "function" && params . afterRender . call ( model , componentInfo ) ; typeof model . koAfterRender === "function" && model . koAfterRender . call ( model , componentInfo ) ; } ) ; } , } , template : templateHtml , } ) ;