@k37z3r/jbase 2.0.1 β†’ 2.0.3

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 (167) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +59 -43
  3. package/dist/browser.d.ts +5 -6
  4. package/dist/browser.d.ts.map +1 -1
  5. package/dist/core.d.ts +9 -14
  6. package/dist/core.d.ts.map +1 -1
  7. package/dist/index.cjs +577 -452
  8. package/dist/index.cjs.map +7 -0
  9. package/dist/index.d.ts +304 -603
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.mjs +575 -452
  12. package/dist/index.mjs.map +7 -0
  13. package/dist/jbase.browser.js +338 -281
  14. package/dist/jbase.browser.js.map +7 -0
  15. package/dist/jbase.min.js +3 -2
  16. package/dist/jbase.min.js.map +7 -0
  17. package/dist/modules/css/classes.d.ts +15 -29
  18. package/dist/modules/css/classes.d.ts.map +1 -1
  19. package/dist/modules/css/index.d.ts +5 -9
  20. package/dist/modules/css/index.d.ts.map +1 -1
  21. package/dist/modules/css/styles.d.ts +7 -13
  22. package/dist/modules/css/styles.d.ts.map +1 -1
  23. package/dist/modules/data/arrays.d.ts +96 -64
  24. package/dist/modules/data/arrays.d.ts.map +1 -1
  25. package/dist/modules/data/index.d.ts +5 -9
  26. package/dist/modules/data/index.d.ts.map +1 -1
  27. package/dist/modules/data/objects.d.ts +86 -54
  28. package/dist/modules/data/objects.d.ts.map +1 -1
  29. package/dist/modules/data/types.d.ts +3 -22
  30. package/dist/modules/data/types.d.ts.map +1 -1
  31. package/dist/modules/dom/attributes.d.ts +10 -19
  32. package/dist/modules/dom/attributes.d.ts.map +1 -1
  33. package/dist/modules/dom/content.d.ts +9 -17
  34. package/dist/modules/dom/content.d.ts.map +1 -1
  35. package/dist/modules/dom/index.d.ts +8 -15
  36. package/dist/modules/dom/index.d.ts.map +1 -1
  37. package/dist/modules/dom/manipulation.d.ts +41 -81
  38. package/dist/modules/dom/manipulation.d.ts.map +1 -1
  39. package/dist/modules/dom/states.d.ts +12 -23
  40. package/dist/modules/dom/states.d.ts.map +1 -1
  41. package/dist/modules/dom/traversal.d.ts +64 -127
  42. package/dist/modules/dom/traversal.d.ts.map +1 -1
  43. package/dist/modules/effects/fade.d.ts +13 -31
  44. package/dist/modules/effects/fade.d.ts.map +1 -1
  45. package/dist/modules/effects/index.d.ts +15 -23
  46. package/dist/modules/effects/index.d.ts.map +1 -1
  47. package/dist/modules/effects/slide.d.ts +13 -31
  48. package/dist/modules/effects/slide.d.ts.map +1 -1
  49. package/dist/modules/effects/types.d.ts +33 -0
  50. package/dist/modules/effects/types.d.ts.map +1 -0
  51. package/dist/modules/effects/vertical.d.ts +13 -31
  52. package/dist/modules/effects/vertical.d.ts.map +1 -1
  53. package/dist/modules/events/binding.d.ts +11 -21
  54. package/dist/modules/events/binding.d.ts.map +1 -1
  55. package/dist/modules/events/form.d.ts +18 -35
  56. package/dist/modules/events/form.d.ts.map +1 -1
  57. package/dist/modules/events/index.d.ts +9 -17
  58. package/dist/modules/events/index.d.ts.map +1 -1
  59. package/dist/modules/events/keyboard.d.ts +16 -31
  60. package/dist/modules/events/keyboard.d.ts.map +1 -1
  61. package/dist/modules/events/lifecycle.d.ts +6 -11
  62. package/dist/modules/events/lifecycle.d.ts.map +1 -1
  63. package/dist/modules/events/mouse.d.ts +30 -59
  64. package/dist/modules/events/mouse.d.ts.map +1 -1
  65. package/dist/modules/events/touch.d.ts +15 -29
  66. package/dist/modules/events/touch.d.ts.map +1 -1
  67. package/dist/modules/http/get.d.ts +18 -25
  68. package/dist/modules/http/get.d.ts.map +1 -1
  69. package/dist/modules/http/index.d.ts +11 -15
  70. package/dist/modules/http/index.d.ts.map +1 -1
  71. package/dist/modules/http/post.d.ts +13 -19
  72. package/dist/modules/http/post.d.ts.map +1 -1
  73. package/dist/server.d.ts +15 -0
  74. package/dist/server.d.ts.map +1 -0
  75. package/dist/server.js +2246 -0
  76. package/dist/server.js.map +7 -0
  77. package/dist/types.d.ts +11 -21
  78. package/dist/types.d.ts.map +1 -1
  79. package/dist/utils.d.ts +20 -23
  80. package/dist/utils.d.ts.map +1 -1
  81. package/package.json +14 -4
  82. package/wiki/CSS-Classes-&-Styles.md +128 -0
  83. package/wiki/DATA-Utilities-(Arrays).md +332 -0
  84. package/wiki/DATA-Utilities-(Objects).md +263 -0
  85. package/wiki/DOM-Attributes.md +56 -0
  86. package/wiki/DOM-Content.md +48 -0
  87. package/wiki/DOM-Manipulation.md +272 -0
  88. package/wiki/DOM-States.md +73 -0
  89. package/wiki/DOM-Traversal.md +529 -0
  90. package/wiki/EFFECTS-Fade.md +76 -0
  91. package/wiki/EFFECTS-Slide-(horizontal).md +70 -0
  92. package/wiki/EFFECTS-Slide-(vertical).md +75 -0
  93. package/wiki/EVENTS-Bindings.md +55 -0
  94. package/wiki/EVENTS-Form.md +122 -0
  95. package/wiki/EVENTS-Keyboard.md +98 -0
  96. package/wiki/EVENTS-Lifecycle.md +25 -0
  97. package/wiki/EVENTS-Mouse.md +218 -0
  98. package/wiki/EVENTS-Touch.md +98 -0
  99. package/wiki/HTTP-Requests.md +93 -0
  100. package/wiki/Home.md +118 -0
  101. package/wiki/Installation.md +44 -0
  102. package/wiki/Quick-Start.md +139 -0
  103. package/dist/browser.js +0 -29
  104. package/dist/browser.js.map +0 -1
  105. package/dist/core.js +0 -78
  106. package/dist/core.js.map +0 -1
  107. package/dist/index.js +0 -100
  108. package/dist/index.js.map +0 -1
  109. package/dist/jbase.js +0 -1898
  110. package/dist/modules/css/classes.js +0 -88
  111. package/dist/modules/css/classes.js.map +0 -1
  112. package/dist/modules/css/index.js +0 -33
  113. package/dist/modules/css/index.js.map +0 -1
  114. package/dist/modules/css/styles.js +0 -49
  115. package/dist/modules/css/styles.js.map +0 -1
  116. package/dist/modules/data/arrays.js +0 -177
  117. package/dist/modules/data/arrays.js.map +0 -1
  118. package/dist/modules/data/index.js +0 -33
  119. package/dist/modules/data/index.js.map +0 -1
  120. package/dist/modules/data/objects.js +0 -168
  121. package/dist/modules/data/objects.js.map +0 -1
  122. package/dist/modules/data/types.js +0 -43
  123. package/dist/modules/data/types.js.map +0 -1
  124. package/dist/modules/dom/attributes.js +0 -69
  125. package/dist/modules/dom/attributes.js.map +0 -1
  126. package/dist/modules/dom/content.js +0 -63
  127. package/dist/modules/dom/content.js.map +0 -1
  128. package/dist/modules/dom/index.js +0 -48
  129. package/dist/modules/dom/index.js.map +0 -1
  130. package/dist/modules/dom/manipulation.js +0 -343
  131. package/dist/modules/dom/manipulation.js.map +0 -1
  132. package/dist/modules/dom/states.js +0 -89
  133. package/dist/modules/dom/states.js.map +0 -1
  134. package/dist/modules/dom/traversal.js +0 -527
  135. package/dist/modules/dom/traversal.js.map +0 -1
  136. package/dist/modules/effects/fade.js +0 -104
  137. package/dist/modules/effects/fade.js.map +0 -1
  138. package/dist/modules/effects/index.js +0 -38
  139. package/dist/modules/effects/index.js.map +0 -1
  140. package/dist/modules/effects/slide.js +0 -103
  141. package/dist/modules/effects/slide.js.map +0 -1
  142. package/dist/modules/effects/vertical.js +0 -118
  143. package/dist/modules/effects/vertical.js.map +0 -1
  144. package/dist/modules/events/binding.js +0 -60
  145. package/dist/modules/events/binding.js.map +0 -1
  146. package/dist/modules/events/form.js +0 -106
  147. package/dist/modules/events/form.js.map +0 -1
  148. package/dist/modules/events/index.js +0 -53
  149. package/dist/modules/events/index.js.map +0 -1
  150. package/dist/modules/events/keyboard.js +0 -83
  151. package/dist/modules/events/keyboard.js.map +0 -1
  152. package/dist/modules/events/lifecycle.js +0 -40
  153. package/dist/modules/events/lifecycle.js.map +0 -1
  154. package/dist/modules/events/mouse.js +0 -172
  155. package/dist/modules/events/mouse.js.map +0 -1
  156. package/dist/modules/events/touch.js +0 -74
  157. package/dist/modules/events/touch.js.map +0 -1
  158. package/dist/modules/http/get.js +0 -65
  159. package/dist/modules/http/get.js.map +0 -1
  160. package/dist/modules/http/index.js +0 -42
  161. package/dist/modules/http/index.js.map +0 -1
  162. package/dist/modules/http/post.js +0 -54
  163. package/dist/modules/http/post.js.map +0 -1
  164. package/dist/types.js +0 -15
  165. package/dist/types.js.map +0 -1
  166. package/dist/utils.js +0 -71
  167. package/dist/utils.js.map +0 -1
@@ -1,65 +1,50 @@
1
1
  /**
2
2
  * @file src/modules/events/keyboard.ts
3
- * @version 2.0.0
3
+ * @version 2.0.2
4
4
  * @since 2.0.0
5
5
  * @license GPL-3.0-or-later
6
6
  * @copyright Sven Minio 2026
7
7
  * @author Sven Minio <https://sven-minio.de>
8
8
  * @category Events
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Methods for handling keyboard events (keydown, keyup, keypress).
11
- * * πŸ‡©πŸ‡ͺ: Methoden zur Behandlung von Tastatur-Events (keydown, keyup, keypress).
10
+ * * Methods for handling keyboard events (keydown, keyup, keypress).
12
11
  * @requires ../../core
13
- * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
14
- * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
12
+ * * Depends on the core jBase class for type definitions.
15
13
  */
16
14
  import { jBase } from '../../core';
17
15
  /**
18
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'keydown' event. Fires immediately when a key is pressed (repeats if held).
19
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'keydown'-Event. Feuert sofort, wenn eine Taste gedrΓΌckt wird (und wiederholt, wenn gehalten).
16
+ * * Binds an event handler to the 'keydown' event. Fires immediately when a key is pressed (repeats if held).
20
17
  * @param handler
21
- * * πŸ‡¬πŸ‡§: The callback function receiving the KeyboardEvent.
22
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion, die das KeyboardEvent empfΓ€ngt.
18
+ * * The callback function receiving the KeyboardEvent.
23
19
  * @returns
24
- * * πŸ‡¬πŸ‡§: The current jBase instance for method chaining.
25
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
20
+ * * The current jBase instance for method chaining.
26
21
  */
27
22
  export declare function keydown(this: jBase, handler: (event: KeyboardEvent) => void): jBase;
28
23
  /**
29
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'keyup' event. Fires when a key is released.
30
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'keyup'-Event. Feuert, wenn eine Taste losgelassen wird.
24
+ * * Binds an event handler to the 'keyup' event. Fires when a key is released.
31
25
  * @param handler
32
- * * πŸ‡¬πŸ‡§: The callback function receiving the KeyboardEvent.
33
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion, die das KeyboardEvent empfΓ€ngt.
26
+ * * The callback function receiving the KeyboardEvent.
34
27
  * @returns
35
- * * πŸ‡¬πŸ‡§: The current jBase instance for method chaining.
36
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
28
+ * * The current jBase instance for method chaining.
37
29
  */
38
30
  export declare function keyup(this: jBase, handler: (event: KeyboardEvent) => void): jBase;
39
31
  /**
40
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'keypress' event. Deprecated in modern standards.
41
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'keypress'-Event. In modernen Standards veraltet (deprecated).
32
+ * * Binds an event handler to the 'keypress' event. Deprecated in modern standards.
42
33
  * @deprecated Use keydown or input instead.
43
34
  * @param handler
44
- * * πŸ‡¬πŸ‡§: The callback function receiving the KeyboardEvent.
45
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion, die das KeyboardEvent empfΓ€ngt.
35
+ * * The callback function receiving the KeyboardEvent.
46
36
  * @returns
47
- * * πŸ‡¬πŸ‡§: The current jBase instance for method chaining.
48
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
37
+ * * The current jBase instance for method chaining.
49
38
  */
50
39
  export declare function keypress(this: jBase, handler: (event: KeyboardEvent) => void): jBase;
51
40
  /**
52
- * * πŸ‡¬πŸ‡§: Binds an event handler for a specific key (case-insensitive).
53
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler fΓΌr eine spezifische Taste (Groß-/Kleinschreibung wird ignoriert).
41
+ * * Binds an event handler for a specific key (case-insensitive).
54
42
  * @param targetKey
55
- * * πŸ‡¬πŸ‡§: The key to react to (e.g., 'm', 'Enter', 'Escape').
56
- * * πŸ‡©πŸ‡ͺ: Die Taste, auf die reagiert werden soll (z.B. 'm', 'Enter', 'Escape').
43
+ * * The key to react to (e.g., 'm', 'Enter', 'Escape').
57
44
  * @param handler
58
- * * πŸ‡¬πŸ‡§: The callback function.
59
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion.
45
+ * * The callback function.
60
46
  * @returns
61
- * * πŸ‡¬πŸ‡§: The current jBase instance.
62
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
47
+ * * The current jBase instance.
63
48
  */
64
49
  export declare function pressedKey(this: jBase, targetKey: string, handler: (event: KeyboardEvent) => void): jBase;
65
50
  //# sourceMappingURL=keyboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../src/modules/events/keyboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAEjF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAEpF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAOzG"}
1
+ {"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../src/modules/events/keyboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAEjF;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAEpF;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,KAAK,CAOzG"}
@@ -1,28 +1,23 @@
1
1
  /**
2
2
  * @file src/modules/events/lifecycle.ts
3
- * @version 2.0.0
3
+ * @version 2.0.2
4
4
  * @since 2.0.0
5
5
  * @license GPL-3.0-or-later
6
6
  * @copyright Sven Minio 2026
7
7
  * @author Sven Minio <https://sven-minio.de>
8
8
  * @category Events
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Methods for handling DOM lifecycle events (e.g., ready).
11
- * * πŸ‡©πŸ‡ͺ: Methoden zur Behandlung von DOM-Lebenszyklus-Events (z.B. ready).
10
+ * * Methods for handling DOM lifecycle events (e.g., ready).
12
11
  * @requires ../../core
13
- * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
14
- * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
12
+ * * Depends on the core jBase class for type definitions.
15
13
  */
16
14
  import { jBase } from '../../core';
17
15
  /**
18
- * * πŸ‡¬πŸ‡§: Executes the handler as soon as the DOM is fully loaded and parsed. If the document is already ready (readyState 'interactive' or 'complete'), the handler executes immediately to avoid race conditions.
19
- * * πŸ‡©πŸ‡ͺ: FΓΌhrt den ΓΌbergebenen Handler aus, sobald das DOM vollstΓ€ndig geladen und geparst ist. Falls das Dokument bereits bereit ist (readyState 'interactive' oder 'complete'), wird der Handler sofort ausgefΓΌhrt, um Race Conditions zu vermeiden.
16
+ * * Executes the handler as soon as the DOM is fully loaded and parsed. If the document is already ready (readyState 'interactive' or 'complete'), the handler executes immediately to avoid race conditions.
20
17
  * @param handler
21
- * * πŸ‡¬πŸ‡§: The callback function to execute when the DOM is ready.
22
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion, die ausgefΓΌhrt werden soll, sobald das DOM bereit ist.
18
+ * * The callback function to execute when the DOM is ready.
23
19
  * @returns
24
- * * πŸ‡¬πŸ‡§: The current jBase instance for method chaining.
25
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
20
+ * * The current jBase instance for method chaining.
26
21
  */
27
22
  export declare function ready(this: jBase, handler: () => void): jBase;
28
23
  //# sourceMappingURL=lifecycle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/modules/events/lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,KAAK,CAS7D"}
1
+ {"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/modules/events/lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,KAAK,CAQ7D"}
@@ -1,120 +1,91 @@
1
1
  /**
2
2
  * @file src/modules/events/mouse.ts
3
- * @version 2.0.0
3
+ * @version 2.0.2
4
4
  * @since 2.0.0
5
5
  * @license GPL-3.0-or-later
6
6
  * @copyright Sven Minio 2026
7
7
  * @author Sven Minio <https://sven-minio.de>
8
8
  * @category Events
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Methods for handling mouse events (click, dblclick, hover, mouseenter, mouseleave).
11
- * * πŸ‡©πŸ‡ͺ: Methoden zur Behandlung von Maus-Events (click, dblclick, hover, mouseenter, mouseleave).
10
+ * * Methods for handling mouse events (click, dblclick, hover, mouseenter, mouseleave).
12
11
  * @requires ../../core
13
- * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
14
- * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
12
+ * * Depends on the core jBase class for type definitions.
15
13
  */
16
14
  import { jBase } from '../../core';
17
15
  /**
18
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'click' event or triggers the event manually.
16
+ * * Binds an event handler to the 'click' event or triggers the event manually.
19
17
  * - With handler: Registers the function.
20
18
  * - Without handler: Simulates a click on all selected elements.
21
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'click'-Ereignis oder lΓΆst das Ereignis manuell aus.
22
19
  * - Mit Handler: Registriert die Funktion.
23
20
  * - Ohne Handler: Simuliert einen Klick auf alle selektierten Elemente.
24
21
  * @param handler
25
- * * πŸ‡¬πŸ‡§: (Optional) The callback function executed on click.
26
- * * πŸ‡©πŸ‡ͺ: (Optional) Die Callback-Funktion, die beim Klick ausgefΓΌhrt wird.
22
+ * * (Optional) The callback function executed on click.
27
23
  * @returns
28
- * * πŸ‡¬πŸ‡§: The current jBase instance.
29
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
24
+ * * The current jBase instance.
30
25
  */
31
26
  export declare function click(this: jBase, handler?: (event: Event) => void): jBase;
32
27
  /**
33
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'mousemove' event. Fires continuously while the pointer moves inside the element.
34
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'mousemove'-Ereignis. Feuert kontinuierlich, solange der Mauszeiger innerhalb des Elements bewegt wird.
28
+ * * Binds an event handler to the 'mousemove' event. Fires continuously while the pointer moves inside the element.
35
29
  * @param handler
36
- * * πŸ‡¬πŸ‡§: The callback function.
37
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion.
30
+ * * The callback function.
38
31
  * @returns
39
- * * πŸ‡¬πŸ‡§: The current jBase instance.
40
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
32
+ * * The current jBase instance.
41
33
  */
42
34
  export declare function mousemove(this: jBase, handler: (event: MouseEvent) => void): jBase;
43
35
  /**
44
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'mouseleave' event. Fires when the pointer leaves the element (does not bubble).
45
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'mouseleave'-Ereignis. Feuert, wenn der Mauszeiger das Element verlΓ€sst (bubbelt nicht).
36
+ * * Binds an event handler to the 'mouseleave' event. Fires when the pointer leaves the element (does not bubble).
46
37
  * @param handler
47
- * * πŸ‡¬πŸ‡§: The callback function.
48
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion.
38
+ * * The callback function.
49
39
  * @returns
50
- * * πŸ‡¬πŸ‡§: The current jBase instance.
51
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
40
+ * * The current jBase instance.
52
41
  */
53
42
  export declare function mouseleave(this: jBase, handler: (event: MouseEvent) => void): jBase;
54
43
  /**
55
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'mouseenter' event. Fires when the pointer enters the element (does not bubble).
56
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'mouseenter'-Ereignis. Feuert, wenn der Mauszeiger das Element betritt (bubbelt nicht).
44
+ * * Binds an event handler to the 'mouseenter' event. Fires when the pointer enters the element (does not bubble).
57
45
  * @param handler
58
- * * πŸ‡¬πŸ‡§: The callback function.
59
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion.
46
+ * * The callback function.
60
47
  * @returns
61
- * * πŸ‡¬πŸ‡§: The current jBase instance.
62
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
48
+ * * The current jBase instance.
63
49
  */
64
50
  export declare function mouseenter(this: jBase, handler: (event: MouseEvent) => void): jBase;
65
51
  /**
66
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'mousedown' event. Fires as soon as a mouse button is pressed over the element.
67
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'mousedown'-Ereignis. Feuert, sobald eine Maustaste ΓΌber dem Element gedrΓΌckt wird.
52
+ * * Binds an event handler to the 'mousedown' event. Fires as soon as a mouse button is pressed over the element.
68
53
  * @param handler
69
- * * πŸ‡¬πŸ‡§: The callback function.
70
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion.
54
+ * * The callback function.
71
55
  * @returns
72
- * * πŸ‡¬πŸ‡§: The current jBase instance.
73
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
56
+ * * The current jBase instance.
74
57
  */
75
58
  export declare function mousedown(this: jBase, handler: (event: MouseEvent) => void): jBase;
76
59
  /**
77
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'mouseup' event. Fires when a mouse button is released over the element.
78
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'mouseup'-Ereignis. Feuert, wenn eine Maustaste ΓΌber dem Element losgelassen wird.
60
+ * * Binds an event handler to the 'mouseup' event. Fires when a mouse button is released over the element.
79
61
  * @param handler
80
- * * πŸ‡¬πŸ‡§: The callback function.
81
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion.
62
+ * * The callback function.
82
63
  * @returns
83
- * * πŸ‡¬πŸ‡§: The current jBase instance.
84
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
64
+ * * The current jBase instance.
85
65
  */
86
66
  export declare function mouseup(this: jBase, handler: (event: MouseEvent) => void): jBase;
87
67
  /**
88
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'dblclick' event or triggers it manually.
89
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'dblclick'-Ereignis oder lΓΆst das Ereignis manuell aus.
68
+ * * Binds an event handler to the 'dblclick' event or triggers it manually.
90
69
  * @param handler
91
- * * πŸ‡¬πŸ‡§: (Optional) The callback function.
92
- * * πŸ‡©πŸ‡ͺ: (Optional) Die Callback-Funktion.
70
+ * * (Optional) The callback function.
93
71
  * @returns
94
- * * πŸ‡¬πŸ‡§: The current jBase instance.
95
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
72
+ * * The current jBase instance.
96
73
  */
97
74
  export declare function dblclick(this: jBase, handler?: (event: MouseEvent) => void): jBase;
98
75
  /**
99
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'mouseout' event. Fires when the pointer leaves the element OR one of its children (bubbles).
100
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'mouseout'-Ereignis. Feuert, wenn der Mauszeiger das Element ODER eines seiner Kinder verlΓ€sst (bubbelt).
76
+ * * Binds an event handler to the 'mouseout' event. Fires when the pointer leaves the element OR one of its children (bubbles).
101
77
  * @param handler
102
- * * πŸ‡¬πŸ‡§: The callback function.
103
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion.
78
+ * * The callback function.
104
79
  * @returns
105
- * * πŸ‡¬πŸ‡§: The current jBase instance.
106
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
80
+ * * The current jBase instance.
107
81
  */
108
82
  export declare function mouseout(this: jBase, handler: (event: MouseEvent) => void): jBase;
109
83
  /**
110
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'mouseover' event. Fires when the pointer enters the element OR one of its children (bubbles).
111
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'mouseover'-Ereignis. Feuert, wenn der Mauszeiger das Element ODER eines seiner Kinder betritt (bubbelt).
84
+ * * Binds an event handler to the 'mouseover' event. Fires when the pointer enters the element OR one of its children (bubbles).
112
85
  * @param handler
113
- * * πŸ‡¬πŸ‡§: The callback function.
114
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion.
86
+ * * The callback function.
115
87
  * @returns
116
- * * πŸ‡¬πŸ‡§: The current jBase instance.
117
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz.
88
+ * * The current jBase instance.
118
89
  */
119
90
  export declare function mouseover(this: jBase, handler: (event: MouseEvent) => void): jBase;
120
91
  //# sourceMappingURL=mouse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mouse.d.ts","sourceRoot":"","sources":["../../../src/modules/events/mouse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,KAAK,CAS1E;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEhF;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAgBlF;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEjF;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF"}
1
+ {"version":3,"file":"mouse.d.ts","sourceRoot":"","sources":["../../../src/modules/events/mouse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,KAAK,CAS1E;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEhF;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAelF;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEjF;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF"}
@@ -1,61 +1,47 @@
1
1
  /**
2
2
  * @file src/modules/events/touch.ts
3
- * @version 2.0.0
3
+ * @version 2.0.2
4
4
  * @since 2.0.0
5
5
  * @license GPL-3.0-or-later
6
6
  * @copyright Sven Minio 2026
7
7
  * @author Sven Minio <https://sven-minio.de>
8
8
  * @category Events
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Methods for handling touch events (touchstart, touchend, touchmove).
11
- * * πŸ‡©πŸ‡ͺ: Methoden zur Behandlung von Touch-Events (touchstart, touchend, touchmove).
10
+ * * Methods for handling touch events (touchstart, touchend, touchmove).
12
11
  * @requires ../../core
13
- * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
14
- * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
12
+ * * Depends on the core jBase class for type definitions.
15
13
  */
16
14
  import { jBase } from '../../core';
17
15
  /**
18
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'touchstart' event. Triggered when a touch point is placed on the touch surface.
19
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'touchstart'-Ereignis. Wird ausgelΓΆst, sobald ein BerΓΌhrungspunkt auf der Touch-OberflΓ€che platziert wird.
16
+ * * Binds an event handler to the 'touchstart' event. Triggered when a touch point is placed on the touch surface.
20
17
  * @param handler
21
- * * πŸ‡¬πŸ‡§: The callback function executed on touch start.
22
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion, die bei BerΓΌhrung ausgefΓΌhrt wird.
18
+ * * The callback function executed on touch start.
23
19
  * @returns
24
- * * πŸ‡¬πŸ‡§: The current jBase instance for method chaining.
25
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
20
+ * * The current jBase instance for method chaining.
26
21
  */
27
22
  export declare function touchstart(this: jBase, handler: (event: TouchEvent) => void): jBase;
28
23
  /**
29
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'touchend' event. Triggered when a touch point is removed from the touch surface.
30
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'touchend'-Ereignis. Wird ausgelΓΆst, wenn ein BerΓΌhrungspunkt von der Touch-OberflΓ€che entfernt wird.
24
+ * * Binds an event handler to the 'touchend' event. Triggered when a touch point is removed from the touch surface.
31
25
  * @param handler
32
- * * πŸ‡¬πŸ‡§: The callback function executed on touch end.
33
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion, die beim Loslassen ausgefΓΌhrt wird.
26
+ * * The callback function executed on touch end.
34
27
  * @returns
35
- * * πŸ‡¬πŸ‡§: The current jBase instance for method chaining.
36
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
28
+ * * The current jBase instance for method chaining.
37
29
  */
38
30
  export declare function touchend(this: jBase, handler: (event: TouchEvent) => void): jBase;
39
31
  /**
40
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'touchmove' event. Triggered when a touch point moves along the touch surface. Important for swipe gestures or Drag & Drop.
41
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'touchmove'-Ereignis. Wird ausgelΓΆst, wenn sich ein BerΓΌhrungspunkt entlang der Touch-OberflΓ€che bewegt. Wichtig fΓΌr Swipe-Gesten oder Drag & Drop.
32
+ * * Binds an event handler to the 'touchmove' event. Triggered when a touch point moves along the touch surface. Important for swipe gestures or Drag & Drop.
42
33
  * @param handler
43
- * * πŸ‡¬πŸ‡§: The callback function executed on movement.
44
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion, die bei Bewegung ausgefΓΌhrt wird.
34
+ * * The callback function executed on movement.
45
35
  * @returns
46
- * * πŸ‡¬πŸ‡§: The current jBase instance for method chaining.
47
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
36
+ * * The current jBase instance for method chaining.
48
37
  */
49
38
  export declare function touchmove(this: jBase, handler: (event: TouchEvent) => void): jBase;
50
39
  /**
51
- * * πŸ‡¬πŸ‡§: Binds an event handler to the 'touchcancel' event. Triggered when a touch point has been disrupted by the system (e.g., too many touch points or a UI popup).
52
- * * πŸ‡©πŸ‡ͺ: Bindet einen Event-Handler an das 'touchcancel'-Ereignis. Wird ausgelΓΆst, wenn eine BerΓΌhrung durch das System unterbrochen wurde (z.B. durch zu viele BerΓΌhrungspunkte oder ein UI-Popup).
40
+ * * Binds an event handler to the 'touchcancel' event. Triggered when a touch point has been disrupted by the system (e.g., too many touch points or a UI popup).
53
41
  * @param handler
54
- * * πŸ‡¬πŸ‡§: The callback function executed on cancellation.
55
- * * πŸ‡©πŸ‡ͺ: Die Callback-Funktion, die bei Abbruch ausgefΓΌhrt wird.
42
+ * * The callback function executed on cancellation.
56
43
  * @returns
57
- * * πŸ‡¬πŸ‡§: The current jBase instance for method chaining.
58
- * * πŸ‡©πŸ‡ͺ: Die aktuelle jBase-Instanz fΓΌr Method-Chaining.
44
+ * * The current jBase instance for method chaining.
59
45
  */
60
46
  export declare function touchcancel(this: jBase, handler: (event: TouchEvent) => void): jBase;
61
47
  //# sourceMappingURL=touch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"touch.d.ts","sourceRoot":"","sources":["../../../src/modules/events/touch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEjF;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEpF"}
1
+ {"version":3,"file":"touch.d.ts","sourceRoot":"","sources":["../../../src/modules/events/touch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEnF;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEjF;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAElF;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,KAAK,CAEpF"}
@@ -1,47 +1,40 @@
1
1
  /**
2
2
  * @file src/modules/http/get.ts
3
- * @version 2.0.0
3
+ * @version 2.0.3
4
4
  * @since 2.0.0
5
5
  * @license GPL-3.0-or-later
6
6
  * @copyright Sven Minio 2026
7
7
  * @author Sven Minio <https://sven-minio.de>
8
8
  * @category HTTP
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Abstraction for HTTP GET requests.
11
- * * πŸ‡©πŸ‡ͺ: Abstraktion fΓΌr HTTP GET-Anfragen.
10
+ * * Abstraction for HTTP GET requests.
12
11
  * @requires ../../core
13
- * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
14
- * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
12
+ * * Depends on the core jBase class for type definitions.
15
13
  */
16
14
  /**
17
- * * πŸ‡¬πŸ‡§: Performs an asynchronous HTTP GET request and expects a JSON response. Includes an automatic timeout of 5000ms to avoid hanging requests.
18
- * * πŸ‡©πŸ‡ͺ: FΓΌhrt einen asynchronen HTTP GET-Request aus und erwartet eine JSON-Antwort. Beinhaltet einen automatischen Timeout von 5000ms, um hΓ€ngende Requests zu vermeiden.
15
+ * * Performs an asynchronous HTTP GET request and expects a JSON response. Includes an automatic timeout of 5000ms to avoid hanging requests.
19
16
  * @template T
20
- * * πŸ‡¬πŸ‡§: The expected type of the response data (Generic).
21
- * * πŸ‡©πŸ‡ͺ: Der erwartete Typ der Antwortdaten (Generic).
17
+ * * The expected type of the response data (Generic).
22
18
  * @param url
23
- * * πŸ‡¬πŸ‡§: The target URL for the request.
24
- * * πŸ‡©πŸ‡ͺ: Die Ziel-URL fΓΌr den Request.
19
+ * * The target URL for the request.
20
+ * @param option
21
+ * * Optional RequestInit object to customize the fetch request.
25
22
  * @returns
26
- * * πŸ‡¬πŸ‡§: A Promise resolving with the typed JSON data.
27
- * * πŸ‡©πŸ‡ͺ: Ein Promise, das mit den typisierten JSON-Daten aufgelΓΆst wird.
23
+ * * A Promise resolving with the typed JSON data.
28
24
  * @throws
29
- * * πŸ‡¬πŸ‡§: Error if HTTP status is not in success range (200-299) or a timeout occurs.
30
- * * πŸ‡©πŸ‡ͺ: Error, wenn der HTTP-Status nicht im Erfolgsbereich (200-299) liegt oder ein Timeout auftritt.
25
+ * * Error if HTTP status is not in success range (200-299) or a timeout occurs.
31
26
  */
32
- export declare function get<T>(url: string): Promise<T>;
27
+ export declare function get<T>(url: string, option?: RequestInit): Promise<T>;
33
28
  /**
34
- * * πŸ‡¬πŸ‡§: Performs an asynchronous HTTP GET request and returns the raw text content. Ideal for loading HTML fragments (Server-Side Rendering Partials) or plain text.
35
- * * πŸ‡©πŸ‡ͺ: FΓΌhrt einen asynchronen HTTP GET-Request aus und gibt den rohen Text-Inhalt zurΓΌck. Ideal zum Nachladen von HTML-Fragmenten (Server-Side Rendering Partials) oder Plain-Text.
29
+ * * Performs an asynchronous HTTP GET request and returns the raw text content. Ideal for loading HTML fragments (Server-Side Rendering Partials) or plain text.
36
30
  * @param url
37
- * * πŸ‡¬πŸ‡§: The target URL for the request.
38
- * * πŸ‡©πŸ‡ͺ: Die Ziel-URL fΓΌr den Request.
31
+ * * The target URL for the request.
32
+ * @param option
33
+ * * Optional RequestInit object to customize the fetch request.
39
34
  * @returns
40
- * * πŸ‡¬πŸ‡§: A Promise containing the response body as a string.
41
- * * πŸ‡©πŸ‡ͺ: Ein Promise, das den Antwort-Body als String enthΓ€lt.
35
+ * * A Promise containing the response body as a string.
42
36
  * @throws
43
- * * πŸ‡¬πŸ‡§: Error if HTTP status is not in success range (200-299).
44
- * * πŸ‡©πŸ‡ͺ: Error, wenn der HTTP-Status nicht im Erfolgsbereich (200-299) liegt.
37
+ * * Error if HTTP status is not in success range (200-299).
45
38
  */
46
- export declare function getText(url: string): Promise<string>;
39
+ export declare function getText<T>(url: string, option?: RequestInit): Promise<T>;
47
40
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/modules/http/get.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAQpD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAM1D"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/modules/http/get.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAsB,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAgB1E;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAgB9E"}
@@ -1,37 +1,33 @@
1
1
  /**
2
2
  * @file src/modules/http/index.ts
3
- * @version 2.0.0
3
+ * @version 2.0.2
4
4
  * @since 2.0.0
5
5
  * @license GPL-3.0-or-later
6
6
  * @copyright Sven Minio 2026
7
7
  * @author Sven Minio <https://sven-minio.de>
8
8
  * @category HTTP
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Central entry point for HTTP requests. Aggregates GET and POST methods.
11
- * * πŸ‡©πŸ‡ͺ: Zentraler Einstiegspunkt fΓΌr HTTP-Anfragen. Aggregiert GET- und POST-Methoden.
10
+ * * Central entry point for HTTP requests. Aggregates GET and POST methods.
12
11
  * @requires ./get
13
- * * πŸ‡¬πŸ‡§: HTTP GET methods (get, getText).
14
- * * πŸ‡©πŸ‡ͺ: HTTP GET-Methoden (get, getText).
12
+ * * HTTP GET methods (get, getText).
15
13
  * @requires ./post
16
- * * πŸ‡¬πŸ‡§: HTTP POST methods.
17
- * * πŸ‡©πŸ‡ͺ: HTTP POST-Methoden.
14
+ * * HTTP POST methods.
18
15
  */
19
16
  /**
20
- * * πŸ‡¬πŸ‡§: The central HTTP client of the framework. Aggregates all HTTP methods (GET, POST, etc.) into a unified interface. Acts as a wrapper around the native `fetch` API to simplify JSON parsing, error handling, and typing.
21
- * * πŸ‡©πŸ‡ͺ: Der zentrale HTTP-Client des Frameworks. Aggregiert alle HTTP-Methoden (GET, POST, etc.) zu einer einheitlichen Schnittstelle. Fungiert als Wrapper um die native `fetch` API, um JSON-Parsing, Error-Handling und Typisierung zu vereinfachen.
17
+ * * The central HTTP client of the framework. Aggregates all HTTP methods (GET, POST, etc.) into a unified interface. Acts as a wrapper around the native `fetch` API to simplify JSON parsing, error handling, and typing.
22
18
  * @example
23
- * // Get data / Daten abrufen
19
+ * Get data / Daten abrufen
24
20
  * const data = await http.get<UserData>('/api/user/1');
25
21
  *
26
- * // Send data / Daten senden
22
+ * Send data / Daten senden
27
23
  * await http.post('/api/login', { username: '...', password: '...' });
28
24
  *
29
- * // Load HTML / HTML laden
25
+ * Load HTML / HTML laden
30
26
  * const html = await http.getText('/templates/modal.html');
31
27
  */
32
28
  export declare const http: {
33
- post<T>(url: string, body?: any): Promise<T>;
34
- get<T>(url: string): Promise<T>;
35
- getText(url: string): Promise<string>;
29
+ post<T>(url: string, body?: any, option?: RequestInit): Promise<T>;
30
+ get<T>(url: string, option?: RequestInit): Promise<T>;
31
+ getText<T>(url: string, option?: RequestInit): Promise<T>;
36
32
  };
37
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/http/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,IAAI;;;;CAGhB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/http/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,IAAI;;;;CAGhB,CAAC"}
@@ -1,36 +1,30 @@
1
1
  /**
2
2
  * @file src/modules/http/post.ts
3
- * @version 2.0.0
4
- * @since 2.0.0
3
+ * @version 2.0.3
4
+ * @since 2.0.2
5
5
  * @license GPL-3.0-or-later
6
6
  * @copyright Sven Minio 2026
7
7
  * @author Sven Minio <https://sven-minio.de>
8
8
  * @category HTTP
9
9
  * * @description
10
- * * πŸ‡¬πŸ‡§: Abstraction for HTTP POST requests.
11
- * * πŸ‡©πŸ‡ͺ: Abstraktion fΓΌr HTTP POST-Anfragen.
10
+ * * Abstraction for HTTP POST requests.
12
11
  * @requires ../../core
13
- * * πŸ‡¬πŸ‡§: Depends on the core jBase class for type definitions.
14
- * * πŸ‡©πŸ‡ͺ: HΓ€ngt von der Core-jBase-Klasse fΓΌr Typ-Definitionen ab.
12
+ * * Depends on the core jBase class for type definitions.
15
13
  */
16
14
  /**
17
- * * πŸ‡¬πŸ‡§: Performs an asynchronous HTTP POST request to the specified URL. Automatically sets the 'Content-Type' header to 'application/json' and serializes the body.
18
- * * πŸ‡©πŸ‡ͺ: FΓΌhrt einen asynchronen HTTP POST-Request an die angegebene URL durch. Setzt automatisch den 'Content-Type'-Header auf 'application/json' und serialisiert den Body.
15
+ * * Performs an asynchronous HTTP POST request to the specified URL. Automatically sets the 'Content-Type' header to 'application/json' and serializes the body.
19
16
  * @template T
20
- * * πŸ‡¬πŸ‡§: The expected response type (Generic).
21
- * * πŸ‡©πŸ‡ͺ: Der erwartete RΓΌckgabetyp der Antwort (Generic).
17
+ * * The expected response type (Generic).
22
18
  * @param url
23
- * * πŸ‡¬πŸ‡§: The target URL for the request.
24
- * * πŸ‡©πŸ‡ͺ: Die Ziel-URL fΓΌr den Request.
19
+ * * The target URL for the request.
25
20
  * @param body
26
- * * πŸ‡¬πŸ‡§: The data to send (automatically JSON serialized). Default is {}.
27
- * * πŸ‡©πŸ‡ͺ: Die zu sendenden Daten (werden automatisch JSON-serialisiert). Standard ist {}.
21
+ * * The data to send (automatically JSON serialized). Default is {}.
22
+ * @param option
23
+ * * Optional RequestInit object to customize the fetch request.
28
24
  * @returns
29
- * * πŸ‡¬πŸ‡§: A Promise resolving with the deserialized JSON response of type T.
30
- * * πŸ‡©πŸ‡ͺ: Ein Promise, das mit der deserialisierten JSON-Antwort vom Typ T aufgelΓΆst wird.
25
+ * * A Promise resolving with the deserialized JSON response of type T.
31
26
  * @throws
32
- * * πŸ‡¬πŸ‡§: Error if the HTTP status code is not in the range 200-299.
33
- * * πŸ‡©πŸ‡ͺ: Error, wenn der HTTP-Statuscode nicht im Bereich 200-299 liegt.
27
+ * * Error if the HTTP status code is not in the range 200-299.
34
28
  */
35
- export declare function post<T>(url: string, body?: any): Promise<T>;
29
+ export declare function post<T>(url: string, body?: any, option?: RequestInit): Promise<T>;
36
30
  //# sourceMappingURL=post.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../src/modules/http/post.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,GAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAkBrE"}
1
+ {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../src/modules/http/post.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,GAAQ,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAyB3F"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * * Parses an HTML string on the server, allowing DOM manipulation.
3
+ * @param html
4
+ * * The raw HTML string.
5
+ * @returns
6
+ * * An object containing the window, document, and the jBase instance setup.
7
+ */
8
+ export declare function parseHTML(html: string): {
9
+ $: (selector: import("./types").JBaseInput) => import("./core").jBase;
10
+ document: Document;
11
+ window: Window;
12
+ html: () => string;
13
+ close: () => void;
14
+ };
15
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM;;;;;;EAWrC"}