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

package.dist.prod.config.Icons.js.map Maven / Gradle / Ivy

{
  "version": 3,
  "sources": ["../../../src/config/Icons.ts"],
  "sourcesContent": ["const IconCollectionConfiguration = new Map();\n\n// All supported icon collections + unknown custom ones\ntype IconCollection = string;\n\n/**\n * Sets the default icon collection for a given theme.\n *\n * SAP Icons is the default icon collection (that resolves to SAP-icons version 5.x in Horizon theme family and SAP-icons version 4.x in all other themes)\n * and to display icons from other collections, you have to specify the icon collection in addition to the icon name, for example: \"tnt/actor\", \"business-suite/1x2-grid-layout\", etc.\n * This method allows setting another (built-in or custom) icon collection as default per theme.\n *\n * **Usage**\n * **For example**, to make \"SAP-icons version 5.x\" the default icon collection in \"sap_fiori_3\":\n *\n * ```\n * setDefaultIconCollection(\"sap_fiori_3\", \"SAP-icons-v5\");\n *\n * \n * ```\n *\n * **For example**, to make a custom icon collection (with name \"my-custom-collection\") the default icon collection in \"sap_fiori_3\":\n *\n * ```\n * setDefaultIconCollection(\"sap_fiori_3\", \"my-custom-collection\");\n *\n * \n * ```\n *\n * @public\n * @param { string } theme\n * @param { string } collectionName\n */\nconst setDefaultIconCollection = (theme: string, collectionName: IconCollection) => {\n\tIconCollectionConfiguration.set(theme, collectionName);\n};\n\n/**\n * Returns the configured default icon collection for a given theme.\n *\n * @param { string } theme\n * @public\n * @returns { string | undefined }\n */\nconst getDefaultIconCollection = (theme: string): string | undefined => {\n\treturn IconCollectionConfiguration.get(theme);\n};\n\nexport {\n\tsetDefaultIconCollection,\n\tgetDefaultIconCollection,\n};\n\nexport type {\n\tIconCollection,\n};\n"],
  "mappings": "aAAA,MAAMA,EAA8B,IAAI,IAiClCC,EAA2B,CAACC,EAAeC,IAAmC,CACnFH,EAA4B,IAAIE,EAAOC,CAAc,CACtD,EASMC,EAA4BF,GAC1BF,EAA4B,IAAIE,CAAK,EAG7C,OACCD,KAAA,yBACAG,KAAA",
  "names": ["IconCollectionConfiguration", "setDefaultIconCollection", "theme", "collectionName", "getDefaultIconCollection"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy