import * as Survey from "survey-knockout" ; export var settings = { traslation : { sortByName : true , exportPrefix : "" , } , operators : { empty : [ ] , notempty : [ ] , equal : [ "!file" ] , notequal : [ "!file" ] , contains : [ "checkbox" , "text" , "comment" ] , notcontains : [ "checkbox" , "text" , "comment" ] , anyof : [ "selectbase" ] , allof : [ "checkbox" ] , greater : [ "!checkbox" , "!imagepicker" , "!boolean" , "!file" ] , less : [ "!checkbox" , "!imagepicker" , "!boolean" , "!file" ] , greaterorequal : [ "!checkbox" , "!imagepicker" , "!boolean" , "!file" ] , lessorequal : [ "!checkbox" , "!imagepicker" , "!boolean" , "!file" ] , } , jsonEditor : { indentation : 1 } } ; export interface ISurveyCreatorOptions { alwaySaveTextInPropertyEditors : boolean ; readOnly : boolean ; maxLogicItemsInCondition : number ; showTitlesInExpressions : boolean ; allowEditExpressionsInTextEditor : boolean ; maximumColumnsCount : number ; getObjectDisplayName ( obj , reason , displayName ) : string ; onCanShowPropertyCallback ( object , property , showMode , parentObj , parentProperty ) : boolean ; onIsPropertyReadOnlyCallback ( obj , property , readOnly , parentObj , parentProperty ) : boolean ; onCanDeleteItemCallback ( object , item , allowDelete ) : boolean ; onCollectionItemDeletingCallback ( obj , property , collection , item ) : boolean ; onItemValueAddedCallback ( obj , propertyName , itemValue , itemValues ) ; onMatrixDropdownColumnAddedCallback ( matrix , column , columns ) ; onSetPropertyEditorOptionsCallback ( propertyName , obj , editorOptions ) ; onGetErrorTextOnValidationCallback ( propertyName , obj , value ) : string ; onValueChangingCallback ( options ) ; onPropertyValueChanged ( property , obj , newValue ) ; onGetElementEditorTitleCallback ( obj , title ) : string ; startUndoRedoTransaction ( ) ; stopUndoRedoTransaction ( ) ; createSurvey ( json , reason , surveyType ? ) ; onConditionQuestionsGetListCallback ( propertyName , obj , editor , list ) ; } export class EmptySurveyCreatorOptions implements ISurveyCreatorOptions { alwaySaveTextInPropertyEditors : boolean ; readOnly : boolean ; maxLogicItemsInCondition : number ; showTitlesInExpressions : boolean ; allowEditExpressionsInTextEditor : boolean ; maximumColumnsCount : number ; getObjectDisplayName ( obj , reason , displayName ) { return displayName ; } onCanShowPropertyCallback ( object , property , showMode , parentObj , parentProperty ) { return true ; } onIsPropertyReadOnlyCallback ( obj , property , readOnly , parentObj , parentProperty ) { return true ; } onCanDeleteItemCallback ( object , item , allowDelete ) { return allowDelete ; } onCollectionItemDeletingCallback ( obj , property , collection , item ) { return true ; } onItemValueAddedCallback ( obj , propertyName , itemValue , itemValues ) { } onMatrixDropdownColumnAddedCallback ( matrix , column , columns ) { } onSetPropertyEditorOptionsCallback ( propertyName , obj , editorOptions ) { } onGetErrorTextOnValidationCallback ( propertyName , obj , value ) { return null ; } onValueChangingCallback ( options ) { } onPropertyValueChanged ( property , obj , newValue ) { } onGetElementEditorTitleCallback ( obj , title ) { return title ; } startUndoRedoTransaction ( ) { } stopUndoRedoTransaction ( ) { } createSurvey ( json , reason , surveyType ? ) { return new Survey . SurveyModel ( json ) ; } onConditionQuestionsGetListCallback ( propertyName , obj , editor , list ) { } }