All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.prod.asset-registries.util.IconCollectionsAlias.js.map Maven / Gradle / Ivy

{
  "version": 3,
  "sources": ["../../../../src/asset-registries/util/IconCollectionsAlias.ts"],
  "sourcesContent": ["/**\n * Supported icon collection aliases.\n *\n * Users might specify a collection, using both the key and the value in the following key-value pairs,\n * e.g the following pairs are completely exchangeable:\n *\n * - \"SAP-icons/accept\" and \"SAP-icons-v4/accept\"\n * - \"horizon/accept\" and \"SAP-icons-v5/accept\"\n * - \"SAP-icons-TNT/actor\" and \"tnt/actor\"\n * - \"BusinessSuiteInAppSymbols/3d\" and \"business-suite/3d\"\n */\nenum IconCollectionsAlias {\n\t\"SAP-icons\" = \"SAP-icons-v4\",\n\t\"horizon\" = \"SAP-icons-v5\",\n\t\"SAP-icons-TNT\" = \"tnt\",\n\t\"BusinessSuiteInAppSymbols\" = \"business-suite\",\n}\n\n/**\n * Returns the collection name for a given alias:\n *\n * - \"SAP-icons-TNT\"resolves to \"tnt\"\n * - \"BusinessSuiteInAppSymbols\" resolves to \"business-suite\"\n * - \"horizon\" resolves to \"SAP-icons-v5\"\n *\n * @param { string } collectionName\n * @return { string } the normalized collection name\n */\nconst getIconCollectionByAlias = (collectionName: string) => {\n\tif (IconCollectionsAlias[collectionName as keyof typeof IconCollectionsAlias]) {\n\t\treturn IconCollectionsAlias[collectionName as keyof typeof IconCollectionsAlias];\n\t}\n\n\treturn collectionName;\n};\n\nexport default IconCollectionsAlias;\nexport {\n\tgetIconCollectionByAlias,\n};\n"],
  "mappings": "aAWA,IAAKA,OACJA,EAAA,aAAc,eACdA,EAAA,QAAY,eACZA,EAAA,iBAAkB,MAClBA,EAAA,0BAA8B,iBAJ1BA,OAAA,IAiBL,MAAMC,EAA4BC,GAC7BF,EAAqBE,CAAmD,EACpEF,EAAqBE,CAAmD,EAGzEA,EAGR,eAAeF,EACf,OACCC,KAAA",
  "names": ["IconCollectionsAlias", "getIconCollectionByAlias", "collectionName"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy