Upload files to "/"

This commit is contained in:
Sven Minio 2026-05-17 12:39:25 +02:00
commit 1fa6d558c7
149 changed files with 27987 additions and 0 deletions

66
dist/modules/events/binding.d.ts vendored Normal file
View file

@ -0,0 +1,66 @@
/**
* @file src/modules/events/binding.ts
* @version 2.1.0
* @since 2.0.0
* @license GPL-3.0-or-later
* @copyright Sven Minio 2026
* @author Sven Minio <https://sven-minio.de>
* @category Events
* @description
* * Core event binding methods (on, off, trigger). Handles event registration and removal.
* @requires ../../core
* * Depends on the core jBase class for type definitions.
* @requires ../../utils
* * Uses utility functions for iteration and environment checks.
*/
import { jBase } from '../../core';
/**
* * Attaches an event handler function for one or more events to the selected elements.
* * This core method handles dynamic event delegation and allows passing custom data.
* @example on('click', handler) => Binds a click event handler to all matched elements.
* @example on('click', '.btn', handler) => Binds a click event handler to all current and future elements matching '.btn' within the matched elements.
* @example on('click', { key: 'value' }, handler) => Binds a click event handler and passes custom data to the event object.
* @param events One or more space-separated event types (e.g., 'click', 'mouseenter mouseleave').
* @param selectorOrDataOrHandler A CSS selector string for delegation, custom data, or the callback function.
* @param dataOrHandler Custom data to pass to `event.data`, or the callback function.
* @param handlerOrUndefined The callback function to execute when the event is triggered.
* @returns The current jBase instance for method chaining.
*/
export declare function on(this: jBase, events: string, selectorOrDataOrHandler: any, dataOrHandler?: any, handlerOrUndefined?: any): jBase;
/**
* * Removes an event handler previously attached with `.on()`.
* * Can remove all handlers for an event, or specific ones by selector or handler reference.
* @example off('click') => Removes all click handlers from the matched elements.
* @example off('click', '.btn') => Removes all click handlers that were delegated to '.btn' within the matched elements.
* @example off('click', handler) => Removes the specific click handler function from the matched elements.
* @example off('click', '.btn', handler) => Removes the specific click handler function that was delegated to '.btn' within the matched elements.
* @param events One or more space-separated event types (e.g., 'click').
* @param selectorOrHandler A CSS selector string originally used for delegation, or the specific handler function.
* @param handlerOrUndefined The specific handler function to remove.
* @returns The current jBase instance for method chaining.
*/
export declare function off(this: jBase, events: string, selectorOrHandler?: any, handlerOrUndefined?: any): jBase;
/**
* * Attaches an event handler that will be executed at most once per element and event type.
* * Automatically unbinds itself after the first execution. Supports event delegation and custom data.
* @example once('click', handler) => Binds a click event handler that executes only once for all matched elements.
* @example once('click', '.btn', handler) => Binds a click event handler that executes only once for all current and future elements matching '.btn' within the matched elements.
* @example once('click', { key: 'value' }, handler) => Binds a click event handler that executes only once and passes custom data to the event object.
* @param events One or more space-separated event types.
* @param selectorOrDataOrHandler A CSS selector string for delegation, custom data, or the callback function.
* @param dataOrHandler Custom data to pass to `event.data`, or the callback function.
* @param handlerOrUndefined The callback function to execute when the event is triggered.
* @returns The current jBase instance for method chaining.
*/
export declare function once(this: jBase, events: string, selectorOrDataOrHandler: any, dataOrHandler?: any, handlerOrUndefined?: any): jBase;
/**
* * Triggers an event on each element in the collection.
* @example trigger('customEvent') => Triggers 'customEvent' on all matched elements.
* @example trigger('customEvent', { key: 'value' }) => Triggers 'customEvent' on all matched elements and passes custom data to the event object.
* @example trigger('click') => Programmatically triggers a click event on all matched elements.
* @example trigger('click', { key: 'value' }) => Programmatically triggers a click event on all matched elements and passes custom data to the event object.
* @param eventName The name of the event to trigger.
* @param data Optional data to pass to the event (accessible via event.detail).
*/
export declare function trigger(this: jBase, eventName: string, data?: any): jBase;
//# sourceMappingURL=binding.d.ts.map

1
dist/modules/events/binding.d.ts.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"binding.d.ts","sourceRoot":"","sources":["../../../src/modules/events/binding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAInC;;;;;;;;;;;GAWG;AACH,wBAAgB,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE,GAAG,EAAE,aAAa,CAAC,EAAE,GAAG,EAAE,kBAAkB,CAAC,EAAE,GAAG,GAAG,KAAK,CAiDlI;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,GAAG,EAAE,kBAAkB,CAAC,EAAE,GAAG,GAAG,KAAK,CA4BzG;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE,GAAG,EAAE,aAAa,CAAC,EAAE,GAAG,EAAE,kBAAkB,CAAC,EAAE,GAAG,GAAG,KAAK,CAyBpI;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,KAAK,CAUzE"}

52
dist/modules/events/form.d.ts vendored Normal file
View file

@ -0,0 +1,52 @@
/**
* @file src/modules/events/form.ts
* @version 2.0.3
* @since 2.0.0
* @license GPL-3.0-or-later
* @copyright Sven Minio 2026
* @author Sven Minio <https://sven-minio.de>
* @category Events
* @description
* * Methods for handling form events (submit, change, focus, blur, input).
* @requires ../../core
* * Depends on the core jBase class for type definitions.
*/
import { jBase } from '../../core';
/**
* * Registers an event handler for the 'submit' event. Triggered when a form is submitted.
* @example submit(handler) => Binds a submit event handler to all matched forms.
* @param handler The function to execute when the event occurs.
* @returns The current jBase instance for chaining.
*/
export declare function submit(this: jBase, handler: (event: SubmitEvent) => void): jBase;
/**
* * Registers an event handler for the 'change' event. Triggered when the value of an element (<input>, <select>, <textarea>) is changed by the user and committed (e.g., on blur).
* @example change(handler) => Binds a change event handler to all matched form elements.
* @param handler The function to execute when the event occurs.
* @returns The current jBase instance for chaining.
*/
export declare function change(this: jBase, handler: (event: Event) => void): jBase;
/**
* * Registers an event handler for the 'input' event. Triggered immediately when the value changes (real-time, e.g., every keystroke).
* @example input(handler) => Binds an input event handler to all matched form elements.
* @param handler The function to execute when the event occurs.
* @returns The current jBase instance for chaining.
*/
export declare function input(this: jBase, handler: (event: Event) => void): jBase;
/**
* * Handles the 'focus' event. If a handler is provided, it binds the listener. If no handler is provided, it programmatically sets focus on the element(s).
* @example focus(handler) => Binds a focus event handler to all matched elements.
* @example focus() => Programmatically focuses the first matched element.
* @param handler (Optional) The function to execute when the event occurs.
* @returns The current jBase instance for chaining.
*/
export declare function focus(this: jBase, handler?: (event: FocusEvent) => void): jBase;
/**
* * Handles the 'blur' event (element loses focus). If a handler is provided, it binds the listener. If no handler is provided, it programmatically removes focus.
* @example blur(handler) => Binds a blur event handler to all matched elements.
* @example blur() => Programmatically blurs the first matched element.
* @param handler (Optional) The function to execute when the event occurs.
* @returns The current jBase instance for chaining.
*/
export declare function blur(this: jBase, handler?: (event: FocusEvent) => void): jBase;
//# sourceMappingURL=form.d.ts.map

1
dist/modules/events/form.d.ts.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/modules/events/form.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GAAG,KAAK,CAEhF;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,KAAK,CAE1E;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,KAAK,CAEzE;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAS/E;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAS9E"}

61
dist/modules/events/index.d.ts vendored Normal file
View file

@ -0,0 +1,61 @@
/**
* @file src/modules/events/index.ts
* @version 2.0.2
* @since 2.0.0
* @license GPL-3.0-or-later
* @copyright Sven Minio 2026
* @author Sven Minio <https://sven-minio.de>
* @category Events
* @description
* * Central entry point for event handling. Aggregates binding, mouse, lifecycle, keyboard, form, and touch events.
* @requires ./binding
* * General event binding (on, off).
* @requires ./mouse
* * Mouse interaction events (click, hover, etc.).
* @requires ./lifecycle
* * DOM lifecycle events (ready).
* @requires ./keyboard
* * Keyboard interaction events (keydown, keyup).
* @requires ./form
* * Form handling events (submit, change, input).
* @requires ./touch
* * Touch interaction events.
*/
/**
* * Aggregated object of all event methods. Combines logic from various sub-modules into a single object. Used to extend the `jBase` prototype via `Object.assign`.
*/
export declare const eventMethods: {
touchstart(this: import("../..").JBaseClass, handler: (event: TouchEvent) => void): import("../..").JBaseClass;
touchend(this: import("../..").JBaseClass, handler: (event: TouchEvent) => void): import("../..").JBaseClass;
touchmove(this: import("../..").JBaseClass, handler: (event: TouchEvent) => void): import("../..").JBaseClass;
touchcancel(this: import("../..").JBaseClass, handler: (event: TouchEvent) => void): import("../..").JBaseClass;
swipeLeft(this: import("../..").JBaseClass, handler: (e: TouchEvent) => void): import("../..").JBaseClass;
swipeRight(this: import("../..").JBaseClass, handler: (e: TouchEvent) => void): import("../..").JBaseClass;
swipeUp(this: import("../..").JBaseClass, handler: (e: TouchEvent) => void): import("../..").JBaseClass;
swipeDown(this: import("../..").JBaseClass, handler: (e: TouchEvent) => void): import("../..").JBaseClass;
submit(this: import("../..").JBaseClass, handler: (event: SubmitEvent) => void): import("../..").JBaseClass;
change(this: import("../..").JBaseClass, handler: (event: Event) => void): import("../..").JBaseClass;
input(this: import("../..").JBaseClass, handler: (event: Event) => void): import("../..").JBaseClass;
focus(this: import("../..").JBaseClass, handler?: (event: FocusEvent) => void): import("../..").JBaseClass;
blur(this: import("../..").JBaseClass, handler?: (event: FocusEvent) => void): import("../..").JBaseClass;
keydown(this: import("../..").JBaseClass, handler: (event: KeyboardEvent) => void): import("../..").JBaseClass;
keyup(this: import("../..").JBaseClass, handler: (event: KeyboardEvent) => void): import("../..").JBaseClass;
keypress(this: import("../..").JBaseClass, handler: (event: KeyboardEvent) => void): import("../..").JBaseClass;
pressedKey(this: import("../..").JBaseClass, targetKey: string, handler: (event: KeyboardEvent) => void): import("../..").JBaseClass;
ready(this: import("../..").JBaseClass, handler: () => void): import("../..").JBaseClass;
click(this: import("../..").JBaseClass, handler?: (event: Event) => void): import("../..").JBaseClass;
mousemove(this: import("../..").JBaseClass, handler: (event: MouseEvent) => void): import("../..").JBaseClass;
mouseleave(this: import("../..").JBaseClass, handler: (event: MouseEvent) => void): import("../..").JBaseClass;
mouseenter(this: import("../..").JBaseClass, handler: (event: MouseEvent) => void): import("../..").JBaseClass;
mousedown(this: import("../..").JBaseClass, handler: (event: MouseEvent) => void): import("../..").JBaseClass;
mouseup(this: import("../..").JBaseClass, handler: (event: MouseEvent) => void): import("../..").JBaseClass;
dblclick(this: import("../..").JBaseClass, handler?: (event: MouseEvent) => void): import("../..").JBaseClass;
mouseout(this: import("../..").JBaseClass, handler: (event: MouseEvent) => void): import("../..").JBaseClass;
mouseover(this: import("../..").JBaseClass, handler: (event: MouseEvent) => void): import("../..").JBaseClass;
hover(this: import("../..").JBaseClass, handlerIn: (event: MouseEvent) => void, handlerOut: (event: MouseEvent) => void): import("../..").JBaseClass;
on(this: import("../..").JBaseClass, events: string, selectorOrDataOrHandler: any, dataOrHandler?: any, handlerOrUndefined?: any): import("../..").JBaseClass;
off(this: import("../..").JBaseClass, events: string, selectorOrHandler?: any, handlerOrUndefined?: any): import("../..").JBaseClass;
once(this: import("../..").JBaseClass, events: string, selectorOrDataOrHandler: any, dataOrHandler?: any, handlerOrUndefined?: any): import("../..").JBaseClass;
trigger(this: import("../..").JBaseClass, eventName: string, data?: any): import("../..").JBaseClass;
};
//# sourceMappingURL=index.d.ts.map

1
dist/modules/events/index.d.ts.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/events/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AASH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOxB,CAAC"}

44
dist/modules/events/keyboard.d.ts vendored Normal file
View file

@ -0,0 +1,44 @@
/**
* @file src/modules/events/keyboard.ts
* @version 2.0.3
* @since 2.0.0
* @license GPL-3.0-or-later
* @copyright Sven Minio 2026
* @author Sven Minio <https://sven-minio.de>
* @category Events
* @description
* * Methods for handling keyboard events (keydown, keyup, keypress).
* @requires ../../core
* * Depends on the core jBase class for type definitions.
*/
import { jBase } from '../../core';
/**
* * Binds an event handler to the 'keydown' event. Fires immediately when a key is pressed (repeats if held).
* @example keydown(handler) => Binds a keydown event handler to all matched elements.
* @param handler The callback function receiving the KeyboardEvent.
* @returns The current jBase instance for method chaining.
*/
export declare function keydown(this: jBase, handler: (event: KeyboardEvent) => void): jBase;
/**
* * Binds an event handler to the 'keyup' event. Fires when a key is released.
* @example keyup(handler) => Binds a keyup event handler to all matched elements.
* @param handler The callback function receiving the KeyboardEvent.
* @returns The current jBase instance for method chaining.
*/
export declare function keyup(this: jBase, handler: (event: KeyboardEvent) => void): jBase;
/**
* * Binds an event handler to the 'keypress' event. Deprecated in modern standards.
* @deprecated Use keydown or input instead.
* @param handler The callback function receiving the KeyboardEvent.
* @returns The current jBase instance for method chaining.
*/
export declare function keypress(this: jBase, handler: (event: KeyboardEvent) => void): jBase;
/**
* * Binds an event handler for a specific key (case-insensitive).
* @example pressedKey('Enter', handler) => Binds a handler that executes when the Enter key is pressed on any matched element.
* @param targetKey The key to react to (e.g., 'm', 'Enter', 'Escape').
* @param handler The callback function.
* @returns The current jBase instance.
*/
export declare function pressedKey(this: jBase, targetKey: string, handler: (event: KeyboardEvent) => void): jBase;
//# sourceMappingURL=keyboard.d.ts.map

1
dist/modules/events/keyboard.d.ts.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../src/modules/events/keyboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAEjF;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAEpF;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAOzG"}

22
dist/modules/events/lifecycle.d.ts vendored Normal file
View file

@ -0,0 +1,22 @@
/**
* @file src/modules/events/lifecycle.ts
* @version 2.0.3
* @since 2.0.0
* @license GPL-3.0-or-later
* @copyright Sven Minio 2026
* @author Sven Minio <https://sven-minio.de>
* @category Events
* @description
* * Methods for handling DOM lifecycle events (e.g., ready).
* @requires ../../core
* * Depends on the core jBase class for type definitions.
*/
import { jBase } from '../../core';
/**
* * Executes the handler as soon as the DOM is fully loaded and parsed. If the document is already ready (readyState 'interactive' or 'complete'), the handler executes immediately to avoid race conditions.
* @example ready(handler) => Binds a handler to execute when the DOM is ready.
* @param handler The callback function to execute when the DOM is ready.
* @returns The current jBase instance for method chaining.
*/
export declare function ready(this: jBase, handler: () => void): jBase;
//# sourceMappingURL=lifecycle.d.ts.map

View file

@ -0,0 +1 @@
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/modules/events/lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,KAAK,CAQ7D"}

89
dist/modules/events/mouse.d.ts vendored Normal file
View file

@ -0,0 +1,89 @@
/**
* @file src/modules/events/mouse.ts
* @version 2.1.0
* @since 2.0.0
* @license GPL-3.0-or-later
* @copyright Sven Minio 2026
* @author Sven Minio <https://sven-minio.de>
* @category Events
* @description
* * Methods for handling mouse events (click, dblclick, hover, mouseenter, mouseleave).
* @requires ../../core
* * Depends on the core jBase class for type definitions.
*/
import { jBase } from '../../core';
/**
* * Binds an event handler to the "click" JavaScript event, or triggers that event on an element.
* * If no handler is provided, it programmatically triggers a native click on all matched elements.
* @example click(handler) => Binds a click event handler to all matched elements.
* @example click() => Programmatically triggers a click event on all matched elements.
* @param handler (Optional) A function to execute each time the click event is triggered.
* @returns The current jBase instance for method chaining.
*/
export declare function click(this: jBase, handler?: (event: Event) => void): jBase;
/**
* * Binds an event handler to the 'mousemove' event. Fires continuously while the pointer moves inside the element.
* @example mousemove(handler) => Binds a mousemove event handler to all matched elements.
* @param handler The callback function.
* @returns The current jBase instance.
*/
export declare function mousemove(this: jBase, handler: (event: MouseEvent) => void): jBase;
/**
* * Binds an event handler to the 'mouseleave' event. Fires when the pointer leaves the element (does not bubble).
* @example mouseleave(handler) => Binds a mouseleave event handler to all matched elements.
* @param handler The callback function.
* @returns The current jBase instance.
*/
export declare function mouseleave(this: jBase, handler: (event: MouseEvent) => void): jBase;
/**
* * Binds an event handler to the 'mouseenter' event. Fires when the pointer enters the element (does not bubble).
* @example mouseenter(handler) => Binds a mouseenter event handler to all matched elements.
* @param handler The callback function.
* @returns The current jBase instance.
*/
export declare function mouseenter(this: jBase, handler: (event: MouseEvent) => void): jBase;
/**
* * Binds an event handler to the 'mousedown' event. Fires as soon as a mouse button is pressed over the element.
* @example mousedown(handler) => Binds a mousedown event handler to all matched elements.
* @param handler The callback function.
* @returns The current jBase instance.
*/
export declare function mousedown(this: jBase, handler: (event: MouseEvent) => void): jBase;
/**
* * Binds an event handler to the 'mouseup' event. Fires when a mouse button is released over the element.
* @example mouseup(handler) => Binds a mouseup event handler to all matched elements.
* @param handler The callback function.
* @returns The current jBase instance.
*/
export declare function mouseup(this: jBase, handler: (event: MouseEvent) => void): jBase;
/**
* * Binds an event handler to the 'dblclick' event or triggers it manually.
* @example dblclick(handler) => Binds a dblclick event handler to all matched elements.
* @param handler (Optional) The callback function.
* @returns The current jBase instance.
*/
export declare function dblclick(this: jBase, handler?: (event: MouseEvent) => void): jBase;
/**
* * Binds an event handler to the 'mouseout' event. Fires when the pointer leaves the element OR one of its children (bubbles).
* @example mouseout(handler) => Binds a mouseout event handler to all matched elements.
* @param handler The callback function.
* @returns The current jBase instance.
*/
export declare function mouseout(this: jBase, handler: (event: MouseEvent) => void): jBase;
/**
* * Binds an event handler to the 'mouseover' event. Fires when the pointer enters the element OR one of its children (bubbles).
* @example mouseover(handler) => Binds a mouseover event handler to all matched elements.
* @param handler The callback function.
* @returns The current jBase instance.
*/
export declare function mouseover(this: jBase, handler: (event: MouseEvent) => void): jBase;
/**
* * Binds two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
* * This is a highly convenient shorthand for chaining `.mouseenter()` and `.mouseleave()`.
* @example hover(handlerIn, handlerOut) => Binds handlerIn to mouseenter and handlerOut to mouseleave for all matched elements.
* @param handlerIn A function to execute when the mouse pointer enters the element.
* @param handlerOut A function to execute when the mouse pointer leaves the element.
* @returns The current jBase instance for method chaining.
*/
export declare function hover(this: jBase, handlerIn: (event: MouseEvent) => void, handlerOut: (event: MouseEvent) => void): jBase;
//# sourceMappingURL=mouse.d.ts.map

1
dist/modules/events/mouse.d.ts.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"mouse.d.ts","sourceRoot":"","sources":["../../../src/modules/events/mouse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,KAAK,CAS1E;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEhF;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAelF;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEjF;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,EAAE,UAAU,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEzH"}

75
dist/modules/events/touch.d.ts vendored Normal file
View file

@ -0,0 +1,75 @@
/**
* @file src/modules/events/touch.ts
* @version 2.1.0
* @since 2.0.0
* @license GPL-3.0-or-later
* @copyright Sven Minio 2026
* @author Sven Minio <https://sven-minio.de>
* @category Events
* @description
* * Methods for handling touch events (touchstart, touchend, touchmove).
* @requires ../../core
* * Depends on the core jBase class for type definitions.
*/
import { jBase } from '../../core';
/**
* * Binds an event handler to the 'touchstart' event. Triggered when a touch point is placed on the touch surface.
* @example touchstart(handler) => Binds a touchstart event handler to all matched elements.
* @param handler The callback function executed on touch start.
* @returns The current jBase instance for method chaining.
*/
export declare function touchstart(this: jBase, handler: (event: TouchEvent) => void): jBase;
/**
* * Binds an event handler to the 'touchend' event. Triggered when a touch point is removed from the touch surface.
* @example touchend(handler) => Binds a touchend event handler to all matched elements.
* @param handler The callback function executed on touch end.
* @returns The current jBase instance for method chaining.
*/
export declare function touchend(this: jBase, handler: (event: TouchEvent) => void): jBase;
/**
* * Binds an event handler to the 'touchmove' event. Triggered when a touch point moves along the touch surface. Important for swipe gestures or Drag & Drop.
* @example touchmove(handler) => Binds a touchmove event handler to all matched elements.
* @param handler The callback function executed on movement.
* @returns The current jBase instance for method chaining.
*/
export declare function touchmove(this: jBase, handler: (event: TouchEvent) => void): jBase;
/**
* * Binds an event handler to the 'touchcancel' event. Triggered when a touch point has been disrupted by the system (e.g., too many touch points or a UI popup).
* @example touchcancel(handler) => Binds a touchcancel event handler to all matched elements.
* @param handler The callback function executed on cancellation.
* @returns The current jBase instance for method chaining.
*/
export declare function touchcancel(this: jBase, handler: (event: TouchEvent) => void): jBase;
/**
* * Binds an event handler to be executed when the user swipes left across the selected elements.
* * The swipe must cover a minimum distance of 50 pixels to trigger.
* @example swipeLeft(handler) => Binds a handler to execute when a left swipe gesture is detected on all matched elements.
* @param handler A function to execute when the left swipe gesture is detected.
* @returns The current jBase instance for method chaining.
*/
export declare function swipeLeft(this: jBase, handler: (e: TouchEvent) => void): jBase;
/**
* * Binds an event handler to be executed when the user swipes right across the selected elements.
* * The swipe must cover a minimum distance of 50 pixels to trigger.
* @example swipeRight(handler) => Binds a handler to execute when a right swipe gesture is detected on all matched elements.
* @param handler A function to execute when the right swipe gesture is detected.
* @returns The current jBase instance for method chaining.
*/
export declare function swipeRight(this: jBase, handler: (e: TouchEvent) => void): jBase;
/**
* * Binds an event handler to be executed when the user swipes up across the selected elements.
* * The swipe must cover a minimum distance of 50 pixels to trigger.
* @example swipeUp(handler) => Binds a handler to execute when an upward swipe gesture is detected on all matched elements.
* @param handler A function to execute when the upward swipe gesture is detected.
* @returns The current jBase instance for method chaining.
*/
export declare function swipeUp(this: jBase, handler: (e: TouchEvent) => void): jBase;
/**
* * Binds an event handler to be executed when the user swipes down across the selected elements.
* * The swipe must cover a minimum distance of 50 pixels to trigger.
* @example swipeDown(handler) => Binds a handler to execute when a downward swipe gesture is detected on all matched elements.
* @param handler A function to execute when the downward swipe gesture is detected.
* @returns The current jBase instance for method chaining.
*/
export declare function swipeDown(this: jBase, handler: (e: TouchEvent) => void): jBase;
//# sourceMappingURL=touch.d.ts.map

1
dist/modules/events/touch.d.ts.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"touch.d.ts","sourceRoot":"","sources":["../../../src/modules/events/touch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEjF;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEpF;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAE9E;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAE/E;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAE5E;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAE9E"}