Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
package.dist.prod.asset-registries.util.getIconCollectionByTheme.js.map Maven / Gradle / Ivy
{
"version": 3,
"sources": ["../../../../src/asset-registries/util/getIconCollectionByTheme.ts"],
"sourcesContent": ["import { getTheme } from \"../../config/Theme.js\";\nimport type { IconCollection } from \"../../config/Icons.js\";\nimport { getDefaultIconCollection } from \"../../config/Icons.js\";\nimport { getIconCollectionByAlias } from \"./IconCollectionsAlias.js\";\nimport { getIconCollectionForTheme } from \"./IconCollectionsByTheme.js\";\n\n/**\n * Returns the effective theme dependant icon collection:\n *\n * - \"no collection\" resolves to \"SAP-icons-v4\" in \"Quartz\" and to \"SAP-icons-v5\" in \"Horizon\"\n * - \"tnt\" (and its alias \"SAP-icons-TNT\") resolves to \"tnt-v2\" in \"Quartz\" and resolves to \"tnt-v3\" in \"Horizon\"\n * - \"business-suite\" (and its alias \"BusinessSuiteInAppSymbols\") resolves to \"business-suite-v1\" in \"Quartz\" and resolves to \"business-suite-v2\" in \"Horizon\"\n *\n * @param { IconCollection } collectionName\n * @returns { IconCollection } the effective collection name\n */\nconst getEffectiveIconCollection = (collectionName?: IconCollection): IconCollection => {\n\tconst defaultIconCollection = getDefaultIconCollection(getTheme());\n\n\t// no collection + default collection, configured via setDefaultIconCollection - return the configured icon collection.\n\tif (!collectionName && defaultIconCollection) {\n\t\treturn getIconCollectionByAlias(defaultIconCollection);\n\t}\n\n\t// no collection - return \"SAP-icons-v4\" or \"SAP-icons-v5\".\n\tif (!collectionName) {\n\t\treturn getIconCollectionForTheme(\"SAP-icons\");\n\t}\n\n\t// has collection - return \"SAP-icons-v4\", \"SAP-icons-v5\", \"tnt-v1\", \"tnt-v2\", \"business-suite-v1\", \"business-suite-v2\", or custom ones.\n\treturn getIconCollectionForTheme(collectionName);\n};\n\nexport default getEffectiveIconCollection;\n"],
"mappings": "aAAA,OAAS,YAAAA,MAAgB,wBAEzB,OAAS,4BAAAC,MAAgC,wBACzC,OAAS,4BAAAC,MAAgC,4BACzC,OAAS,6BAAAC,MAAiC,8BAY1C,MAAMC,EAA8BC,GAAoD,CACvF,MAAMC,EAAwBL,EAAyBD,EAAS,CAAC,EAGjE,MAAI,CAACK,GAAkBC,EACfJ,EAAyBI,CAAqB,EAIjDD,EAKEF,EAA0BE,CAAc,EAJvCF,EAA0B,WAAW,CAK9C,EAEA,eAAeC",
"names": ["getTheme", "getDefaultIconCollection", "getIconCollectionByAlias", "getIconCollectionForTheme", "getEffectiveIconCollection", "collectionName", "defaultIconCollection"]
}