@oslokommune/punkt-elements
Version:
Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo
29 lines (28 loc) • 1.83 kB
TypeScript
import { FileItem, TQueueItemOperation, TTransferProgress } from './fileupload-types';
type TRenderQueueItemProps = {
file: FileItem;
inputName: string;
disabled: boolean;
fileSize: string;
thumbnailUrl?: string;
previewEnabled?: boolean;
canOpenPreview?: boolean;
transferProgress: TTransferProgress;
transferErrorMessage?: string;
transferShowProgress?: boolean;
transferLastProgress?: number;
loadingText?: string;
operations: TQueueItemOperation[];
activeOperationId?: string;
truncateTail?: number;
onActivateOperation: (fileId: string, operationId: string) => void;
onCloseOperation: (fileId: string) => void;
getFileAttribute: <T>(fileId: string, name: string) => T | undefined;
setFileAttribute: (fileId: string, name: string, value: unknown) => void;
onCancel: (fileId: string) => void;
onOpenPreview?: (fileId: string) => void;
onThumbnailImageError?: (fileId: string) => void;
};
export declare const renderFilenameQueueItem: ({ file, inputName, disabled, fileSize, operations, activeOperationId, onActivateOperation, onCloseOperation, getFileAttribute, setFileAttribute, transferProgress, transferErrorMessage, transferShowProgress, transferLastProgress, loadingText, truncateTail, onCancel, }: TRenderQueueItemProps) => import('lit-html').TemplateResult<1>;
export declare const renderThumbnailQueueItem: ({ file, inputName, disabled, fileSize, thumbnailUrl, previewEnabled, canOpenPreview, operations, activeOperationId, onActivateOperation, onCloseOperation, getFileAttribute, setFileAttribute, transferProgress, transferErrorMessage, transferShowProgress, transferLastProgress, loadingText, truncateTail, onCancel, onOpenPreview, onThumbnailImageError, }: TRenderQueueItemProps) => import('lit-html').TemplateResult<1>;
export {};