UNPKG

@syncfusion/ej2-documenteditor

Version:

Feature-rich document editor control with built-in support for context menu, options pane and dialogs.

183 lines (182 loc) 4.61 kB
import { Dialog } from '@syncfusion/ej2-popups'; import { L10n } from '@syncfusion/ej2-base'; import { WCharacterFormat } from '../format/index'; import { WList } from '../list/list'; import { WListLevel } from '../list/list-level'; import { DocumentHelper } from '../viewer'; /** * The List dialog is used to create or modify lists. */ export declare class ListDialog { /** * @private */ dialog: Dialog; private target; /** * @private */ documentHelper: DocumentHelper; private viewModel; private startAt; private textIndent; private alignedAt; private listLevelElement; private followNumberWith; private numberStyle; private numberFormat; private restartBy; private formatInfoToolTip; private numberFormatDiv; private listLevelDiv; private div; private numberStyleDiv; private indentsDiv; private startAtTextBox; private textIndentAtTextBox; private alignedAtTextBox; private listLevel1; private followCharacterElement; private numberStyleEle; private restartElement; private button; private startedValueChangedClickHandler; private textIndentChangedClickHandler; private alignedAtValueChangedClickHandler; private numberFormatChangedClickHandler; /** * @private */ isListCharacterFormat: boolean; /** * @private * @returns {WListLevel} Returns list level */ readonly listLevel: WListLevel; /** * @private * @returns {WList} Returns list */ readonly list: WList; /** * @private * @returns {number} Returns level number */ readonly levelNumber: number; /** * @param {DocumentHelper} documentHelper - Specifies the document helper. * @private */ constructor(documentHelper: DocumentHelper); private readonly owner; /** * @private * @returns {string} Returns module name */ getModuleName(): string; /** * @private * @returns {void} */ showListDialog(): void; /** * Shows the table properties dialog * * @private * @param {L10n} locale - Specifies the locale value * @param {boolean} isRtl - Specifies the is rtl * @returns {void} */ initListDialog(locale: L10n, isRtl?: boolean): void; private wireAndBindEvent; private onTextIndentChangedClick; /** * @private * @param {ChangeEventArgs} args - Specifies the change event args. * @returns {void} */ private onTextIndentChanged; private onStartedValueChangedClick; /** * @private * @param {ChangeEventArgs} args - Specifies the change event args. * @returns {void} */ private onStartValueChanged; /** * @private * @param {ChangeEventArgs} args - Specifies the change event args. * @returns {void} */ private onListLevelValueChanged; private onNumberFormatChangedClick; /** * @private * @param {any} args - Specifies the change event args. * @returns {void} */ private onNumberFormatChanged; private onAlignedAtValueChangedClick; /** * @private * @param {ChangeEventArgs} args - Specifies the change event args. * @returns {void} */ private onAlignedAtValueChanged; private updateRestartLevelBox; /** * @private * @param {ChangeEventArgs} args - Specifies the change event args. * @returns {void} */ private onFollowCharacterValueChanged; /** * @private * @param {ChangeEventArgs} args - Specifies the change event args. * @returns {void} */ private onLevelPatternValueChanged; private listPatternConverter; private followCharacterConverter; /** * @private * @returns {void} */ private loadListDialog; private calculateAlignedAt; private updateDialogValues; /** * @private * @returns {void} */ private showFontDialog; /** * @param {WCharacterFormat} format - Specifies the character format. * @private * @returns {void} */ updateCharacterFormat(format: WCharacterFormat): void; /** * @private * @returns {void} */ private onApplyList; /** * @private * @returns {void} */ private onCancelButtonClick; /** * @private * @returns {void} */ private closeListDialog; private disposeBindingForListUI; /** * @private * @returns {void} */ destroy(): void; private removeEvents; private removeElements; }