UNPKG

survey-creator-core

Version:

Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.

89 lines (88 loc) 4 kB
import { Base, Action, SurveyElement, IAction, ActionContainer } from "survey-core"; import { SurveyCreatorModel } from "../creator-base"; import { DropIndicatorPosition } from "../drag-drop-enums"; import { SurveyElementActionContainer } from "./action-container-view-model"; export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyElement> extends Base { creator: SurveyCreatorModel; static AdornerValueName: string; protected expandCollapseAction: IAction; allowDragging: boolean; expandCollapseAnimationRunning: boolean; rootElement: HTMLElement; dropIndicatorPosition: DropIndicatorPosition; isBeingDragged: boolean; needToRenderContent: boolean; allowExpandCollapse: boolean; collapsed: boolean; private _renderedCollapsed; isAnimationRunningCollapsed: boolean; protected getAnimatedElement(): any; protected getInnerAnimatedElements(): Array<HTMLElement>; protected getCollapsingCssClassName(): string; protected getExpandingCssClassName(): string; private hoverTimeout; private isHovered; protected get hoverDelay(): number; hover(e: MouseEvent, element: HTMLElement | any): void; private getExpandCollapseAnimationOptions; private animationCollapsed; set renderedCollapsed(val: boolean); get renderedCollapsed(): boolean; protected createTopActionContainer(): ActionContainer; protected createActionContainer(): SurveyElementActionContainer; private dragCollapsedTimer; get canExpandOnDrag(): boolean; private draggedIn; protected dragIn(): void; protected expandWithDragIn(): void; protected dragOut(): void; protected allowExpandCollapseByDblClick(element: any): boolean; dblclick(event: any): void; private allowEditOption; private sidebarFlyoutModeChangedFunc; surveyElement: T; get element(): T; constructor(creator: SurveyCreatorModel, surveyElement: T); private actionContainerValue; protected get isActionContainerCreated(): boolean; get actionContainer(): SurveyElementActionContainer; private topActionContainerValue; get topActionContainer(): ActionContainer; private creatorOnLocaleChanged; static GetAdorner<V = SurveyElementAdornerBase>(surveyElement: Base): V; static RestoreStateFor(surveyElement: SurveyElement): void; protected restoreState(): void; protected detachElement(surveyElement: T): void; protected attachElement(surveyElement: T): void; protected setSurveyElement(surveyElement: T): void; protected checkActionProperties(): void; attachToUI(surveyElement: T, rootElement?: HTMLElement): void; private detachOnlyMyElement; detachFromUI(): void; dispose(): void; private disposeActions; protected onElementSelectedChanged(isSelected: boolean): void; protected getExpandCollapseAction(): IAction; protected cleanActionsContainer(): void; protected updateActionsContainer(surveyElement: SurveyElement): void; protected updateActionsProperties(): void; protected updateActionsPropertiesCore(): void; protected getAllowDragging(options: any): boolean; protected getAllowExpandCollapse(options: any): boolean; protected updateElementAllowOptions(options: any, operationsAllow: boolean): void; protected isOperationsAllow(): boolean; private actionVisibilityCache; protected updateActionVisibility(id: string, isVisible: boolean): void; protected updateActionsVisibility(isTop: boolean): void; getActionById(id: string): Action; protected buildActions(items: Array<Action>): void; isDisableSelecting: boolean; protected disableActionFocusing(isMouse: boolean, event: any): void; protected canSelectElement(): boolean; get allowEdit(): boolean; get showAddQuestionButton(): boolean; protected setShowAddQuestionButton(val: boolean): void; protected duplicate(): void; protected delete(): void; protected getCss(): string; }