import { FinishButtonMode, ObjectInspectorPosition, BarcodeType, GalleryDialogTab } from "./ConfigurationTypes"; import { IGalleryDefaultConfig } from "./DefaultConfigurationInterfaces"; export interface IFinishButtonConfig { mode: FinishButtonMode.FinishButtonModeType; } export interface ISurfaceSwitchConfig { enabled?: boolean; showThumbnails?: boolean; showSurfaceNames?: boolean; scrollPageButtonsEnabled?: boolean; toggleSurfaceButtonsEnabled?: boolean; firstAndLastButtonsEnabled?: boolean; specificForSurfaceCount?: { [countOfSurfaces: string]: ISurfaceSwitchConfig; }; } export interface IBottomToolbarConfig { fullWindowButtonEnabled?: boolean; fullScreenButtonEnabled?: boolean; zoomValueEnabled?: boolean; zoomButtonsEnabled?: boolean; rotateButtonEnabled?: boolean; safetyLinesCheckboxEnabled?: boolean; gridCheckboxEnabled?: boolean; snapLinesCheckboxEnabled?: boolean; surfaceSwitch?: ISurfaceSwitchConfig; } export interface ICommonConfig { fontSize?: IRangeParams; tracking?: IRangeParams; leading?: IRangeParams; fauxBold?: boolean; fauxItalic?: boolean; underline?: boolean; gallery?: IGalleryDefaultConfig; } export interface IResizeGripsPermissions { edge: boolean; corner: string[]; } export declare class IManipulationPermissions { allowDelete?: boolean; allowMoveHorizontal?: boolean; allowMoveVertical?: boolean; allowRotate?: boolean; resizeGrips?: IResizeGripsPermissions; } export interface ILeftToolbarConfig { imageButtonEnabled?: boolean; textButtonEnabled?: boolean; lineButtonEnabled?: boolean; rectangleButtonEnabled?: boolean; ellipseButtonEnabled?: boolean; linearBarcodeButtonEnabled?: boolean; qrCodeButtonEnabled?: boolean; richTextButtonEnabled?: boolean; disabled?: boolean; buttons?: ILeftToolbarConfig.ButtonType[]; } export declare namespace ILeftToolbarConfig { interface IItem { translationKey: string; translationKeyTitle: string; iconClass: string; } interface IButton extends IItem { buttons: ButtonType[]; } interface ISingleButton extends IItem { action: ButtonAction; } interface IGalleryButton extends ISingleButton { tabs: string[]; defaultTabName: string; } type ButtonAction = "QrCode" | "LinearBarcode" | // Qr codes "Line" | "Rectangle" | "Ellipse" | // Shapes "Text" | "RichText" | // Text items "Image" | "Background" | "Layout"; type SingleButtonType = ISingleButton | IGalleryButton | ButtonAction; type ButtonType = IButton | SingleButtonType; } export interface IObjectInspectorConfig { bgItemEnabled?: boolean; dndEnabled?: boolean; violationWarningsEnabled?: boolean; variableItemsEnabled?: boolean; emptyListTextEnabled?: boolean; position?: ObjectInspectorPosition.ObjectInspectorPositionType; aboveCanvasOnSmallScreenEnabled?: boolean; isHidden?: boolean; toggleEnabled?: boolean; } export interface IItemMenuConfig { objectManipulationEnabled?: boolean; verticalAlignmentEnabled?: boolean; horizontalAlignmentEnabled?: boolean; changeZOrderEnabled?: boolean; } export interface IRangeParams { min?: number; max?: number; step?: number; } export interface ITextShadowParam { angle: IRangeParams; distance: IRangeParams; size: IRangeParams; } export interface ITopToolbarConfig { displayCaptionInButtons?: boolean; alignButtonsEnabled?: boolean; displayAlignButtonsAsDropdown?: boolean; historyButtonsEnabled?: boolean; deleteButtonEnabled?: boolean; revertButtonEnabled?: boolean; zOrder?: IZOrderConfig; displayZOrderButtonsAsDropdown?: boolean; cloneButtonEnabled?: boolean; editTextButtonEnabled: boolean; textVAlignmentButtonsEnabled?: boolean; textAllowChangeColumnCount?: boolean; textAlignmentButtonsEnabled?: boolean; textEmphasisButtonsEnabled?: boolean; textFontFamilyButtonEnabled?: boolean; textFontStyleButtonEnabled?: boolean; textFontSizeButtonEnabled?: boolean; textFontColorButtonEnabled?: boolean; closeFontMenuOnClickEnabled?: boolean; opacitySliderEnabled?: boolean; textLeadingButtonEnabled?: boolean; textTrackingButtonEnabled?: boolean; multiRowModeEnabled?: boolean; borderColorButtonEnabled?: boolean; barcodeColorButtonEnabled?: boolean; borderWidthButtonEnabled?: boolean; imageEditButtonEnabled?: boolean; imageSelectButtonEnabled?: boolean; placeholderEditButtonEnabled?: boolean; placeholderSelectButtonEnabled?: boolean; placeholderScaleButtonEnabled?: boolean; placeholderResetContentButtonEnabled?: boolean; fontPreviewSize?: number; fontSize?: IRangeParams; textShadowButtonEnabled?: boolean; textShadow?: ITextShadowParam; textStrokeButtonEnabled?: boolean; textStroke?: IRangeParams; } export interface IZOrderConfig { zOrderLevelButtonsEnabled?: boolean; zOrderSendToButtonsEnabled?: boolean; } export interface IBarcodeDialogConfig { defaultType: BarcodeType; } export interface ITextOutline { enabled?: boolean; hueThreshold?: number; brightnessThreshold?: number; color?: string; } export interface IShowHintSettings { font?: boolean; style?: boolean; size?: boolean; tracking?: boolean; leading?: boolean; firstLineIndent?: boolean; paddingTop?: boolean; paddingBottom?: boolean; paddingLeft?: boolean; paddingRight?: boolean; } export interface IShowInputSettings { size?: boolean; } export interface IRichComboValuesConfig { indent?: IRangeParams; padding?: IRangeParams; } export interface IZoomConfig { enabled?: boolean; minZoomPct?: number; maxZoomPct?: number; autoZoom?: IAutoZoomConfig; } export interface IAutoZoomConfig { enabled?: boolean; minFontSizeThresholdPt?: number; maxFontSizeThresholdPt?: number; } export interface IRichTextDialogConfig { forcePasteAsPlainText?: boolean; bgColor?: string; createMultiColumnText?: boolean; applyToAllTextMode?: boolean; wysiwygMode?: boolean; showHint: IShowHintSettings; showInput?: IShowInputSettings; textOutline?: ITextOutline; toolbarConfig?: ({ name: string; items: string[]; } | string)[]; ckeditorConfig?: any; zoom?: IZoomConfig; richComboValues?: IRichComboValuesConfig; fitTextRectangle?: IFitTextRectangleSettings; } export interface IFitTextRectangleSettings { onAdd?: TextRectangleFitMode; onUpdate?: TextRectangleFitMode; } export declare type TextRectangleFitMode = "shrinkToContentWidth" | "stretchToContentWidth" | "shrinkOrStretchToContentWidth" | "shrinkToContentHeight" | "stretchToContentHeight" | "shrinkOrStretchToContentHeight" | "shrinkToContent" | "stretchToContent" | "shrinkOrStretchToContent"; export interface ITabDescriptor { name?: string; type?: GalleryDialogTab.GalleryDialogTabType; subFolderName?: string; translationKey?: string; categoriesEnabled?: boolean; showFileName?: boolean; canEdit?: boolean; canUpload?: boolean; canDelete?: boolean; appKey?: string; } export interface IGalleryDialogConfig { defaultTabName?: string; downloadPsdAsImage?: boolean; allowedExtensions?: string[]; overwriteExistingFiles?: boolean; showTabsInRestrictedMode?: boolean; backgroundColorPickerEnabled?: boolean; insertToAllButtonEnabled?: boolean; saveAllowedTabAfterInsert?: boolean; tabs?: ITabDescriptor[]; } export interface IColorPickerConfig { showPaletteOnly?: boolean; palette?: string[][]; } export interface IImageEditorDialogConfig { colorAdjustButtonEnabled?: boolean; cropButtonEnabled?: boolean; backgroundEraseButtonEnabled?: boolean; } export interface ITextPopupConfig { }