@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.
Files changed (136) hide show
  1. package/LICENSE +621 -0
  2. package/README.md +124 -0
  3. package/dist/browser.d.ts +30 -0
  4. package/dist/browser.d.ts.map +1 -0
  5. package/dist/browser.js +29 -0
  6. package/dist/browser.js.map +1 -0
  7. package/dist/core.d.ts +42 -0
  8. package/dist/core.d.ts.map +1 -0
  9. package/dist/core.js +78 -0
  10. package/dist/core.js.map +1 -0
  11. package/dist/index.cjs +2150 -0
  12. package/dist/index.d.ts +1158 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +100 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/index.mjs +2118 -0
  17. package/dist/jbase.browser.js +1906 -0
  18. package/dist/jbase.js +1898 -0
  19. package/dist/jbase.min.js +9 -0
  20. package/dist/modules/css/classes.d.ts +61 -0
  21. package/dist/modules/css/classes.d.ts.map +1 -0
  22. package/dist/modules/css/classes.js +88 -0
  23. package/dist/modules/css/classes.js.map +1 -0
  24. package/dist/modules/css/index.d.ts +30 -0
  25. package/dist/modules/css/index.d.ts.map +1 -0
  26. package/dist/modules/css/index.js +33 -0
  27. package/dist/modules/css/index.js.map +1 -0
  28. package/dist/modules/css/styles.d.ts +31 -0
  29. package/dist/modules/css/styles.d.ts.map +1 -0
  30. package/dist/modules/css/styles.js +49 -0
  31. package/dist/modules/css/styles.js.map +1 -0
  32. package/dist/modules/data/arrays.d.ts +131 -0
  33. package/dist/modules/data/arrays.d.ts.map +1 -0
  34. package/dist/modules/data/arrays.js +177 -0
  35. package/dist/modules/data/arrays.js.map +1 -0
  36. package/dist/modules/data/index.d.ts +29 -0
  37. package/dist/modules/data/index.d.ts.map +1 -0
  38. package/dist/modules/data/index.js +33 -0
  39. package/dist/modules/data/index.js.map +1 -0
  40. package/dist/modules/data/objects.d.ts +108 -0
  41. package/dist/modules/data/objects.d.ts.map +1 -0
  42. package/dist/modules/data/objects.js +168 -0
  43. package/dist/modules/data/objects.js.map +1 -0
  44. package/dist/modules/data/types.d.ts +35 -0
  45. package/dist/modules/data/types.d.ts.map +1 -0
  46. package/dist/modules/data/types.js +43 -0
  47. package/dist/modules/data/types.js.map +1 -0
  48. package/dist/modules/dom/attributes.d.ts +42 -0
  49. package/dist/modules/dom/attributes.d.ts.map +1 -0
  50. package/dist/modules/dom/attributes.js +69 -0
  51. package/dist/modules/dom/attributes.js.map +1 -0
  52. package/dist/modules/dom/content.d.ts +39 -0
  53. package/dist/modules/dom/content.d.ts.map +1 -0
  54. package/dist/modules/dom/content.js +63 -0
  55. package/dist/modules/dom/content.js.map +1 -0
  56. package/dist/modules/dom/index.d.ts +78 -0
  57. package/dist/modules/dom/index.d.ts.map +1 -0
  58. package/dist/modules/dom/index.js +48 -0
  59. package/dist/modules/dom/index.js.map +1 -0
  60. package/dist/modules/dom/manipulation.d.ts +159 -0
  61. package/dist/modules/dom/manipulation.d.ts.map +1 -0
  62. package/dist/modules/dom/manipulation.js +343 -0
  63. package/dist/modules/dom/manipulation.js.map +1 -0
  64. package/dist/modules/dom/states.d.ts +50 -0
  65. package/dist/modules/dom/states.d.ts.map +1 -0
  66. package/dist/modules/dom/states.js +89 -0
  67. package/dist/modules/dom/states.js.map +1 -0
  68. package/dist/modules/dom/traversal.d.ts +246 -0
  69. package/dist/modules/dom/traversal.d.ts.map +1 -0
  70. package/dist/modules/dom/traversal.js +527 -0
  71. package/dist/modules/dom/traversal.js.map +1 -0
  72. package/dist/modules/effects/fade.d.ts +58 -0
  73. package/dist/modules/effects/fade.d.ts.map +1 -0
  74. package/dist/modules/effects/fade.js +104 -0
  75. package/dist/modules/effects/fade.js.map +1 -0
  76. package/dist/modules/effects/index.d.ts +40 -0
  77. package/dist/modules/effects/index.d.ts.map +1 -0
  78. package/dist/modules/effects/index.js +38 -0
  79. package/dist/modules/effects/index.js.map +1 -0
  80. package/dist/modules/effects/slide.d.ts +58 -0
  81. package/dist/modules/effects/slide.d.ts.map +1 -0
  82. package/dist/modules/effects/slide.js +103 -0
  83. package/dist/modules/effects/slide.js.map +1 -0
  84. package/dist/modules/effects/vertical.d.ts +58 -0
  85. package/dist/modules/effects/vertical.d.ts.map +1 -0
  86. package/dist/modules/effects/vertical.js +118 -0
  87. package/dist/modules/effects/vertical.js.map +1 -0
  88. package/dist/modules/events/binding.d.ts +47 -0
  89. package/dist/modules/events/binding.d.ts.map +1 -0
  90. package/dist/modules/events/binding.js +60 -0
  91. package/dist/modules/events/binding.js.map +1 -0
  92. package/dist/modules/events/form.d.ts +72 -0
  93. package/dist/modules/events/form.d.ts.map +1 -0
  94. package/dist/modules/events/form.js +106 -0
  95. package/dist/modules/events/form.js.map +1 -0
  96. package/dist/modules/events/index.d.ts +62 -0
  97. package/dist/modules/events/index.d.ts.map +1 -0
  98. package/dist/modules/events/index.js +53 -0
  99. package/dist/modules/events/index.js.map +1 -0
  100. package/dist/modules/events/keyboard.d.ts +65 -0
  101. package/dist/modules/events/keyboard.d.ts.map +1 -0
  102. package/dist/modules/events/keyboard.js +83 -0
  103. package/dist/modules/events/keyboard.js.map +1 -0
  104. package/dist/modules/events/lifecycle.d.ts +28 -0
  105. package/dist/modules/events/lifecycle.d.ts.map +1 -0
  106. package/dist/modules/events/lifecycle.js +40 -0
  107. package/dist/modules/events/lifecycle.js.map +1 -0
  108. package/dist/modules/events/mouse.d.ts +120 -0
  109. package/dist/modules/events/mouse.d.ts.map +1 -0
  110. package/dist/modules/events/mouse.js +172 -0
  111. package/dist/modules/events/mouse.js.map +1 -0
  112. package/dist/modules/events/touch.d.ts +61 -0
  113. package/dist/modules/events/touch.d.ts.map +1 -0
  114. package/dist/modules/events/touch.js +74 -0
  115. package/dist/modules/events/touch.js.map +1 -0
  116. package/dist/modules/http/get.d.ts +47 -0
  117. package/dist/modules/http/get.d.ts.map +1 -0
  118. package/dist/modules/http/get.js +65 -0
  119. package/dist/modules/http/get.js.map +1 -0
  120. package/dist/modules/http/index.d.ts +37 -0
  121. package/dist/modules/http/index.d.ts.map +1 -0
  122. package/dist/modules/http/index.js +42 -0
  123. package/dist/modules/http/index.js.map +1 -0
  124. package/dist/modules/http/post.d.ts +36 -0
  125. package/dist/modules/http/post.d.ts.map +1 -0
  126. package/dist/modules/http/post.js +54 -0
  127. package/dist/modules/http/post.js.map +1 -0
  128. package/dist/types.d.ts +61 -0
  129. package/dist/types.d.ts.map +1 -0
  130. package/dist/types.js +15 -0
  131. package/dist/types.js.map +1 -0
  132. package/dist/utils.d.ts +51 -0
  133. package/dist/utils.d.ts.map +1 -0
  134. package/dist/utils.js +71 -0
  135. package/dist/utils.js.map +1 -0
  136. package/package.json +58 -0
package/dist/jbase.js ADDED
@@ -0,0 +1,1898 @@
1
+ /**
2
+ * jbase - A modern micro-framework for the web: jBase offers the familiar syntax of classic DOM libraries, but without their baggage. Fully typed, modular, and optimized for modern browser engines.
3
+ * @version 2.0.0
4
+ * @homepage https://sven-minio.de
5
+ * @author Sven Minio (https://sven-minio.de)
6
+ * @license GPL-3.0-or-later
7
+ * @copyright 2026 Sven Minio (https://sven-minio.de)
8
+ */
9
+ "use strict";
10
+ (() => {
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __esm = (fn, res) => function __init() {
14
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
+ };
16
+ var __commonJS = (cb, mod) => function __require() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __export = (target, all) => {
20
+ for (var name in all)
21
+ __defProp(target, name, { get: all[name], enumerable: true });
22
+ };
23
+
24
+ // src/core.ts
25
+ var jBase;
26
+ var init_core = __esm({
27
+ "src/core.ts"() {
28
+ "use strict";
29
+ /**
30
+ * @file src/core.ts
31
+ * @version 2.0.0
32
+ * @since 2.0.0
33
+ * @license GPL-3.0-or-later
34
+ * @copyright Sven Minio 2026
35
+ * @author Sven Minio <https://sven-minio.de>
36
+ * @category Core
37
+ * @description
38
+ * * πŸ‡¬πŸ‡§: The main jBase class. Handles the selection engine, initialization, and plugin architecture.
39
+ * * πŸ‡©πŸ‡ͺ: Die Haupt-jBase-Klasse. Behandelt die Selektions-Engine, Initialisierung und Plugin-Architektur.
40
+ */
41
+ jBase = class extends Array {
42
+ /**
43
+ * * πŸ‡¬πŸ‡§: Initializes a new jBase instance. Analyzes the provided selector and populates the internal array with found or created DOM elements.
44
+ * * πŸ‡©πŸ‡ͺ: Initialisiert eine neue jBase-Instanz. Analysiert den ΓΌbergebenen Selektor und fΓΌllt das interne Array mit den gefundenen oder erstellten DOM-Elementen.
45
+ * @param selector
46
+ * * πŸ‡¬πŸ‡§: The input selector (CSS selector, HTML string, DOM element, or collection).
47
+ * * πŸ‡©πŸ‡ͺ: Der Eingabe-Selektor (CSS-Selektor, HTML-String, DOM-Element oder Sammlung).
48
+ */
49
+ constructor(selector) {
50
+ super();
51
+ this.selectorSource = "";
52
+ this.selectorSource = typeof selector === "string" ? selector : "<DOM Object/Array>";
53
+ if (!selector)
54
+ return;
55
+ if (selector instanceof HTMLElement || selector === document || selector === window || selector instanceof Element) {
56
+ this.push(selector);
57
+ } else if (typeof selector === "string") {
58
+ const trimmed = selector.trim();
59
+ if (trimmed.startsWith("<") && trimmed.endsWith(">")) {
60
+ const tempDiv = document.createElement("div");
61
+ tempDiv.innerHTML = trimmed;
62
+ this.push(...Array.from(tempDiv.children));
63
+ } else {
64
+ this.push(...Array.from(document.querySelectorAll(selector)));
65
+ }
66
+ } else if (selector instanceof NodeList || Array.isArray(selector)) {
67
+ this.push(...Array.from(selector));
68
+ }
69
+ }
70
+ /**
71
+ * * πŸ‡¬πŸ‡§: Custom serializer for JSON.stringify. Prevents circular references and huge outputs by returning a simplified preview.
72
+ * * πŸ‡©πŸ‡ͺ: Benutzerdefinierte Serialisierung fΓΌr JSON.stringify. Verhindert ZirkelbezΓΌge und riesige Ausgaben durch RΓΌckgabe einer vereinfachten Vorschau.
73
+ * @returns
74
+ * * πŸ‡¬πŸ‡§: A simplified object representation for debugging.
75
+ * * πŸ‡©πŸ‡ͺ: Eine vereinfachte ObjektreprΓ€sentation fΓΌr das Debugging.
76
+ */
77
+ toJSON() {
78
+ return {
79
+ meta: "jBase Wrapper",
80
+ query: this.selectorSource,
81
+ count: this.length,
82
+ preview: this.slice(0, 10).map((el) => {
83
+ if (el instanceof Element)
84
+ return el.tagName.toLowerCase();
85
+ return typeof el;
86
+ })
87
+ };
88
+ }
89
+ };
90
+ }
91
+ });
92
+
93
+ // src/modules/css/classes.ts
94
+ var classes_exports = {};
95
+ __export(classes_exports, {
96
+ addClass: () => addClass,
97
+ hasClass: () => hasClass,
98
+ removeClass: () => removeClass,
99
+ toggleClass: () => toggleClass
100
+ });
101
+ function addClass(...classNames) {
102
+ this.forEach((el) => {
103
+ if (el instanceof Element) el.classList.add(...classNames);
104
+ });
105
+ return this;
106
+ }
107
+ function removeClass(...classNames) {
108
+ this.forEach((el) => {
109
+ if (el instanceof Element) el.classList.remove(...classNames);
110
+ });
111
+ return this;
112
+ }
113
+ function toggleClass(className) {
114
+ this.forEach((el) => {
115
+ if (el instanceof Element) el.classList.toggle(className);
116
+ });
117
+ return this;
118
+ }
119
+ function hasClass(className) {
120
+ return this.some((el) => {
121
+ return el instanceof Element && el.classList.contains(className);
122
+ });
123
+ }
124
+ var init_classes = __esm({
125
+ "src/modules/css/classes.ts"() {
126
+ "use strict";
127
+ /**
128
+ * @file src/modules/css/classes.ts
129
+ * @version 2.0.0
130
+ * @since 2.0.0
131
+ * @license GPL-3.0-or-later
132
+ * @copyright Sven Minio 2026
133
+ * @author Sven Minio <https://sven-minio.de>
134
+ * @category CSS
135
+ * @description
136
+ * * πŸ‡¬πŸ‡§: Methods for manipulating CSS classes (add, remove, toggle, has).
137
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Manipulation von CSS-Klassen (add, remove, toggle, has).
138
+ * @requires ../../core
139
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
140
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
141
+ */
142
+ }
143
+ });
144
+
145
+ // src/modules/css/styles.ts
146
+ var styles_exports = {};
147
+ __export(styles_exports, {
148
+ css: () => css
149
+ });
150
+ function css(property, value) {
151
+ if (value === void 0) {
152
+ const el = this[0];
153
+ if (el instanceof HTMLElement || el instanceof SVGElement) {
154
+ return window.getComputedStyle(el)[property];
155
+ }
156
+ return "";
157
+ }
158
+ this.forEach((el) => {
159
+ if (el instanceof HTMLElement || el instanceof SVGElement) {
160
+ el.style[property] = value;
161
+ }
162
+ });
163
+ return this;
164
+ }
165
+ var init_styles = __esm({
166
+ "src/modules/css/styles.ts"() {
167
+ "use strict";
168
+ /**
169
+ * @file src/modules/css/styles.ts
170
+ * @version 2.0.0
171
+ * @since 2.0.0
172
+ * @license GPL-3.0-or-later
173
+ * @copyright Sven Minio 2026
174
+ * @author Sven Minio <https://sven-minio.de>
175
+ * @category CSS
176
+ * @description
177
+ * * πŸ‡¬πŸ‡§: Methods for getting and setting inline CSS styles.
178
+ * * πŸ‡©πŸ‡ͺ: Methoden zum Lesen und Setzen von Inline-CSS-Styles.
179
+ * @requires ../../core
180
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
181
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
182
+ */
183
+ }
184
+ });
185
+
186
+ // src/modules/css/index.ts
187
+ var cssMethods;
188
+ var init_css = __esm({
189
+ "src/modules/css/index.ts"() {
190
+ "use strict";
191
+ init_classes();
192
+ init_styles();
193
+ /**
194
+ * @file src/modules/css/index.ts
195
+ * @version 2.0.0
196
+ * @since 2.0.0
197
+ * @license GPL-3.0-or-later
198
+ * @copyright Sven Minio 2026
199
+ * @author Sven Minio <https://sven-minio.de>
200
+ * @category CSS
201
+ * @description
202
+ * * πŸ‡¬πŸ‡§: Central entry point for CSS operations. Aggregates class and style manipulation methods.
203
+ * * πŸ‡©πŸ‡ͺ: Zentraler Einstiegspunkt fΓΌr CSS-Operationen. Aggregiert Methoden zur Klassen- und Style-Manipulation.
204
+ * @requires ./classes
205
+ * * πŸ‡¬πŸ‡§: Class manipulation methods (addClass, removeClass, etc.).
206
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Klassen-Manipulation (addClass, removeClass, etc.).
207
+ * @requires ./styles
208
+ * * πŸ‡¬πŸ‡§: Style manipulation methods (css).
209
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Style-Manipulation (css).
210
+ */
211
+ cssMethods = {
212
+ ...classes_exports,
213
+ ...styles_exports
214
+ };
215
+ }
216
+ });
217
+
218
+ // src/modules/events/binding.ts
219
+ var binding_exports = {};
220
+ __export(binding_exports, {
221
+ off: () => off,
222
+ on: () => on
223
+ });
224
+ function on(event, handler) {
225
+ this.forEach((el) => {
226
+ el.addEventListener(event, handler);
227
+ });
228
+ return this;
229
+ }
230
+ function off(event, handler) {
231
+ this.forEach((el) => {
232
+ el.removeEventListener(event, handler);
233
+ });
234
+ return this;
235
+ }
236
+ var init_binding = __esm({
237
+ "src/modules/events/binding.ts"() {
238
+ "use strict";
239
+ /**
240
+ * @file src/modules/events/binding.ts
241
+ * @version 2.0.0
242
+ * @since 2.0.0
243
+ * @license GPL-3.0-or-later
244
+ * @copyright Sven Minio 2026
245
+ * @author Sven Minio <https://sven-minio.de>
246
+ * @category Events
247
+ * @description
248
+ * * πŸ‡¬πŸ‡§: Core event binding methods (on, off, trigger). Handles event registration and removal.
249
+ * * πŸ‡©πŸ‡ͺ: Kern-Methoden fΓΌr Event-Binding (on, off, trigger). Behandelt die Registrierung und Entfernung von Events.
250
+ * @requires ../../core
251
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
252
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
253
+ */
254
+ }
255
+ });
256
+
257
+ // src/modules/events/mouse.ts
258
+ var mouse_exports = {};
259
+ __export(mouse_exports, {
260
+ click: () => click,
261
+ dblclick: () => dblclick,
262
+ mousedown: () => mousedown,
263
+ mouseenter: () => mouseenter,
264
+ mouseleave: () => mouseleave,
265
+ mousemove: () => mousemove,
266
+ mouseout: () => mouseout,
267
+ mouseover: () => mouseover,
268
+ mouseup: () => mouseup
269
+ });
270
+ function click(handler) {
271
+ if (handler) {
272
+ return this.on("click", handler);
273
+ } else {
274
+ this.forEach((el) => {
275
+ if (el instanceof HTMLElement) el.click();
276
+ });
277
+ return this;
278
+ }
279
+ }
280
+ function mousemove(handler) {
281
+ return this.on("mousemove", handler);
282
+ }
283
+ function mouseleave(handler) {
284
+ return this.on("mouseleave", handler);
285
+ }
286
+ function mouseenter(handler) {
287
+ return this.on("mouseenter", handler);
288
+ }
289
+ function mousedown(handler) {
290
+ return this.on("mousedown", handler);
291
+ }
292
+ function mouseup(handler) {
293
+ return this.on("mouseup", handler);
294
+ }
295
+ function dblclick(handler) {
296
+ if (handler) {
297
+ return this.on("dblclick", handler);
298
+ } else {
299
+ this.forEach((el) => {
300
+ if (el instanceof HTMLElement) {
301
+ el.dispatchEvent(new MouseEvent("dblclick", {
302
+ bubbles: true,
303
+ cancelable: true,
304
+ view: window
305
+ }));
306
+ }
307
+ });
308
+ return this;
309
+ }
310
+ }
311
+ function mouseout(handler) {
312
+ return this.on("mouseout", handler);
313
+ }
314
+ function mouseover(handler) {
315
+ return this.on("mouseover", handler);
316
+ }
317
+ var init_mouse = __esm({
318
+ "src/modules/events/mouse.ts"() {
319
+ "use strict";
320
+ /**
321
+ * @file src/modules/events/mouse.ts
322
+ * @version 2.0.0
323
+ * @since 2.0.0
324
+ * @license GPL-3.0-or-later
325
+ * @copyright Sven Minio 2026
326
+ * @author Sven Minio <https://sven-minio.de>
327
+ * @category Events
328
+ * @description
329
+ * * πŸ‡¬πŸ‡§: Methods for handling mouse events (click, dblclick, hover, mouseenter, mouseleave).
330
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Behandlung von Maus-Events (click, dblclick, hover, mouseenter, mouseleave).
331
+ * @requires ../../core
332
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
333
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
334
+ */
335
+ }
336
+ });
337
+
338
+ // src/modules/events/lifecycle.ts
339
+ var lifecycle_exports = {};
340
+ __export(lifecycle_exports, {
341
+ ready: () => ready
342
+ });
343
+ function ready(handler) {
344
+ if (document.readyState === "complete" || document.readyState === "interactive") {
345
+ handler();
346
+ } else {
347
+ this.on("DOMContentLoaded", handler);
348
+ }
349
+ return this;
350
+ }
351
+ var init_lifecycle = __esm({
352
+ "src/modules/events/lifecycle.ts"() {
353
+ "use strict";
354
+ /**
355
+ * @file src/modules/events/lifecycle.ts
356
+ * @version 2.0.0
357
+ * @since 2.0.0
358
+ * @license GPL-3.0-or-later
359
+ * @copyright Sven Minio 2026
360
+ * @author Sven Minio <https://sven-minio.de>
361
+ * @category Events
362
+ * @description
363
+ * * πŸ‡¬πŸ‡§: Methods for handling DOM lifecycle events (e.g., ready).
364
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Behandlung von DOM-Lebenszyklus-Events (z.B. ready).
365
+ * @requires ../../core
366
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
367
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
368
+ */
369
+ }
370
+ });
371
+
372
+ // src/modules/events/keyboard.ts
373
+ var keyboard_exports = {};
374
+ __export(keyboard_exports, {
375
+ keydown: () => keydown,
376
+ keypress: () => keypress,
377
+ keyup: () => keyup,
378
+ pressedKey: () => pressedKey
379
+ });
380
+ function keydown(handler) {
381
+ return this.on("keydown", handler);
382
+ }
383
+ function keyup(handler) {
384
+ return this.on("keyup", handler);
385
+ }
386
+ function keypress(handler) {
387
+ return this.on("keypress", handler);
388
+ }
389
+ function pressedKey(targetKey, handler) {
390
+ return this.on("keydown", (e) => {
391
+ const event = e;
392
+ if (event.key.toLowerCase() === targetKey.toLowerCase()) {
393
+ handler(event);
394
+ }
395
+ });
396
+ }
397
+ var init_keyboard = __esm({
398
+ "src/modules/events/keyboard.ts"() {
399
+ "use strict";
400
+ /**
401
+ * @file src/modules/events/keyboard.ts
402
+ * @version 2.0.0
403
+ * @since 2.0.0
404
+ * @license GPL-3.0-or-later
405
+ * @copyright Sven Minio 2026
406
+ * @author Sven Minio <https://sven-minio.de>
407
+ * @category Events
408
+ * @description
409
+ * * πŸ‡¬πŸ‡§: Methods for handling keyboard events (keydown, keyup, keypress).
410
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Behandlung von Tastatur-Events (keydown, keyup, keypress).
411
+ * @requires ../../core
412
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
413
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
414
+ */
415
+ }
416
+ });
417
+
418
+ // src/modules/events/form.ts
419
+ var form_exports = {};
420
+ __export(form_exports, {
421
+ blur: () => blur,
422
+ change: () => change,
423
+ focus: () => focus,
424
+ input: () => input,
425
+ submit: () => submit
426
+ });
427
+ function submit(handler) {
428
+ return this.on("submit", handler);
429
+ }
430
+ function change(handler) {
431
+ return this.on("change", handler);
432
+ }
433
+ function input(handler) {
434
+ return this.on("input", handler);
435
+ }
436
+ function focus(handler) {
437
+ if (handler) {
438
+ return this.on("focus", handler);
439
+ } else {
440
+ this.forEach((el) => {
441
+ if (el instanceof HTMLElement) el.focus();
442
+ });
443
+ return this;
444
+ }
445
+ }
446
+ function blur(handler) {
447
+ if (handler) {
448
+ return this.on("blur", handler);
449
+ } else {
450
+ this.forEach((el) => {
451
+ if (el instanceof HTMLElement) el.blur();
452
+ });
453
+ return this;
454
+ }
455
+ }
456
+ var init_form = __esm({
457
+ "src/modules/events/form.ts"() {
458
+ "use strict";
459
+ /**
460
+ * @file src/modules/events/form.ts
461
+ * @version 2.0.0
462
+ * @since 2.0.0
463
+ * @license GPL-3.0-or-later
464
+ * @copyright Sven Minio 2026
465
+ * @author Sven Minio <https://sven-minio.de>
466
+ * @category Events
467
+ * @description
468
+ * * πŸ‡¬πŸ‡§: Methods for handling form events (submit, change, focus, blur, input).
469
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Behandlung von Formular-Events (submit, change, focus, blur, input).
470
+ * @requires ../../core
471
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
472
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
473
+ */
474
+ }
475
+ });
476
+
477
+ // src/modules/events/touch.ts
478
+ var touch_exports = {};
479
+ __export(touch_exports, {
480
+ touchcancel: () => touchcancel,
481
+ touchend: () => touchend,
482
+ touchmove: () => touchmove,
483
+ touchstart: () => touchstart
484
+ });
485
+ function touchstart(handler) {
486
+ return this.on("touchstart", handler);
487
+ }
488
+ function touchend(handler) {
489
+ return this.on("touchend", handler);
490
+ }
491
+ function touchmove(handler) {
492
+ return this.on("touchmove", handler);
493
+ }
494
+ function touchcancel(handler) {
495
+ return this.on("touchcancel", handler);
496
+ }
497
+ var init_touch = __esm({
498
+ "src/modules/events/touch.ts"() {
499
+ "use strict";
500
+ /**
501
+ * @file src/modules/events/touch.ts
502
+ * @version 2.0.0
503
+ * @since 2.0.0
504
+ * @license GPL-3.0-or-later
505
+ * @copyright Sven Minio 2026
506
+ * @author Sven Minio <https://sven-minio.de>
507
+ * @category Events
508
+ * @description
509
+ * * πŸ‡¬πŸ‡§: Methods for handling touch events (touchstart, touchend, touchmove).
510
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Behandlung von Touch-Events (touchstart, touchend, touchmove).
511
+ * @requires ../../core
512
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
513
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
514
+ */
515
+ }
516
+ });
517
+
518
+ // src/modules/events/index.ts
519
+ var eventMethods;
520
+ var init_events = __esm({
521
+ "src/modules/events/index.ts"() {
522
+ "use strict";
523
+ init_binding();
524
+ init_mouse();
525
+ init_lifecycle();
526
+ init_keyboard();
527
+ init_form();
528
+ init_touch();
529
+ /**
530
+ * @file src/modules/events/index.ts
531
+ * @version 2.0.0
532
+ * @since 2.0.0
533
+ * @license GPL-3.0-or-later
534
+ * @copyright Sven Minio 2026
535
+ * @author Sven Minio <https://sven-minio.de>
536
+ * @category Events
537
+ * @description
538
+ * * πŸ‡¬πŸ‡§: Central entry point for event handling. Aggregates binding, mouse, lifecycle, keyboard, form, and touch events.
539
+ * * πŸ‡©πŸ‡ͺ: Zentraler Einstiegspunkt fΓΌr Event-Handling. Aggregiert Binding-, Maus-, Lebenszyklus-, Tastatur-, Formular- und Touch-Events.
540
+ * @requires ./binding
541
+ * * πŸ‡¬πŸ‡§: General event binding (on, off).
542
+ * * πŸ‡©πŸ‡ͺ: Generelle Event-Bindung (on, off).
543
+ * @requires ./mouse
544
+ * * πŸ‡¬πŸ‡§: Mouse interaction events (click, hover, etc.).
545
+ * * πŸ‡©πŸ‡ͺ: Maus-Interaktions-Events (click, hover, etc.).
546
+ * @requires ./lifecycle
547
+ * * πŸ‡¬πŸ‡§: DOM lifecycle events (ready).
548
+ * * πŸ‡©πŸ‡ͺ: DOM-Lebenszyklus-Events (ready).
549
+ * @requires ./keyboard
550
+ * * πŸ‡¬πŸ‡§: Keyboard interaction events (keydown, keyup).
551
+ * * πŸ‡©πŸ‡ͺ: Tastatur-Interaktions-Events (keydown, keyup).
552
+ * @requires ./form
553
+ * * πŸ‡¬πŸ‡§: Form handling events (submit, change, input).
554
+ * * πŸ‡©πŸ‡ͺ: Formular-Verarbeitungs-Events (submit, change, input).
555
+ * @requires ./touch
556
+ * * πŸ‡¬πŸ‡§: Touch interaction events.
557
+ * * πŸ‡©πŸ‡ͺ: Touch-Interaktions-Events.
558
+ */
559
+ eventMethods = {
560
+ ...binding_exports,
561
+ ...mouse_exports,
562
+ ...lifecycle_exports,
563
+ ...keyboard_exports,
564
+ ...form_exports,
565
+ ...touch_exports
566
+ };
567
+ }
568
+ });
569
+
570
+ // src/modules/dom/attributes.ts
571
+ var attributes_exports = {};
572
+ __export(attributes_exports, {
573
+ attr: () => attr,
574
+ val: () => val
575
+ });
576
+ function attr(name, value) {
577
+ if (value === void 0) {
578
+ const el = this[0];
579
+ return el instanceof Element ? el.getAttribute(name) : null;
580
+ }
581
+ this.forEach((el) => {
582
+ if (el instanceof Element) el.setAttribute(name, value);
583
+ });
584
+ return this;
585
+ }
586
+ function val(value) {
587
+ if (value === void 0) {
588
+ const el = this[0];
589
+ if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement) {
590
+ return el.value;
591
+ }
592
+ return "";
593
+ }
594
+ this.forEach((el) => {
595
+ if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement || el instanceof HTMLSelectElement) {
596
+ el.value = value;
597
+ }
598
+ });
599
+ return this;
600
+ }
601
+ var init_attributes = __esm({
602
+ "src/modules/dom/attributes.ts"() {
603
+ "use strict";
604
+ /**
605
+ * @file src/modules/dom/attributes.ts
606
+ * @version 2.0.0
607
+ * @since 2.0.0
608
+ * @license GPL-3.0-or-later
609
+ * @copyright Sven Minio 2026
610
+ * @author Sven Minio <https://sven-minio.de>
611
+ * @category DOM
612
+ * @description
613
+ * * πŸ‡¬πŸ‡§: Methods for getting and setting HTML attributes and properties (attr, data, val).
614
+ * * πŸ‡©πŸ‡ͺ: Methoden zum Lesen und Setzen von HTML-Attributen und Eigenschaften (attr, data, val).
615
+ * @requires ../../core
616
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
617
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
618
+ */
619
+ }
620
+ });
621
+
622
+ // src/modules/dom/content.ts
623
+ var content_exports = {};
624
+ __export(content_exports, {
625
+ html: () => html,
626
+ text: () => text
627
+ });
628
+ function html(content) {
629
+ if (content === void 0) {
630
+ const el = this[0];
631
+ return el instanceof Element ? el.innerHTML : "";
632
+ }
633
+ this.forEach((el) => {
634
+ if (el instanceof Element) el.innerHTML = content;
635
+ });
636
+ return this;
637
+ }
638
+ function text(content) {
639
+ if (content === void 0) {
640
+ const el = this[0];
641
+ return el instanceof Node ? el.textContent || "" : "";
642
+ }
643
+ this.forEach((el) => {
644
+ if (el instanceof HTMLElement) {
645
+ el.textContent = content;
646
+ }
647
+ });
648
+ return this;
649
+ }
650
+ var init_content = __esm({
651
+ "src/modules/dom/content.ts"() {
652
+ "use strict";
653
+ /**
654
+ * @file src/modules/dom/content.ts
655
+ * @version 2.0.0
656
+ * @since 2.0.0
657
+ * @license GPL-3.0-or-later
658
+ * @copyright Sven Minio 2026
659
+ * @author Sven Minio <https://sven-minio.de>
660
+ * @category DOM
661
+ * @description
662
+ * * πŸ‡¬πŸ‡§: Methods for getting and setting element content (html, text, empty, replaceWith).
663
+ * * πŸ‡©πŸ‡ͺ: Methoden zum Lesen und Setzen von Elementinhalten (html, text, empty, replaceWith).
664
+ * @requires ../../core
665
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
666
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
667
+ */
668
+ }
669
+ });
670
+
671
+ // src/modules/dom/manipulation.ts
672
+ var manipulation_exports = {};
673
+ __export(manipulation_exports, {
674
+ after: () => after,
675
+ append: () => append,
676
+ appendTo: () => appendTo,
677
+ before: () => before,
678
+ empty: () => empty,
679
+ insertAfter: () => insertAfter,
680
+ insertBefore: () => insertBefore,
681
+ prepend: () => prepend,
682
+ prependTo: () => prependTo,
683
+ remove: () => remove,
684
+ replaceWith: () => replaceWith,
685
+ replaceWithClone: () => replaceWithClone,
686
+ unwrap: () => unwrap,
687
+ wrap: () => wrap
688
+ });
689
+ function parseHTML(html2) {
690
+ const tmp = document.createElement("div");
691
+ tmp.innerHTML = html2.trim();
692
+ return tmp.firstElementChild;
693
+ }
694
+ function normalizeToFragment(content) {
695
+ const fragment = document.createDocumentFragment();
696
+ const add = (item) => {
697
+ if (typeof item === "string") {
698
+ const temp = document.createElement("div");
699
+ temp.innerHTML = item.trim();
700
+ while (temp.firstChild) {
701
+ fragment.appendChild(temp.firstChild);
702
+ }
703
+ } else if (item instanceof Node) {
704
+ fragment.appendChild(item);
705
+ } else if (item instanceof jBase || Array.isArray(item) || item instanceof NodeList) {
706
+ Array.from(item).forEach((child) => add(child));
707
+ }
708
+ };
709
+ add(content);
710
+ return fragment;
711
+ }
712
+ function remove() {
713
+ this.forEach((el) => {
714
+ if (el instanceof Element) el.remove();
715
+ });
716
+ return this;
717
+ }
718
+ function empty() {
719
+ this.forEach((el) => {
720
+ if (el instanceof Element) el.innerHTML = "";
721
+ });
722
+ return this;
723
+ }
724
+ function replaceWithClone() {
725
+ const newElements = [];
726
+ this.forEach((el) => {
727
+ if (el instanceof Element) {
728
+ const clone = el.cloneNode(true);
729
+ el.replaceWith(clone);
730
+ newElements.push(clone);
731
+ }
732
+ });
733
+ return new this.constructor(newElements);
734
+ }
735
+ function append(content) {
736
+ const fragment = normalizeToFragment(content);
737
+ this.forEach((el, i) => {
738
+ if (el instanceof Element) {
739
+ const contentToInsert = i < this.length - 1 ? fragment.cloneNode(true) : fragment;
740
+ el.appendChild(contentToInsert);
741
+ }
742
+ });
743
+ return this;
744
+ }
745
+ function prepend(content) {
746
+ const fragment = normalizeToFragment(content);
747
+ this.forEach((el, i) => {
748
+ if (el instanceof Element) {
749
+ const contentToInsert = i < this.length - 1 ? fragment.cloneNode(true) : fragment;
750
+ el.prepend(contentToInsert);
751
+ }
752
+ });
753
+ return this;
754
+ }
755
+ function before(content) {
756
+ const fragment = normalizeToFragment(content);
757
+ this.forEach((el, i) => {
758
+ if (el instanceof Element) {
759
+ const contentToInsert = i < this.length - 1 ? fragment.cloneNode(true) : fragment;
760
+ el.before(contentToInsert);
761
+ }
762
+ });
763
+ return this;
764
+ }
765
+ function after(content) {
766
+ const fragment = normalizeToFragment(content);
767
+ this.forEach((el, i) => {
768
+ if (el instanceof Element) {
769
+ const contentToInsert = i < this.length - 1 ? fragment.cloneNode(true) : fragment;
770
+ el.after(contentToInsert);
771
+ }
772
+ });
773
+ return this;
774
+ }
775
+ function replaceWith(content) {
776
+ const fragment = normalizeToFragment(content);
777
+ this.forEach((el, i) => {
778
+ if (el instanceof Element) {
779
+ const contentToInsert = i < this.length - 1 ? fragment.cloneNode(true) : fragment;
780
+ el.replaceWith(contentToInsert);
781
+ }
782
+ });
783
+ return this;
784
+ }
785
+ function appendTo(target) {
786
+ const parent2 = typeof target === "string" ? document.querySelector(target) : target;
787
+ if (parent2 instanceof Element) {
788
+ const fragment = document.createDocumentFragment();
789
+ this.forEach((el) => {
790
+ if (el instanceof Node) fragment.appendChild(el);
791
+ });
792
+ parent2.appendChild(fragment);
793
+ }
794
+ return this;
795
+ }
796
+ function prependTo(target) {
797
+ const parent2 = typeof target === "string" ? document.querySelector(target) : target;
798
+ if (parent2 instanceof Element) {
799
+ const fragment = document.createDocumentFragment();
800
+ this.forEach((el) => {
801
+ if (el instanceof Node) fragment.appendChild(el);
802
+ });
803
+ parent2.prepend(fragment);
804
+ }
805
+ return this;
806
+ }
807
+ function insertBefore(target) {
808
+ const targetEl = typeof target === "string" ? document.querySelector(target) : target;
809
+ if (targetEl instanceof Element) {
810
+ const fragment = document.createDocumentFragment();
811
+ this.forEach((el) => {
812
+ if (el instanceof Node) fragment.appendChild(el);
813
+ });
814
+ targetEl.before(fragment);
815
+ }
816
+ return this;
817
+ }
818
+ function insertAfter(target) {
819
+ const targetEl = typeof target === "string" ? document.querySelector(target) : target;
820
+ if (targetEl instanceof Element) {
821
+ const fragment = document.createDocumentFragment();
822
+ this.forEach((el) => {
823
+ if (el instanceof Node) fragment.appendChild(el);
824
+ });
825
+ targetEl.after(fragment);
826
+ }
827
+ return this;
828
+ }
829
+ function wrap(wrapperHtml) {
830
+ this.forEach((el) => {
831
+ if (el instanceof Element) {
832
+ const wrapper = parseHTML(wrapperHtml);
833
+ if (el.parentNode) {
834
+ el.parentNode.insertBefore(wrapper, el);
835
+ }
836
+ wrapper.appendChild(el);
837
+ }
838
+ });
839
+ return this;
840
+ }
841
+ function unwrap() {
842
+ this.forEach((el) => {
843
+ if (el instanceof Element && el.parentElement) {
844
+ const parent2 = el.parentElement;
845
+ const fragment = document.createDocumentFragment();
846
+ while (parent2.firstChild) {
847
+ fragment.appendChild(parent2.firstChild);
848
+ }
849
+ parent2.replaceWith(fragment);
850
+ }
851
+ });
852
+ return this;
853
+ }
854
+ var init_manipulation = __esm({
855
+ "src/modules/dom/manipulation.ts"() {
856
+ "use strict";
857
+ init_core();
858
+ /**
859
+ * @file src/modules/dom/manipulation.ts
860
+ * @version 2.0.0
861
+ * @since 2.0.0
862
+ * @license GPL-3.0-or-later
863
+ * @copyright Sven Minio 2026
864
+ * @author Sven Minio <https://sven-minio.de>
865
+ * @category DOM
866
+ * @description
867
+ * * πŸ‡¬πŸ‡§: Methods for inserting, moving, and removing elements (append, prepend, remove).
868
+ * * πŸ‡©πŸ‡ͺ: Methoden zum EinfΓΌgen, Verschieben und Entfernen von Elementen (append, prepend, remove).
869
+ * @requires ../../core
870
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
871
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
872
+ */
873
+ }
874
+ });
875
+
876
+ // src/modules/dom/traversal.ts
877
+ var traversal_exports = {};
878
+ __export(traversal_exports, {
879
+ children: () => children,
880
+ closest: () => closest,
881
+ descendants: () => descendants,
882
+ descendantsUntil: () => descendantsUntil,
883
+ eq: () => eq,
884
+ filterBy: () => filterBy,
885
+ findAll: () => findAll,
886
+ first: () => first,
887
+ last: () => last,
888
+ next: () => next,
889
+ nextAll: () => nextAll,
890
+ nextSibling: () => nextSibling,
891
+ nextUntil: () => nextUntil,
892
+ not: () => not,
893
+ parent: () => parent,
894
+ parents: () => parents,
895
+ parentsUntil: () => parentsUntil,
896
+ prev: () => prev,
897
+ prevAll: () => prevAll,
898
+ prevSibling: () => prevSibling,
899
+ prevUntil: () => prevUntil,
900
+ sibling: () => sibling,
901
+ siblings: () => siblings
902
+ });
903
+ function closest(selector) {
904
+ const found = [];
905
+ this.forEach((el) => {
906
+ if (el instanceof Element) {
907
+ const match = el.closest(selector);
908
+ if (match) {
909
+ found.push(match);
910
+ }
911
+ }
912
+ });
913
+ const Construction = this.constructor;
914
+ return new Construction([...new Set(found)]);
915
+ }
916
+ function parent() {
917
+ const parents2 = [];
918
+ this.forEach((el) => {
919
+ if (el instanceof Element && el.parentElement) {
920
+ parents2.push(el.parentElement);
921
+ }
922
+ });
923
+ const Construction = this.constructor;
924
+ return new Construction([...new Set(parents2)]);
925
+ }
926
+ function children(selector) {
927
+ let allChildren = [];
928
+ this.forEach((el) => {
929
+ if (el instanceof Element) {
930
+ const kids = Array.from(el.children);
931
+ allChildren = allChildren.concat(kids);
932
+ }
933
+ });
934
+ if (selector) {
935
+ allChildren = allChildren.filter((child) => child.matches(selector));
936
+ }
937
+ const Construction = this.constructor;
938
+ return new Construction(allChildren);
939
+ }
940
+ function findAll(selector) {
941
+ const found = [];
942
+ this.forEach((el) => {
943
+ if (el instanceof Element || el instanceof Document) {
944
+ const matches = el.querySelectorAll(selector);
945
+ matches.forEach((m) => found.push(m));
946
+ }
947
+ });
948
+ const Construction = this.constructor;
949
+ return new Construction([...new Set(found)]);
950
+ }
951
+ function descendants() {
952
+ return this.findAll("*");
953
+ }
954
+ function parents(selector) {
955
+ const ancestors = [];
956
+ this.forEach((el) => {
957
+ if (el instanceof Element) {
958
+ let curr = el.parentElement;
959
+ while (curr) {
960
+ if (!selector || curr.matches(selector)) {
961
+ ancestors.push(curr);
962
+ }
963
+ curr = curr.parentElement;
964
+ }
965
+ }
966
+ });
967
+ const Construction = this.constructor;
968
+ return new Construction([...new Set(ancestors)]);
969
+ }
970
+ function parentsUntil(selector, filter) {
971
+ const ancestors = [];
972
+ this.forEach((el) => {
973
+ if (el instanceof Element) {
974
+ let curr = el.parentElement;
975
+ while (curr && !curr.matches(selector)) {
976
+ if (!filter || curr.matches(filter)) {
977
+ ancestors.push(curr);
978
+ }
979
+ curr = curr.parentElement;
980
+ }
981
+ }
982
+ });
983
+ const Construction = this.constructor;
984
+ return new Construction([...new Set(ancestors)]);
985
+ }
986
+ function descendantsUntil(untilSelector, filter) {
987
+ const found = [];
988
+ const traverse = (parent2) => {
989
+ const kids = parent2.children;
990
+ for (let i = 0; i < kids.length; i++) {
991
+ const child = kids[i];
992
+ if (child.matches(untilSelector)) {
993
+ continue;
994
+ }
995
+ if (!filter || child.matches(filter)) {
996
+ found.push(child);
997
+ }
998
+ traverse(child);
999
+ }
1000
+ };
1001
+ this.forEach((el) => {
1002
+ if (el instanceof Element) traverse(el);
1003
+ });
1004
+ const Construction = this.constructor;
1005
+ return new Construction([...new Set(found)]);
1006
+ }
1007
+ function next(selector) {
1008
+ const found = [];
1009
+ this.forEach((el) => {
1010
+ if (el instanceof Element && el.nextElementSibling) {
1011
+ const nextEl = el.nextElementSibling;
1012
+ if (!selector || nextEl.matches(selector)) {
1013
+ found.push(nextEl);
1014
+ }
1015
+ }
1016
+ });
1017
+ const Construction = this.constructor;
1018
+ return new Construction([...new Set(found)]);
1019
+ }
1020
+ function prev(selector) {
1021
+ const found = [];
1022
+ this.forEach((el) => {
1023
+ if (el instanceof Element && el.previousElementSibling) {
1024
+ const prevEl = el.previousElementSibling;
1025
+ if (!selector || prevEl.matches(selector)) {
1026
+ found.push(prevEl);
1027
+ }
1028
+ }
1029
+ });
1030
+ const Construction = this.constructor;
1031
+ return new Construction([...new Set(found)]);
1032
+ }
1033
+ function nextSibling(selector) {
1034
+ return this.next(selector);
1035
+ }
1036
+ function prevSibling(selector) {
1037
+ return this.prev(selector);
1038
+ }
1039
+ function sibling(selector) {
1040
+ return this.next(selector);
1041
+ }
1042
+ function nextAll(selector) {
1043
+ const found = [];
1044
+ this.forEach((el) => {
1045
+ if (el instanceof Element) {
1046
+ let curr = el.nextElementSibling;
1047
+ while (curr) {
1048
+ if (!selector || curr.matches(selector)) {
1049
+ found.push(curr);
1050
+ }
1051
+ curr = curr.nextElementSibling;
1052
+ }
1053
+ }
1054
+ });
1055
+ const Construction = this.constructor;
1056
+ return new Construction([...new Set(found)]);
1057
+ }
1058
+ function prevAll(selector) {
1059
+ const found = [];
1060
+ this.forEach((el) => {
1061
+ if (el instanceof Element) {
1062
+ let curr = el.previousElementSibling;
1063
+ while (curr) {
1064
+ if (!selector || curr.matches(selector)) {
1065
+ found.push(curr);
1066
+ }
1067
+ curr = curr.previousElementSibling;
1068
+ }
1069
+ }
1070
+ });
1071
+ const Construction = this.constructor;
1072
+ return new Construction([...new Set(found)]);
1073
+ }
1074
+ function siblings(selector) {
1075
+ const found = [];
1076
+ this.forEach((el) => {
1077
+ if (el instanceof Element && el.parentElement) {
1078
+ const children2 = Array.from(el.parentElement.children);
1079
+ children2.forEach((child) => {
1080
+ if (child !== el) {
1081
+ if (!selector || child.matches(selector)) {
1082
+ found.push(child);
1083
+ }
1084
+ }
1085
+ });
1086
+ }
1087
+ });
1088
+ const Construction = this.constructor;
1089
+ return new Construction([...new Set(found)]);
1090
+ }
1091
+ function nextUntil(untilSelector, filter) {
1092
+ const found = [];
1093
+ this.forEach((el) => {
1094
+ if (el instanceof Element) {
1095
+ let curr = el.nextElementSibling;
1096
+ while (curr && !curr.matches(untilSelector)) {
1097
+ if (!filter || curr.matches(filter)) {
1098
+ found.push(curr);
1099
+ }
1100
+ curr = curr.nextElementSibling;
1101
+ }
1102
+ }
1103
+ });
1104
+ const Construction = this.constructor;
1105
+ return new Construction([...new Set(found)]);
1106
+ }
1107
+ function prevUntil(untilSelector, filter) {
1108
+ const found = [];
1109
+ this.forEach((el) => {
1110
+ if (el instanceof Element) {
1111
+ let curr = el.previousElementSibling;
1112
+ while (curr && !curr.matches(untilSelector)) {
1113
+ if (!filter || curr.matches(filter)) {
1114
+ found.push(curr);
1115
+ }
1116
+ curr = curr.previousElementSibling;
1117
+ }
1118
+ }
1119
+ });
1120
+ const Construction = this.constructor;
1121
+ return new Construction([...new Set(found)]);
1122
+ }
1123
+ function eq(index) {
1124
+ const len = this.length;
1125
+ const idx = index < 0 ? len + index : index;
1126
+ const el = this[idx];
1127
+ const Construction = this.constructor;
1128
+ return new Construction(el ? [el] : []);
1129
+ }
1130
+ function first() {
1131
+ return this.eq(0);
1132
+ }
1133
+ function last() {
1134
+ return this.eq(-1);
1135
+ }
1136
+ function filterBy(selectorOrFn) {
1137
+ const found = [];
1138
+ this.forEach((el, index) => {
1139
+ if (el instanceof Element) {
1140
+ if (typeof selectorOrFn === "string") {
1141
+ if (el.matches(selectorOrFn)) {
1142
+ found.push(el);
1143
+ }
1144
+ } else if (typeof selectorOrFn === "function") {
1145
+ if (selectorOrFn.call(el, index, el)) {
1146
+ found.push(el);
1147
+ }
1148
+ }
1149
+ }
1150
+ });
1151
+ const Construction = this.constructor;
1152
+ return new Construction(found);
1153
+ }
1154
+ function not(selectorOrFn) {
1155
+ const found = [];
1156
+ this.forEach((el, index) => {
1157
+ if (el instanceof Element) {
1158
+ if (typeof selectorOrFn === "string") {
1159
+ if (!el.matches(selectorOrFn)) {
1160
+ found.push(el);
1161
+ }
1162
+ } else if (typeof selectorOrFn === "function") {
1163
+ if (!selectorOrFn.call(el, index, el)) {
1164
+ found.push(el);
1165
+ }
1166
+ }
1167
+ }
1168
+ });
1169
+ const Construction = this.constructor;
1170
+ return new Construction(found);
1171
+ }
1172
+ var init_traversal = __esm({
1173
+ "src/modules/dom/traversal.ts"() {
1174
+ "use strict";
1175
+ /**
1176
+ * @file src/modules/dom/traversal.ts
1177
+ * @version 2.0.0
1178
+ * @since 2.0.0
1179
+ * @license GPL-3.0-or-later
1180
+ * @copyright Sven Minio 2026
1181
+ * @author Sven Minio <https://sven-minio.de>
1182
+ * @category DOM
1183
+ * @description
1184
+ * * πŸ‡¬πŸ‡§: Methods for navigating the DOM tree (find, parent, children, siblings).
1185
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Navigation im DOM-Baum (find, parent, children, siblings).
1186
+ * @requires ../../core
1187
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
1188
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
1189
+ */
1190
+ }
1191
+ });
1192
+
1193
+ // src/modules/dom/states.ts
1194
+ var states_exports = {};
1195
+ __export(states_exports, {
1196
+ checked: () => checked,
1197
+ disabled: () => disabled,
1198
+ selected: () => selected
1199
+ });
1200
+ function checked(state) {
1201
+ if (state === void 0) {
1202
+ const el = this[0];
1203
+ return el instanceof HTMLInputElement ? el.checked : false;
1204
+ }
1205
+ this.forEach((el) => {
1206
+ if (el instanceof HTMLInputElement)
1207
+ el.checked = state;
1208
+ });
1209
+ return this;
1210
+ }
1211
+ function selected(state) {
1212
+ if (state === void 0) {
1213
+ const el = this[0];
1214
+ return el instanceof HTMLOptionElement ? el.selected : false;
1215
+ }
1216
+ this.forEach((el) => {
1217
+ if (el instanceof HTMLOptionElement)
1218
+ el.selected = state;
1219
+ });
1220
+ return this;
1221
+ }
1222
+ function disabled(state) {
1223
+ if (state === void 0) {
1224
+ const el = this[0];
1225
+ return el instanceof HTMLElement && "disabled" in el ? el.disabled : false;
1226
+ }
1227
+ this.forEach((el) => {
1228
+ if (el instanceof HTMLElement && "disabled" in el) {
1229
+ el.disabled = state;
1230
+ if (state)
1231
+ el.classList.add("disabled");
1232
+ else
1233
+ el.classList.remove("disabled");
1234
+ }
1235
+ });
1236
+ return this;
1237
+ }
1238
+ var init_states = __esm({
1239
+ "src/modules/dom/states.ts"() {
1240
+ "use strict";
1241
+ /**
1242
+ * @file src/modules/dom/states.ts
1243
+ * @version 2.0.0
1244
+ * @since 2.0.0
1245
+ * @license GPL-3.0-or-later
1246
+ * @copyright Sven Minio 2026
1247
+ * @author Sven Minio <https://sven-minio.de>
1248
+ * @category DOM
1249
+ * @description
1250
+ * * πŸ‡¬πŸ‡§: Methods for checking element states (e.g., visibility, checked, disabled).
1251
+ * * πŸ‡©πŸ‡ͺ: Methoden zur PrΓΌfung von Element-ZustΓ€nden (z.B. Sichtbarkeit, checked, disabled).
1252
+ * @requires ../../core
1253
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
1254
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
1255
+ */
1256
+ }
1257
+ });
1258
+
1259
+ // src/modules/dom/index.ts
1260
+ var domMethods;
1261
+ var init_dom = __esm({
1262
+ "src/modules/dom/index.ts"() {
1263
+ "use strict";
1264
+ init_attributes();
1265
+ init_content();
1266
+ init_manipulation();
1267
+ init_traversal();
1268
+ init_states();
1269
+ /**
1270
+ * @file src/modules/dom/index.ts
1271
+ * @version 2.0.0
1272
+ * @since 2.0.0
1273
+ * @license GPL-3.0-or-later
1274
+ * @copyright Sven Minio 2026
1275
+ * @author Sven Minio <https://sven-minio.de>
1276
+ * @category DOM
1277
+ * @description
1278
+ * * πŸ‡¬πŸ‡§: Central entry point for DOM operations. Aggregates methods for attributes, content, manipulation, traversal, and states.
1279
+ * * πŸ‡©πŸ‡ͺ: Zentraler Einstiegspunkt fΓΌr DOM-Operationen. Aggregiert Methoden fΓΌr Attribute, Inhalt, Manipulation, Traversierung und Status.
1280
+ * @requires ./attributes
1281
+ * * πŸ‡¬πŸ‡§: Attribute and value manipulation.
1282
+ * * πŸ‡©πŸ‡ͺ: Attribut- und Wert-Manipulation.
1283
+ * @requires ./content
1284
+ * * πŸ‡¬πŸ‡§: Content handling (html, text).
1285
+ * * πŸ‡©πŸ‡ͺ: Inhalts-Steuerung (html, text).
1286
+ * @requires ./manipulation
1287
+ * * πŸ‡¬πŸ‡§: DOM manipulation (append, remove, etc.).
1288
+ * * πŸ‡©πŸ‡ͺ: DOM-Manipulation (append, remove, etc.).
1289
+ * @requires ./traversal
1290
+ * * πŸ‡¬πŸ‡§: Tree traversal (find, parent, children).
1291
+ * * πŸ‡©πŸ‡ͺ: Baum-Durchquerung (find, parent, children).
1292
+ * @requires ./states
1293
+ * * πŸ‡¬πŸ‡§: State checks (checked, disabled).
1294
+ * * πŸ‡©πŸ‡ͺ: Status-PrΓΌfungen (checked, disabled).
1295
+ */
1296
+ domMethods = {
1297
+ ...attributes_exports,
1298
+ ...content_exports,
1299
+ ...manipulation_exports,
1300
+ ...traversal_exports,
1301
+ ...states_exports
1302
+ };
1303
+ }
1304
+ });
1305
+
1306
+ // src/modules/effects/slide.ts
1307
+ var slide_exports = {};
1308
+ __export(slide_exports, {
1309
+ slideIn: () => slideIn,
1310
+ slideOut: () => slideOut,
1311
+ slideToggle: () => slideToggle
1312
+ });
1313
+ function slideIn(options = {}) {
1314
+ const { duration = 300 } = options;
1315
+ this.forEach((el) => {
1316
+ if (el instanceof HTMLElement) {
1317
+ el.style.willChange = "transform";
1318
+ el.style.transition = `transform ${duration}ms cubic-bezier(0.4, 0.0, 0.2, 1)`;
1319
+ requestAnimationFrame(() => {
1320
+ el.style.transform = "translateX(0%)";
1321
+ });
1322
+ el.setAttribute("data-slide-state", "open");
1323
+ }
1324
+ });
1325
+ return this;
1326
+ }
1327
+ function slideOut(options = {}) {
1328
+ const { direction = "left", duration = 300 } = options;
1329
+ const translateValue = direction === "left" ? "-100%" : "100%";
1330
+ this.forEach((el) => {
1331
+ if (el instanceof HTMLElement) {
1332
+ el.style.willChange = "transform";
1333
+ el.style.transition = `transform ${duration}ms cubic-bezier(0.4, 0.0, 0.2, 1)`;
1334
+ requestAnimationFrame(() => {
1335
+ el.style.transform = `translateX(${translateValue})`;
1336
+ });
1337
+ el.setAttribute("data-slide-state", "closed");
1338
+ }
1339
+ });
1340
+ return this;
1341
+ }
1342
+ function slideToggle(options = {}) {
1343
+ this.forEach((el) => {
1344
+ if (el instanceof HTMLElement) {
1345
+ const state = el.getAttribute("data-slide-state");
1346
+ const currentTransform = el.style.transform;
1347
+ if (state === "open" || currentTransform === "translateX(0%)") {
1348
+ const wrapper = new this.constructor(el);
1349
+ wrapper.slideOut(options);
1350
+ } else {
1351
+ const wrapper = new this.constructor(el);
1352
+ wrapper.slideIn(options);
1353
+ }
1354
+ }
1355
+ });
1356
+ return this;
1357
+ }
1358
+ var init_slide = __esm({
1359
+ "src/modules/effects/slide.ts"() {
1360
+ "use strict";
1361
+ /**
1362
+ * @file src/modules/effects/slide.ts
1363
+ * @version 2.0.0
1364
+ * @since 2.0.0
1365
+ * @license GPL-3.0-or-later
1366
+ * @copyright Sven Minio 2026
1367
+ * @author Sven Minio <https://sven-minio.de>
1368
+ * @category Effects
1369
+ * @description
1370
+ * * πŸ‡¬πŸ‡§: Methods for horizontal sliding effects (slideIn, slideOut, slideToggle).
1371
+ * * πŸ‡©πŸ‡ͺ: Methoden fΓΌr horizontale Slide-Effekte (slideIn, slideOut, slideToggle).
1372
+ * @requires ../../core
1373
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
1374
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
1375
+ */
1376
+ }
1377
+ });
1378
+
1379
+ // src/modules/effects/vertical.ts
1380
+ var vertical_exports = {};
1381
+ __export(vertical_exports, {
1382
+ slideDown: () => slideDown,
1383
+ slideToggleBox: () => slideToggleBox,
1384
+ slideUp: () => slideUp
1385
+ });
1386
+ function slideDown(options = {}) {
1387
+ const { duration = 300, displayType = "block" } = options;
1388
+ this.forEach((el) => {
1389
+ if (el instanceof HTMLElement) {
1390
+ if (window.getComputedStyle(el).display !== "none") return;
1391
+ el.style.display = displayType;
1392
+ const height = el.scrollHeight;
1393
+ el.style.height = "0px";
1394
+ el.style.overflow = "hidden";
1395
+ el.style.transition = `height ${duration}ms ease-in-out`;
1396
+ void el.offsetHeight;
1397
+ el.style.height = height + "px";
1398
+ setTimeout(() => {
1399
+ el.style.height = "auto";
1400
+ el.style.overflow = "visible";
1401
+ el.style.transition = "";
1402
+ }, duration);
1403
+ }
1404
+ });
1405
+ return this;
1406
+ }
1407
+ function slideUp(options = {}) {
1408
+ const { duration = 300 } = options;
1409
+ this.forEach((el) => {
1410
+ if (el instanceof HTMLElement) {
1411
+ el.style.height = el.scrollHeight + "px";
1412
+ el.style.overflow = "hidden";
1413
+ el.style.transition = `height ${duration}ms ease-in-out`;
1414
+ void el.offsetHeight;
1415
+ el.style.height = "0px";
1416
+ setTimeout(() => {
1417
+ el.style.display = "none";
1418
+ el.style.height = "";
1419
+ el.style.overflow = "";
1420
+ el.style.transition = "";
1421
+ }, duration);
1422
+ }
1423
+ });
1424
+ return this;
1425
+ }
1426
+ function slideToggleBox(options = {}) {
1427
+ this.forEach((el) => {
1428
+ if (el instanceof HTMLElement) {
1429
+ const display = window.getComputedStyle(el).display;
1430
+ const wrapper = new this.constructor(el);
1431
+ if (display === "none") {
1432
+ wrapper.slideDown(options);
1433
+ } else {
1434
+ wrapper.slideUp(options);
1435
+ }
1436
+ }
1437
+ });
1438
+ return this;
1439
+ }
1440
+ var init_vertical = __esm({
1441
+ "src/modules/effects/vertical.ts"() {
1442
+ "use strict";
1443
+ /**
1444
+ * @file src/modules/effects/vertical.ts
1445
+ * @version 2.0.0
1446
+ * @since 2.0.0
1447
+ * @license GPL-3.0-or-later
1448
+ * @copyright Sven Minio 2026
1449
+ * @author Sven Minio <https://sven-minio.de>
1450
+ * @category Effects
1451
+ * @description
1452
+ * * πŸ‡¬πŸ‡§: Methods for vertical sliding effects (slideDown, slideUp, slideToggle).
1453
+ * * πŸ‡©πŸ‡ͺ: Methoden fΓΌr vertikale Slide-Effekte (slideDown, slideUp, slideToggle).
1454
+ * @requires ../../core
1455
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
1456
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
1457
+ */
1458
+ }
1459
+ });
1460
+
1461
+ // src/modules/effects/fade.ts
1462
+ var fade_exports = {};
1463
+ __export(fade_exports, {
1464
+ fadeIn: () => fadeIn,
1465
+ fadeOut: () => fadeOut,
1466
+ fadeToggle: () => fadeToggle
1467
+ });
1468
+ function fadeIn(options = {}) {
1469
+ const { duration = 300, displayType = "block" } = options;
1470
+ this.forEach((el) => {
1471
+ if (el instanceof HTMLElement) {
1472
+ el.style.opacity = "0";
1473
+ el.style.display = displayType;
1474
+ el.style.transition = `opacity ${duration}ms ease-in-out`;
1475
+ void el.offsetHeight;
1476
+ requestAnimationFrame(() => {
1477
+ el.style.opacity = "1";
1478
+ });
1479
+ setTimeout(() => {
1480
+ el.style.transition = "";
1481
+ }, duration);
1482
+ }
1483
+ });
1484
+ return this;
1485
+ }
1486
+ function fadeOut(options = {}) {
1487
+ const { duration = 300 } = options;
1488
+ this.forEach((el) => {
1489
+ if (el instanceof HTMLElement) {
1490
+ el.style.opacity = "1";
1491
+ el.style.transition = `opacity ${duration}ms ease-in-out`;
1492
+ void el.offsetHeight;
1493
+ requestAnimationFrame(() => {
1494
+ el.style.opacity = "0";
1495
+ });
1496
+ setTimeout(() => {
1497
+ el.style.display = "none";
1498
+ el.style.transition = "";
1499
+ }, duration);
1500
+ }
1501
+ });
1502
+ return this;
1503
+ }
1504
+ function fadeToggle(options = {}) {
1505
+ this.forEach((el) => {
1506
+ if (el instanceof HTMLElement) {
1507
+ const display = window.getComputedStyle(el).display;
1508
+ const wrapper = new this.constructor(el);
1509
+ if (display === "none") {
1510
+ wrapper.fadeIn(options);
1511
+ } else {
1512
+ wrapper.fadeOut(options);
1513
+ }
1514
+ }
1515
+ });
1516
+ return this;
1517
+ }
1518
+ var init_fade = __esm({
1519
+ "src/modules/effects/fade.ts"() {
1520
+ "use strict";
1521
+ /**
1522
+ * @file src/modules/effects/fade.ts
1523
+ * @version 2.0.0
1524
+ * @since 2.0.0
1525
+ * @license GPL-3.0-or-later
1526
+ * @copyright Sven Minio 2026
1527
+ * @author Sven Minio <https://sven-minio.de>
1528
+ * @category Effects
1529
+ * @description
1530
+ * * πŸ‡¬πŸ‡§: Methods for fading elements in and out (fadeIn, fadeOut, fadeToggle).
1531
+ * * πŸ‡©πŸ‡ͺ: Methoden zum Ein- und Ausblenden von Elementen (fadeIn, fadeOut, fadeToggle).
1532
+ * @requires ../../core
1533
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
1534
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
1535
+ */
1536
+ }
1537
+ });
1538
+
1539
+ // src/modules/effects/index.ts
1540
+ var effectMethods;
1541
+ var init_effects = __esm({
1542
+ "src/modules/effects/index.ts"() {
1543
+ "use strict";
1544
+ init_slide();
1545
+ init_vertical();
1546
+ init_fade();
1547
+ /**
1548
+ * @file src/modules/effects/index.ts
1549
+ * @version 2.0.0
1550
+ * @since 2.0.0
1551
+ * @license GPL-3.0-or-later
1552
+ * @copyright Sven Minio 2026
1553
+ * @author Sven Minio <https://sven-minio.de>
1554
+ * @category Effects
1555
+ * @description
1556
+ * * πŸ‡¬πŸ‡§: Central entry point for visual effects. Aggregates slide, fade, and vertical animation modules.
1557
+ * * πŸ‡©πŸ‡ͺ: Zentraler Einstiegspunkt fΓΌr visuelle Effekte. Aggregiert Module fΓΌr Slide-, Fade- und vertikale Animationen.
1558
+ * @requires ./slide
1559
+ * * πŸ‡¬πŸ‡§: Horizontal slide effects (slideIn, slideOut).
1560
+ * * πŸ‡©πŸ‡ͺ: Horizontale Slide-Effekte (slideIn, slideOut).
1561
+ * @requires ./vertical
1562
+ * * πŸ‡¬πŸ‡§: Vertical slide effects / Accordion (slideDown, slideUp).
1563
+ * * πŸ‡©πŸ‡ͺ: Vertikale Slide-Effekte / Akkordeon (slideDown, slideUp).
1564
+ * @requires ./fade
1565
+ * * πŸ‡¬πŸ‡§: Opacity fade effects (fadeIn, fadeOut).
1566
+ * * πŸ‡©πŸ‡ͺ: OpazitΓ€ts-Fade-Effekte (fadeIn, fadeOut).
1567
+ */
1568
+ effectMethods = {
1569
+ ...slide_exports,
1570
+ ...vertical_exports,
1571
+ ...fade_exports
1572
+ };
1573
+ }
1574
+ });
1575
+
1576
+ // src/utils.ts
1577
+ var init_utils = __esm({
1578
+ "src/utils.ts"() {
1579
+ "use strict";
1580
+ /**
1581
+ * @file src/utils.ts
1582
+ * @version 2.0.0
1583
+ * @since 2.0.0
1584
+ * @license GPL-3.0-or-later
1585
+ * @copyright Sven Minio 2026
1586
+ * @author Sven Minio <https://sven-minio.de>
1587
+ * @category Utilities
1588
+ * @description
1589
+ * * πŸ‡¬πŸ‡§: General utility functions and helpers (e.g., debounce, throttle, type checks).
1590
+ * * πŸ‡©πŸ‡ͺ: Allgemeine Hilfsfunktionen und Helfer (z.B. debounce, throttle, Typ-PrΓΌfungen).
1591
+ */
1592
+ }
1593
+ });
1594
+
1595
+ // src/modules/http/get.ts
1596
+ var get_exports = {};
1597
+ __export(get_exports, {
1598
+ get: () => get,
1599
+ getText: () => getText
1600
+ });
1601
+ async function get(url) {
1602
+ const response = await fetch(url, {
1603
+ signal: AbortSignal.timeout(5e3)
1604
+ });
1605
+ if (!response.ok) {
1606
+ throw new Error(`HTTP Error: ${response.status}`);
1607
+ }
1608
+ return await response.json();
1609
+ }
1610
+ async function getText(url) {
1611
+ const response = await fetch(url);
1612
+ if (!response.ok) {
1613
+ throw new Error(`HTTP Error: ${response.status}`);
1614
+ }
1615
+ return await response.text();
1616
+ }
1617
+ var init_get = __esm({
1618
+ "src/modules/http/get.ts"() {
1619
+ "use strict";
1620
+ /**
1621
+ * @file src/modules/http/get.ts
1622
+ * @version 2.0.0
1623
+ * @since 2.0.0
1624
+ * @license GPL-3.0-or-later
1625
+ * @copyright Sven Minio 2026
1626
+ * @author Sven Minio <https://sven-minio.de>
1627
+ * @category HTTP
1628
+ * @description
1629
+ * * πŸ‡¬πŸ‡§: Abstraction for HTTP GET requests.
1630
+ * * πŸ‡©πŸ‡ͺ: Abstraktion fΓΌr HTTP GET-Anfragen.
1631
+ * @requires ../../core
1632
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
1633
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
1634
+ */
1635
+ }
1636
+ });
1637
+
1638
+ // src/modules/http/post.ts
1639
+ var post_exports = {};
1640
+ __export(post_exports, {
1641
+ post: () => post
1642
+ });
1643
+ async function post(url, body = {}) {
1644
+ const response = await fetch(url, {
1645
+ method: "POST",
1646
+ headers: { "Content-Type": "application/json" },
1647
+ body: JSON.stringify(body)
1648
+ });
1649
+ if (response.status === 204) {
1650
+ return {};
1651
+ }
1652
+ if (!response.ok) {
1653
+ throw new Error(`HTTP Error: ${response.status}`);
1654
+ }
1655
+ return await response.json();
1656
+ }
1657
+ var init_post = __esm({
1658
+ "src/modules/http/post.ts"() {
1659
+ "use strict";
1660
+ /**
1661
+ * @file src/modules/http/post.ts
1662
+ * @version 2.0.0
1663
+ * @since 2.0.0
1664
+ * @license GPL-3.0-or-later
1665
+ * @copyright Sven Minio 2026
1666
+ * @author Sven Minio <https://sven-minio.de>
1667
+ * @category HTTP
1668
+ * * @description
1669
+ * * πŸ‡¬πŸ‡§: Abstraction for HTTP POST requests.
1670
+ * * πŸ‡©πŸ‡ͺ: Abstraktion fΓΌr HTTP POST-Anfragen.
1671
+ * @requires ../../core
1672
+ * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
1673
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
1674
+ */
1675
+ }
1676
+ });
1677
+
1678
+ // src/modules/http/index.ts
1679
+ var http;
1680
+ var init_http = __esm({
1681
+ "src/modules/http/index.ts"() {
1682
+ "use strict";
1683
+ init_get();
1684
+ init_post();
1685
+ /**
1686
+ * @file src/modules/http/index.ts
1687
+ * @version 2.0.0
1688
+ * @since 2.0.0
1689
+ * @license GPL-3.0-or-later
1690
+ * @copyright Sven Minio 2026
1691
+ * @author Sven Minio <https://sven-minio.de>
1692
+ * @category HTTP
1693
+ * @description
1694
+ * * πŸ‡¬πŸ‡§: Central entry point for HTTP requests. Aggregates GET and POST methods.
1695
+ * * πŸ‡©πŸ‡ͺ: Zentraler Einstiegspunkt fΓΌr HTTP-Anfragen. Aggregiert GET- und POST-Methoden.
1696
+ * @requires ./get
1697
+ * * πŸ‡¬πŸ‡§: HTTP GET methods (get, getText).
1698
+ * * πŸ‡©πŸ‡ͺ: HTTP GET-Methoden (get, getText).
1699
+ * @requires ./post
1700
+ * * πŸ‡¬πŸ‡§: HTTP POST methods.
1701
+ * * πŸ‡©πŸ‡ͺ: HTTP POST-Methoden.
1702
+ */
1703
+ http = {
1704
+ ...get_exports,
1705
+ ...post_exports
1706
+ };
1707
+ }
1708
+ });
1709
+
1710
+ // src/modules/data/types.ts
1711
+ var init_types = __esm({
1712
+ "src/modules/data/types.ts"() {
1713
+ "use strict";
1714
+ /**
1715
+ * @file src/modules/data/types.ts
1716
+ * @version 2.0.0
1717
+ * @since 2.0.0
1718
+ * @license GPL-3.0-or-later
1719
+ * @copyright Sven Minio 2026
1720
+ * @author Sven Minio <https://sven-minio.de>
1721
+ * @category Data
1722
+ * @description
1723
+ * * πŸ‡¬πŸ‡§: Type definitions and validation helpers for data structures.
1724
+ * * πŸ‡©πŸ‡ͺ: Typ-Definitionen und Validierungs-Hilfsmittel fΓΌr Datenstrukturen.
1725
+ */
1726
+ }
1727
+ });
1728
+
1729
+ // src/modules/data/arrays.ts
1730
+ var init_arrays = __esm({
1731
+ "src/modules/data/arrays.ts"() {
1732
+ "use strict";
1733
+ init_types();
1734
+ /**
1735
+ * @file src/modules/data/arrays.ts
1736
+ * @version 2.0.0
1737
+ * @since 2.0.0
1738
+ * @license GPL-3.0-or-later
1739
+ * @copyright Sven Minio 2026
1740
+ * @author Sven Minio <https://sven-minio.de>
1741
+ * @category Data
1742
+ * @description
1743
+ * * πŸ‡¬πŸ‡§: Utility functions for array manipulation and data processing.
1744
+ * * πŸ‡©πŸ‡ͺ: Hilfsfunktionen fΓΌr Array-Manipulation und Datenverarbeitung.
1745
+ * @requires ./types
1746
+ * * πŸ‡¬πŸ‡§: Depends on match logic and types.
1747
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von Match-Logik und Typen ab.
1748
+ */
1749
+ }
1750
+ });
1751
+
1752
+ // src/modules/data/objects.ts
1753
+ var init_objects = __esm({
1754
+ "src/modules/data/objects.ts"() {
1755
+ "use strict";
1756
+ init_types();
1757
+ /**
1758
+ * @file src/modules/data/objects.ts
1759
+ * @version 2.0.0
1760
+ * @since 2.0.0
1761
+ * @license GPL-3.0-or-later
1762
+ * @copyright Sven Minio 2026
1763
+ * @author Sven Minio <https://sven-minio.de>
1764
+ * @category Data
1765
+ * @description
1766
+ * * πŸ‡¬πŸ‡§: Utility functions for object manipulation (e.g., deep merging, extension).
1767
+ * * πŸ‡©πŸ‡ͺ: Hilfsfunktionen fΓΌr Objekt-Manipulation (z.B. Deep Merge, Erweiterung).
1768
+ * @requires ./types
1769
+ * * πŸ‡¬πŸ‡§: Depends on match logic and types.
1770
+ * * πŸ‡©πŸ‡ͺ: HΓ€ngt von Match-Logik und Typen ab.
1771
+ */
1772
+ }
1773
+ });
1774
+
1775
+ // src/modules/data/index.ts
1776
+ var init_data = __esm({
1777
+ "src/modules/data/index.ts"() {
1778
+ "use strict";
1779
+ init_arrays();
1780
+ init_objects();
1781
+ /**
1782
+ * @file src/modules/data/index.ts
1783
+ * @version 2.0.0
1784
+ * @since 2.0.0
1785
+ * * @license GPL-3.0-or-later
1786
+ * @copyright Sven Minio 2026
1787
+ * @author Sven Minio <https://sven-minio.de>
1788
+ * @category Data
1789
+ * @description
1790
+ * * πŸ‡¬πŸ‡§: Central entry point for data manipulation modules. Aggregates array and object utilities.
1791
+ * * πŸ‡©πŸ‡ͺ: Zentraler Einstiegspunkt fΓΌr Datenmanipulations-Module. Aggregiert Array- und Objekt-Hilfsmethoden.
1792
+ * @requires ./arrays
1793
+ * * πŸ‡¬πŸ‡§: Array manipulation methods.
1794
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Array-Manipulation.
1795
+ * @requires ./objects
1796
+ * * πŸ‡¬πŸ‡§: Object manipulation methods.
1797
+ * * πŸ‡©πŸ‡ͺ: Methoden zur Objekt-Manipulation.
1798
+ */
1799
+ }
1800
+ });
1801
+
1802
+ // src/index.ts
1803
+ var init, $, jB, _jB, __jB, _jBase, __jBase, jBase2;
1804
+ var init_index = __esm({
1805
+ "src/index.ts"() {
1806
+ "use strict";
1807
+ init_core();
1808
+ init_css();
1809
+ init_events();
1810
+ init_dom();
1811
+ init_effects();
1812
+ init_utils();
1813
+ init_utils();
1814
+ init_http();
1815
+ init_data();
1816
+ /**
1817
+ * @file src/index.ts
1818
+ * @version 2.0.0
1819
+ * @since 2.0.0
1820
+ * @license GPL-3.0-or-later
1821
+ * @copyright Sven Minio 2026
1822
+ * @author Sven Minio <https://sven-minio.de>
1823
+ * @category Entry Point
1824
+ * @description
1825
+ * * πŸ‡¬πŸ‡§: Main library entry point. Aggregates Core, Types, Utils, and all functional modules into a single export.
1826
+ * * πŸ‡©πŸ‡ͺ: Haupt-Einstiegspunkt der Bibliothek. Aggregiert Core, Types, Utils und alle funktionalen Module in einen einzigen Export.
1827
+ * @requires ./core
1828
+ * * πŸ‡¬πŸ‡§: Core class logic and inheritance.
1829
+ * * πŸ‡©πŸ‡ͺ: Kern-Klassenlogik und Vererbung.
1830
+ * @requires ./types
1831
+ * * πŸ‡¬πŸ‡§: TypeScript type definitions and interfaces.
1832
+ * * πŸ‡©πŸ‡ͺ: TypeScript Typ-Definitionen und Interfaces.
1833
+ * @requires ./utils
1834
+ * * πŸ‡¬πŸ‡§: Helper functions (throttle, debounce).
1835
+ * * πŸ‡©πŸ‡ͺ: Hilfsfunktionen (throttle, debounce).
1836
+ * @requires ./modules/css
1837
+ * * πŸ‡¬πŸ‡§: Style manipulation methods.
1838
+ * * πŸ‡©πŸ‡ͺ: Style-Manipulations-Methoden.
1839
+ * @requires ./modules/events
1840
+ * * πŸ‡¬πŸ‡§: Event handling logic.
1841
+ * * πŸ‡©πŸ‡ͺ: Event-Handling-Logik.
1842
+ * @requires ./modules/dom
1843
+ * * πŸ‡¬πŸ‡§: DOM traversal and manipulation.
1844
+ * * πŸ‡©πŸ‡ͺ: DOM-Traversierung und -Manipulation.
1845
+ * @requires ./modules/effects
1846
+ * * πŸ‡¬πŸ‡§: Visual effects and animations.
1847
+ * * πŸ‡©πŸ‡ͺ: Visuelle Effekte und Animationen.
1848
+ * @requires ./modules/http
1849
+ * * πŸ‡¬πŸ‡§: HTTP client for AJAX requests.
1850
+ * * πŸ‡©πŸ‡ͺ: HTTP-Client fΓΌr AJAX-Anfragen.
1851
+ * @requires ./modules/data
1852
+ * * πŸ‡¬πŸ‡§: Data structure utilities.
1853
+ * * πŸ‡©πŸ‡ͺ: Datenstruktur-Utilities.
1854
+ */
1855
+ Object.assign(jBase.prototype, cssMethods);
1856
+ Object.assign(jBase.prototype, eventMethods);
1857
+ Object.assign(jBase.prototype, domMethods);
1858
+ Object.assign(jBase.prototype, effectMethods);
1859
+ init = (selector) => new jBase(selector);
1860
+ $ = init;
1861
+ jB = init;
1862
+ _jB = init;
1863
+ __jB = init;
1864
+ _jBase = init;
1865
+ __jBase = init;
1866
+ jBase2 = init;
1867
+ }
1868
+ });
1869
+
1870
+ // src/browser.ts
1871
+ var require_browser = __commonJS({
1872
+ "src/browser.ts"() {
1873
+ init_index();
1874
+ /**
1875
+ * @file src/browser.ts
1876
+ * @version 2.0.0
1877
+ * @since 2.0.0
1878
+ * @license GPL-3.0-or-later
1879
+ * @copyright Sven Minio 2026
1880
+ * @author Sven Minio <https://sven-minio.de>
1881
+ * @category Browser
1882
+ * @description
1883
+ * * πŸ‡¬πŸ‡§: Browser Entry Point. Attaches the jBase library and utilities to the global window object so they can be accessed via `$` or `jBase` in inline scripts.
1884
+ * * πŸ‡©πŸ‡ͺ: Browser-Einstiegspunkt. HΓ€ngt die jBase-Bibliothek und Utilities an das globale Window-Objekt an, damit sie ΓΌber `$` oder `jBase` in Inline-Skripten verfΓΌgbar sind.
1885
+ */
1886
+ window.$ = $;
1887
+ window.jBase = jBase2;
1888
+ window.jB = jB;
1889
+ window._jB = _jB;
1890
+ window.__jB = __jB;
1891
+ window._jBase = _jBase;
1892
+ window.__jBase = __jBase;
1893
+ window.http = http;
1894
+ console.log("jBase initialized and ready!");
1895
+ }
1896
+ });
1897
+ require_browser();
1898
+ })();