@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.
- package/CHANGELOG.md +50 -0
- package/README.md +59 -43
- package/dist/browser.d.ts +5 -6
- package/dist/browser.d.ts.map +1 -1
- package/dist/core.d.ts +9 -14
- package/dist/core.d.ts.map +1 -1
- package/dist/index.cjs +577 -452
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +304 -603
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +575 -452
- package/dist/index.mjs.map +7 -0
- package/dist/jbase.browser.js +338 -281
- package/dist/jbase.browser.js.map +7 -0
- package/dist/jbase.min.js +3 -2
- package/dist/jbase.min.js.map +7 -0
- package/dist/modules/css/classes.d.ts +15 -29
- package/dist/modules/css/classes.d.ts.map +1 -1
- package/dist/modules/css/index.d.ts +5 -9
- package/dist/modules/css/index.d.ts.map +1 -1
- package/dist/modules/css/styles.d.ts +7 -13
- package/dist/modules/css/styles.d.ts.map +1 -1
- package/dist/modules/data/arrays.d.ts +96 -64
- package/dist/modules/data/arrays.d.ts.map +1 -1
- package/dist/modules/data/index.d.ts +5 -9
- package/dist/modules/data/index.d.ts.map +1 -1
- package/dist/modules/data/objects.d.ts +86 -54
- package/dist/modules/data/objects.d.ts.map +1 -1
- package/dist/modules/data/types.d.ts +3 -22
- package/dist/modules/data/types.d.ts.map +1 -1
- package/dist/modules/dom/attributes.d.ts +10 -19
- package/dist/modules/dom/attributes.d.ts.map +1 -1
- package/dist/modules/dom/content.d.ts +9 -17
- package/dist/modules/dom/content.d.ts.map +1 -1
- package/dist/modules/dom/index.d.ts +8 -15
- package/dist/modules/dom/index.d.ts.map +1 -1
- package/dist/modules/dom/manipulation.d.ts +41 -81
- package/dist/modules/dom/manipulation.d.ts.map +1 -1
- package/dist/modules/dom/states.d.ts +12 -23
- package/dist/modules/dom/states.d.ts.map +1 -1
- package/dist/modules/dom/traversal.d.ts +64 -127
- package/dist/modules/dom/traversal.d.ts.map +1 -1
- package/dist/modules/effects/fade.d.ts +13 -31
- package/dist/modules/effects/fade.d.ts.map +1 -1
- package/dist/modules/effects/index.d.ts +15 -23
- package/dist/modules/effects/index.d.ts.map +1 -1
- package/dist/modules/effects/slide.d.ts +13 -31
- package/dist/modules/effects/slide.d.ts.map +1 -1
- package/dist/modules/effects/types.d.ts +33 -0
- package/dist/modules/effects/types.d.ts.map +1 -0
- package/dist/modules/effects/vertical.d.ts +13 -31
- package/dist/modules/effects/vertical.d.ts.map +1 -1
- package/dist/modules/events/binding.d.ts +11 -21
- package/dist/modules/events/binding.d.ts.map +1 -1
- package/dist/modules/events/form.d.ts +18 -35
- package/dist/modules/events/form.d.ts.map +1 -1
- package/dist/modules/events/index.d.ts +9 -17
- package/dist/modules/events/index.d.ts.map +1 -1
- package/dist/modules/events/keyboard.d.ts +16 -31
- package/dist/modules/events/keyboard.d.ts.map +1 -1
- package/dist/modules/events/lifecycle.d.ts +6 -11
- package/dist/modules/events/lifecycle.d.ts.map +1 -1
- package/dist/modules/events/mouse.d.ts +30 -59
- package/dist/modules/events/mouse.d.ts.map +1 -1
- package/dist/modules/events/touch.d.ts +15 -29
- package/dist/modules/events/touch.d.ts.map +1 -1
- package/dist/modules/http/get.d.ts +18 -25
- package/dist/modules/http/get.d.ts.map +1 -1
- package/dist/modules/http/index.d.ts +11 -15
- package/dist/modules/http/index.d.ts.map +1 -1
- package/dist/modules/http/post.d.ts +13 -19
- package/dist/modules/http/post.d.ts.map +1 -1
- package/dist/server.d.ts +15 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +2246 -0
- package/dist/server.js.map +7 -0
- package/dist/types.d.ts +11 -21
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +20 -23
- package/dist/utils.d.ts.map +1 -1
- package/package.json +14 -4
- package/wiki/CSS-Classes-&-Styles.md +128 -0
- package/wiki/DATA-Utilities-(Arrays).md +332 -0
- package/wiki/DATA-Utilities-(Objects).md +263 -0
- package/wiki/DOM-Attributes.md +56 -0
- package/wiki/DOM-Content.md +48 -0
- package/wiki/DOM-Manipulation.md +272 -0
- package/wiki/DOM-States.md +73 -0
- package/wiki/DOM-Traversal.md +529 -0
- package/wiki/EFFECTS-Fade.md +76 -0
- package/wiki/EFFECTS-Slide-(horizontal).md +70 -0
- package/wiki/EFFECTS-Slide-(vertical).md +75 -0
- package/wiki/EVENTS-Bindings.md +55 -0
- package/wiki/EVENTS-Form.md +122 -0
- package/wiki/EVENTS-Keyboard.md +98 -0
- package/wiki/EVENTS-Lifecycle.md +25 -0
- package/wiki/EVENTS-Mouse.md +218 -0
- package/wiki/EVENTS-Touch.md +98 -0
- package/wiki/HTTP-Requests.md +93 -0
- package/wiki/Home.md +118 -0
- package/wiki/Installation.md +44 -0
- package/wiki/Quick-Start.md +139 -0
- package/dist/browser.js +0 -29
- package/dist/browser.js.map +0 -1
- package/dist/core.js +0 -78
- package/dist/core.js.map +0 -1
- package/dist/index.js +0 -100
- package/dist/index.js.map +0 -1
- package/dist/jbase.js +0 -1898
- package/dist/modules/css/classes.js +0 -88
- package/dist/modules/css/classes.js.map +0 -1
- package/dist/modules/css/index.js +0 -33
- package/dist/modules/css/index.js.map +0 -1
- package/dist/modules/css/styles.js +0 -49
- package/dist/modules/css/styles.js.map +0 -1
- package/dist/modules/data/arrays.js +0 -177
- package/dist/modules/data/arrays.js.map +0 -1
- package/dist/modules/data/index.js +0 -33
- package/dist/modules/data/index.js.map +0 -1
- package/dist/modules/data/objects.js +0 -168
- package/dist/modules/data/objects.js.map +0 -1
- package/dist/modules/data/types.js +0 -43
- package/dist/modules/data/types.js.map +0 -1
- package/dist/modules/dom/attributes.js +0 -69
- package/dist/modules/dom/attributes.js.map +0 -1
- package/dist/modules/dom/content.js +0 -63
- package/dist/modules/dom/content.js.map +0 -1
- package/dist/modules/dom/index.js +0 -48
- package/dist/modules/dom/index.js.map +0 -1
- package/dist/modules/dom/manipulation.js +0 -343
- package/dist/modules/dom/manipulation.js.map +0 -1
- package/dist/modules/dom/states.js +0 -89
- package/dist/modules/dom/states.js.map +0 -1
- package/dist/modules/dom/traversal.js +0 -527
- package/dist/modules/dom/traversal.js.map +0 -1
- package/dist/modules/effects/fade.js +0 -104
- package/dist/modules/effects/fade.js.map +0 -1
- package/dist/modules/effects/index.js +0 -38
- package/dist/modules/effects/index.js.map +0 -1
- package/dist/modules/effects/slide.js +0 -103
- package/dist/modules/effects/slide.js.map +0 -1
- package/dist/modules/effects/vertical.js +0 -118
- package/dist/modules/effects/vertical.js.map +0 -1
- package/dist/modules/events/binding.js +0 -60
- package/dist/modules/events/binding.js.map +0 -1
- package/dist/modules/events/form.js +0 -106
- package/dist/modules/events/form.js.map +0 -1
- package/dist/modules/events/index.js +0 -53
- package/dist/modules/events/index.js.map +0 -1
- package/dist/modules/events/keyboard.js +0 -83
- package/dist/modules/events/keyboard.js.map +0 -1
- package/dist/modules/events/lifecycle.js +0 -40
- package/dist/modules/events/lifecycle.js.map +0 -1
- package/dist/modules/events/mouse.js +0 -172
- package/dist/modules/events/mouse.js.map +0 -1
- package/dist/modules/events/touch.js +0 -74
- package/dist/modules/events/touch.js.map +0 -1
- package/dist/modules/http/get.js +0 -65
- package/dist/modules/http/get.js.map +0 -1
- package/dist/modules/http/index.js +0 -42
- package/dist/modules/http/index.js.map +0 -1
- package/dist/modules/http/post.js +0 -54
- package/dist/modules/http/post.js.map +0 -1
- package/dist/types.js +0 -15
- package/dist/types.js.map +0 -1
- package/dist/utils.js +0 -71
- package/dist/utils.js.map +0 -1
|
@@ -1,33 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file src/modules/dom/index.ts
|
|
3
|
-
* @version 2.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
|
-
* *
|
|
11
|
-
* * π©πͺ: Zentraler Einstiegspunkt fΓΌr DOM-Operationen. Aggregiert Methoden fΓΌr Attribute, Inhalt, Manipulation, Traversierung und Status.
|
|
10
|
+
* * Central entry point for DOM operations. Aggregates methods for attributes, content, manipulation, traversal, and states.
|
|
12
11
|
* @requires ./attributes
|
|
13
|
-
* *
|
|
14
|
-
* * π©πͺ: Attribut- und Wert-Manipulation.
|
|
12
|
+
* * Attribute and value manipulation.
|
|
15
13
|
* @requires ./content
|
|
16
|
-
* *
|
|
17
|
-
* * π©πͺ: Inhalts-Steuerung (html, text).
|
|
14
|
+
* * Content handling (html, text).
|
|
18
15
|
* @requires ./manipulation
|
|
19
|
-
* *
|
|
20
|
-
* * π©πͺ: DOM-Manipulation (append, remove, etc.).
|
|
16
|
+
* * DOM manipulation (append, remove, etc.).
|
|
21
17
|
* @requires ./traversal
|
|
22
|
-
* *
|
|
23
|
-
* * π©πͺ: Baum-Durchquerung (find, parent, children).
|
|
18
|
+
* * Tree traversal (find, parent, children).
|
|
24
19
|
* @requires ./states
|
|
25
|
-
* *
|
|
26
|
-
* * π©πͺ: Status-PrΓΌfungen (checked, disabled).
|
|
20
|
+
* * State checks (checked, disabled).
|
|
27
21
|
*/
|
|
28
22
|
/**
|
|
29
|
-
* *
|
|
30
|
-
* * π©πͺ: Aggregation aller DOM-Methoden. BΓΌndelt spezialisierte Untermodule in einer einzigen Schnittstelle. Dient als Quelle fΓΌr das Object.assign zur zentralen Erweiterung des jBase-Prototyps.
|
|
23
|
+
* * Aggregation of all DOM methods. Bundles specialized sub-modules into a single interface. Used to extend the jBase prototype centrally via Object.assign.
|
|
31
24
|
*/
|
|
32
25
|
export declare const domMethods: {
|
|
33
26
|
checked(this: import("../..").JBaseClass, state?: boolean): boolean | import("../..").JBaseClass;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAQH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMtB,CAAC"}
|
|
@@ -1,159 +1,119 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file src/modules/dom/manipulation.ts
|
|
3
|
-
* @version 2.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
|
-
* *
|
|
11
|
-
* * π©πͺ: Methoden zum EinfΓΌgen, Verschieben und Entfernen von Elementen (append, prepend, remove).
|
|
10
|
+
* * Methods for inserting, moving, and removing elements (append, prepend, remove).
|
|
12
11
|
* @requires ../../core
|
|
13
|
-
* *
|
|
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
|
-
* *
|
|
19
|
-
* * π©πͺ: Entfernt die ausgewΓ€hlten Elemente vollstΓ€ndig aus dem DOM.
|
|
16
|
+
* * Removes the selected elements from the DOM.
|
|
20
17
|
* @returns
|
|
21
|
-
* *
|
|
22
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
18
|
+
* * The current jBase instance.
|
|
23
19
|
*/
|
|
24
20
|
export declare function remove(this: jBase): jBase;
|
|
25
21
|
/**
|
|
26
|
-
* *
|
|
27
|
-
* * π©πͺ: Entfernt alle Kind-Elemente und Textknoten aus den ausgewΓ€hlten Elementen.
|
|
22
|
+
* * Removes all child nodes and text content from the selected elements.
|
|
28
23
|
* @returns
|
|
29
|
-
* *
|
|
30
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
24
|
+
* * The current jBase instance.
|
|
31
25
|
*/
|
|
32
26
|
export declare function empty(this: jBase): jBase;
|
|
33
27
|
/**
|
|
34
|
-
* *
|
|
35
|
-
* * π©πͺ: Ersetzt jedes Element durch eine tiefe Kopie seiner selbst. NΓΌtzlich, um alle Event-Listener hart zu entfernen.
|
|
28
|
+
* * Replaces each element with a deep clone of itself. Useful for removing all event listeners ("Nuke" strategy).
|
|
36
29
|
* @returns
|
|
37
|
-
* *
|
|
38
|
-
* * π©πͺ: Eine neue jBase-Instanz, die die geklonten Elemente enthΓ€lt.
|
|
30
|
+
* * A new jBase instance containing the cloned elements.
|
|
39
31
|
*/
|
|
40
32
|
export declare function replaceWithClone(this: jBase): jBase;
|
|
41
33
|
/**
|
|
42
|
-
* *
|
|
43
|
-
* * π©πͺ: FΓΌgt Inhalt am Ende jedes Elements in der Sammlung ein (innerhalb).
|
|
34
|
+
* * Inserts content at the end of each selected element (inside).
|
|
44
35
|
* @param content
|
|
45
|
-
* *
|
|
46
|
-
* * π©πͺ: HTML-String, DOM-Node oder jBase-Sammlung.
|
|
36
|
+
* * HTML string, DOM Node, or jBase collection.
|
|
47
37
|
* @returns
|
|
48
|
-
* *
|
|
49
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
38
|
+
* * The current jBase instance.
|
|
50
39
|
*/
|
|
51
40
|
export declare function append(this: jBase, content: string | Node | jBase): jBase;
|
|
52
41
|
/**
|
|
53
|
-
* *
|
|
54
|
-
* * π©πͺ: FΓΌgt Inhalt am Anfang jedes Elements in der Sammlung ein (innerhalb).
|
|
42
|
+
* * Inserts content at the beginning of each selected element (inside).
|
|
55
43
|
* @param content
|
|
56
|
-
* *
|
|
57
|
-
* * π©πͺ: HTML-String, DOM-Node oder jBase-Sammlung.
|
|
44
|
+
* * HTML string, DOM Node, or jBase collection.
|
|
58
45
|
* @returns
|
|
59
|
-
* *
|
|
60
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
46
|
+
* * The current jBase instance.
|
|
61
47
|
*/
|
|
62
48
|
export declare function prepend(this: jBase, content: string | Node | jBase): jBase;
|
|
63
49
|
/**
|
|
64
|
-
* *
|
|
65
|
-
* * π©πͺ: FΓΌgt Inhalt VOR dem Element ein (auΓerhalb).
|
|
50
|
+
* * Inserts content before the element (outside).
|
|
66
51
|
* @param content
|
|
67
|
-
* *
|
|
68
|
-
* * π©πͺ: HTML-String, DOM-Node oder jBase-Sammlung.
|
|
52
|
+
* * HTML string, DOM Node, or jBase collection.
|
|
69
53
|
* @returns
|
|
70
|
-
* *
|
|
71
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
54
|
+
* * The current jBase instance.
|
|
72
55
|
*/
|
|
73
56
|
export declare function before(this: jBase, content: string | Node | jBase): jBase;
|
|
74
57
|
/**
|
|
75
|
-
* *
|
|
76
|
-
* * π©πͺ: FΓΌgt Inhalt NACH dem Element ein (auΓerhalb).
|
|
58
|
+
* * Inserts content after the element (outside).
|
|
77
59
|
* @param content
|
|
78
|
-
* *
|
|
79
|
-
* * π©πͺ: HTML-String, DOM-Node oder jBase-Sammlung.
|
|
60
|
+
* * HTML string, DOM Node, or jBase collection.
|
|
80
61
|
* @returns
|
|
81
|
-
* *
|
|
82
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
62
|
+
* * The current jBase instance.
|
|
83
63
|
*/
|
|
84
64
|
export declare function after(this: jBase, content: string | Node | jBase): jBase;
|
|
85
65
|
/**
|
|
86
|
-
* *
|
|
87
|
-
* * π©πͺ: Ersetzt das Element durch neuen Inhalt.
|
|
66
|
+
* * Replaces the element with new content.
|
|
88
67
|
* @param content
|
|
89
|
-
* *
|
|
90
|
-
* * π©πͺ: Der neue Inhalt.
|
|
68
|
+
* * The new content.
|
|
91
69
|
* @returns
|
|
92
|
-
* *
|
|
93
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
70
|
+
* * The current jBase instance.
|
|
94
71
|
*/
|
|
95
72
|
export declare function replaceWith(this: jBase, content: string | Node | jBase): jBase;
|
|
96
73
|
/**
|
|
97
|
-
* *
|
|
98
|
-
* * π©πͺ: HΓ€ngt die aktuellen Elemente an das Ende des Ziel-Elements an.
|
|
74
|
+
* * Appends the selected elements to the end of a target element.
|
|
99
75
|
* @param target
|
|
100
|
-
* *
|
|
101
|
-
* * π©πͺ: Der CSS-Selektor oder das DOM-Element.
|
|
76
|
+
* * CSS selector or DOM element.
|
|
102
77
|
* @returns
|
|
103
|
-
* *
|
|
104
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
78
|
+
* * The current jBase instance.
|
|
105
79
|
*/
|
|
106
80
|
export declare function appendTo(this: jBase, target: string | Element): jBase;
|
|
107
81
|
/**
|
|
108
|
-
* *
|
|
109
|
-
* * π©πͺ: FΓΌgt die aktuellen Elemente am Anfang des Ziel-Elements ein.
|
|
82
|
+
* * Prepends the selected elements to the beginning of a target element.
|
|
110
83
|
* @param target
|
|
111
|
-
* *
|
|
112
|
-
* * π©πͺ: Der CSS-Selektor oder das DOM-Element.
|
|
84
|
+
* * CSS selector or DOM element.
|
|
113
85
|
* @returns
|
|
114
|
-
* *
|
|
115
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
86
|
+
* * The current jBase instance.
|
|
116
87
|
*/
|
|
117
88
|
export declare function prependTo(this: jBase, target: string | Element): jBase;
|
|
118
89
|
/**
|
|
119
|
-
* *
|
|
120
|
-
* * π©πͺ: FΓΌgt die aktuellen Elemente unmittelbar VOR dem Ziel-Element ein.
|
|
90
|
+
* * Inserts the selected elements immediately before the target element.
|
|
121
91
|
* @param target
|
|
122
|
-
* *
|
|
123
|
-
* * π©πͺ: Der CSS-Selektor oder das DOM-Element.
|
|
92
|
+
* * CSS selector or DOM element.
|
|
124
93
|
* @returns
|
|
125
|
-
* *
|
|
126
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
94
|
+
* * The current jBase instance.
|
|
127
95
|
*/
|
|
128
96
|
export declare function insertBefore(this: jBase, target: string | Element): jBase;
|
|
129
97
|
/**
|
|
130
|
-
* *
|
|
131
|
-
* * π©πͺ: FΓΌgt die aktuellen Elemente unmittelbar NACH dem Ziel-Element ein.
|
|
98
|
+
* * Inserts the selected elements immediately after the target element.
|
|
132
99
|
* @param target
|
|
133
|
-
* *
|
|
134
|
-
* * π©πͺ: Der CSS-Selektor oder das DOM-Element.
|
|
100
|
+
* * CSS selector or DOM element.
|
|
135
101
|
* @returns
|
|
136
|
-
* *
|
|
137
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
102
|
+
* * The current jBase instance.
|
|
138
103
|
*/
|
|
139
104
|
export declare function insertAfter(this: jBase, target: string | Element): jBase;
|
|
140
105
|
/**
|
|
141
|
-
* *
|
|
142
|
-
* * π©πͺ: UmschlieΓt jedes Element in der Auswahl mit der angegebenen HTML-Struktur.
|
|
106
|
+
* * Wraps each selected element with the specified HTML structure.
|
|
143
107
|
* @param wrapperHtml
|
|
144
|
-
* *
|
|
145
|
-
* * π©πͺ: Ein HTML-String, der die Wrapper-Struktur definiert (z.B. `<div class="box"></div>`).
|
|
108
|
+
* * HTML string defining the wrapper (e.g., `<div class="box"></div>`).
|
|
146
109
|
* @returns
|
|
147
|
-
* *
|
|
148
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
110
|
+
* * The current jBase instance.
|
|
149
111
|
*/
|
|
150
112
|
export declare function wrap(this: jBase, wrapperHtml: string): jBase;
|
|
151
113
|
/**
|
|
152
|
-
* *
|
|
153
|
-
* * π©πͺ: Entfernt das direkte Elternelement der ausgewΓ€hlten Elemente aus dem DOM.
|
|
114
|
+
* * Removes the direct parent of the selected elements from the DOM.
|
|
154
115
|
* @returns
|
|
155
|
-
* *
|
|
156
|
-
* * π©πͺ: Die aktuelle jBase-Instanz.
|
|
116
|
+
* * The current jBase instance.
|
|
157
117
|
*/
|
|
158
118
|
export declare function unwrap(this: jBase): jBase;
|
|
159
119
|
//# sourceMappingURL=manipulation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manipulation.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/manipulation.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"manipulation.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/manipulation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAgEnC;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,KAAK,CAKzC;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,GAAG,KAAK,CAKxC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,GAAG,KAAK,CAWnD;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAoBzE;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAoB1E;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAoBzE;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAoBxE;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAY9E;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAarE;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAatE;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAazE;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAaxE;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,KAAK,CAc5D;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,KAAK,CAmBzC"}
|
|
@@ -1,50 +1,39 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file src/modules/dom/states.ts
|
|
3
|
-
* @version 2.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
|
-
* *
|
|
11
|
-
* * π©πͺ: Methoden zur PrΓΌfung von Element-ZustΓ€nden (z.B. Sichtbarkeit, checked, disabled).
|
|
10
|
+
* * Methods for checking element states (e.g., visibility, checked, disabled).
|
|
12
11
|
* @requires ../../core
|
|
13
|
-
* *
|
|
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
|
-
* *
|
|
19
|
-
* * π©πͺ: Liest oder setzt den 'checked'-Status von Checkboxen und Radiobuttons.
|
|
16
|
+
* * Gets or sets the 'checked' state of checkboxes and radio buttons.
|
|
20
17
|
* @param state
|
|
21
|
-
* *
|
|
22
|
-
* * π©πͺ: (Optional) `true` zum Anhaken, `false` zum Deselektieren. Wenn nicht angegeben, wird gelesen.
|
|
18
|
+
* * (Optional) `true` to check, `false` to uncheck. If undefined, acts as a getter.
|
|
23
19
|
* @returns
|
|
24
|
-
* *
|
|
25
|
-
* * π©πͺ: Boolean (Getter) oder die aktuelle jBase-Instanz (Setter).
|
|
20
|
+
* * Boolean (getter) or the current jBase instance (setter).
|
|
26
21
|
*/
|
|
27
22
|
export declare function checked(this: jBase, state?: boolean): boolean | jBase;
|
|
28
23
|
/**
|
|
29
|
-
* *
|
|
30
|
-
* * π©πͺ: Liest oder setzt den 'selected'-Status von `<option>`-Elementen.
|
|
24
|
+
* * Gets or sets the 'selected' state of `<option>` elements.
|
|
31
25
|
* @param state
|
|
32
|
-
* *
|
|
33
|
-
* * π©πͺ: (Optional) `true` zum AuswΓ€hlen, `false` zum AbwΓ€hlen. Wenn nicht angegeben, wird gelesen.
|
|
26
|
+
* * (Optional) `true` to select, `false` to deselect. If undefined, acts as a getter.
|
|
34
27
|
* @returns
|
|
35
|
-
* *
|
|
36
|
-
* * π©πͺ: Boolean (Getter) oder die aktuelle jBase-Instanz (Setter).
|
|
28
|
+
* * Boolean (getter) or the current jBase instance (setter).
|
|
37
29
|
*/
|
|
38
30
|
export declare function selected(this: jBase, state?: boolean): boolean | jBase;
|
|
39
31
|
/**
|
|
40
|
-
* *
|
|
41
|
-
* * π©πͺ: Aktiviert oder deaktiviert Formularfelder und Buttons. Toggelt zusΓ€tzlich die CSS-Klasse `.disabled`.
|
|
32
|
+
* * Enables or disables form fields and buttons. Additionally toggles the CSS class `.disabled`.
|
|
42
33
|
* @param state
|
|
43
|
-
* *
|
|
44
|
-
* * π©πͺ: (Optional) `true` zum Deaktivieren, `false` zum Aktivieren. Wenn nicht angegeben, wird gelesen.
|
|
34
|
+
* * (Optional) `true` to disable, `false` to enable. If undefined, acts as a getter.
|
|
45
35
|
* @returns
|
|
46
|
-
* *
|
|
47
|
-
* * π©πͺ: Boolean (Getter) oder die aktuelle jBase-Instanz (Setter).
|
|
36
|
+
* * Boolean (getter) or the current jBase instance (setter).
|
|
48
37
|
*/
|
|
49
38
|
export declare function disabled(this: jBase, state?: boolean): boolean | jBase;
|
|
50
39
|
//# sourceMappingURL=states.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"states.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/states.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"states.d.ts","sourceRoot":"","sources":["../../../src/modules/dom/states.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,CAUrE;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,CAUtE;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,CAetE"}
|
|
@@ -1,246 +1,183 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file src/modules/dom/traversal.ts
|
|
3
|
-
* @version 2.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
|
-
* *
|
|
11
|
-
* * π©πͺ: Methoden zur Navigation im DOM-Baum (find, parent, children, siblings).
|
|
10
|
+
* * Methods for navigating the DOM tree (find, parent, children, siblings).
|
|
12
11
|
* @requires ../../core
|
|
13
|
-
* *
|
|
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
|
-
* *
|
|
19
|
-
* * π©πͺ: DurchlΓ€uft die Elternelemente (in Richtung Document Root) jedes Elements und findet das erste Element, das dem angegebenen Selektor entspricht.
|
|
16
|
+
* * Traverses the parents (heading toward the document root) of each element and finds the first element that matches the specified selector.
|
|
20
17
|
* @param selector
|
|
21
|
-
* *
|
|
22
|
-
* * π©πͺ: Ein String, der einen Selektor-Ausdruck enthΓ€lt.
|
|
18
|
+
* * A string containing a selector expression.
|
|
23
19
|
* @returns
|
|
24
|
-
* *
|
|
25
|
-
* * π©πͺ: Eine neue jBase-Instanz mit den gefundenen Elementen.
|
|
20
|
+
* * A new jBase instance containing the matched elements.
|
|
26
21
|
*/
|
|
27
22
|
export declare function closest(this: jBase, selector: string): jBase;
|
|
28
23
|
/**
|
|
29
|
-
* *
|
|
30
|
-
* * π©πͺ: Gibt das direkte Elternelement jedes Elements in der aktuellen Auswahl zurΓΌck. Entfernt Duplikate.
|
|
24
|
+
* * Gets the direct parent of each element in the current set. Deduplicates results.
|
|
31
25
|
* @returns
|
|
32
|
-
* *
|
|
33
|
-
* * π©πͺ: Eine neue jBase-Instanz mit den Elternelementen.
|
|
26
|
+
* * A new jBase instance containing the parent elements.
|
|
34
27
|
*/
|
|
35
28
|
export declare function parent(this: jBase): jBase;
|
|
36
29
|
/**
|
|
37
|
-
* *
|
|
38
|
-
* * π©πͺ: Gibt die direkten Kinder jedes Elements zurΓΌck, optional gefiltert durch einen Selektor.
|
|
30
|
+
* * Gets the direct children of each element in the set, optionally filtered by a selector.
|
|
39
31
|
* @param selector
|
|
40
|
-
* *
|
|
41
|
-
* * π©πͺ: (Optional) Filter-Selektor.
|
|
32
|
+
* * (Optional) Filter selector.
|
|
42
33
|
* @returns
|
|
43
|
-
* *
|
|
44
|
-
* * π©πͺ: Eine neue jBase-Instanz mit den Kindern.
|
|
34
|
+
* * A new jBase instance containing the children.
|
|
45
35
|
*/
|
|
46
36
|
export declare function children(this: jBase, selector?: string): jBase;
|
|
47
37
|
/**
|
|
48
|
-
* *
|
|
49
|
-
* * π©πͺ: Findet Nachfahren (tief), die dem Selektor entsprechen. Nutzt `querySelectorAll`.
|
|
38
|
+
* * Finds descendants (deep) that match the selector using `querySelectorAll`.
|
|
50
39
|
* @param selector
|
|
51
|
-
* *
|
|
52
|
-
* * π©πͺ: Der CSS-Selektor fΓΌr die Suche.
|
|
40
|
+
* * The CSS selector to search for.
|
|
53
41
|
* @returns
|
|
54
|
-
* *
|
|
55
|
-
* * π©πͺ: Eine neue jBase-Instanz mit den gefundenen Elementen.
|
|
42
|
+
* * A new jBase instance with the found elements.
|
|
56
43
|
*/
|
|
57
44
|
export declare function findAll(this: jBase, selector: string): jBase;
|
|
58
45
|
/**
|
|
59
|
-
* *
|
|
60
|
-
* * π©πͺ: Gibt rekursiv ALLE Nachfahren zurΓΌck (nicht nur direkte Kinder).
|
|
46
|
+
* * Recursively gets ALL descendants (not just direct children).
|
|
61
47
|
* @returns
|
|
62
|
-
* *
|
|
63
|
-
* * π©πͺ: Eine neue jBase-Instanz mit allen Nachfahren.
|
|
48
|
+
* * A new jBase instance with all descendants.
|
|
64
49
|
*/
|
|
65
50
|
export declare function descendants(this: jBase): jBase;
|
|
66
51
|
/**
|
|
67
|
-
* *
|
|
68
|
-
* * π©πͺ: Gibt alle Vorfahren (Eltern, GroΓeltern...) zurΓΌck bis zum Root-Element. Optional gefiltert.
|
|
52
|
+
* * Gets all ancestors (parents, grandparents...) up to the root. Optionally filtered.
|
|
69
53
|
* @param selector
|
|
70
|
-
* *
|
|
71
|
-
* * π©πͺ: (Optional) Selektor zum Filtern der Vorfahren.
|
|
54
|
+
* * (Optional) Filter selector for ancestors.
|
|
72
55
|
* @returns
|
|
73
|
-
* *
|
|
74
|
-
* * π©πͺ: Eine neue jBase-Instanz mit den Vorfahren.
|
|
56
|
+
* * A new jBase instance with the ancestors.
|
|
75
57
|
*/
|
|
76
58
|
export declare function parents(this: jBase, selector?: string): jBase;
|
|
77
59
|
/**
|
|
78
|
-
* *
|
|
79
|
-
* * π©πͺ: Gibt alle Vorfahren zurΓΌck, BIS (aber nicht einschlieΓlich) ein Element dem Selektor entspricht.
|
|
60
|
+
* * Gets all ancestors UP TO (but not including) an element matching the selector.
|
|
80
61
|
* @param selector
|
|
81
|
-
* *
|
|
82
|
-
* * π©πͺ: Der Selektor, bei dem gestoppt wird.
|
|
62
|
+
* * The selector where traversal stops.
|
|
83
63
|
* @param filter
|
|
84
|
-
* *
|
|
85
|
-
* * π©πͺ: (Optional) ZusΓ€tzlicher Filter fΓΌr die gefundenen Elemente.
|
|
64
|
+
* * (Optional) Filter for the collected elements.
|
|
86
65
|
* @returns
|
|
87
|
-
* *
|
|
88
|
-
* * π©πͺ: Eine neue jBase-Instanz.
|
|
66
|
+
* * A new jBase instance.
|
|
89
67
|
*/
|
|
90
68
|
export declare function parentsUntil(this: jBase, selector: string, filter?: string): jBase;
|
|
91
69
|
/**
|
|
92
|
-
* *
|
|
93
|
-
* * π©πͺ: Sucht rekursiv nach Nachfahren, stoppt aber den "Tiefgang" in einem Zweig, sobald ein Element dem `untilSelector` entspricht.
|
|
70
|
+
* * Recursively finds descendants but stops traversing a branch if `untilSelector` is met. Useful for finding nested elements without going too deep (e.g., nested forms).
|
|
94
71
|
* @param untilSelector
|
|
95
|
-
* *
|
|
96
|
-
* * π©πͺ: Der Selektor, der die Rekursion in diesem Zweig stoppt.
|
|
72
|
+
* * The selector that stops recursion in a branch.
|
|
97
73
|
* @param filter
|
|
98
|
-
* *
|
|
99
|
-
* * π©πͺ: (Optional) Selektor, welche Elemente gesammelt werden sollen.
|
|
74
|
+
* * (Optional) Selector to filter collected elements.
|
|
100
75
|
* @returns
|
|
101
|
-
* *
|
|
102
|
-
* * π©πͺ: Eine neue jBase-Instanz.
|
|
76
|
+
* * A new jBase instance.
|
|
103
77
|
*/
|
|
104
78
|
export declare function descendantsUntil(this: jBase, untilSelector: string, filter?: string): jBase;
|
|
105
79
|
/**
|
|
106
|
-
* *
|
|
107
|
-
* * π©πͺ: Holt das unmittelbar folgende Geschwisterelement.
|
|
80
|
+
* * Gets the immediately following sibling.
|
|
108
81
|
* @param selector
|
|
109
|
-
* *
|
|
110
|
-
* * π©πͺ: (Optional) Filter-Selektor.
|
|
82
|
+
* * (Optional) Filter selector.
|
|
111
83
|
* @returns
|
|
112
|
-
* *
|
|
113
|
-
* * π©πͺ: Eine neue jBase-Instanz.
|
|
84
|
+
* * A new jBase instance.
|
|
114
85
|
*/
|
|
115
86
|
export declare function next(this: jBase, selector?: string): jBase;
|
|
116
87
|
/**
|
|
117
|
-
* *
|
|
118
|
-
* * π©πͺ: Holt das unmittelbar vorhergehende Geschwisterelement.
|
|
88
|
+
* * Gets the immediately preceding sibling.
|
|
119
89
|
* @param selector
|
|
120
|
-
* *
|
|
121
|
-
* * π©πͺ: (Optional) Filter-Selektor.
|
|
90
|
+
* * (Optional) Filter selector.
|
|
122
91
|
* @returns
|
|
123
|
-
* *
|
|
124
|
-
* * π©πͺ: Eine neue jBase-Instanz.
|
|
92
|
+
* * A new jBase instance.
|
|
125
93
|
*/
|
|
126
94
|
export declare function prev(this: jBase, selector?: string): jBase;
|
|
127
95
|
/**
|
|
128
|
-
* *
|
|
129
|
-
* * π©πͺ: Alias fΓΌr `next()`.
|
|
96
|
+
* * Alias for `next()`.
|
|
130
97
|
*/
|
|
131
98
|
export declare function nextSibling(this: jBase, selector?: string): jBase;
|
|
132
99
|
/**
|
|
133
|
-
* *
|
|
134
|
-
* * π©πͺ: Alias fΓΌr `prev()`.
|
|
100
|
+
* * Alias for `prev()`.
|
|
135
101
|
*/
|
|
136
102
|
export declare function prevSibling(this: jBase, selector?: string): jBase;
|
|
137
103
|
/**
|
|
138
|
-
* *
|
|
139
|
-
* * π©πͺ: Alias fΓΌr `next()`.
|
|
104
|
+
* * Alias for `next()`.
|
|
140
105
|
*/
|
|
141
106
|
export declare function sibling(this: jBase, selector?: string): jBase;
|
|
142
107
|
/**
|
|
143
|
-
* *
|
|
144
|
-
* * π©πͺ: Holt ALLE nachfolgenden Geschwisterelemente.
|
|
108
|
+
* * Gets ALL following siblings.
|
|
145
109
|
* @param selector
|
|
146
|
-
* *
|
|
147
|
-
* * π©πͺ: (Optional) Filter-Selektor.
|
|
110
|
+
* * (Optional) Filter selector.
|
|
148
111
|
* @returns
|
|
149
|
-
* *
|
|
150
|
-
* * π©πͺ: Eine neue jBase-Instanz.
|
|
112
|
+
* * A new jBase instance.
|
|
151
113
|
*/
|
|
152
114
|
export declare function nextAll(this: jBase, selector?: string): jBase;
|
|
153
115
|
/**
|
|
154
|
-
* *
|
|
155
|
-
* * π©πͺ: Holt ALLE vorhergehenden Geschwisterelemente.
|
|
116
|
+
* * Gets ALL preceding siblings.
|
|
156
117
|
* @param selector
|
|
157
|
-
* *
|
|
158
|
-
* * π©πͺ: (Optional) Filter-Selektor.
|
|
118
|
+
* * (Optional) Filter selector.
|
|
159
119
|
* @returns
|
|
160
|
-
* *
|
|
161
|
-
* * π©πͺ: Eine neue jBase-Instanz.
|
|
120
|
+
* * A new jBase instance.
|
|
162
121
|
*/
|
|
163
122
|
export declare function prevAll(this: jBase, selector?: string): jBase;
|
|
164
123
|
/**
|
|
165
|
-
* *
|
|
166
|
-
* * π©πͺ: Holt ALLE Geschwisterelemente (vorherige UND nachfolgende), auΓer sich selbst.
|
|
124
|
+
* * Gets ALL siblings (previous and next), excluding itself.
|
|
167
125
|
* @param selector
|
|
168
|
-
* *
|
|
169
|
-
* * π©πͺ: (Optional) Filter-Selektor.
|
|
126
|
+
* * (Optional) Filter selector.
|
|
170
127
|
* @returns
|
|
171
|
-
* *
|
|
172
|
-
* * π©πͺ: Eine neue jBase-Instanz.
|
|
128
|
+
* * A new jBase instance.
|
|
173
129
|
*/
|
|
174
130
|
export declare function siblings(this: jBase, selector?: string): jBase;
|
|
175
131
|
/**
|
|
176
|
-
* *
|
|
177
|
-
* * π©πͺ: Holt alle nachfolgenden Elemente BIS ein Selektor zutrifft (exklusive).
|
|
132
|
+
* * Gets all following siblings UNTIL a selector is met (exclusive).
|
|
178
133
|
* @param untilSelector
|
|
179
|
-
* *
|
|
180
|
-
* * π©πͺ: Der Selektor, der die Suche stoppt.
|
|
134
|
+
* * The selector that stops the search.
|
|
181
135
|
* @param filter
|
|
182
|
-
* *
|
|
183
|
-
* * π©πͺ: (Optional) Filter fΓΌr die gefundenen Elemente.
|
|
136
|
+
* * (Optional) Filter for the found elements.
|
|
184
137
|
* @returns
|
|
185
|
-
* *
|
|
186
|
-
* * π©πͺ: Eine neue jBase-Instanz.
|
|
138
|
+
* * A new jBase instance.
|
|
187
139
|
*/
|
|
188
140
|
export declare function nextUntil(this: jBase, untilSelector: string, filter?: string): jBase;
|
|
189
141
|
/**
|
|
190
|
-
* *
|
|
191
|
-
* * π©πͺ: Holt alle vorhergehenden Elemente BIS ein Selektor zutrifft (exklusive).
|
|
142
|
+
* * Gets all preceding siblings UNTIL a selector is met (exclusive).
|
|
192
143
|
* @param untilSelector
|
|
193
|
-
* *
|
|
194
|
-
* * π©πͺ: Der Selektor, der die Suche stoppt.
|
|
144
|
+
* * The selector that stops the search.
|
|
195
145
|
* @param filter
|
|
196
|
-
* *
|
|
197
|
-
* * π©πͺ: (Optional) Filter fΓΌr die gefundenen Elemente.
|
|
146
|
+
* * (Optional) Filter for the found elements.
|
|
198
147
|
* @returns
|
|
199
|
-
* *
|
|
200
|
-
* * π©πͺ: Eine neue jBase-Instanz.
|
|
148
|
+
* * A new jBase instance.
|
|
201
149
|
*/
|
|
202
150
|
export declare function prevUntil(this: jBase, untilSelector: string, filter?: string): jBase;
|
|
203
151
|
/**
|
|
204
|
-
* *
|
|
205
|
-
* * π©πͺ: Reduziert das Set auf das Element am angegebenen Index. UnterstΓΌtzt negative Indizes.
|
|
152
|
+
* * Reduces the set to the element at the specified index. Supports negative indices.
|
|
206
153
|
* @param index
|
|
207
|
-
* *
|
|
208
|
-
* * π©πͺ: Die Position (0-basiert). Negative Werte zΓ€hlen vom Ende.
|
|
154
|
+
* * The position (0-based). Negative values count from the end.
|
|
209
155
|
* @returns
|
|
210
|
-
* *
|
|
211
|
-
* * π©πͺ: Eine neue jBase-Instanz mit dem einzelnen Element (oder leer).
|
|
156
|
+
* * A new jBase instance containing the single element (or empty).
|
|
212
157
|
*/
|
|
213
158
|
export declare function eq(this: jBase, index: number): jBase;
|
|
214
159
|
/**
|
|
215
|
-
* *
|
|
216
|
-
* * π©πͺ: Reduziert das Set auf das erste Element.
|
|
160
|
+
* * Reduces the set to the first element.
|
|
217
161
|
*/
|
|
218
162
|
export declare function first(this: jBase): jBase;
|
|
219
163
|
/**
|
|
220
|
-
* *
|
|
221
|
-
* * π©πͺ: Reduziert das Set auf das letzte Element.
|
|
164
|
+
* * Reduces the set to the last element.
|
|
222
165
|
*/
|
|
223
166
|
export declare function last(this: jBase): jBase;
|
|
224
167
|
/**
|
|
225
|
-
* *
|
|
226
|
-
* * π©πͺ: Filtert die Elemente basierend auf einem Selektor oder einer Funktion.
|
|
168
|
+
* * Filters elements based on a selector or a function.
|
|
227
169
|
* @param selectorOrFn
|
|
228
|
-
* *
|
|
229
|
-
* * π©πͺ: CSS-Selektor (String) oder Filter-Funktion.
|
|
170
|
+
* * CSS selector string or filter function.
|
|
230
171
|
* @returns
|
|
231
|
-
* *
|
|
232
|
-
* * π©πͺ: Eine neue jBase-Instanz mit den gefilterten Elementen.
|
|
172
|
+
* * A new jBase instance with filtered elements.
|
|
233
173
|
*/
|
|
234
174
|
export declare function filterBy(this: jBase, selectorOrFn: string | ((index: number, element: Element) => boolean)): jBase;
|
|
235
175
|
/**
|
|
236
|
-
* *
|
|
237
|
-
* * π©πͺ: Entfernt Elemente aus dem Set, die dem Selektor oder der Funktion entsprechen (Das Gegenteil von filterBy).
|
|
176
|
+
* * Removes elements from the set that match the selector or function (Inverse of filterBy).
|
|
238
177
|
* @param selectorOrFn
|
|
239
|
-
* *
|
|
240
|
-
* * π©πͺ: CSS-Selektor (String) oder Filter-Funktion.
|
|
178
|
+
* * CSS selector string or filter function.
|
|
241
179
|
* @returns
|
|
242
|
-
* *
|
|
243
|
-
* * π©πͺ: Eine neue jBase-Instanz mit den verbleibenden Elementen.
|
|
180
|
+
* * A new jBase instance with remaining elements.
|
|
244
181
|
*/
|
|
245
182
|
export declare function not(this: jBase, selectorOrFn: string | ((index: number, element: Element) => boolean)): jBase;
|
|
246
183
|
//# sourceMappingURL=traversal.d.ts.map
|