@edugouvfr/ngx-dsfr
Version:
NgxDsfr est un portage Angular des éléments d'interface du Système de Design de l'État Français (DSFR).
122 lines (121 loc) • 4.09 kB
TypeScript
/**
* Les types MIME de fichiers supportés par le composant.
*
* @see https://developer.mozilla.org/fr/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
*/
export declare enum DsfrMimeTypeConst {
TEXT_CSS = "text/css",
TEXT_CSV = "text/csv",
TEXT_HTML = "text/html",
TEXT_CALENDAR = "text/calendar",
TEXT_PLAIN = "text/plain",
TEXT_XML = "text/xml",
FONT_OTF = "font/otf",
FONT_TTF = "font/ttf",
FONT_WOFF = "font/woff",
FONT_WOFF2 = "font/woff2",
IMAGE_BMP = "image/bmp",
IMAGE_GIF = "image/gif",
IMAGE_ICON = "image/x-icon",
IMAGE_JPEG = "image/jpeg",
IMAGE_PNG = "image/png",
IMAGE_SVG = "image/svg+xml",
IMAGE_TIFF = "image/tiff",
IMAGE_WEBP = "image/webp",
AUDIO_3GPP = "audio/3gpp",
AUDIO_3GPP2 = "audio/3gpp2",
AUDIO_ACC = "audio/aac",
AUDIO_OGG = "audio/ogg",
AUDIO_MIDI = "audio/midi",
AUDIO_WAV = "audio/x-wav",
AUDIO_WEBM = "audio/webm",
VIDEO_3GPP = "video/3gpp",
VIDEO_3GPP2 = "video/3gpp2",
VIDEO_MPEG = "video/mpeg",
VIDEO_OGG = "video/ogg",
VIDEO_WEBM = "video/webm",
APPLICATION_ABIWORD = "application/x-abiword",
APPLICATION_CSH = "application/x-csh",
APPLICATION_EPUB = "application/epub+zip",
APPLICATION_FLASH = "application/x-shockwave-flash",
APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded",
APPLICATION_JAVASCRIPT = "application/javascript",
APPLICATION_JSON = "application/json",
APPLICATION_OCTET_STREAM = "application/octet-stream",
APPLICATION_OGG = "application/ogg",
APPLICATION_PDF = "application/pdf",
APPLICATION_RTF = "application/rtf",
APPLICATION_TYPESCRIPT = "application/typescript",
APPLICATION_XML = "application/xml",
APPLICATION_XML_ATOM = "application/atom+xml",
APPLICATION_XML_SVG = "application/svg+xml",
APPLICATION_XML_XHTML = "application/xhtml+xml",
APPLICATION_XML_XUL = "application/vnd.mozilla.xul+xml",
ARCHIVE_7Z_COMPRESSED = "application/x-7z-compressed",
ARCHIVE_BZIP = "application/x-bzip",
ARCHIVE_BZIP2 = "application/x-bzip2",
ARCHIVE_JAVA = "application/java-archive",
ARCHIVE_GZIP = "application/gzip",
ARCHIVE_RAR_COMPRESSED = "application/x-rar-compressed",
ARCHIVE_TAR = "application/x-tar",
ARCHIVE_RAR = "application/vnd.rar",
ARCHIVE_ZIP = "application/zip",
ARCHIVE_ZIP_COMPRESSED = "application/x-zip-compressed",
MS_FONT_OBJECT = "application/vnd.ms-fontobject",
MS_EXCEL = "application/vnd.ms-excel",
MS_EXCEL_XML = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
MS_POWERPOINT = "application/vnd.ms-powerpoint",
MS_POWERPOINT_XML = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
MS_VIDEO = "video/x-msvideo",
MS_VISIO = "application/vnd.visio",
MS_WORD = "application/msword",
MS_WORD_XML = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
MULTIPART_FORM_DATA = "multipart/form-data",
SCRIPT_SHELL = "application/x-sh",
OPEN_PRESENTATION = "application/vnd.oasis.opendocument.presentation",
OPEN_SPREADSHEET = "application/vnd.oasis.opendocument.spreadsheet",
OPEN_TEXT = "application/vnd.oasis.opendocument.text"
}
/**
* Type union correspondant aux valeurs de l'enum {@link DsfrMimeTypeConst}.
*/
export type DsfrMimeType = `${DsfrMimeTypeConst}`;
/**
* Fonction utilitaire
*
* @ignore
*/
export declare function convertMimeType2FileFormat(mineType: string): FileFormat | undefined;
/**
* @ignore
*/
declare enum FileFormat {
XLS = "XLS",
XLSX = "XLSX",
PPT = "PPT",
PPTX = "PPTX",
DOC = "DOC",
DOCX = "DOCX",
ODS = "ODS",
ODP = "ODP",
ODT = "ODT",
XML = "XML",
JPG = "JPG",
PNG = "PNG",
PDF = "PDF",
CSV = "CSV",
HTML = "HTML",
SVG = "SVG",
TXT = "TXT",
ZIP = "ZIP",
SEVEN_ZIP = "7Z",
RAR = "RAR",
XHTML = "XHTML",
BMP = "BMP",
GIF = "GIF",
TIF = "TIF",
RTF = "RTF",
GZIP = "GZIP",
TAR = "TAR"
}
export {};