@k37z3r/jbase 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +621 -0
- package/README.md +124 -0
- package/dist/browser.d.ts +30 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +29 -0
- package/dist/browser.js.map +1 -0
- package/dist/core.d.ts +42 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +78 -0
- package/dist/core.js.map +1 -0
- package/dist/index.cjs +2150 -0
- package/dist/index.d.ts +1158 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +100 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2118 -0
- package/dist/jbase.browser.js +1906 -0
- package/dist/jbase.js +1898 -0
- package/dist/jbase.min.js +9 -0
- package/dist/modules/css/classes.d.ts +61 -0
- package/dist/modules/css/classes.d.ts.map +1 -0
- package/dist/modules/css/classes.js +88 -0
- package/dist/modules/css/classes.js.map +1 -0
- package/dist/modules/css/index.d.ts +30 -0
- package/dist/modules/css/index.d.ts.map +1 -0
- package/dist/modules/css/index.js +33 -0
- package/dist/modules/css/index.js.map +1 -0
- package/dist/modules/css/styles.d.ts +31 -0
- package/dist/modules/css/styles.d.ts.map +1 -0
- package/dist/modules/css/styles.js +49 -0
- package/dist/modules/css/styles.js.map +1 -0
- package/dist/modules/data/arrays.d.ts +131 -0
- package/dist/modules/data/arrays.d.ts.map +1 -0
- package/dist/modules/data/arrays.js +177 -0
- package/dist/modules/data/arrays.js.map +1 -0
- package/dist/modules/data/index.d.ts +29 -0
- package/dist/modules/data/index.d.ts.map +1 -0
- package/dist/modules/data/index.js +33 -0
- package/dist/modules/data/index.js.map +1 -0
- package/dist/modules/data/objects.d.ts +108 -0
- package/dist/modules/data/objects.d.ts.map +1 -0
- package/dist/modules/data/objects.js +168 -0
- package/dist/modules/data/objects.js.map +1 -0
- package/dist/modules/data/types.d.ts +35 -0
- package/dist/modules/data/types.d.ts.map +1 -0
- package/dist/modules/data/types.js +43 -0
- package/dist/modules/data/types.js.map +1 -0
- package/dist/modules/dom/attributes.d.ts +42 -0
- package/dist/modules/dom/attributes.d.ts.map +1 -0
- package/dist/modules/dom/attributes.js +69 -0
- package/dist/modules/dom/attributes.js.map +1 -0
- package/dist/modules/dom/content.d.ts +39 -0
- package/dist/modules/dom/content.d.ts.map +1 -0
- package/dist/modules/dom/content.js +63 -0
- package/dist/modules/dom/content.js.map +1 -0
- package/dist/modules/dom/index.d.ts +78 -0
- package/dist/modules/dom/index.d.ts.map +1 -0
- package/dist/modules/dom/index.js +48 -0
- package/dist/modules/dom/index.js.map +1 -0
- package/dist/modules/dom/manipulation.d.ts +159 -0
- package/dist/modules/dom/manipulation.d.ts.map +1 -0
- package/dist/modules/dom/manipulation.js +343 -0
- package/dist/modules/dom/manipulation.js.map +1 -0
- package/dist/modules/dom/states.d.ts +50 -0
- package/dist/modules/dom/states.d.ts.map +1 -0
- package/dist/modules/dom/states.js +89 -0
- package/dist/modules/dom/states.js.map +1 -0
- package/dist/modules/dom/traversal.d.ts +246 -0
- package/dist/modules/dom/traversal.d.ts.map +1 -0
- package/dist/modules/dom/traversal.js +527 -0
- package/dist/modules/dom/traversal.js.map +1 -0
- package/dist/modules/effects/fade.d.ts +58 -0
- package/dist/modules/effects/fade.d.ts.map +1 -0
- package/dist/modules/effects/fade.js +104 -0
- package/dist/modules/effects/fade.js.map +1 -0
- package/dist/modules/effects/index.d.ts +40 -0
- package/dist/modules/effects/index.d.ts.map +1 -0
- package/dist/modules/effects/index.js +38 -0
- package/dist/modules/effects/index.js.map +1 -0
- package/dist/modules/effects/slide.d.ts +58 -0
- package/dist/modules/effects/slide.d.ts.map +1 -0
- package/dist/modules/effects/slide.js +103 -0
- package/dist/modules/effects/slide.js.map +1 -0
- package/dist/modules/effects/vertical.d.ts +58 -0
- package/dist/modules/effects/vertical.d.ts.map +1 -0
- package/dist/modules/effects/vertical.js +118 -0
- package/dist/modules/effects/vertical.js.map +1 -0
- package/dist/modules/events/binding.d.ts +47 -0
- package/dist/modules/events/binding.d.ts.map +1 -0
- package/dist/modules/events/binding.js +60 -0
- package/dist/modules/events/binding.js.map +1 -0
- package/dist/modules/events/form.d.ts +72 -0
- package/dist/modules/events/form.d.ts.map +1 -0
- package/dist/modules/events/form.js +106 -0
- package/dist/modules/events/form.js.map +1 -0
- package/dist/modules/events/index.d.ts +62 -0
- package/dist/modules/events/index.d.ts.map +1 -0
- package/dist/modules/events/index.js +53 -0
- package/dist/modules/events/index.js.map +1 -0
- package/dist/modules/events/keyboard.d.ts +65 -0
- package/dist/modules/events/keyboard.d.ts.map +1 -0
- package/dist/modules/events/keyboard.js +83 -0
- package/dist/modules/events/keyboard.js.map +1 -0
- package/dist/modules/events/lifecycle.d.ts +28 -0
- package/dist/modules/events/lifecycle.d.ts.map +1 -0
- package/dist/modules/events/lifecycle.js +40 -0
- package/dist/modules/events/lifecycle.js.map +1 -0
- package/dist/modules/events/mouse.d.ts +120 -0
- package/dist/modules/events/mouse.d.ts.map +1 -0
- package/dist/modules/events/mouse.js +172 -0
- package/dist/modules/events/mouse.js.map +1 -0
- package/dist/modules/events/touch.d.ts +61 -0
- package/dist/modules/events/touch.d.ts.map +1 -0
- package/dist/modules/events/touch.js +74 -0
- package/dist/modules/events/touch.js.map +1 -0
- package/dist/modules/http/get.d.ts +47 -0
- package/dist/modules/http/get.d.ts.map +1 -0
- package/dist/modules/http/get.js +65 -0
- package/dist/modules/http/get.js.map +1 -0
- package/dist/modules/http/index.d.ts +37 -0
- package/dist/modules/http/index.d.ts.map +1 -0
- package/dist/modules/http/index.js +42 -0
- package/dist/modules/http/index.js.map +1 -0
- package/dist/modules/http/post.d.ts +36 -0
- package/dist/modules/http/post.d.ts.map +1 -0
- package/dist/modules/http/post.js +54 -0
- package/dist/modules/http/post.js.map +1 -0
- package/dist/types.d.ts +61 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +15 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +51 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +71 -0
- package/dist/utils.js.map +1 -0
- package/package.json +58 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file src/index.ts
|
|
3
|
+
* @version 2.0.0
|
|
4
|
+
* @since 2.0.0
|
|
5
|
+
* @license GPL-3.0-or-later
|
|
6
|
+
* @copyright Sven Minio 2026
|
|
7
|
+
* @author Sven Minio <https://sven-minio.de>
|
|
8
|
+
* @category Entry Point
|
|
9
|
+
* @description
|
|
10
|
+
* * π¬π§: Main library entry point. Aggregates Core, Types, Utils, and all functional modules into a single export.
|
|
11
|
+
* * π©πͺ: Haupt-Einstiegspunkt der Bibliothek. Aggregiert Core, Types, Utils und alle funktionalen Module in einen einzigen Export.
|
|
12
|
+
* @requires ./core
|
|
13
|
+
* * π¬π§: Core class logic and inheritance.
|
|
14
|
+
* * π©πͺ: Kern-Klassenlogik und Vererbung.
|
|
15
|
+
* @requires ./types
|
|
16
|
+
* * π¬π§: TypeScript type definitions and interfaces.
|
|
17
|
+
* * π©πͺ: TypeScript Typ-Definitionen und Interfaces.
|
|
18
|
+
* @requires ./utils
|
|
19
|
+
* * π¬π§: Helper functions (throttle, debounce).
|
|
20
|
+
* * π©πͺ: Hilfsfunktionen (throttle, debounce).
|
|
21
|
+
* @requires ./modules/css
|
|
22
|
+
* * π¬π§: Style manipulation methods.
|
|
23
|
+
* * π©πͺ: Style-Manipulations-Methoden.
|
|
24
|
+
* @requires ./modules/events
|
|
25
|
+
* * π¬π§: Event handling logic.
|
|
26
|
+
* * π©πͺ: Event-Handling-Logik.
|
|
27
|
+
* @requires ./modules/dom
|
|
28
|
+
* * π¬π§: DOM traversal and manipulation.
|
|
29
|
+
* * π©πͺ: DOM-Traversierung und -Manipulation.
|
|
30
|
+
* @requires ./modules/effects
|
|
31
|
+
* * π¬π§: Visual effects and animations.
|
|
32
|
+
* * π©πͺ: Visuelle Effekte und Animationen.
|
|
33
|
+
* @requires ./modules/http
|
|
34
|
+
* * π¬π§: HTTP client for AJAX requests.
|
|
35
|
+
* * π©πͺ: HTTP-Client fΓΌr AJAX-Anfragen.
|
|
36
|
+
* @requires ./modules/data
|
|
37
|
+
* * π¬π§: Data structure utilities.
|
|
38
|
+
* * π©πͺ: Datenstruktur-Utilities.
|
|
39
|
+
*/
|
|
40
|
+
import { jBase as JBaseClass } from './core';
|
|
41
|
+
import { JBaseInput, JBaseCSSProperty, JBaseEventMap } from './types';
|
|
42
|
+
/**
|
|
43
|
+
* TypeScript Declaration Merging.
|
|
44
|
+
*/
|
|
45
|
+
declare module './core' {
|
|
46
|
+
interface jBase {
|
|
47
|
+
/**
|
|
48
|
+
* * π¬π§: Adds one or more CSS classes to the selected elements.
|
|
49
|
+
* * π©πͺ: FΓΌgt den ausgewΓ€hlten Elementen eine oder mehrere CSS-Klassen hinzu.
|
|
50
|
+
* @param classNames
|
|
51
|
+
* * π¬π§: One or more class names to be added.
|
|
52
|
+
* * π©πͺ: Eine oder mehrere Klassennamen, die hinzugefΓΌgt werden sollen.
|
|
53
|
+
* @returns
|
|
54
|
+
* * π¬π§: The current jBase instance for method chaining.
|
|
55
|
+
* * π©πͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
|
|
56
|
+
*/
|
|
57
|
+
addClass(...classNames: string[]): jBase;
|
|
58
|
+
/**
|
|
59
|
+
* * π¬π§: Removes one or more CSS classes from the selected elements.
|
|
60
|
+
* * π©πͺ: Entfernt eine oder mehrere CSS-Klassen von den ausgewΓ€hlten Elementen.
|
|
61
|
+
* @param classNames
|
|
62
|
+
* * π¬π§: One or more class names to be removed.
|
|
63
|
+
* * π©πͺ: Eine oder mehrere Klassennamen, die entfernt werden sollen.
|
|
64
|
+
* @returns
|
|
65
|
+
* * π¬π§: The current jBase instance for method chaining.
|
|
66
|
+
* * π©πͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
|
|
67
|
+
*/
|
|
68
|
+
removeClass(...classNames: string[]): jBase;
|
|
69
|
+
/**
|
|
70
|
+
* * π¬π§: Toggles a CSS class (adds if missing, removes if present).
|
|
71
|
+
* * π©πͺ: Wechselt eine CSS-Klasse (fΓΌgt hinzu wenn fehlt, entfernt wenn vorhanden).
|
|
72
|
+
* @param className
|
|
73
|
+
* * π¬π§: The class name to toggle.
|
|
74
|
+
* * π©πͺ: Der Klassenname, der gewechselt werden soll.
|
|
75
|
+
* @returns
|
|
76
|
+
* * π¬π§: The current jBase instance for method chaining.
|
|
77
|
+
* * π©πͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
|
|
78
|
+
*/
|
|
79
|
+
toggleClass(className: string): jBase;
|
|
80
|
+
/**
|
|
81
|
+
* * π¬π§: Checks if at least one of the selected elements has the specified class.
|
|
82
|
+
* * π©πͺ: PrΓΌft, ob mindestens eines der ausgewΓ€hlten Elemente die angegebene Klasse besitzt.
|
|
83
|
+
* @param className
|
|
84
|
+
* * π¬π§: The class name to check for.
|
|
85
|
+
* * π©πͺ: Der Klassenname, nach dem gesucht werden soll.
|
|
86
|
+
* @returns
|
|
87
|
+
* * π¬π§: True if the class exists on at least one element, otherwise false.
|
|
88
|
+
* * π©πͺ: True, wenn die Klasse bei mindestens einem Element existiert, sonst False.
|
|
89
|
+
*/
|
|
90
|
+
hasClass(className: string): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* * π¬π§: Sets a CSS property for all selected elements.
|
|
93
|
+
* * π©πͺ: Setzt eine CSS-Eigenschaft fΓΌr alle ausgewΓ€hlten Elemente.
|
|
94
|
+
* @param property
|
|
95
|
+
* * π¬π§: The CSS property name (camelCase).
|
|
96
|
+
* * π©πͺ: Der Name der CSS-Eigenschaft (camelCase).
|
|
97
|
+
* @param value
|
|
98
|
+
* * π¬π§: The value to set.
|
|
99
|
+
* * π©πͺ: Der zu setzende Wert.
|
|
100
|
+
* @returns
|
|
101
|
+
* * π¬π§: The current jBase instance for method chaining.
|
|
102
|
+
* * π©πͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
|
|
103
|
+
*/
|
|
104
|
+
css(property: JBaseCSSProperty, value: string | number): jBase;
|
|
105
|
+
/**
|
|
106
|
+
* * π¬π§: Gets the computed CSS value of the first element.
|
|
107
|
+
* * π©πͺ: Liest den berechneten CSS-Wert des ersten Elements.
|
|
108
|
+
* @param property
|
|
109
|
+
* * π¬π§: The CSS property name (camelCase).
|
|
110
|
+
* * π©πͺ: Der Name der CSS-Eigenschaft (camelCase).
|
|
111
|
+
* @returns
|
|
112
|
+
* * π¬π§: The computed value as a string.
|
|
113
|
+
* * π©πͺ: Der berechnete Wert als String.
|
|
114
|
+
*/
|
|
115
|
+
css(property: JBaseCSSProperty): string;
|
|
116
|
+
/**
|
|
117
|
+
* * π¬π§: Registers a typed event listener.
|
|
118
|
+
* * π©πͺ: Registriert einen typisierten Event-Listener.
|
|
119
|
+
* @param event
|
|
120
|
+
* * π¬π§: The event name (e.g., 'click').
|
|
121
|
+
* * π©πͺ: Der Name des Events (z.B. 'click').
|
|
122
|
+
* @param handler
|
|
123
|
+
* * π¬π§: The callback function.
|
|
124
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
125
|
+
* @returns
|
|
126
|
+
* * π¬π§: The current jBase instance.
|
|
127
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
128
|
+
*/
|
|
129
|
+
on<K extends keyof JBaseEventMap>(event: K, handler: (event: JBaseEventMap[K]) => void): jBase;
|
|
130
|
+
/**
|
|
131
|
+
* * π¬π§: Registers an event listener (string-based / custom events).
|
|
132
|
+
* * π©πͺ: Registriert einen Event-Listener (String-basiert / Custom Events).
|
|
133
|
+
* @param event
|
|
134
|
+
* * π¬π§: The name of the custom event.
|
|
135
|
+
* * π©πͺ: Der Name des benutzerdefinierten Events.
|
|
136
|
+
* @param handler
|
|
137
|
+
* * π¬π§: The event listener.
|
|
138
|
+
* * π©πͺ: Der Event-Listener.
|
|
139
|
+
* @returns
|
|
140
|
+
* * π¬π§: The current jBase instance.
|
|
141
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
142
|
+
*/
|
|
143
|
+
on(event: string, handler: EventListenerOrEventListenerObject): jBase;
|
|
144
|
+
/**
|
|
145
|
+
* * π¬π§: Removes a typed event listener.
|
|
146
|
+
* * π©πͺ: Entfernt einen typisierten Event-Listener.
|
|
147
|
+
* @param event
|
|
148
|
+
* * π¬π§: The event name.
|
|
149
|
+
* * π©πͺ: Der Name des Events.
|
|
150
|
+
* @param handler
|
|
151
|
+
* * π¬π§: The exact reference of the handler to remove.
|
|
152
|
+
* * π©πͺ: Die exakte Referenz des zu entfernenden Handlers.
|
|
153
|
+
* @returns
|
|
154
|
+
* * π¬π§: The current jBase instance.
|
|
155
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
156
|
+
*/
|
|
157
|
+
off<K extends keyof JBaseEventMap>(event: K, handler: (event: JBaseEventMap[K]) => void): jBase;
|
|
158
|
+
/**
|
|
159
|
+
* * π¬π§: Removes an event listener (string-based).
|
|
160
|
+
* * π©πͺ: Entfernt einen Event-Listener (String-basiert).
|
|
161
|
+
* @param event
|
|
162
|
+
* * π¬π§: The name of the event.
|
|
163
|
+
* * π©πͺ: Der Name des Events.
|
|
164
|
+
* @param handler
|
|
165
|
+
* * π¬π§: The exact reference of the handler to remove.
|
|
166
|
+
* * π©πͺ: Die exakte Referenz des zu entfernenden Handlers.
|
|
167
|
+
* @returns
|
|
168
|
+
* * π¬π§: The current jBase instance.
|
|
169
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
170
|
+
*/
|
|
171
|
+
off(event: string, handler: EventListenerOrEventListenerObject): jBase;
|
|
172
|
+
/**
|
|
173
|
+
* * π¬π§: Triggers the 'click' event or binds a handler.
|
|
174
|
+
* * π©πͺ: LΓΆst das 'click'-Event aus oder bindet einen Handler.
|
|
175
|
+
* @param handler
|
|
176
|
+
* * π¬π§: (Optional) The function to execute on click.
|
|
177
|
+
* * π©πͺ: (Optional) Die Funktion, die beim Klick ausgefΓΌhrt wird.
|
|
178
|
+
* @returns
|
|
179
|
+
* * π¬π§: The current jBase instance.
|
|
180
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
181
|
+
*/
|
|
182
|
+
click(handler?: (event: Event) => void): jBase;
|
|
183
|
+
/**
|
|
184
|
+
* * π¬π§: Binds a handler to the 'mousemove' event.
|
|
185
|
+
* * π©πͺ: Bindet einen Handler an das 'mousemove'-Event.
|
|
186
|
+
* @param handler
|
|
187
|
+
* * π¬π§: The callback function.
|
|
188
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
189
|
+
* @returns
|
|
190
|
+
* * π¬π§: The current jBase instance.
|
|
191
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
192
|
+
*/
|
|
193
|
+
mousemove(handler: (event: MouseEvent) => void): jBase;
|
|
194
|
+
/**
|
|
195
|
+
* * π¬π§: Binds a handler to the 'mouseleave' event.
|
|
196
|
+
* * π©πͺ: Bindet einen Handler an das 'mouseleave'-Event.
|
|
197
|
+
* @param handler
|
|
198
|
+
* * π¬π§: The callback function.
|
|
199
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
200
|
+
* @returns
|
|
201
|
+
* * π¬π§: The current jBase instance.
|
|
202
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
203
|
+
*/
|
|
204
|
+
mouseleave(handler: (event: MouseEvent) => void): jBase;
|
|
205
|
+
/**
|
|
206
|
+
* * π¬π§: Binds a handler to the 'mouseenter' event.
|
|
207
|
+
* * π©πͺ: Bindet einen Handler an das 'mouseenter'-Event.
|
|
208
|
+
* @param handler
|
|
209
|
+
* * π¬π§: The callback function.
|
|
210
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
211
|
+
* @returns
|
|
212
|
+
* * π¬π§: The current jBase instance.
|
|
213
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
214
|
+
*/
|
|
215
|
+
mouseenter(handler: (event: MouseEvent) => void): jBase;
|
|
216
|
+
/**
|
|
217
|
+
* * π¬π§: Binds a handler to the 'mousedown' event.
|
|
218
|
+
* * π©πͺ: Bindet einen Handler an das 'mousedown'-Event.
|
|
219
|
+
* @param handler
|
|
220
|
+
* * π¬π§: The callback function.
|
|
221
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
222
|
+
* @returns
|
|
223
|
+
* * π¬π§: The current jBase instance.
|
|
224
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
225
|
+
*/
|
|
226
|
+
mousedown(handler: (event: MouseEvent) => void): jBase;
|
|
227
|
+
/**
|
|
228
|
+
* * π¬π§: Binds a handler to the 'mouseup' event.
|
|
229
|
+
* * π©πͺ: Bindet einen Handler an das 'mouseup'-Event.
|
|
230
|
+
* @param handler
|
|
231
|
+
* * π¬π§: The callback function.
|
|
232
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
233
|
+
* @returns
|
|
234
|
+
* * π¬π§: The current jBase instance.
|
|
235
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
236
|
+
*/
|
|
237
|
+
mouseup(handler: (event: MouseEvent) => void): jBase;
|
|
238
|
+
/**
|
|
239
|
+
* * π¬π§: Triggers the 'dblclick' event or binds a handler.
|
|
240
|
+
* * π©πͺ: LΓΆst das 'dblclick'-Event aus oder bindet einen Handler.
|
|
241
|
+
* @param handler
|
|
242
|
+
* * π¬π§: (Optional) The callback function.
|
|
243
|
+
* * π©πͺ: (Optional) Die Callback-Funktion.
|
|
244
|
+
* @returns
|
|
245
|
+
* * π¬π§: The current jBase instance.
|
|
246
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
247
|
+
*/
|
|
248
|
+
dblclick(handler: (event: MouseEvent) => void): jBase;
|
|
249
|
+
/**
|
|
250
|
+
* * π¬π§: Binds a handler to the 'mouseout' event.
|
|
251
|
+
* * π©πͺ: Bindet einen Handler an das 'mouseout'-Event.
|
|
252
|
+
* @param handler
|
|
253
|
+
* * π¬π§: The callback function.
|
|
254
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
255
|
+
* @returns
|
|
256
|
+
* * π¬π§: The current jBase instance.
|
|
257
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
258
|
+
*/
|
|
259
|
+
mouseout(handler: (event: MouseEvent) => void): jBase;
|
|
260
|
+
/**
|
|
261
|
+
* * π¬π§: Binds a handler to the 'mouseover' event.
|
|
262
|
+
* * π©πͺ: Bindet einen Handler an das 'mouseover'-Event.
|
|
263
|
+
* @param handler
|
|
264
|
+
* * π¬π§: The callback function.
|
|
265
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
266
|
+
* @returns
|
|
267
|
+
* * π¬π§: The current jBase instance.
|
|
268
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
269
|
+
*/
|
|
270
|
+
mouseover(handler: (event: MouseEvent) => void): jBase;
|
|
271
|
+
/**
|
|
272
|
+
* * π¬π§: Binds a handler to the 'keydown' event.
|
|
273
|
+
* * π©πͺ: Bindet einen Handler an das 'keydown'-Event.
|
|
274
|
+
* @param handler
|
|
275
|
+
* * π¬π§: The callback function.
|
|
276
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
277
|
+
* @returns
|
|
278
|
+
* * π¬π§: The current jBase instance.
|
|
279
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
280
|
+
*/
|
|
281
|
+
keydown(handler: (event: KeyboardEvent) => void): jBase;
|
|
282
|
+
/**
|
|
283
|
+
* * π¬π§: Binds a handler to the 'keyup' event.
|
|
284
|
+
* * π©πͺ: Bindet einen Handler an das 'keyup'-Event.
|
|
285
|
+
* @param handler
|
|
286
|
+
* * π¬π§: The callback function.
|
|
287
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
288
|
+
* @returns
|
|
289
|
+
* * π¬π§: The current jBase instance.
|
|
290
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
291
|
+
*/
|
|
292
|
+
keyup(handler: (event: KeyboardEvent) => void): jBase;
|
|
293
|
+
/**
|
|
294
|
+
* * π¬π§: Binds a handler to the 'keypress' event (Deprecated).
|
|
295
|
+
* * π©πͺ: Bindet einen Handler an das 'keypress'-Event (Veraltet).
|
|
296
|
+
* @deprecated Use keydown instead.
|
|
297
|
+
* @param handler
|
|
298
|
+
* * π¬π§: The callback function.
|
|
299
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
300
|
+
* @returns
|
|
301
|
+
* * π¬π§: The current jBase instance.
|
|
302
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
303
|
+
*/
|
|
304
|
+
keypress(handler: (event: KeyboardEvent) => void): jBase;
|
|
305
|
+
/**
|
|
306
|
+
* * π¬π§: Binds a handler that fires only when a specific key is pressed.
|
|
307
|
+
* * π©πͺ: Bindet einen Handler, der nur feuert, wenn eine bestimmte Taste gedrΓΌckt wird.
|
|
308
|
+
* @param handler
|
|
309
|
+
* * π¬π§: The callback function.
|
|
310
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
311
|
+
* @returns
|
|
312
|
+
* * π¬π§: The current jBase instance.
|
|
313
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
314
|
+
*/
|
|
315
|
+
pressedKey(handler: (event: KeyboardEvent) => void): jBase;
|
|
316
|
+
/**
|
|
317
|
+
* * π¬π§: Binds a handler to the 'submit' event.
|
|
318
|
+
* * π©πͺ: Bindet einen Handler an das 'submit'-Event.
|
|
319
|
+
* @param handler
|
|
320
|
+
* * π¬π§: The callback function.
|
|
321
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
322
|
+
* @returns
|
|
323
|
+
* * π¬π§: The current jBase instance.
|
|
324
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
325
|
+
*/
|
|
326
|
+
submit(handler: (event: SubmitEvent) => void): jBase;
|
|
327
|
+
/**
|
|
328
|
+
* * π¬π§: Binds a handler to the 'change' event.
|
|
329
|
+
* * π©πͺ: Bindet einen Handler an das 'change'-Event.
|
|
330
|
+
* @param handler
|
|
331
|
+
* * π¬π§: The callback function.
|
|
332
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
333
|
+
* @returns
|
|
334
|
+
* * π¬π§: The current jBase instance.
|
|
335
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
336
|
+
*/
|
|
337
|
+
change(handler: (event: Event) => void): jBase;
|
|
338
|
+
/**
|
|
339
|
+
* * π¬π§: Binds a handler to the 'input' event (real-time).
|
|
340
|
+
* * π©πͺ: Bindet einen Handler an das 'input'-Event (Echtzeit).
|
|
341
|
+
* @param handler
|
|
342
|
+
* * π¬π§: The callback function.
|
|
343
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
344
|
+
* @returns
|
|
345
|
+
* * π¬π§: The current jBase instance.
|
|
346
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
347
|
+
*/
|
|
348
|
+
input(handler: (event: Event) => void): jBase;
|
|
349
|
+
/**
|
|
350
|
+
* * π¬π§: Sets focus on the element.
|
|
351
|
+
* * π©πͺ: Setzt den Fokus auf das Element.
|
|
352
|
+
* @returns
|
|
353
|
+
* * π¬π§: The current jBase instance.
|
|
354
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
355
|
+
*/
|
|
356
|
+
focus(): jBase;
|
|
357
|
+
/**
|
|
358
|
+
* * π¬π§: Binds a handler to the 'focus' event.
|
|
359
|
+
* * π©πͺ: Bindet einen Handler an das 'focus'-Event.
|
|
360
|
+
* @param handler
|
|
361
|
+
* * π¬π§: The callback function.
|
|
362
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
363
|
+
* @returns
|
|
364
|
+
* * π¬π§: The current jBase instance.
|
|
365
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
366
|
+
*/
|
|
367
|
+
focus(handler: (event: FocusEvent) => void): jBase;
|
|
368
|
+
/**
|
|
369
|
+
* * π¬π§: Removes focus from the element.
|
|
370
|
+
* * π©πͺ: Entfernt den Fokus vom Element.
|
|
371
|
+
* @returns
|
|
372
|
+
* * π¬π§: The current jBase instance.
|
|
373
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
374
|
+
*/
|
|
375
|
+
blur(): jBase;
|
|
376
|
+
/**
|
|
377
|
+
* * π¬π§: Binds a handler to the 'blur' event.
|
|
378
|
+
* * π©πͺ: Bindet einen Handler an das 'blur'-Event.
|
|
379
|
+
* @param handler
|
|
380
|
+
* * π¬π§: The callback function.
|
|
381
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
382
|
+
* @returns
|
|
383
|
+
* * π¬π§: The current jBase instance.
|
|
384
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
385
|
+
*/
|
|
386
|
+
blur(handler: (event: FocusEvent) => void): jBase;
|
|
387
|
+
/**
|
|
388
|
+
* * π¬π§: Binds a handler to the 'touchstart' event.
|
|
389
|
+
* * π©πͺ: Bindet einen Handler an das 'touchstart'-Event.
|
|
390
|
+
* @param handler
|
|
391
|
+
* * π¬π§: The callback function.
|
|
392
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
393
|
+
* @returns
|
|
394
|
+
* * π¬π§: The current jBase instance.
|
|
395
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
396
|
+
*/
|
|
397
|
+
touchstart(handler: (event: TouchEvent) => void): jBase;
|
|
398
|
+
/**
|
|
399
|
+
* * π¬π§: Binds a handler to the 'touchend' event.
|
|
400
|
+
* * π©πͺ: Bindet einen Handler an das 'touchend'-Event.
|
|
401
|
+
* @param handler
|
|
402
|
+
* * π¬π§: The callback function.
|
|
403
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
404
|
+
* @returns
|
|
405
|
+
* * π¬π§: The current jBase instance.
|
|
406
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
407
|
+
*/
|
|
408
|
+
touchend(handler: (event: TouchEvent) => void): jBase;
|
|
409
|
+
/**
|
|
410
|
+
* * π¬π§: Binds a handler to the 'touchmove' event.
|
|
411
|
+
* * π©πͺ: Bindet einen Handler an das 'touchmove'-Event.
|
|
412
|
+
* @param handler
|
|
413
|
+
* * π¬π§: The callback function.
|
|
414
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
415
|
+
* @returns
|
|
416
|
+
* * π¬π§: The current jBase instance.
|
|
417
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
418
|
+
*/
|
|
419
|
+
touchmove(handler: (event: TouchEvent) => void): jBase;
|
|
420
|
+
/**
|
|
421
|
+
* * π¬π§: Binds a handler to the 'touchcancel' event.
|
|
422
|
+
* * π©πͺ: Bindet einen Handler an das 'touchcancel'-Event.
|
|
423
|
+
* @param handler
|
|
424
|
+
* * π¬π§: The callback function.
|
|
425
|
+
* * π©πͺ: Die Callback-Funktion.
|
|
426
|
+
* @returns
|
|
427
|
+
* * π¬π§: The current jBase instance.
|
|
428
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
429
|
+
*/
|
|
430
|
+
touchcancel(handler: (event: TouchEvent) => void): jBase;
|
|
431
|
+
/**
|
|
432
|
+
* * π¬π§: Gets the HTML content of the first element.
|
|
433
|
+
* * π©πͺ: Gibt den HTML-Inhalt des ersten Elements zurΓΌck.
|
|
434
|
+
* @returns
|
|
435
|
+
* * π¬π§: The HTML content as a string.
|
|
436
|
+
* * π©πͺ: Der HTML-Inhalt als String.
|
|
437
|
+
*/
|
|
438
|
+
html(): string;
|
|
439
|
+
/**
|
|
440
|
+
* * π¬π§: Sets the HTML content of all selected elements.
|
|
441
|
+
* * π©πͺ: Setzt den HTML-Inhalt aller ausgewΓ€hlten Elemente.
|
|
442
|
+
* @param content
|
|
443
|
+
* * π¬π§: The new HTML content.
|
|
444
|
+
* * π©πͺ: Der neue HTML-Inhalt.
|
|
445
|
+
* @returns
|
|
446
|
+
* * π¬π§: The current jBase instance.
|
|
447
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
448
|
+
*/
|
|
449
|
+
html(content: string): jBase;
|
|
450
|
+
/**
|
|
451
|
+
* * π¬π§: Gets the text content of the first element.
|
|
452
|
+
* * π©πͺ: Gibt den Text-Inhalt des ersten Elements zurΓΌck.
|
|
453
|
+
* @returns
|
|
454
|
+
* * π¬π§: The text content as a string.
|
|
455
|
+
* * π©πͺ: Der Text-Inhalt als String.
|
|
456
|
+
*/
|
|
457
|
+
text(): string;
|
|
458
|
+
/**
|
|
459
|
+
* * π¬π§: Sets the text content of all selected elements (safe against XSS).
|
|
460
|
+
* * π©πͺ: Setzt den Text-Inhalt aller Elemente (XSS-sicher).
|
|
461
|
+
* @param content
|
|
462
|
+
* * π¬π§: The new text content.
|
|
463
|
+
* * π©πͺ: Der neue Text-Inhalt.
|
|
464
|
+
* @returns
|
|
465
|
+
* * π¬π§: The current jBase instance.
|
|
466
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
467
|
+
*/
|
|
468
|
+
text(content: string): jBase;
|
|
469
|
+
/**
|
|
470
|
+
* * π¬π§: Gets an attribute value from the first element.
|
|
471
|
+
* * π©πͺ: Liest einen Attributwert vom ersten Element.
|
|
472
|
+
* @param name
|
|
473
|
+
* * π¬π§: The name of the attribute.
|
|
474
|
+
* * π©πͺ: Der Name des Attributs.
|
|
475
|
+
* @returns
|
|
476
|
+
* * π¬π§: The attribute value or null.
|
|
477
|
+
* * π©πͺ: Der Attributwert oder null.
|
|
478
|
+
*/
|
|
479
|
+
attr(name: string): string | null;
|
|
480
|
+
/**
|
|
481
|
+
* * π¬π§: Sets an attribute for all selected elements.
|
|
482
|
+
* * π©πͺ: Setzt ein Attribut fΓΌr alle ausgewΓ€hlten Elemente.
|
|
483
|
+
* @param name
|
|
484
|
+
* * π¬π§: The name of the attribute.
|
|
485
|
+
* * π©πͺ: Der Name des Attributs.
|
|
486
|
+
* @param value
|
|
487
|
+
* * π¬π§: The value to set.
|
|
488
|
+
* * π©πͺ: Der zu setzende Wert.
|
|
489
|
+
* @returns
|
|
490
|
+
* * π¬π§: The current jBase instance.
|
|
491
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
492
|
+
*/
|
|
493
|
+
attr(name: string, value: string): jBase;
|
|
494
|
+
/**
|
|
495
|
+
* * π¬π§: Gets the value of the first form element.
|
|
496
|
+
* * π©πͺ: Liest den Wert (Value) des ersten Formularelements.
|
|
497
|
+
* @returns
|
|
498
|
+
* * π¬π§: The value as a string.
|
|
499
|
+
* * π©πͺ: Der Wert als String.
|
|
500
|
+
*/
|
|
501
|
+
val(): string;
|
|
502
|
+
/**
|
|
503
|
+
* * π¬π§: Sets the value for all selected form elements.
|
|
504
|
+
* * π©πͺ: Setzt den Wert (Value) fΓΌr alle ausgewΓ€hlten Formularelemente.
|
|
505
|
+
* @param value
|
|
506
|
+
* * π¬π§: The value to set.
|
|
507
|
+
* * π©πͺ: Der zu setzende Wert.
|
|
508
|
+
* @returns
|
|
509
|
+
* * π¬π§: The current jBase instance.
|
|
510
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
511
|
+
*/
|
|
512
|
+
val(value: string | number): jBase;
|
|
513
|
+
/**
|
|
514
|
+
* * π¬π§: Replaces elements with a deep clone of themselves (removes listeners).
|
|
515
|
+
* * π©πͺ: Ersetzt Elemente durch eine tiefe Kopie (entfernt Listener).
|
|
516
|
+
* @returns
|
|
517
|
+
* * π¬π§: The current jBase instance.
|
|
518
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
519
|
+
*/
|
|
520
|
+
replaceWithClone(): jBase;
|
|
521
|
+
/**
|
|
522
|
+
* * π¬π§: Removes all selected elements from the DOM.
|
|
523
|
+
* * π©πͺ: Entfernt alle ausgewΓ€hlten Elemente aus dem DOM.
|
|
524
|
+
* @returns
|
|
525
|
+
* * π¬π§: The current jBase instance.
|
|
526
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
527
|
+
*/
|
|
528
|
+
remove(): jBase;
|
|
529
|
+
/**
|
|
530
|
+
* * π¬π§: Removes all child nodes from the selected elements.
|
|
531
|
+
* * π©πͺ: Entfernt alle Kind-Elemente (leert den Inhalt).
|
|
532
|
+
* @returns
|
|
533
|
+
* * π¬π§: The current jBase instance.
|
|
534
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
535
|
+
*/
|
|
536
|
+
empty(): jBase;
|
|
537
|
+
/**
|
|
538
|
+
* * π¬π§: Finds the closest ancestor matching the selector.
|
|
539
|
+
* * π©πͺ: Findet das nΓ€chste Vorfahren-Element, das dem Selektor entspricht.
|
|
540
|
+
* @param selector
|
|
541
|
+
* * π¬π§: The CSS selector to match.
|
|
542
|
+
* * π©πͺ: Der CSS-Selektor zum Abgleich.
|
|
543
|
+
* @returns
|
|
544
|
+
* * π¬π§: A new jBase instance containing the ancestor.
|
|
545
|
+
* * π©πͺ: Eine neue jBase-Instanz mit dem Vorfahren.
|
|
546
|
+
*/
|
|
547
|
+
closest(selector: string): jBase;
|
|
548
|
+
/**
|
|
549
|
+
* * π¬π§: Executes the handler when the DOM is fully loaded.
|
|
550
|
+
* * π©πͺ: FΓΌhrt den Handler aus, sobald das DOM vollstΓ€ndig geladen ist.
|
|
551
|
+
* @param handler
|
|
552
|
+
* * π¬π§: The function to execute.
|
|
553
|
+
* * π©πͺ: Die auszufΓΌhrende Funktion.
|
|
554
|
+
* @returns
|
|
555
|
+
* * π¬π§: The current jBase instance.
|
|
556
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
557
|
+
*/
|
|
558
|
+
ready(handler: () => void): jBase;
|
|
559
|
+
/**
|
|
560
|
+
* * π¬π§: Inserts content at the end of the selected elements (inside).
|
|
561
|
+
* * π©πͺ: FΓΌgt Inhalt am Ende der Elemente ein (innerhalb).
|
|
562
|
+
* @param content
|
|
563
|
+
* * π¬π§: Content to insert (String, Node, or jBase).
|
|
564
|
+
* * π©πͺ: EinzufΓΌgender Inhalt (String, Node oder jBase).
|
|
565
|
+
* @returns
|
|
566
|
+
* * π¬π§: The current jBase instance.
|
|
567
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
568
|
+
*/
|
|
569
|
+
append(content: string | Node | jBase): jBase;
|
|
570
|
+
/**
|
|
571
|
+
* * π¬π§: Inserts content at the beginning of the selected elements (inside).
|
|
572
|
+
* * π©πͺ: FΓΌgt Inhalt am Anfang der Elemente ein (innerhalb).
|
|
573
|
+
* @param content
|
|
574
|
+
* * π¬π§: Content to insert (String, Node, or jBase).
|
|
575
|
+
* * π©πͺ: EinzufΓΌgender Inhalt (String, Node oder jBase).
|
|
576
|
+
* @returns
|
|
577
|
+
* * π¬π§: The current jBase instance.
|
|
578
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
579
|
+
*/
|
|
580
|
+
prepend(content: string | Node | jBase): jBase;
|
|
581
|
+
/**
|
|
582
|
+
* * π¬π§: Inserts content before the selected elements (outside).
|
|
583
|
+
* * π©πͺ: FΓΌgt Inhalt vor den Elementen ein (auΓerhalb).
|
|
584
|
+
* @param content
|
|
585
|
+
* * π¬π§: Content to insert (String, Node, or jBase).
|
|
586
|
+
* * π©πͺ: EinzufΓΌgender Inhalt (String, Node oder jBase).
|
|
587
|
+
* @returns
|
|
588
|
+
* * π¬π§: The current jBase instance.
|
|
589
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
590
|
+
*/
|
|
591
|
+
before(content: string | Node | jBase): jBase;
|
|
592
|
+
/**
|
|
593
|
+
* * π¬π§: Inserts content after the selected elements (outside).
|
|
594
|
+
* * π©πͺ: FΓΌgt Inhalt nach den Elementen ein (auΓerhalb).
|
|
595
|
+
* @param content
|
|
596
|
+
* * π¬π§: Content to insert (String, Node, or jBase).
|
|
597
|
+
* * π©πͺ: EinzufΓΌgender Inhalt (String, Node oder jBase).
|
|
598
|
+
* @returns
|
|
599
|
+
* * π¬π§: The current jBase instance.
|
|
600
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
601
|
+
*/
|
|
602
|
+
after(content: string | Node | jBase): jBase;
|
|
603
|
+
/**
|
|
604
|
+
* * π¬π§: Replaces the selected elements with new content.
|
|
605
|
+
* * π©πͺ: Ersetzt die ausgewΓ€hlten Elemente durch neuen Inhalt.
|
|
606
|
+
* @param content
|
|
607
|
+
* * π¬π§: Content to insert (String, Node, or jBase).
|
|
608
|
+
* * π©πͺ: EinzufΓΌgender Inhalt (String, Node oder jBase).
|
|
609
|
+
* @returns
|
|
610
|
+
* * π¬π§: The current jBase instance.
|
|
611
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
612
|
+
*/
|
|
613
|
+
replaceWith(content: string | Node | jBase): jBase;
|
|
614
|
+
/**
|
|
615
|
+
* * π¬π§: Appends the selected elements to a target.
|
|
616
|
+
* * π©πͺ: HΓ€ngt die aktuellen Elemente an ein Ziel an (Ende).
|
|
617
|
+
* @param target
|
|
618
|
+
* * π¬π§: Target element or selector.
|
|
619
|
+
* * π©πͺ: Ziel-Element oder Selektor.
|
|
620
|
+
* @returns
|
|
621
|
+
* * π¬π§: The current jBase instance.
|
|
622
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
623
|
+
*/
|
|
624
|
+
appendTo(target: string | Element): jBase;
|
|
625
|
+
/**
|
|
626
|
+
* * π¬π§: Prepends the selected elements to a target.
|
|
627
|
+
* * π©πͺ: HΓ€ngt die aktuellen Elemente in ein Ziel ein (Anfang).
|
|
628
|
+
* @param target
|
|
629
|
+
* * π¬π§: Target element or selector.
|
|
630
|
+
* * π©πͺ: Ziel-Element oder Selektor.
|
|
631
|
+
* @returns
|
|
632
|
+
* * π¬π§: The current jBase instance.
|
|
633
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
634
|
+
*/
|
|
635
|
+
prependTo(target: string | Element): jBase;
|
|
636
|
+
/**
|
|
637
|
+
* * π¬π§: Inserts the selected elements before a target.
|
|
638
|
+
* * π©πͺ: FΓΌgt die aktuellen Elemente vor einem Ziel ein.
|
|
639
|
+
* @param target
|
|
640
|
+
* * π¬π§: Target element or selector.
|
|
641
|
+
* * π©πͺ: Ziel-Element oder Selektor.
|
|
642
|
+
* @returns
|
|
643
|
+
* * π¬π§: The current jBase instance.
|
|
644
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
645
|
+
*/
|
|
646
|
+
insertBefore(target: string | Element): jBase;
|
|
647
|
+
/**
|
|
648
|
+
* * π¬π§: Inserts the selected elements after a target.
|
|
649
|
+
* * π©πͺ: FΓΌgt die aktuellen Elemente nach einem Ziel ein.
|
|
650
|
+
* @param target
|
|
651
|
+
* * π¬π§: Target element or selector.
|
|
652
|
+
* * π©πͺ: Ziel-Element oder Selektor.
|
|
653
|
+
* @returns
|
|
654
|
+
* * π¬π§: The current jBase instance.
|
|
655
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
656
|
+
*/
|
|
657
|
+
insertAfter(target: string | Element): jBase;
|
|
658
|
+
/**
|
|
659
|
+
* * π¬π§: Wraps each selected element with the specified HTML structure.
|
|
660
|
+
* * π©πͺ: UmschlieΓt jedes Element mit der angegebenen HTML-Struktur.
|
|
661
|
+
* @param wrapperHtml
|
|
662
|
+
* * π¬π§: The HTML string for the wrapper.
|
|
663
|
+
* * π©πͺ: Der HTML-String fΓΌr den Wrapper.
|
|
664
|
+
* @returns
|
|
665
|
+
* * π¬π§: The current jBase instance.
|
|
666
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
667
|
+
*/
|
|
668
|
+
wrap(wrapperHtml: string): jBase;
|
|
669
|
+
/**
|
|
670
|
+
* * π¬π§: Removes the direct parent of the selected elements.
|
|
671
|
+
* * π©πͺ: Entfernt das direkte Elternelement.
|
|
672
|
+
* @returns
|
|
673
|
+
* * π¬π§: The current jBase instance.
|
|
674
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
675
|
+
*/
|
|
676
|
+
unwrap(): jBase;
|
|
677
|
+
/**
|
|
678
|
+
* * π¬π§: Gets the direct parents.
|
|
679
|
+
* * π©πͺ: Gibt die direkten Elternelemente zurΓΌck.
|
|
680
|
+
* @returns
|
|
681
|
+
* * π¬π§: A new jBase instance with parents.
|
|
682
|
+
* * π©πͺ: Eine neue jBase-Instanz mit den Eltern.
|
|
683
|
+
*/
|
|
684
|
+
parent(): jBase;
|
|
685
|
+
/**
|
|
686
|
+
* * π¬π§: Gets the direct children.
|
|
687
|
+
* * π©πͺ: Gibt die direkten Kindelemente zurΓΌck.
|
|
688
|
+
* @param selector
|
|
689
|
+
* * π¬π§: (Optional) Filter selector.
|
|
690
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
691
|
+
* @returns
|
|
692
|
+
* * π¬π§: A new jBase instance with children.
|
|
693
|
+
* * π©πͺ: Eine neue jBase-Instanz mit den Kindern.
|
|
694
|
+
*/
|
|
695
|
+
children(selector?: string): jBase;
|
|
696
|
+
/**
|
|
697
|
+
* * π¬π§: Finds descendants matching the selector (deep).
|
|
698
|
+
* * π©πͺ: Findet tiefe Nachfahren basierend auf einem Selektor.
|
|
699
|
+
* @param selector
|
|
700
|
+
* * π¬π§: CSS selector to find.
|
|
701
|
+
* * π©πͺ: CSS-Selektor zum Suchen.
|
|
702
|
+
* @returns
|
|
703
|
+
* * π¬π§: A new jBase instance.
|
|
704
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
705
|
+
*/
|
|
706
|
+
findAll(selector: string): jBase;
|
|
707
|
+
/**
|
|
708
|
+
* * π¬π§: Gets all descendants recursively.
|
|
709
|
+
* * π©πͺ: Gibt rekursiv alle Nachfahren zurΓΌck.
|
|
710
|
+
* @returns
|
|
711
|
+
* * π¬π§: A new jBase instance.
|
|
712
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
713
|
+
*/
|
|
714
|
+
childrens(): jBase;
|
|
715
|
+
/**
|
|
716
|
+
* * π¬π§: Gets descendants recursively until a selector is met.
|
|
717
|
+
* * π©πͺ: Gibt rekursiv Nachfahren zurΓΌck, bis ein Selektor zutrifft.
|
|
718
|
+
* @param untilSelector
|
|
719
|
+
* * π¬π§: Selector to stop at.
|
|
720
|
+
* * π©πͺ: Selektor, bei dem gestoppt wird.
|
|
721
|
+
* @param filter
|
|
722
|
+
* * π¬π§: (Optional) Filter selector.
|
|
723
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
724
|
+
* @returns
|
|
725
|
+
* * π¬π§: A new jBase instance.
|
|
726
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
727
|
+
*/
|
|
728
|
+
childrensUntil(untilSelector: string, filter?: string): jBase;
|
|
729
|
+
/**
|
|
730
|
+
* * π¬π§: Gets all ancestors up to the root.
|
|
731
|
+
* * π©πͺ: Gibt alle Vorfahren bis zum Root zurΓΌck.
|
|
732
|
+
* @param selector
|
|
733
|
+
* * π¬π§: (Optional) Filter selector.
|
|
734
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
735
|
+
* @returns
|
|
736
|
+
* * π¬π§: A new jBase instance.
|
|
737
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
738
|
+
*/
|
|
739
|
+
parents(selector?: string): jBase;
|
|
740
|
+
/**
|
|
741
|
+
* * π¬π§: Gets all ancestors until a selector is met.
|
|
742
|
+
* * π©πͺ: Gibt alle Vorfahren zurΓΌck, bis ein Selektor zutrifft.
|
|
743
|
+
* @param selector
|
|
744
|
+
* * π¬π§: Selector to stop at.
|
|
745
|
+
* * π©πͺ: Selektor, bei dem gestoppt wird.
|
|
746
|
+
* @param filter
|
|
747
|
+
* * π¬π§: (Optional) Filter selector.
|
|
748
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
749
|
+
* @returns
|
|
750
|
+
* * π¬π§: A new jBase instance.
|
|
751
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
752
|
+
*/
|
|
753
|
+
parentsUntil(selector: string, filter?: string): jBase;
|
|
754
|
+
/**
|
|
755
|
+
* * π¬π§: Gets the immediately following sibling.
|
|
756
|
+
* * π©πͺ: Gibt das unmittelbar folgende Geschwisterelement zurΓΌck.
|
|
757
|
+
* @param selector
|
|
758
|
+
* * π¬π§: (Optional) Filter selector.
|
|
759
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
760
|
+
* @returns
|
|
761
|
+
* * π¬π§: A new jBase instance.
|
|
762
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
763
|
+
*/
|
|
764
|
+
next(selector?: string): jBase;
|
|
765
|
+
/**
|
|
766
|
+
* * π¬π§: Gets the immediately preceding sibling.
|
|
767
|
+
* * π©πͺ: Gibt das unmittelbar vorhergehende Geschwisterelement zurΓΌck.
|
|
768
|
+
* @param selector
|
|
769
|
+
* * π¬π§: (Optional) Filter selector.
|
|
770
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
771
|
+
* @returns
|
|
772
|
+
* * π¬π§: A new jBase instance.
|
|
773
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
774
|
+
*/
|
|
775
|
+
prev(selector?: string): jBase;
|
|
776
|
+
/**
|
|
777
|
+
* * π¬π§: Alias for `next()`.
|
|
778
|
+
* * π©πͺ: Alias fΓΌr `next()`.
|
|
779
|
+
* @param selector
|
|
780
|
+
* * π¬π§: (Optional) Filter selector.
|
|
781
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
782
|
+
* @returns
|
|
783
|
+
* * π¬π§: A new jBase instance.
|
|
784
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
785
|
+
*/
|
|
786
|
+
sibling(selector?: string): jBase;
|
|
787
|
+
/**
|
|
788
|
+
* * π¬π§: Alias for `next()`.
|
|
789
|
+
* * π©πͺ: Alias fΓΌr `next()`.
|
|
790
|
+
* @param selector
|
|
791
|
+
* * π¬π§: (Optional) Filter selector.
|
|
792
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
793
|
+
* @returns
|
|
794
|
+
* * π¬π§: A new jBase instance.
|
|
795
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
796
|
+
*/
|
|
797
|
+
nextSibling(selector?: string): jBase;
|
|
798
|
+
/**
|
|
799
|
+
* * π¬π§: Alias for `prev()`.
|
|
800
|
+
* * π©πͺ: Alias fΓΌr `prev()`.
|
|
801
|
+
* @param selector
|
|
802
|
+
* * π¬π§: (Optional) Filter selector.
|
|
803
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
804
|
+
* @returns
|
|
805
|
+
* * π¬π§: A new jBase instance.
|
|
806
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
807
|
+
*/
|
|
808
|
+
prevSibling(selector?: string): jBase;
|
|
809
|
+
/**
|
|
810
|
+
* * π¬π§: Gets all following siblings.
|
|
811
|
+
* * π©πͺ: Gibt alle nachfolgenden Geschwisterelemente zurΓΌck.
|
|
812
|
+
* @param selector
|
|
813
|
+
* * π¬π§: (Optional) Filter selector.
|
|
814
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
815
|
+
* @returns
|
|
816
|
+
* * π¬π§: A new jBase instance.
|
|
817
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
818
|
+
*/
|
|
819
|
+
nextAll(selector?: string): jBase;
|
|
820
|
+
/**
|
|
821
|
+
* * π¬π§: Gets all preceding siblings.
|
|
822
|
+
* * π©πͺ: Gibt alle vorhergehenden Geschwisterelemente zurΓΌck.
|
|
823
|
+
* @param selector
|
|
824
|
+
* * π¬π§: (Optional) Filter selector.
|
|
825
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
826
|
+
* @returns
|
|
827
|
+
* * π¬π§: A new jBase instance.
|
|
828
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
829
|
+
*/
|
|
830
|
+
prevAll(selector?: string): jBase;
|
|
831
|
+
/**
|
|
832
|
+
* * π¬π§: Gets all siblings (prev and next).
|
|
833
|
+
* * π©πͺ: Gibt alle Geschwisterelemente zurΓΌck.
|
|
834
|
+
* @param selector
|
|
835
|
+
* * π¬π§: (Optional) Filter selector.
|
|
836
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
837
|
+
* @returns
|
|
838
|
+
* * π¬π§: A new jBase instance.
|
|
839
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
840
|
+
*/
|
|
841
|
+
siblings(selector?: string): jBase;
|
|
842
|
+
/**
|
|
843
|
+
* * π¬π§: Gets following siblings until a selector is met.
|
|
844
|
+
* * π©πͺ: Gibt nachfolgende Geschwister zurΓΌck, bis ein Selektor zutrifft.
|
|
845
|
+
* @param untilSelector
|
|
846
|
+
* * π¬π§: Selector to stop at.
|
|
847
|
+
* * π©πͺ: Selektor, bei dem gestoppt wird.
|
|
848
|
+
* @param filter
|
|
849
|
+
* * π¬π§: (Optional) Filter selector.
|
|
850
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
851
|
+
* @returns
|
|
852
|
+
* * π¬π§: A new jBase instance.
|
|
853
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
854
|
+
*/
|
|
855
|
+
nextUntil(untilSelector: string, filter?: string): jBase;
|
|
856
|
+
/**
|
|
857
|
+
* * π¬π§: Gets preceding siblings until a selector is met.
|
|
858
|
+
* * π©πͺ: Gibt vorhergehende Geschwister zurΓΌck, bis ein Selektor zutrifft.
|
|
859
|
+
* @param untilSelector
|
|
860
|
+
* * π¬π§: Selector to stop at.
|
|
861
|
+
* * π©πͺ: Selektor, bei dem gestoppt wird.
|
|
862
|
+
* @param filter
|
|
863
|
+
* * π¬π§: (Optional) Filter selector.
|
|
864
|
+
* * π©πͺ: (Optional) Filter-Selektor.
|
|
865
|
+
* @returns
|
|
866
|
+
* * π¬π§: A new jBase instance.
|
|
867
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
868
|
+
*/
|
|
869
|
+
prevUntil(untilSelector: string, filter?: string): jBase;
|
|
870
|
+
/**
|
|
871
|
+
* * π¬π§: Reduces the set to the element at the index.
|
|
872
|
+
* * π©πͺ: Reduziert die Auswahl auf das Element am Index.
|
|
873
|
+
* @param index
|
|
874
|
+
* * π¬π§: Index (negative values count from the end).
|
|
875
|
+
* * π©πͺ: Index (negative Werte zΓ€hlen vom Ende).
|
|
876
|
+
* @returns
|
|
877
|
+
* * π¬π§: A new jBase instance.
|
|
878
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
879
|
+
*/
|
|
880
|
+
eq(index: number): jBase;
|
|
881
|
+
/**
|
|
882
|
+
* * π¬π§: Reduces the set to the first element.
|
|
883
|
+
* * π©πͺ: Reduziert die Auswahl auf das erste Element.
|
|
884
|
+
* @returns
|
|
885
|
+
* * π¬π§: A new jBase instance.
|
|
886
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
887
|
+
*/
|
|
888
|
+
first(): jBase;
|
|
889
|
+
/**
|
|
890
|
+
* * π¬π§: Reduces the set to the last element.
|
|
891
|
+
* * π©πͺ: Reduziert die Auswahl auf das letzte Element.
|
|
892
|
+
* @returns
|
|
893
|
+
* * π¬π§: A new jBase instance.
|
|
894
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
895
|
+
*/
|
|
896
|
+
last(): jBase;
|
|
897
|
+
/**
|
|
898
|
+
* * π¬π§: Filters elements by selector.
|
|
899
|
+
* * π©πͺ: Filtert Elemente anhand eines Selektors.
|
|
900
|
+
* @param selector
|
|
901
|
+
* * π¬π§: CSS selector to filter by.
|
|
902
|
+
* * π©πͺ: CSS-Selektor zum Filtern.
|
|
903
|
+
* @returns
|
|
904
|
+
* * π¬π§: A new jBase instance.
|
|
905
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
906
|
+
*/
|
|
907
|
+
filterBy(selector: string): jBase;
|
|
908
|
+
/**
|
|
909
|
+
* * π¬π§: Filters elements by a callback function.
|
|
910
|
+
* * π©πͺ: Filtert Elemente anhand einer Callback-Funktion.
|
|
911
|
+
* @param predicate
|
|
912
|
+
* * π¬π§: Function that returns true to keep the element.
|
|
913
|
+
* * π©πͺ: Funktion, die true zurΓΌckgeben muss, um das Element zu behalten.
|
|
914
|
+
* @returns
|
|
915
|
+
* * π¬π§: A new jBase instance.
|
|
916
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
917
|
+
*/
|
|
918
|
+
filterBy(predicate: (index: number, element: Element) => boolean): jBase;
|
|
919
|
+
/**
|
|
920
|
+
* * π¬π§: Removes elements matching the selector.
|
|
921
|
+
* * π©πͺ: Entfernt Elemente, die dem Selektor entsprechen.
|
|
922
|
+
* @param selector
|
|
923
|
+
* * π¬π§: CSS selector to remove.
|
|
924
|
+
* * π©πͺ: CSS-Selektor zum Entfernen.
|
|
925
|
+
* @returns
|
|
926
|
+
* * π¬π§: A new jBase instance.
|
|
927
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
928
|
+
*/
|
|
929
|
+
not(selector: string): jBase;
|
|
930
|
+
/**
|
|
931
|
+
* * π¬π§: Removes elements matching the callback function.
|
|
932
|
+
* * π©πͺ: Entfernt Elemente, die der Callback-Funktion entsprechen.
|
|
933
|
+
* @param predicate
|
|
934
|
+
* * π¬π§: Function that returns true to remove the element.
|
|
935
|
+
* * π©πͺ: Funktion, die true zurΓΌckgeben muss, um das Element zu entfernen.
|
|
936
|
+
* @returns
|
|
937
|
+
* * π¬π§: A new jBase instance.
|
|
938
|
+
* * π©πͺ: Eine neue jBase-Instanz.
|
|
939
|
+
*/
|
|
940
|
+
not(predicate: (index: number, element: Element) => boolean): jBase;
|
|
941
|
+
/**
|
|
942
|
+
* * π¬π§: Slides the element into view (horizontal).
|
|
943
|
+
* * π©πͺ: Schiebt das Element in den sichtbaren Bereich (horizontal).
|
|
944
|
+
* @param options
|
|
945
|
+
* * π¬π§: Animation options.
|
|
946
|
+
* * π©πͺ: Animations-Optionen.
|
|
947
|
+
* @returns
|
|
948
|
+
* * π¬π§: The current jBase instance.
|
|
949
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
950
|
+
*/
|
|
951
|
+
slideIn(options?: {
|
|
952
|
+
direction?: 'left' | 'right';
|
|
953
|
+
duration?: number;
|
|
954
|
+
}): jBase;
|
|
955
|
+
/**
|
|
956
|
+
* * π¬π§: Slides the element out of view (horizontal).
|
|
957
|
+
* * π©πͺ: Schiebt das Element aus dem sichtbaren Bereich (horizontal).
|
|
958
|
+
* @param options
|
|
959
|
+
* * π¬π§: Animation options.
|
|
960
|
+
* * π©πͺ: Animations-Optionen.
|
|
961
|
+
* @returns
|
|
962
|
+
* * π¬π§: The current jBase instance.
|
|
963
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
964
|
+
*/
|
|
965
|
+
slideOut(options?: {
|
|
966
|
+
direction?: 'left' | 'right';
|
|
967
|
+
duration?: number;
|
|
968
|
+
}): jBase;
|
|
969
|
+
/**
|
|
970
|
+
* * π¬π§: Toggles between slideIn and slideOut.
|
|
971
|
+
* * π©πͺ: Wechselt zwischen slideIn und slideOut.
|
|
972
|
+
* @param options
|
|
973
|
+
* * π¬π§: Animation options.
|
|
974
|
+
* * π©πͺ: Animations-Optionen.
|
|
975
|
+
* @returns
|
|
976
|
+
* * π¬π§: The current jBase instance.
|
|
977
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
978
|
+
*/
|
|
979
|
+
slideToggle(options?: {
|
|
980
|
+
direction?: 'left' | 'right';
|
|
981
|
+
duration?: number;
|
|
982
|
+
}): jBase;
|
|
983
|
+
/**
|
|
984
|
+
* * π¬π§: Slides the element down (Accordion).
|
|
985
|
+
* * π©πͺ: FΓ€hrt das Element vertikal aus (Akkordeon).
|
|
986
|
+
* @param options
|
|
987
|
+
* * π¬π§: Animation options.
|
|
988
|
+
* * π©πͺ: Animations-Optionen.
|
|
989
|
+
* @returns
|
|
990
|
+
* * π¬π§: The current jBase instance.
|
|
991
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
992
|
+
*/
|
|
993
|
+
slideDown(options?: {
|
|
994
|
+
duration?: number;
|
|
995
|
+
displayType?: string;
|
|
996
|
+
}): jBase;
|
|
997
|
+
/**
|
|
998
|
+
* * π¬π§: Slides the element up.
|
|
999
|
+
* * π©πͺ: FΓ€hrt das Element vertikal ein.
|
|
1000
|
+
* @param options
|
|
1001
|
+
* * π¬π§: Animation options.
|
|
1002
|
+
* * π©πͺ: Animations-Optionen.
|
|
1003
|
+
* @returns
|
|
1004
|
+
* * π¬π§: The current jBase instance.
|
|
1005
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
1006
|
+
*/
|
|
1007
|
+
slideUp(options?: {
|
|
1008
|
+
duration?: number;
|
|
1009
|
+
}): jBase;
|
|
1010
|
+
/**
|
|
1011
|
+
* * π¬π§: Toggles between slideDown and slideUp.
|
|
1012
|
+
* * π©πͺ: Wechselt zwischen slideDown und slideUp.
|
|
1013
|
+
* @param options
|
|
1014
|
+
* * π¬π§: Animation options.
|
|
1015
|
+
* * π©πͺ: Animations-Optionen.
|
|
1016
|
+
* @returns
|
|
1017
|
+
* * π¬π§: The current jBase instance.
|
|
1018
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
1019
|
+
*/
|
|
1020
|
+
slideToggleBox(options?: {
|
|
1021
|
+
duration?: number;
|
|
1022
|
+
}): jBase;
|
|
1023
|
+
/**
|
|
1024
|
+
* * π¬π§: Fades the element in (Opacity).
|
|
1025
|
+
* * π©πͺ: Blendet das Element ein (OpazitΓ€t).
|
|
1026
|
+
* @param options
|
|
1027
|
+
* * π¬π§: Animation options.
|
|
1028
|
+
* * π©πͺ: Animations-Optionen.
|
|
1029
|
+
* @returns
|
|
1030
|
+
* * π¬π§: The current jBase instance.
|
|
1031
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
1032
|
+
*/
|
|
1033
|
+
fadeIn(options?: {
|
|
1034
|
+
duration?: number;
|
|
1035
|
+
displayType?: string;
|
|
1036
|
+
}): jBase;
|
|
1037
|
+
/**
|
|
1038
|
+
* * π¬π§: Fades the element out (Opacity).
|
|
1039
|
+
* * π©πͺ: Blendet das Element aus (OpazitΓ€t).
|
|
1040
|
+
* @param options
|
|
1041
|
+
* * π¬π§: Animation options.
|
|
1042
|
+
* * π©πͺ: Animations-Optionen.
|
|
1043
|
+
* @returns
|
|
1044
|
+
* * π¬π§: The current jBase instance.
|
|
1045
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
1046
|
+
*/
|
|
1047
|
+
fadeOut(options?: {
|
|
1048
|
+
duration?: number;
|
|
1049
|
+
}): jBase;
|
|
1050
|
+
/**
|
|
1051
|
+
* * π¬π§: Toggles between fadeIn and fadeOut.
|
|
1052
|
+
* * π©πͺ: Wechselt zwischen fadeIn und fadeOut.
|
|
1053
|
+
* @param options
|
|
1054
|
+
* * π¬π§: Animation options.
|
|
1055
|
+
* * π©πͺ: Animations-Optionen.
|
|
1056
|
+
* @returns
|
|
1057
|
+
* * π¬π§: The current jBase instance.
|
|
1058
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
1059
|
+
*/
|
|
1060
|
+
fadeToggle(options?: {
|
|
1061
|
+
duration?: number;
|
|
1062
|
+
}): jBase;
|
|
1063
|
+
/**
|
|
1064
|
+
* * π¬π§: Checks the 'checked' state (Getter).
|
|
1065
|
+
* * π©πͺ: PrΓΌft den 'checked'-Status (Getter).
|
|
1066
|
+
* @returns
|
|
1067
|
+
* * π¬π§: True if checked.
|
|
1068
|
+
* * π©πͺ: True wenn gecheckt.
|
|
1069
|
+
*/
|
|
1070
|
+
checked(): boolean;
|
|
1071
|
+
/**
|
|
1072
|
+
* * π¬π§: Sets the 'checked' state (Setter).
|
|
1073
|
+
* * π©πͺ: Setzt den 'checked'-Status (Setter).
|
|
1074
|
+
* @param state
|
|
1075
|
+
* * π¬π§: The new state.
|
|
1076
|
+
* * π©πͺ: Der neue Status.
|
|
1077
|
+
* @returns
|
|
1078
|
+
* * π¬π§: The current jBase instance.
|
|
1079
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
1080
|
+
*/
|
|
1081
|
+
checked(state: boolean): jBase;
|
|
1082
|
+
/**
|
|
1083
|
+
* * π¬π§: Checks the 'selected' state (Getter).
|
|
1084
|
+
* * π©πͺ: PrΓΌft den 'selected'-Status (Getter).
|
|
1085
|
+
* @returns
|
|
1086
|
+
* * π¬π§: True if selected.
|
|
1087
|
+
* * π©πͺ: True wenn ausgewΓ€hlt.
|
|
1088
|
+
*/
|
|
1089
|
+
selected(): boolean;
|
|
1090
|
+
/**
|
|
1091
|
+
* * π¬π§: Sets the 'selected' state (Setter).
|
|
1092
|
+
* * π©πͺ: Setzt den 'selected'-Status (Setter).
|
|
1093
|
+
* @param state
|
|
1094
|
+
* * π¬π§: The new state.
|
|
1095
|
+
* * π©πͺ: Der neue Status.
|
|
1096
|
+
* @returns
|
|
1097
|
+
* * π¬π§: The current jBase instance.
|
|
1098
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
1099
|
+
*/
|
|
1100
|
+
selected(state: boolean): jBase;
|
|
1101
|
+
/**
|
|
1102
|
+
* * π¬π§: Checks the 'disabled' state (Getter).
|
|
1103
|
+
* * π©πͺ: PrΓΌft den 'disabled'-Status (Getter).
|
|
1104
|
+
* @returns
|
|
1105
|
+
* * π¬π§: True if disabled.
|
|
1106
|
+
* * π©πͺ: True wenn deaktiviert.
|
|
1107
|
+
*/
|
|
1108
|
+
disabled(): boolean;
|
|
1109
|
+
/**
|
|
1110
|
+
* * π¬π§: Sets the 'disabled' state and toggles CSS class (Setter).
|
|
1111
|
+
* * π©πͺ: Setzt den 'disabled'-Status und CSS-Klasse (Setter).
|
|
1112
|
+
* @param state
|
|
1113
|
+
* * π¬π§: The new state.
|
|
1114
|
+
* * π©πͺ: Der neue Status.
|
|
1115
|
+
* @returns
|
|
1116
|
+
* * π¬π§: The current jBase instance.
|
|
1117
|
+
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
1118
|
+
*/
|
|
1119
|
+
disabled(state: boolean): jBase;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* * π¬π§: Export the factory under different aliases for maximum compatibility and convenience.
|
|
1124
|
+
* * π©πͺ: Export der Factory unter verschiedenen Aliasen fΓΌr maximale KompatibilitΓ€t und Komfort.
|
|
1125
|
+
*/
|
|
1126
|
+
export declare const $: (selector: JBaseInput) => JBaseClass;
|
|
1127
|
+
export declare const jB: (selector: JBaseInput) => JBaseClass;
|
|
1128
|
+
export declare const _jB: (selector: JBaseInput) => JBaseClass;
|
|
1129
|
+
export declare const __jB: (selector: JBaseInput) => JBaseClass;
|
|
1130
|
+
export declare const _jBase: (selector: JBaseInput) => JBaseClass;
|
|
1131
|
+
export declare const __jBase: (selector: JBaseInput) => JBaseClass;
|
|
1132
|
+
export declare const jBase: (selector: JBaseInput) => JBaseClass;
|
|
1133
|
+
/**
|
|
1134
|
+
* * π¬π§: Utility for throttled function calls.
|
|
1135
|
+
* * π©πͺ: Utility fΓΌr gedrosselte Funktionsaufrufe.
|
|
1136
|
+
*/
|
|
1137
|
+
export { throttle } from './utils';
|
|
1138
|
+
/**
|
|
1139
|
+
* * π¬π§: Utility for debounced function calls.
|
|
1140
|
+
* * π©πͺ: Utility fΓΌr verzΓΆgerte Funktionsaufrufe.
|
|
1141
|
+
*/
|
|
1142
|
+
export { debounce } from './utils';
|
|
1143
|
+
/**
|
|
1144
|
+
* * π¬π§: HTTP Client for AJAX requests.
|
|
1145
|
+
* * π©πͺ: HTTP-Client fΓΌr AJAX-Anfragen.
|
|
1146
|
+
*/
|
|
1147
|
+
export { http } from './modules/http';
|
|
1148
|
+
/**
|
|
1149
|
+
* * π¬π§: Data utilities for Arrays and Objects.
|
|
1150
|
+
* * π©πͺ: Daten-Utilities fΓΌr Arrays und Objekte.
|
|
1151
|
+
*/
|
|
1152
|
+
export { data } from './modules/data';
|
|
1153
|
+
/**
|
|
1154
|
+
* * π¬π§: The class itself, if needed for type checks.
|
|
1155
|
+
* * π©πͺ: Die Klasse selbst, falls fΓΌr Typ-PrΓΌfungen benΓΆtigt.
|
|
1156
|
+
*/
|
|
1157
|
+
export { JBaseClass };
|
|
1158
|
+
//# sourceMappingURL=index.d.ts.map
|