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.
46 lines (45 loc) • 2.69 kB
TypeScript
import { IAction, MatrixDynamicRowModel, QuestionMatrixDynamicModel, SurveyModel } from "survey-core";
import { ICreatorPresetEditorSetup } from "./presets-editable-base";
import { SurveyCreatorModel } from "survey-creator-core";
import { CreatorPresetEditableCaregorizedListConfigurator } from "./presets-editable-categorized";
export declare class CreatorPresetEditableToolboxConfigurator extends CreatorPresetEditableCaregorizedListConfigurator {
private allItems;
protected defaultSubitems: any;
private createItemsMatrixJSON;
createMainPageCore(): any;
get nameCategoriesMode(): string;
protected get nameItems(): string;
protected get nameSubitems(): string;
protected get nameShowCategoryTitles(): string;
get questionNames(): string[];
protected hasIcon(name: string): boolean;
protected getDefaultItems(question?: QuestionMatrixDynamicModel): any;
protected updateRowAction(question: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel, rowData: any, keyColumn: string, action: IAction): void;
private findItem;
private moveToSubitems;
protected getExistingKeys(model: SurveyModel, key: string): any[];
protected itemMenuCategoriesEnabled(model: SurveyModel): boolean;
protected getItemMenuActionsCore(model: SurveyModel, question: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel): IAction[];
getJsonValueCore(model: SurveyModel, creator: SurveyCreatorModel, defaultJson: any): any;
protected getDefaultJsonValueCore(creator: SurveyCreatorModel): any;
private isCategoriesSame;
private getCategoriesJson;
private cleanIfNotDiffers;
private getJsonItemsDefinition;
protected isItemsMatrix(name: string): boolean;
onMatrixRowRemoving(model: SurveyModel, creator: SurveyCreatorModel, options: any): void;
protected setupOnCurrentPageCore(model: SurveyModel, creator: SurveyCreatorModel, active: boolean): void;
protected setupQuestionsCore(model: SurveyModel, creatorSetup: ICreatorPresetEditorSetup): void;
private setupDefaults;
protected setupQuestionsValueCore(model: SurveyModel, json: any, creator: SurveyCreatorModel): void;
protected onLocaleChangedCore(model: SurveyModel, json: any, creator: SurveyCreatorModel): void;
private updateItemsFromCategories;
private updateCategoriesFromItems;
protected updateOnValueChangedCore(model: SurveyModel, name: string): void;
private updateShowCategoriesTitlesElements;
private getCategoryTitle;
protected setJsonLocalizationStringsCore(model: SurveyModel, locStrs: any): void;
private getQuestionItems;
private createToolboxItemRow;
private createToolboxCategoryRow;
}