CoreFiles by mySites.guru
button.min.js1 lines, 779 bytes, from Joomla_5.2.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 5.2.0-alpha2
md5
1b0abc0d7efbfb5ddc1a644a8b5da11c
sha1
80415e80f0e5bd0a506fe6c21410ba879dd7b750
sha256
38814b1ea45318ba4fc9676e12cb11851189b03cc34a81e37ce408ca1e6dd6f5
import{E as a,d as r,B as c}from"./dom.min.js?5.3.2";const i="button",l="bs.button",u=`.${l}`,E=".data-api",g="active",s='[data-bs-toggle="button"]',A=`click${u}${E}`;class e extends c{static get NAME(){return i}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(g))}static jQueryInterface(o){return this.each(function(){const n=e.getOrCreateInstance(this);o==="toggle"&&n[o]()})}}if(a.on(document,A,s,t=>{t.preventDefault();const o=t.target.closest(s);e.getOrCreateInstance(o).toggle()}),r(e),window.bootstrap=window.bootstrap||{},window.bootstrap.Button=e,Joomla&&Joomla.getOptions){const t=Joomla.getOptions("bootstrap.button");t&&t.length&&t.forEach(o=>{document.querySelectorAll(o).forEach(n=>new window.bootstrap.Button(n))})}export{e as B};

The same content is in 5 releases, Joomla 5.2.0-alpha1 to 5.2.0-beta2. See them all, or every version of this file.