import { L10n } from '@syncfusion/ej2-base'; import { FormNode } from '@syncfusion/ej2-form-renderer'; /** * @private */ export interface FormFieldWrapperProps { /** @private */ component: FormNode; /** @private */ isActive: boolean; /** @private */ index?: number; /** @private */ totalCount?: number; /** @private */ mode?: 'Simple' | 'Developer'; /** @private */ enableRtl?: boolean; /** @private */ registerRenderedInstance?: (instance: any) => void; /** @private */ hasClipboardData?: boolean; /** @private */ isNested?: boolean; /** @private */ nestingContext?: { parentId: string; parentPath: string; cellInfo?: { row?: number; col?: number; tabIndex?: number; }; }; /** @private */ onEdit: (id: string) => void; /** @private */ onCopy: (field: FormNode) => void; /** @private */ onPaste: (targetId: string) => void; /** @private */ onDelete: (id: string) => void; /** @private */ onSwitchWidget?: (id: string, type: string) => void; /** @private */ onMoveUp?: (id: string) => void; /** @private */ onMoveDown?: (id: string) => void; /** @private */ onNestedMoveUp?: (id: string, parentId: string, parentPath: string, cellInfo?: { row?: number; col?: number; tabIndex?: number; }) => void; /** @private */ onNestedMoveDown?: (id: string, parentId: string, parentPath: string, cellInfo?: { row?: number; col?: number; tabIndex?: number; }) => void; /** @private */ nestedContainerClass?: 'panel-child-field-draggable' | 'tab-child-field-draggable' | 'table-cell-child-draggable'; } /** * @private */ export declare class FormFieldWrapper { private host; private props; private l10n; private activeClass; private errorClass; private wrapperEl; private labelEl; private actionsEl; private errorEl; private descriptionEl; private fieldHostEl; private clickHandler; private keydownHandler; private actionHandler; private switchMenuObj; /** * @private */ constructor(host: HTMLElement, props: FormFieldWrapperProps, l10n: L10n); /** * @private */ update(props: FormFieldWrapperProps): void; updatePreserved(component: FormNode, isActive: boolean, index: number, totalCount: number, isNested: boolean, nestingContext?: FormFieldWrapperProps['nestingContext']): void; /** * @private */ setActive(isActive: boolean): void; /** * @private */ setError(message: string | null): void; /** * @private */ destroy(): void; private destroySwitchMenu; getHost(): HTMLElement; /** * @private */ getFieldHost(): HTMLElement; /** * @private */ private resolveFieldHostTag; private render; private buildActions; } export default FormFieldWrapper;