UNPKG

survey-creator-core

Version:

A framework-independent core package of the SurveyJS Survey Creator component. With Survey Creator, you can visually design complex, interactive JSON forms and surveys in a drag-and-drop interface.

81 lines (80 loc) 3.65 kB
import { JsonObjectProperty, SurveyModel } from "survey-core"; import { ICreatorPresetEditorSetup } from "./presets-editable-base"; import { SurveyCreatorModel, ISurveyPropertyGridDefinition, SurveyQuestionProperties, PropertyGridModel } from "survey-creator-core"; import { CreatorPresetEditableCaregorizedListConfigurator } from "./presets-editable-categorized"; export declare class SurveyQuestionPresetProperties extends SurveyQuestionProperties { constructor(obj: any, className: string, propertyGridDefinition: ISurveyPropertyGridDefinition); protected getIsPropertyVisible(prop: JsonObjectProperty): boolean; } export declare class SurveyQuestionPresetPropertiesDetail { private className; private currentJson; private propertiesHash; classes: string[]; private properties; private propertyGridValue; private propertyGridDefaultValue; private obj; private allClasses; constructor(className: string, currentJson: ISurveyPropertyGridDefinition); getObj(): any; private getAllClasses; private createPropertyGrid; private createObj; getInitialJson(useDefaults: boolean): any; get propertyGridDefault(): PropertyGridModel; getPropertyClassName(propName: string): string; updateCurrentJson(val: Array<any>): void; private updateCurrentJsonCore; private updateJsonClasses; private getAllUsedTabNames; private removeUnusedTabs; private convertPropertiesIntoObject; private removeAddUpdateProperties; private updateTabProperties; private addGeneralTabIfNeeded; private updateTabIndexes; private getSortedTabs; private sortElementsByIndex; private getIndexForElement; private getAllTabsInfo; private getPropClassName; private getClassName; } export declare class CreatorPresetEditablePropertyGrid extends CreatorPresetEditableCaregorizedListConfigurator { private currentJson; private localeStrings; private currentProperties?; private currentClassName; private isModified; protected get nameInnerMatrix(): string; protected createItemsMatrixJSON(props: any): any; createMainPageCore(): any; private propertyGrid; protected propertyGridSetObj(obj: any): void; protected hasIcon(name: string): boolean; protected restoreValuesFromDefault(model: SurveyModel): void; getJsonValueCore(model: SurveyModel, creator: SurveyCreatorModel, defaultJson: any): any; protected setupPageQuestions(model: SurveyModel, creator: SurveyCreatorModel): void; protected setupQuestionsCore(model: SurveyModel, creatorSetup: ICreatorPresetEditorSetup): void; private setJSONForTitlesAndDescriptions; protected onLocaleChangedCore(model: SurveyModel, json: any, creator: SurveyCreatorModel): void; protected setJsonLocalizationStringsCore(model: SurveyModel, locStrs: any): void; protected updateJsonLocalizationStringsCore(locStrs: any): void; protected setupOnCurrentPageCore(model: SurveyModel, creator: SurveyCreatorModel, active: boolean): void; private firstTimeLoading; protected updateOnValueChangedCore(model: SurveyModel, name: string): void; private updateMatrices; private getCurrentlyHiddenItems; private setupDefaults; protected setupQuestionsValueCore(model: SurveyModel, json: any, creator: SurveyCreatorModel): void; private getSelector; private get nameSelector(); private getSelectorChoices; private getSelectorItemTitle; private getColumnItemTitle; private updateCurrentJson; private getPropertiesArray; private changePropTitleAndDescription; private ensureLocalizationPath; }