@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).
108 lines (107 loc) • 4.33 kB
TypeScript
export type DsfrMimeType = T[keyof T];
type T = typeof DsfrMimeTypeConst;
/** cf. https://developer.mozilla.org/fr/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types */
export declare namespace DsfrMimeTypeConst {
const TEXT_CSS = "text/css";
const TEXT_CSV = "text/csv";
const TEXT_HTML = "text/html";
const TEXT_CALENDAR = "text/calendar";
const TEXT_PLAIN = "text/plain";
const TEXT_XML = "text/xml";
const FONT_OTF = "font/otf";
const FONT_TTF = "font/ttf";
const FONT_WOFF = "font/woff";
const FONT_WOFF2 = "font/woff2";
const IMAGE_BMP = "image/bmp";
const IMAGE_GIF = "image/gif";
const IMAGE_ICON = "image/x-icon";
const IMAGE_JPEG = "image/jpeg";
const IMAGE_PNG = "image/png";
const IMAGE_SVG = "image/svg+xml";
const IMAGE_TIFF = "image/tiff";
const IMAGE_WEBP = "image/webp";
const AUDIO_3GPP = "audio/3gpp";
const AUDIO_3GPP2 = "audio/3gpp2";
const AUDIO_ACC = "audio/aac";
const AUDIO_OGG = "audio/ogg";
const AUDIO_MIDI = "audio/midi";
const AUDIO_WAV = "audio/x-wav";
const AUDIO_WEBM = "audio/webm";
const VIDEO_3GPP = "video/3gpp";
const VIDEO_3GPP2 = "video/3gpp2";
const VIDEO_MPEG = "video/mpeg";
const VIDEO_OGG = "video/ogg";
const VIDEO_WEBM = "video/webm";
const APPLICATION_ABIWORD = "application/x-abiword";
const APPLICATION_CSH = "application/x-csh";
const APPLICATION_EPUB = "application/epub+zip";
const APPLICATION_FLASH = "application/x-shockwave-flash";
const APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded";
const APPLICATION_JAVASCRIPT = "application/javascript";
const APPLICATION_JSON = "application/json";
const APPLICATION_OCTET_STREAM = "application/octet-stream";
const APPLICATION_OGG = "application/ogg";
const APPLICATION_PDF = "application/pdf";
const APPLICATION_RTF = "application/rtf";
const APPLICATION_TYPESCRIPT = "application/typescript";
const APPLICATION_XML = "application/xml";
const APPLICATION_XML_ATOM = "application/atom+xml";
const APPLICATION_XML_SVG = "application/svg+xml";
const APPLICATION_XML_XHTML = "application/xhtml+xml";
const APPLICATION_XML_XUL = "application/vnd.mozilla.xul+xml";
const ARCHIVE_7Z_COMPRESSED = "application/x-7z-compressed";
const ARCHIVE_BZIP = "application/x-bzip";
const ARCHIVE_BZIP2 = "application/x-bzip2";
const ARCHIVE_JAVA = "application/java-archive";
const ARCHIVE_GZIP = "application/gzip";
const ARCHIVE_RAR_COMPRESSED = "application/x-rar-compressed";
const ARCHIVE_TAR = "application/x-tar";
const ARCHIVE_RAR = "application/vnd.rar";
const ARCHIVE_ZIP = "application/zip";
const ARCHIVE_ZIP_COMPRESSED = "application/x-zip-compressed";
const MS_FONT_OBJECT = "application/vnd.ms-fontobject";
const MS_EXCEL = "application/vnd.ms-excel";
const MS_EXCEL_XML = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
const MS_POWERPOINT = "application/vnd.ms-powerpoint";
const MS_POWERPOINT_XML = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
const MS_VIDEO = "video/x-msvideo";
const MS_VISIO = "application/vnd.visio";
const MS_WORD = "application/msword";
const MS_WORD_XML = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
const MULTIPART_FORM_DATA = "multipart/form-data";
const SCRIPT_SHELL = "application/x-sh";
const OPEN_PRESENTATION = "application/vnd.oasis.opendocument.presentation";
const OPEN_SPREADSHEET = "application/vnd.oasis.opendocument.spreadsheet";
const OPEN_TEXT = "application/vnd.oasis.opendocument.text";
}
export declare function convertMimeType2FileFormat(mineType: string): FileFormat | undefined;
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 {};