CoreFiles by mySites.guru
button.min.js1 lines, 1,118 bytes, from Joomla_4.0.0-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.0.0-rc1
md5
f83cda276503bd1234b55b8768269169
sha1
3f7f096dc1713517a784d9c2db1e12403d120cbd
sha256
b61e8cc5e53ae24b559547065f586213fc6996d8fe878cfec8b337cf39d3023a
import{B as BaseComponent,D as Data,E as EventHandler,d as defineJQueryPlugin}from"./dom.min.js?1623769888";const NAME="button",DATA_KEY="bs.button",EVENT_KEY=".bs.button",DATA_API_KEY=".data-api",CLASS_NAME_ACTIVE="active",SELECTOR_DATA_TOGGLE='[data-bs-toggle="button"]',EVENT_CLICK_DATA_API="click.bs.button.data-api";class Button extends BaseComponent{static get NAME(){return NAME}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){let e=Data.get(this,DATA_KEY);e||(e=new Button(this)),"toggle"===t&&e[t]()}))}}if(EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,(t=>{t.preventDefault();const e=t.target.closest(SELECTOR_DATA_TOGGLE);let o=Data.get(e,DATA_KEY);o||(o=new Button(e)),o.toggle()})),defineJQueryPlugin(Button),window.bootstrap=window.bootstrap||{},window.bootstrap.Button=Button,Joomla&&Joomla.getOptions){const t=Joomla.getOptions("bootstrap.button");t&&t.length&&t.forEach((t=>{Array.from(document.querySelectorAll(t)).map((t=>new window.bootstrap.Button(t)))}))}export{Button as B};

No other release has this exact content. See every version of this file.