import * as ko from "knockout" ; import "./multiple-values.scss" ; import { SurveyPropertyMultipleValuesEditor } from "../propertyEditors/propertyMultipleValuesEditor" ; const templateHtml = require ( "./multiple-values.html" ) ; export class PropertyEditorMultipleValuesViewModel { constructor ( public koCategories , public componentInfo , public koAfterRender , public afterRender ) { afterRender ( ) ; } } function createviewModel ( params , componentInfo ) { const model = params . model ; return new PropertyEditorMultipleValuesViewModel ( model . koCategories , componentInfo , model . koAfterRender , ( ) => { typeof params . afterRender === "function" && params . afterRender . call ( model , componentInfo ) ; typeof model . koAfterRender === "function" && model . koAfterRender . call ( model , componentInfo ) ; } ) ; } ko . components . register ( "svd-property-editor-multiple-values" , { viewModel : { createViewModel : ( params , componentInfo ) => { return createviewModel ( params , componentInfo ) ; } , } , template : templateHtml , } ) ; ko . components . register ( "svd-property-editor-multiplevalues" , { viewModel : { createViewModel : ( params , componentInfo ) => { return createviewModel ( params , componentInfo ) ; } , } , template : templateHtml , } ) ;