MDL-79041 core: Fix typo for MoodleNet resource URL
[moodle.git] / lib / amd / build / icon_system.min.js.map
blob094e4c0dccdcf578835d92d47514d08a2ae920d6
1 {"version":3,"file":"icon_system.min.js","sources":["../src/icon_system.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.\n\n/**\n * Icon System base module.\n *\n * @module core/icon_system\n * @copyright  2017 Damyon Wiese\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\n\ndefine(['jquery'], function($) {\n\n    /**\n     * Icon System abstract class.\n     *\n     * Any icon system needs to define a module extending this one and return this module name from the php icon_system class.\n     *\n     * @class core/icon_system\n     */\n    var IconSystem = function() {\n    };\n\n    /**\n     * Initialise the icon system.\n     *\n     * @return {Promise}\n     * @method init\n     */\n    IconSystem.prototype.init = function() {\n        return $.when(this);\n    };\n\n    /**\n     * Render an icon.\n     *\n     * The key, component and title come from either the pix mustache helper tag, or the call to templates.renderIcon.\n     * The template is the pre-loaded template string matching the template from getTemplateName() in this class.\n     * This function must return a string (not a promise) because it is used during the internal rendering of the mustache\n     * template (which is unfortunately synchronous). To render the mustache template in this function call\n     * core/mustache.render() directly and do not use any partials, blocks or helper functions in the template.\n     *\n     * @param {String} key\n     * @param {String} component\n     * @param {String} title\n     * @param {String} template\n     * @return {String}\n     * @method renderIcon\n     */\n    IconSystem.prototype.renderIcon = function(key, component, title, template) { // eslint-disable-line no-unused-vars\n        throw new Error('Abstract function not implemented.');\n    };\n\n    /**\n     * getTemplateName\n     *\n     * @return {String}\n     * @method getTemplateName\n     */\n    IconSystem.prototype.getTemplateName = function() {\n        throw new Error('Abstract function not implemented.');\n    };\n\n    return /** @alias module:core/icon_system */ IconSystem;\n});\n"],"names":["define","$","IconSystem","prototype","init","when","this","renderIcon","key","component","title","template","Error","getTemplateName"],"mappings":";;;;;;;AAuBAA,0BAAO,CAAC,WAAW,SAASC,OASpBC,WAAa,oBASjBA,WAAWC,UAAUC,KAAO,kBACjBH,EAAEI,KAAKC,OAmBlBJ,WAAWC,UAAUI,WAAa,SAASC,IAAKC,UAAWC,MAAOC,gBACxD,IAAIC,MAAM,uCASpBV,WAAWC,UAAUU,gBAAkB,iBAC7B,IAAID,MAAM,uCAGyBV"}