@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,131 +1,163 @@
1
1
  /**
2
2
  * @file src/modules/data/arrays.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 Data
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Utility functions for array manipulation and data processing.
11
- * * πŸ‡©πŸ‡ͺ: Hilfsfunktionen fΓΌr Array-Manipulation und Datenverarbeitung.
10
+ * * Utility functions for array manipulation and data processing.
12
11
  * @requires ./types
13
- * * πŸ‡¬πŸ‡§: Depends on match logic and types.
14
- * * πŸ‡©πŸ‡ͺ: HΓ€ngt von Match-Logik und Typen ab.
12
+ * * Depends on types.
15
13
  */
16
14
  import { MatchMode } from './types';
17
15
  /**
18
- * * πŸ‡¬πŸ‡§: Splits an array into smaller groups (chunks). Ideal for pagination or grid layouts.
19
- * * πŸ‡©πŸ‡ͺ: Teilt ein Array in kleinere Gruppen (Chunks) auf. Ideal fΓΌr Pagination oder Grid-Layouts.
16
+ * * Splits an array into smaller groups (chunks). Ideal for pagination or grid layouts.
20
17
  * @example
21
- * chunk([1, 2, 3, 4, 5], 2) // => [[1, 2], [3, 4], [5]]
18
+ * chunk([1, 2, 3, 4, 5], 2) => [[1, 2], [3, 4], [5]]
22
19
  * @param array
23
- * * πŸ‡¬πŸ‡§: The source array.
24
- * * πŸ‡©πŸ‡ͺ: Das Ursprungs-Array.
20
+ * * The source array.
25
21
  * @param size
26
- * * πŸ‡¬πŸ‡§: The size of each chunk.
27
- * * πŸ‡©πŸ‡ͺ: Die Grâße jedes Chunks.
22
+ * * The size of each chunk.
28
23
  * @returns
29
- * * πŸ‡¬πŸ‡§: An array of arrays.
30
- * * πŸ‡©πŸ‡ͺ: Ein Array aus Arrays.
24
+ * * An array of arrays.
31
25
  */
32
26
  export declare function chunk<T>(array: T[], size: number): T[][];
33
27
  /**
34
- * * πŸ‡¬πŸ‡§: Merges multiple arrays into a single flat array.
35
- * * πŸ‡©πŸ‡ͺ: FΓΌhrt mehrere Arrays zu einem einzigen flachen Array zusammen.
28
+ * * Merges multiple arrays into a single flat array.
36
29
  * @param arrays
37
- * * πŸ‡¬πŸ‡§: A list of arrays.
38
- * * πŸ‡©πŸ‡ͺ: Eine Liste von Arrays.
30
+ * * A list of arrays.
39
31
  * @returns
40
- * * πŸ‡¬πŸ‡§: A new, merged array.
41
- * * πŸ‡©πŸ‡ͺ: Ein neues, zusammengefΓΌgtes Array.
32
+ * * A new, merged array.
42
33
  */
43
- export declare function merge<T>(...arrays: T[][]): T[];
34
+ export declare function mergeArray<T>(...arrays: T[][]): T[];
44
35
  /**
45
- * * πŸ‡¬πŸ‡§: Safely adds an element at a specific position without mutating the original array (Immutable).
46
- * * πŸ‡©πŸ‡ͺ: FΓΌgt ein Element sicher an einer bestimmten Position hinzu, ohne das Original-Array zu mutieren (Immutable).
36
+ * * Safely adds an element at a specific position without mutating the original array (Immutable).
47
37
  * @param array
48
- * * πŸ‡¬πŸ‡§: The array.
49
- * * πŸ‡©πŸ‡ͺ: Das Array.
38
+ * * The array.
50
39
  * @param item
51
- * * πŸ‡¬πŸ‡§: The item to add.
52
- * * πŸ‡©πŸ‡ͺ: Das hinzuzufΓΌgende Element.
40
+ * * The item to add.
53
41
  * @param index
54
- * * πŸ‡¬πŸ‡§: The position (default: end). Negative values count from the back (-1 = before the last one).
55
- * * πŸ‡©πŸ‡ͺ: Die Position (Standard: Ende). Negative Werte zΓ€hlen von hinten (-1 = vor dem letzten).
42
+ * * The position (default: end). Negative values count from the back (-1 = before the last one).
56
43
  * @returns
57
- * * πŸ‡¬πŸ‡§: A new array including the element.
58
- * * πŸ‡©πŸ‡ͺ: Ein neues Array inklusive dem Element.
44
+ * * A new array including the element.
59
45
  */
60
46
  export declare function add<T>(array: T[], item: T, index?: number): T[];
61
47
  /**
62
- * * πŸ‡¬πŸ‡§: Removes elements based on index or match logic.
63
- * * πŸ‡©πŸ‡ͺ: Entfernt Elemente basierend auf Index oder Match-Logik.
48
+ * * Removes elements based on index or match logic.
64
49
  */
65
50
  export declare const remove: {
66
51
  /**
67
- * * πŸ‡¬πŸ‡§: Removes an element at a specific index.
68
- * * πŸ‡©πŸ‡ͺ: Entfernt ein Element an einem spezifischen Index.
52
+ * * Removes an element at a specific index.
69
53
  * @param array
70
- * * πŸ‡¬πŸ‡§: The array.
71
- * * πŸ‡©πŸ‡ͺ: Das Array.
54
+ * * The array.
72
55
  * @param index
73
- * * πŸ‡¬πŸ‡§: The index (negative values allowed).
74
- * * πŸ‡©πŸ‡ͺ: Der Index (negativ mΓΆglich).
56
+ * * The index (negative values allowed).
75
57
  */
76
58
  at<T>(array: T[], index: number): T[];
77
59
  /**
78
- * * πŸ‡¬πŸ‡§: Removes the first element.
79
- * * πŸ‡©πŸ‡ͺ: Entfernt das erste Element.
60
+ * * Removes the first element.
61
+ * @param array
62
+ * * The array.
80
63
  */
81
64
  first<T>(array: T[]): T[];
82
65
  /**
83
- * * πŸ‡¬πŸ‡§: Removes the last element.
84
- * * πŸ‡©πŸ‡ͺ: Entfernt das letzte Element.
66
+ * * Removes the last element.
67
+ * @param array
68
+ * * The array.
85
69
  */
86
70
  last<T>(array: T[]): T[];
87
71
  /**
88
- * * πŸ‡¬πŸ‡§: Removes all elements matching a query condition.
89
- * * πŸ‡©πŸ‡ͺ: Entfernt alle Elemente, die einer Suchbedingung entsprechen.
72
+ * * Removes all elements matching a query condition.
90
73
  * @example
91
74
  * remove.byMatch(users, 'Admin', 'exact', 'role')
92
75
  * @param array
93
- * * πŸ‡¬πŸ‡§: The array.
94
- * * πŸ‡©πŸ‡ͺ: Das Array.
76
+ * * The array.
95
77
  * @param query
96
- * * πŸ‡¬πŸ‡§: The search query.
97
- * * πŸ‡©πŸ‡ͺ: Der Suchbegriff.
78
+ * * The search query.
98
79
  * @param mode
99
- * * πŸ‡¬πŸ‡§: The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
100
- * * πŸ‡©πŸ‡ͺ: Der Vergleichsmodus ('exact', 'contains', 'startsWith', 'endsWith').
80
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
101
81
  * @param key
102
- * * πŸ‡¬πŸ‡§: (Optional) The object key if it is an array of objects.
103
- * * πŸ‡©πŸ‡ͺ: (Optional) Der ObjektschlΓΌssel, falls es ein Array von Objekten ist.
82
+ * * (Optional) The object key if it is an array of objects.
104
83
  */
105
84
  byMatch<T>(array: T[], query: string | number, mode?: MatchMode, key?: keyof T): T[];
106
85
  };
107
86
  /**
108
- * * πŸ‡¬πŸ‡§: Searches for elements in the array.
109
- * * πŸ‡©πŸ‡ͺ: Sucht Elemente im Array.
87
+ * * Searches for elements in the array.
110
88
  */
111
89
  export declare const find: {
112
90
  /**
113
- * * πŸ‡¬πŸ‡§: Finds the index of the first match.
114
- * * πŸ‡©πŸ‡ͺ: Findet den Index des ersten Treffers.
91
+ * * Finds the index of the first match.
92
+ * @param array
93
+ * * The array.
94
+ * @param query
95
+ * * The search query.
96
+ * @param mode
97
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
98
+ * @param key
99
+ * * (Optional) The object key if it is an array of objects.
115
100
  * @returns
116
- * * πŸ‡¬πŸ‡§: Index or -1.
117
- * * πŸ‡©πŸ‡ͺ: Index oder -1.
101
+ * * Index or -1.
118
102
  */
119
- index<T>(array: T[], query: string | number, mode?: MatchMode, key?: keyof T): number;
103
+ at<T>(array: T[], query: string | number, mode?: MatchMode, key?: keyof T): number;
120
104
  /**
121
- * * πŸ‡¬πŸ‡§: Returns all elements matching the condition (Filter).
122
- * * πŸ‡©πŸ‡ͺ: Gibt alle Elemente zurΓΌck, die der Bedingung entsprechen (Filter).
105
+ * * Returns all elements matching the condition (Filter).
106
+ * @param array
107
+ * * The array.
108
+ * @param query
109
+ * * The search query.
110
+ * @param mode
111
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
112
+ * @param key
113
+ * * (Optional) The object key if it is an array of objects.
114
+ * @returns
115
+ * * All matching elements or -1.
123
116
  */
124
117
  all<T>(array: T[], query: string | number, mode?: MatchMode, key?: keyof T): T[];
125
118
  /**
126
- * * πŸ‡¬πŸ‡§: Returns the first matching element (or undefined).
127
- * * πŸ‡©πŸ‡ͺ: Gibt das erste gefundene Element zurΓΌck (oder undefined).
119
+ * * Returns the first matching element (or undefined).
120
+ * @param array
121
+ * * The array.
122
+ * @param query
123
+ * * The search query.
124
+ * @param mode
125
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
126
+ * @param key
127
+ * * (Optional) The object key if it is an array of objects.
128
+ * @returns
129
+ * * Index or -1.
128
130
  */
129
131
  first<T>(array: T[], query: string | number, mode?: MatchMode, key?: keyof T): T | undefined;
132
+ /**
133
+ * * Returns the last matching element (or undefined).
134
+ * @param array
135
+ * * The array.
136
+ * @param query
137
+ * * The search query.
138
+ * @param mode
139
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
140
+ * @param key
141
+ * * (Optional) The object key if it is an array of objects.
142
+ * @returns
143
+ * * Index or -1.
144
+ */
145
+ last<T>(array: T[], query: string | number, mode?: MatchMode, key?: keyof T): T | undefined;
146
+ /**
147
+ * * Removes all elements matching a query condition.
148
+ * @example
149
+ * find.byMatch(users, 'Admin', 'exact', 'role')
150
+ * @param array
151
+ * * The array.
152
+ * @param query
153
+ * * The search query.
154
+ * @param mode
155
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
156
+ * @param key
157
+ * * (Optional) The object key if it is an array of objects.
158
+ * @returns
159
+ * * Index or -1.
160
+ */
161
+ byMatch<T>(array: T[], query: string | number, mode?: MatchMode, key?: keyof T): number | undefined;
130
162
  };
131
163
  //# sourceMappingURL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SAAQ,SAAS,QAAkB,MAAM,CAAC,GAAG,MAAM;IAe3F;;;;;;;;;;;;OAYG;QACC,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,SAAQ,SAAS,QAAkB,MAAM,CAAC,GAAG,CAAC,EAAE;IAezF;;;;;;;;;;;;OAYG;UACG,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,SAAQ,SAAS,QAAkB,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS;IAerG;;;;;;;;;;;;OAYG;SACE,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,SAAQ,SAAS,QAAkB,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS;IAepG;;;;;;;;;;;;;;OAcG;YACK,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,GAAG,MAAM,SAAQ,SAAS,QAAkB,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS;CAc/G,CAAC"}
@@ -1,26 +1,22 @@
1
1
  /**
2
2
  * @file src/modules/data/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 Data
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Central entry point for data manipulation modules. Aggregates array and object utilities.
11
- * * πŸ‡©πŸ‡ͺ: Zentraler Einstiegspunkt fΓΌr Datenmanipulations-Module. Aggregiert Array- und Objekt-Hilfsmethoden.
10
+ * * Central entry point for data manipulation modules. Aggregates array and object utilities.
12
11
  * @requires ./arrays
13
- * * πŸ‡¬πŸ‡§: Array manipulation methods.
14
- * * πŸ‡©πŸ‡ͺ: Methoden zur Array-Manipulation.
12
+ * * Array manipulation methods.
15
13
  * @requires ./objects
16
- * * πŸ‡¬πŸ‡§: Object manipulation methods.
17
- * * πŸ‡©πŸ‡ͺ: Methoden zur Objekt-Manipulation.
14
+ * * Object manipulation methods.
18
15
  */
19
16
  import * as arrayMethods from './arrays';
20
17
  import * as objectMethods from './objects';
21
18
  /**
22
- * * πŸ‡¬πŸ‡§: Central data utility object. Bundles array ('arr') and object ('obj') manipulation methods.
23
- * * πŸ‡©πŸ‡ͺ: Zentrales Daten-Utility-Objekt. BΓΌndelt Methoden zur Array- ('arr') und Objekt-Manipulation ('obj').
19
+ * * Central data utility object. Bundles array ('arr') and object ('obj') manipulation methods.
24
20
  */
25
21
  export declare const data: {
26
22
  arr: typeof arrayMethods;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/data/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,YAAY,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,aAAa,MAAM,WAAW,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,IAAI;;;CAGhB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/data/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,YAAY,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,aAAa,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,IAAI;;;CAGhB,CAAC"}
@@ -1,107 +1,139 @@
1
1
  /**
2
2
  * @file src/modules/data/objects.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 Data
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Utility functions for object manipulation (e.g., deep merging, extension).
11
- * * πŸ‡©πŸ‡ͺ: Hilfsfunktionen fΓΌr Objekt-Manipulation (z.B. Deep Merge, Erweiterung).
10
+ * * Utility functions for object manipulation (e.g., deep merging, extension).
12
11
  * @requires ./types
13
- * * πŸ‡¬πŸ‡§: Depends on match logic and types.
14
- * * πŸ‡©πŸ‡ͺ: HΓ€ngt von Match-Logik und Typen ab.
12
+ * * Depends on types.
15
13
  */
16
14
  import { MatchMode } from './types';
17
15
  /**
18
- * * πŸ‡¬πŸ‡§: Recursively merges multiple objects (Deep Merge).
19
- * * πŸ‡©πŸ‡ͺ: FΓΌhrt mehrere Objekte rekursiv zusammen (Deep Merge).
16
+ * * Recursively merges multiple objects (Deep Merge).
20
17
  * @example
21
- * merge({ a: 1, b: { x: 1 } }, { b: { y: 2 } }) // => { a: 1, b: { x: 1, y: 2 } }
18
+ * mergeObjects({ a: 1, b: { x: 1 } }, { b: { y: 2 } }) => { a: 1, b: { x: 1, y: 2 } }
22
19
  * @param target
23
- * * πŸ‡¬πŸ‡§: The target object (will be modified!).
24
- * * πŸ‡©πŸ‡ͺ: Das Zielobjekt (wird modifiziert!).
20
+ * * The target object (will be modified!).
25
21
  * @param sources
26
- * * πŸ‡¬πŸ‡§: One or more source objects.
27
- * * πŸ‡©πŸ‡ͺ: Ein oder mehrere Quellobjekte.
22
+ * * One or more source objects.
28
23
  * @returns
29
- * * πŸ‡¬πŸ‡§: The modified target object.
30
- * * πŸ‡©πŸ‡ͺ: Das modifizierte Zielobjekt.
24
+ * * The modified target object.
31
25
  */
32
- export declare function merge(target: any, ...sources: any[]): any;
26
+ export declare function mergeObjects(target: any, ...sources: any[]): any;
33
27
  /**
34
- * * πŸ‡¬πŸ‡§: Creates a new object containing only the specified keys (Allowlist).
35
- * * πŸ‡©πŸ‡ͺ: Erstellt ein neues Objekt, das nur die angegebenen SchlΓΌssel enthΓ€lt (Allowlist).
28
+ * * Creates a new object containing only the specified keys (Allowlist).
36
29
  * @param obj
37
- * * πŸ‡¬πŸ‡§: The source object.
38
- * * πŸ‡©πŸ‡ͺ: Das Quellobjekt.
30
+ * * The source object.
39
31
  * @param keys
40
- * * πŸ‡¬πŸ‡§: Array of keys to keep.
41
- * * πŸ‡©πŸ‡ͺ: Array der SchlΓΌssel, die ΓΌbernommen werden sollen.
32
+ * * Array of keys to keep.
42
33
  * @returns
43
- * * πŸ‡¬πŸ‡§: A new object with selected keys.
44
- * * πŸ‡©πŸ‡ͺ: Ein neues Objekt mit den gewΓ€hlten SchlΓΌsseln.
34
+ * * A new object with selected keys.
45
35
  */
46
36
  export declare function pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
47
37
  /**
48
- * * πŸ‡¬πŸ‡§: Creates a new object containing all keys EXCEPT the specified ones (Blocklist).
49
- * * πŸ‡©πŸ‡ͺ: Erstellt ein neues Objekt, das alle SchlΓΌssel enthΓ€lt AUẞER den angegebenen (Blocklist).
38
+ * * Creates a new object containing all keys EXCEPT the specified ones (Blocklist).
50
39
  * @param obj
51
- * * πŸ‡¬πŸ‡§: The source object.
52
- * * πŸ‡©πŸ‡ͺ: Das Quellobjekt.
40
+ * * The source object.
53
41
  * @param keys
54
- * * πŸ‡¬πŸ‡§: Array of keys to remove.
55
- * * πŸ‡©πŸ‡ͺ: Array der SchlΓΌssel, die entfernt werden sollen.
42
+ * * Array of keys to remove.
56
43
  * @returns
57
- * * πŸ‡¬πŸ‡§: A new object without the specified keys.
58
- * * πŸ‡©πŸ‡ͺ: Ein neues Objekt ohne die angegebenen SchlΓΌssel.
44
+ * * A new object without the specified keys.
59
45
  */
60
46
  export declare function omit<T, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
61
47
  /**
62
- * * πŸ‡¬πŸ‡§: Safely retrieves a value from a nested object (Safe Navigation).
63
- * * πŸ‡©πŸ‡ͺ: Liest einen Wert aus einem verschachtelten Objekt sicher aus (Safe Navigation).
48
+ * * Safely retrieves a value from a nested object (Safe Navigation).
64
49
  * @example
65
- * get(user, 'address.city') // Returns city or undefined
50
+ * get(user, 'address.city') Returns city or undefined
66
51
  * @param obj
67
- * * πŸ‡¬πŸ‡§: The object.
68
- * * πŸ‡©πŸ‡ͺ: Das Objekt.
52
+ * * The object.
69
53
  * @param path
70
- * * πŸ‡¬πŸ‡§: The path as a dot-notation string.
71
- * * πŸ‡©πŸ‡ͺ: Der Pfad als String mit Punkt-Notation.
54
+ * * The path as a dot-notation string.
72
55
  * @returns
73
- * * πŸ‡¬πŸ‡§: The found value or undefined.
74
- * * πŸ‡©πŸ‡ͺ: Der gefundene Wert oder undefined.
56
+ * * The found value or undefined.
75
57
  */
76
58
  export declare function get(obj: any, path: string): any;
77
59
  /**
78
- * * πŸ‡¬πŸ‡§: Sets a value deeply within a nested object. Creates missing intermediate objects automatically.
79
- * * πŸ‡©πŸ‡ͺ: Setzt einen Wert tief in einem verschachtelten Objekt. Erstellt fehlende Zwischen-Objekte automatisch.
60
+ * * Sets a value deeply within a nested object. Creates missing intermediate objects automatically.
80
61
  * @param obj
81
- * * πŸ‡¬πŸ‡§: The object to modify.
82
- * * πŸ‡©πŸ‡ͺ: Das zu modifizierende Objekt.
62
+ * * The object to modify.
83
63
  * @param path
84
- * * πŸ‡¬πŸ‡§: The path as a string (e.g., 'settings.theme.color').
85
- * * πŸ‡©πŸ‡ͺ: Der Pfad als String (z.B. 'settings.theme.color').
64
+ * * The path as a string (e.g., 'settings.theme.color').
86
65
  * @param value
87
- * * πŸ‡¬πŸ‡§: The value to set.
88
- * * πŸ‡©πŸ‡ͺ: Der zu setzende Wert.
66
+ * * The value to set.
89
67
  */
90
68
  export declare function set(obj: any, path: string, value: any): void;
91
69
  /**
92
- * * πŸ‡¬πŸ‡§: Searches keys or values in the object.
93
- * * πŸ‡©πŸ‡ͺ: Sucht Keys oder Values im Objekt.
70
+ * * Searches keys or values in the object.
94
71
  */
95
72
  export declare const find: {
96
73
  /**
97
- * * πŸ‡¬πŸ‡§: Finds all keys matching the query.
98
- * * πŸ‡©πŸ‡ͺ: Findet alle SchlΓΌssel (Keys), die auf den Suchbegriff passen.
74
+ * * Returns the n-th entry of an object as a [key, value] pair. Supports negative indices.
75
+ * @example find.at({ a: 1, b: 2 }, 1) => ['b', 2]
76
+ * @param obj
77
+ * * The object to search.
78
+ * @param index
79
+ * * The index (0-based, negative counts from the back).
80
+ * @returns
81
+ * * A [key, value] tuple or undefined.
82
+ */
83
+ at(obj: any, index: number): [string, any] | undefined;
84
+ /**
85
+ * * Finds the first entry where the key or value matches the query.
86
+ * @example find.first(config, 'admin', 'exact', 'key')
87
+ * @param obj
88
+ * * The object to search.
89
+ * @param query
90
+ * * The search query.
91
+ * @param mode
92
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
93
+ * @param searchBy
94
+ * * Whether to search by 'key' or 'value'.
95
+ * @returns
96
+ * * The first matching [key, value] pair or undefined.
97
+ */
98
+ first(obj: any, query: string | number, mode?: MatchMode, searchBy?: "key" | "value"): [string, any] | undefined;
99
+ /**
100
+ * * Finds the last entry where the key or value matches the query.
101
+ * @example find.last(config, '.php', 'endsWith', 'key')
102
+ * @param obj
103
+ * * The object to search.
104
+ * @param query
105
+ * * The search query.
106
+ * @param mode
107
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
108
+ * @param searchBy
109
+ * * Whether to search by 'key' or 'value'.
110
+ * @returns
111
+ * * The last matching [key, value] pair or undefined.
112
+ */
113
+ last(obj: any, query: string | number, mode?: MatchMode, searchBy?: "key" | "value"): [string, any] | undefined;
114
+ /**
115
+ * * Finds all keys matching the query.
99
116
  * @example find.key(config, 'api_', 'startsWith')
117
+ * @param obj
118
+ * * The object to search.
119
+ * @param query
120
+ * * The search query.
121
+ * @param mode
122
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
123
+ * @returns
124
+ * * An array of matching keys.
100
125
  */
101
126
  key(obj: any, query: string, mode?: MatchMode): string[];
102
127
  /**
103
- * * πŸ‡¬πŸ‡§: Finds all values matching the query.
104
- * * πŸ‡©πŸ‡ͺ: Findet alle Werte (Values), die auf den Suchbegriff passen.
128
+ * * Finds all values matching the query.
129
+ * @param obj
130
+ * * The object to search.
131
+ * @param query
132
+ * * The search query.
133
+ * @param mode
134
+ * * The comparison mode ('exact', 'contains', 'startsWith', 'endsWith').
135
+ * @returns
136
+ * * An array of matching values.
105
137
  */
106
138
  value(obj: any, query: string, mode?: MatchMode): any[];
107
139
  };
@@ -1 +1 @@
1
- {"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../../src/modules/data/objects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAc,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,CAgBzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAMvF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAMxE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAE/C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAS5D;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI;IACb;;;;OAIG;aACM,GAAG,SAAS,MAAM,SAAQ,SAAS,GAAa,MAAM,EAAE;IAIjE;;;OAGG;eACQ,GAAG,SAAS,MAAM,SAAQ,SAAS,GAAa,GAAG,EAAE;CAGnE,CAAC"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,SAAQ,SAAS,aAAsB,KAAK,GAAG,OAAO,GAAW,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS;IAkB/H;;;;;;;;;;;OAWG;aACM,GAAG,SAAS,MAAM,SAAQ,SAAS,GAAa,MAAM,EAAE;IAejE;;;;;;;;;;OAUG;eACQ,GAAG,SAAS,MAAM,SAAQ,SAAS,GAAa,GAAG,EAAE;CAcnE,CAAC"}
@@ -1,35 +1,16 @@
1
1
  /**
2
2
  * @file src/modules/data/types.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 Data
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Type definitions and validation helpers for data structures.
11
- * * πŸ‡©πŸ‡ͺ: Typ-Definitionen und Validierungs-Hilfsmittel fΓΌr Datenstrukturen.
10
+ * * Type definitions and validation helpers for data structures.
12
11
  */
13
12
  /**
14
- * * πŸ‡¬πŸ‡§: Defines the matching modes for search operations.
15
- * * πŸ‡©πŸ‡ͺ: Definiert die Vergleichsmodi fΓΌr Suchoperationen.
13
+ * * Defines the matching modes for search operations.
16
14
  */
17
15
  export type MatchMode = 'exact' | 'contains' | 'startsWith' | 'endsWith';
18
- /**
19
- * * πŸ‡¬πŸ‡§: Internal helper to compare values based on the specified mode. Converts values to strings and lowercase for comparison.
20
- * * πŸ‡©πŸ‡ͺ: Interner Helfer zum Vergleichen von Werten basierend auf dem angegebenen Modus. Konvertiert Werte fΓΌr den Vergleich in Strings und Kleinschreibung.
21
- * @param value
22
- * * πŸ‡¬πŸ‡§: The value to check.
23
- * * πŸ‡©πŸ‡ͺ: Der zu prΓΌfende Wert.
24
- * @param query
25
- * * πŸ‡¬πŸ‡§: The search query.
26
- * * πŸ‡©πŸ‡ͺ: Der Suchbegriff.
27
- * @param mode
28
- * * πŸ‡¬πŸ‡§: The matching mode.
29
- * * πŸ‡©πŸ‡ͺ: Der Vergleichsmodus.
30
- * @returns
31
- * * πŸ‡¬πŸ‡§: True if the value matches the query.
32
- * * πŸ‡©πŸ‡ͺ: True, wenn der Wert mit der Query ΓΌbereinstimmt.
33
- */
34
- export declare function checkMatch(value: any, query: any, mode: MatchMode): boolean;
35
16
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/data/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,CAAC;AAEzE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAW3E"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/data/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,CAAC"}
@@ -1,42 +1,33 @@
1
1
  /**
2
2
  * @file src/modules/dom/attributes.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 DOM
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Methods for getting and setting HTML attributes and properties (attr, data, val).
11
- * * πŸ‡©πŸ‡ͺ: Methoden zum Lesen und Setzen von HTML-Attributen und Eigenschaften (attr, data, val).
10
+ * * Methods for getting and setting HTML attributes and properties (attr, data, val).
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
- * * πŸ‡¬πŸ‡§: Gets an attribute from the first element or sets it for all elements in the selection.
19
- * * πŸ‡©πŸ‡ͺ: Liest ein Attribut vom ersten Element oder setzt es fΓΌr alle Elemente in der Auswahl.
16
+ * * Gets an attribute from the first element or sets it for all elements in the selection.
20
17
  * @param name
21
- * * πŸ‡¬πŸ‡§: The name of the attribute (e.g., 'href', 'data-id').
22
- * * πŸ‡©πŸ‡ͺ: Der Name des Attributs (z.B. 'href', 'data-id').
18
+ * * The name of the attribute (e.g., 'href', 'data-id').
23
19
  * @param value
24
- * * πŸ‡¬πŸ‡§: (Optional) The value to set. If undefined, acts as a getter.
25
- * * πŸ‡©πŸ‡ͺ: (Optional) Der zu setzende Wert. Wenn nicht angegeben, wird gelesen.
20
+ * * (Optional) The value to set. If undefined, acts as a getter.
26
21
  * @returns
27
- * * πŸ‡¬πŸ‡§: The attribute value (string/null) when reading, or the jBase instance when writing.
28
- * * πŸ‡©πŸ‡ͺ: Beim Lesen: Der Wert des Attributs (string/null). Beim Schreiben: Die jBase-Instanz.
22
+ * * The attribute value (string/null) when reading, or the jBase instance when writing.
29
23
  */
30
24
  export declare function attr(this: jBase, name: string, value?: string): string | null | jBase;
31
25
  /**
32
- * * πŸ‡¬πŸ‡§: Gets the 'value' from the first form element or sets it for all elements. Supports Input, Textarea, and Select elements.
33
- * * πŸ‡©πŸ‡ͺ: Liest den 'value' vom ersten Formularelement oder setzt ihn fΓΌr alle Elemente. UnterstΓΌtzt Input-, Textarea- und Select-Elemente.
26
+ * * Gets the 'value' from the first form element or sets it for all elements. Supports Input, Textarea, and Select elements.
34
27
  * @param value
35
- * * πŸ‡¬πŸ‡§: (Optional) The value to set. If undefined, acts as a getter.
36
- * * πŸ‡©πŸ‡ͺ: (Optional) Der zu setzende Wert. Wenn nicht angegeben, wird gelesen.
28
+ * * (Optional) The value to set. If undefined, acts as a getter.
37
29
  * @returns
38
- * * πŸ‡¬πŸ‡§: The current value as a string when reading, or the jBase instance when writing.
39
- * * πŸ‡©πŸ‡ͺ: Beim Lesen: Der aktuelle Wert als String. Beim Schreiben: Die jBase-Instanz.
30
+ * * The current value as a string when reading, or the jBase instance when writing.
40
31
  */
41
32
  export declare function val(this: jBase, value?: string): string | jBase;
42
33
  //# sourceMappingURL=attributes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/attributes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAUrF;AAED;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAe/D"}
1
+ {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/attributes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAUrF;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAe/D"}
@@ -1,39 +1,31 @@
1
1
  /**
2
2
  * @file src/modules/dom/content.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 DOM
9
9
  * @description
10
- * * πŸ‡¬πŸ‡§: Methods for getting and setting element content (html, text, empty, replaceWith).
11
- * * πŸ‡©πŸ‡ͺ: Methoden zum Lesen und Setzen von Elementinhalten (html, text, empty, replaceWith).
10
+ * * Methods for getting and setting element content (html, text, empty, replaceWith).
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
- * * πŸ‡¬πŸ‡§: Gets the HTML content of the first element or sets the HTML content for all elements in the selection.
19
- * * πŸ‡©πŸ‡ͺ: Ruft den HTML-Inhalt des ersten Elements ab oder setzt den HTML-Inhalt fΓΌr alle Elemente in der Auswahl.
16
+ * * Gets the HTML content of the first element or sets the HTML content for all elements in the selection.
20
17
  * @param content
21
- * * πŸ‡¬πŸ‡§: (Optional) The HTML string to set.
22
- * * πŸ‡©πŸ‡ͺ: (Optional) Der HTML-String, der gesetzt werden soll.
18
+ * * (Optional) The HTML string to set.
23
19
  * @returns
24
- * * πŸ‡¬πŸ‡§: The HTML string (getter) or the current jBase instance (setter).
25
- * * πŸ‡©πŸ‡ͺ: Der HTML-String (Getter) oder die aktuelle jBase-Instanz (Setter).
20
+ * * The HTML string (getter) or the current jBase instance (setter).
26
21
  */
27
22
  export declare function html(this: jBase, content?: string): string | jBase;
28
23
  /**
29
- * * πŸ‡¬πŸ‡§: Gets the text content of the first element or sets it for all elements. Safe against XSS attacks.
30
- * * πŸ‡©πŸ‡ͺ: Ruft den reinen Text-Inhalt des ersten Elements ab oder setzt ihn fΓΌr alle Elemente. Sicher gegen XSS-Angriffe.
24
+ * * Gets the text content of the first element or sets it for all elements. Safe against XSS attacks.
31
25
  * @param content
32
- * * πŸ‡¬πŸ‡§: (Optional) The text content to set.
33
- * * πŸ‡©πŸ‡ͺ: (Optional) Der Text, der gesetzt werden soll.
26
+ * * (Optional) The text content to set.
34
27
  * @returns
35
- * * πŸ‡¬πŸ‡§: The text content (getter) or the current jBase instance (setter).
36
- * * πŸ‡©πŸ‡ͺ: Der Text-Inhalt (Getter) oder die aktuelle jBase-Instanz (Setter).
28
+ * * The text content (getter) or the current jBase instance (setter).
37
29
  */
38
30
  export declare function text(this: jBase, content?: string): string | jBase;
39
31
  //# sourceMappingURL=content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/content.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CASlE;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAYlE"}
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/content.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CASlE;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAYlE"}