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.

49 lines (48 loc) 3.71 kB
import { MatrixDynamicRowModel, QuestionMatrixDynamicModel, SurveyModel, Action, IAction } from "survey-core"; import { CreatorPresetEditableBase } from "./presets-editable-base"; import { SurveyCreatorModel } from "survey-creator-core"; export declare class CreatorPresetEditableList extends CreatorPresetEditableBase { private defaultIcon; protected get nameItems(): string; protected get nameMatrix(): string; protected hasIcon(_: string): boolean; getMainElementNames(): any; protected get iconList(): string[]; protected getMatrixKeyColumnName(question: QuestionMatrixDynamicModel): any; protected getDefaultItems(question?: QuestionMatrixDynamicModel): any; protected getDefaultItem(question: QuestionMatrixDynamicModel, key: string): any; protected defaultItems: any; protected updateOnValueChangedCore(model: SurveyModel, name: string): void; protected updateMatrixRowActions(model: SurveyModel, matrix: QuestionMatrixDynamicModel): void; protected updateRowActions(question: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel, actions: IAction[]): void; protected updateRowAction(question: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel, rowData: any, keyColumn: string, action: IAction): void; protected createResetAction(model: SurveyModel, row: MatrixDynamicRowModel, action: (action: Action) => void): IAction; protected createEditAction(model: SurveyModel, creator: SurveyCreatorModel, question: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel): IAction; protected createIconAction(iconName: string, cssClass?: string): IAction; protected setupStandardActions(actions: IAction[], question: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel, allowExpand: boolean, isItemsMatrix: boolean): void; protected editItem(model: SurveyModel, creator: SurveyCreatorModel, question: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel, options?: { description: string; isNew: boolean; }): void; private resetItem; protected restoreItems(questionItems: QuestionMatrixDynamicModel, questionHiddenItems: QuestionMatrixDynamicModel, rowIndex: number): void; protected getMatrix(model: SurveyModel): QuestionMatrixDynamicModel; protected isItemsMatrix(name: string): boolean; protected needToSetActions(name: string): boolean; protected onGetMatrixRowActionsCore(model: SurveyModel, creator: SurveyCreatorModel, options: any): void; onMatrixRowDragOver(model: SurveyModel, creator: SurveyCreatorModel, options: any): void; onMatrixRowRemoving(model: SurveyModel, creator: SurveyCreatorModel, options: any): void; protected getExistingKeys(model: SurveyModel, key: string): any[]; protected getDefaultValueForRow(model: SurveyModel, question: QuestionMatrixDynamicModel, key: string): string; protected setDefaultValueForRow(model: SurveyModel, question: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel): void; onMatrixRowAdded(model: SurveyModel, creator: SurveyCreatorModel, options: any): void; onMatrixCellValueChanged(model: SurveyModel, creator: SurveyCreatorModel, options: any): void; protected onDetailPanelInPopupApply(data: any, matrix: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel): boolean; protected applyDetailPanelInPopup(survey: SurveyModel, matrix: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel, index: number): boolean; protected showDetailPanelInPopup(matrix: QuestionMatrixDynamicModel, row: MatrixDynamicRowModel, rootElement: HTMLElement, options: { actions?: IAction[]; title?: string; removeOnCancel?: boolean; }): SurveyModel; protected: any; }