NOBUG: Fixed SVG browser compatibility
[moodle.git] / contentbank / amd / build / selectors.min.js
blobbd68eca7cc695ce372c6635c7cc49cd48de58fae
1 define("core_contentbank/selectors",["exports"],(function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;
2 /**
3    * Define all of the selectors we will be using on the contentbank interface.
4    *
5    * @module     core_contentbank/selectors
6    * @copyright  2020 Sara Arjona <sara@moodle.com>
7    * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
8    */
9 const getDataSelector=(name,value)=>"[data-".concat(name,'="').concat(value,'"]');var _default={regions:{cbcontentname:getDataSelector("region","cb-content-name"),contentbank:getDataSelector("region","contentbank"),filearea:getDataSelector("region","filearea")},actions:{search:getDataSelector("action","searchcontent"),clearSearch:getDataSelector("action","clearsearch"),viewgrid:getDataSelector("action","viewgrid"),viewlist:getDataSelector("action","viewlist"),sortname:getDataSelector("action","sortname"),sortuses:getDataSelector("action","sortuses"),sortdate:getDataSelector("action","sortdate"),sortsize:getDataSelector("action","sortsize"),sorttype:getDataSelector("action","sorttype"),sortauthor:getDataSelector("action","sortauthor")},elements:{listitem:".cb-listitem",heading:".cb-heading",cell:".cb-column",cbnavbarbreadcrumb:".cb-navbar-breadbrumb",cbnavbartotalsearch:".cb-navbar-totalsearch",searchinput:'[data-action="search"]',sortbutton:".cb-btnsort"}};return _exports.default=_default,_exports.default}));
11 //# sourceMappingURL=selectors.min.js.map