[FEATURE] Add JavaScript event handling API
This patch adds API for event handling in JavaScript. The goal is to have an easy-to-use event handling and delegation by shipping several event strategies. Debounce: Debounces an event listener that is executed after the event happened, either at the start or at the end. A debounced event listener is not executed again until a certain amount of time has passed without it being called. RequestAnimationFrame: Traps an event listener into the browser's native rAF API. Throttle: Throttles the event listener to be called only after a defined time during the event's execution over time. Resolves: #90471 Releases: master Change-Id: I407f9b98a13f998bbf0879614002223b304389b0 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63336 Reviewed-by:Markus Klein <markus.klein@typo3.org> Reviewed-by:
Susanne Moog <look@susi.dev> Tested-by:
Markus Klein <markus.klein@typo3.org> Tested-by:
TYPO3com <noreply@typo3.com> Tested-by:
Susanne Moog <look@susi.dev>
Showing
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Container/InlineControlContainer.ts 167 additions, 237 deletions...TypeScript/FormEngine/Container/InlineControlContainer.ts
- Build/Sources/TypeScript/core/Resources/Public/TypeScript/Event/DebounceEvent.ts 53 additions, 0 deletions...t/core/Resources/Public/TypeScript/Event/DebounceEvent.ts
- Build/Sources/TypeScript/core/Resources/Public/TypeScript/Event/EventInterface.ts 20 additions, 0 deletions.../core/Resources/Public/TypeScript/Event/EventInterface.ts
- Build/Sources/TypeScript/core/Resources/Public/TypeScript/Event/RegularEvent.ts 48 additions, 0 deletions...pt/core/Resources/Public/TypeScript/Event/RegularEvent.ts
- Build/Sources/TypeScript/core/Resources/Public/TypeScript/Event/RequestAnimationFrameEvent.ts 45 additions, 0 deletions...ces/Public/TypeScript/Event/RequestAnimationFrameEvent.ts
- Build/Sources/TypeScript/core/Resources/Public/TypeScript/Event/ThrottleEvent.ts 44 additions, 0 deletions...t/core/Resources/Public/TypeScript/Event/ThrottleEvent.ts
- Build/eslintrc.js 1 addition, 5 deletionsBuild/eslintrc.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Container/InlineControlContainer.js 1 addition, 1 deletion...JavaScript/FormEngine/Container/InlineControlContainer.js
- typo3/sysext/core/Documentation/Changelog/master/Feature-90471-JavaScriptEventAPI.rst 186 additions, 0 deletions...ion/Changelog/master/Feature-90471-JavaScriptEventAPI.rst
- typo3/sysext/core/Resources/Public/JavaScript/Event/DebounceEvent.js 13 additions, 0 deletions...t/core/Resources/Public/JavaScript/Event/DebounceEvent.js
- typo3/sysext/core/Resources/Public/JavaScript/Event/EventInterface.js 13 additions, 0 deletions.../core/Resources/Public/JavaScript/Event/EventInterface.js
- typo3/sysext/core/Resources/Public/JavaScript/Event/RegularEvent.js 13 additions, 0 deletions...xt/core/Resources/Public/JavaScript/Event/RegularEvent.js
- typo3/sysext/core/Resources/Public/JavaScript/Event/RequestAnimationFrameEvent.js 13 additions, 0 deletions...ces/Public/JavaScript/Event/RequestAnimationFrameEvent.js
- typo3/sysext/core/Resources/Public/JavaScript/Event/ThrottleEvent.js 13 additions, 0 deletions...t/core/Resources/Public/JavaScript/Event/ThrottleEvent.js
Please register or sign in to comment