TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,13 @@
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
import c from"@typo3/core/event/regular-event.js";class n extends c{constructor(t,l,e=250){super(t,l),this.callback=this.debounce(this.callback,e)}debounce(t,l){let e=null;return function(...u){clearTimeout(e),e=setTimeout(()=>{e=null,t.apply(this,u)},l)}}}export{n as default};
@@ -0,0 +1,13 @@
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
class s{constructor(e,a,n=!1){this.eventName=e,this.callback=a,this.options=n}bindTo(e){if(!e){console.warn(`Binding event ${this.eventName} failed, element was not found.`);return}this.boundElement=e,e.addEventListener(this.eventName,this.callback,this.options)}delegateTo(e,a){if(!e){console.warn(`Delegating event ${this.eventName} failed, element was not found.`);return}this.boundElement=e,e.addEventListener(this.eventName,n=>{for(let t=n.target;t&&t!==this.boundElement;t=t.parentElement)if(t.matches(a)){this.callback.call(t,n,t);break}},this.options)}release(){this.boundElement.removeEventListener(this.eventName,this.callback)}}export{s as default};
@@ -0,0 +1,13 @@
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
import i from"@typo3/core/event/regular-event.js";class n extends i{constructor(t,e){super(t,e),this.callback=this.req(this.callback)}req(t){let e=null;return(...a)=>{e&&window.cancelAnimationFrame(e),e=window.requestAnimationFrame(()=>{t.apply(this,a)})}}}export{n as default};
@@ -0,0 +1,13 @@
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
import a from"@typo3/core/event/regular-event.js";class s extends a{constructor(n,l,t){super(n,l),this.callback=this.throttle(l,t)}throttle(n,l){let t=null,e=null;return function(...u){if(t=u,e!==null)return;const r=()=>{if(t===null){clearInterval(e),e=null;return}n.apply(this,t),t=null};r(),e=setInterval(r,l)}}}export{s as default};