import '../chip-multi-select/chip-multi-select'; import './image-preview-dialog'; import './add-url-dialog'; import './existing-url-dialog'; import './cannot-download-dialog'; import '@material/web/dialog/dialog'; import '@material/web/icon/icon'; import '@material/web/button/text-button'; import '@material/web/button/outlined-button'; import '@material/web/chips/input-chip'; import '@material/web/chips/suggestion-chip'; import '@material/web/chips/assist-chip'; import { LitElement } from 'lit'; import { SmartAttachment } from './type/smart-attachment'; import { ImagePreviewDialog } from './image-preview-dialog'; /** * Material outline image input with cropper * * @element titanium-smart-attachment-input * * @fires change - Fired when image is attached or removed from input. * * */ export declare class TitaniumSmartAttachmentInput extends LitElement { #private; protected accessor files: SmartAttachment[]; protected accessor isOver: boolean; protected accessor previewSrc: string | undefined; protected accessor input: HTMLInputElement; protected accessor imagePreviewDialog: ImagePreviewDialog; private accessor confirmDeleteDialog; private accessor chipMultiSelect; private accessor addUrlDialog; private accessor existingUrlDialog; private accessor cannotDownloadDialog; /** * File types to accept ex. "image/*,.pdf" */ accessor accept: string; /** * Allow multiple attachments */ accessor multiple: boolean; /** * Requires at least one attachment on validate */ accessor required: boolean; /** * Whether or not the input should be disabled */ accessor disabled: boolean; /** * Requires user to confirm when delete of an attachment is requested */ accessor confirmDelete: boolean; accessor document: boolean; /** * Delete confirmation header text */ accessor confirmDeleteHeader: string; /** * Delete confirmation paragraph text */ accessor confirmDeleteText: string; /** * Add button label text */ accessor addButtonLabel: string; /** * Add link button label text */ accessor addLinkButtonLabel: string; accessor closeButtonText: string; accessor saveButtonText: string; accessor editLinkText: string; accessor cannotDownloadDialogHeaderText: string; accessor cannotDownloadDialogContentText: string; accessor cannotDownloadCloseButtonText: string; /** * Label of input */ accessor label: string; /** * Sets supporting text */ accessor supportingText: string; /** * Text to show when there are no attachments */ accessor noItemsText: string; /** * Configurable CropperJs options. */ /** * Image formats here are sent to the cropper */ accessor croppableImageFormats: Array; accessor externalUrl: string; url: string; /** * File object of cropped image. */ getFiles(): SmartAttachment[]; /** * Use to preset input to existing image. */ setFiles(...files: { fileName: string; previewSrc?: string; downloadSrc?: string; id?: number; }[]): void; /** * Returns true if the input passes validity checks. */ checkValidity(): boolean; /** * Runs checkValidity() method, and if it returns false, then it reports to the user that the input is invalid. */ reportValidity(): boolean; /** * Returns true if the images have been added, removed or edited. */ hasChanges(): boolean; /** * Resets the inputs state. */ reset(): Promise; updated(changedProperties: Map): void; handleNewFile(files: FileList): Promise; handleNewUrl(url: string): Promise; toBase64(file: File): Promise; static styles: import("lit").CSSResult[]; render(): import("lit-html").TemplateResult<1>; documentSvg(): import("lit-html").TemplateResult<1>; } //# sourceMappingURL=smart-attachment-input.d.ts.map