@progress/kendo-angular-upload
Version:
Kendo UI Angular Upload Component
61 lines (60 loc) • 2.34 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { fileAudioIcon, fileConfigIcon, fileDiscImageIcon, fileDataIcon, fileImageIcon, filePdfIcon, filePresentationIcon, fileProgrammingIcon, fileTxtIcon, fileVideoIcon, fileZipIcon } from "@progress/kendo-svg-icons";
/**
* @hidden
*/
export const fileGroupMap = {
audio: [
".aif", ".iff", ".m3u", ".m4a", ".mid", ".mp3", ".mpa", ".wav", ".wma", ".ogg", ".wav", ".wma", ".wpl"
],
video: [
".3g2", ".3gp", ".avi", ".asf", ".flv", ".m4u", ".rm", ".h264", ".m4v", ".mkv", ".mov", ".mp4", ".mpg", ".rm", ".swf", ".vob", ".wmv"
],
image: [
".ai", ".dds", ".heic", ".jpe", "jfif", ".jif", ".jp2", ".jps", ".eps", ".bmp", ".gif", ".jpeg", ".jpg", ".png", ".ps", ".psd", ".svg", ".svgz", ".tif", ".tiff"
],
txt: [
".doc", ".docx", ".log", ".pages", ".tex", ".wpd", ".wps", ".odt", ".rtf", ".text", ".txt", ".wks"
],
presentation: [
".key", ".odp", ".pps", ".ppt", ".pptx"
],
data: [
".xlr", ".xls", ".xlsx"
],
programming: [
".tmp", ".bak", ".msi", ".cab", ".cpl", ".cur", ".dll", ".dmp", ".drv", ".icns", ".ico", ".link", ".sys", ".cfg",
".ini", ".asp", ".aspx", ".cer", ".csr", ".css", ".dcr", ".htm", ".html", ".js", ".php", ".rss", ".xhtml"
],
pdf: [
".pdf"
],
config: [
".apk", ".app", ".bat", ".cgi", ".com", ".exe", ".gadget", ".jar", ".wsf"
],
zip: [
".7z", ".cbr", ".gz", ".sitx", ".arj", ".deb", ".pkg", ".rar", ".rpm", ".tar.gz", ".z", ".zip", ".zipx"
],
discImage: [
".dmg", ".iso", ".toast", ".vcd", ".bin", ".cue", ".mdf"
]
};
/**
* @hidden
*/
export const fileSVGGroupMap = {
audio: fileAudioIcon,
video: fileVideoIcon,
image: fileImageIcon,
txt: fileTxtIcon,
presentation: filePresentationIcon,
data: fileDataIcon,
programming: fileProgrammingIcon,
pdf: filePdfIcon,
config: fileConfigIcon,
zip: fileZipIcon,
discImage: fileDiscImageIcon
};