spaday-trees 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,17 @@
1
+ from pathlib import Path
2
+
3
+ from spaday import ComponentPackage
4
+
5
+ from .components import SpadayTree
6
+
7
+ __version__ = "0.1.0"
8
+
9
+ package = ComponentPackage(
10
+ name="trees",
11
+ assets_dir=Path(__file__).parent / "extension",
12
+ assets=(("js", "cdn/index.js"),),
13
+ )
14
+
15
+ Tree = SpadayTree
16
+
17
+ __all__ = ["SpadayTree", "Tree", "package"]
@@ -0,0 +1,28 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "modules": [
4
+ {
5
+ "path": "src/ts/index.ts",
6
+ "declarations": [
7
+ {
8
+ "kind": "class",
9
+ "name": "Tree",
10
+ "customElement": true,
11
+ "tagName": "spaday-tree",
12
+ "summary": "Pierre Trees file tree with serializable paths, selection, search, and Git status.",
13
+ "attributes": [
14
+ { "name": "paths", "type": { "text": "string[]" } },
15
+ { "name": "selected_paths", "type": { "text": "string[]" } },
16
+ { "name": "search", "type": { "text": "string | null" } },
17
+ { "name": "git_status", "type": { "text": "unknown" } }
18
+ ],
19
+ "events": [
20
+ { "name": "selection-change", "type": { "text": "CustomEvent<{ paths: string[] }>" } },
21
+ { "name": "search-change", "type": { "text": "CustomEvent<{ value: string | null }>" } }
22
+ ],
23
+ "slots": []
24
+ }
25
+ ]
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,36 @@
1
+ # Generated by spaday.cem from components.cem.json — do not edit by hand.
2
+ from __future__ import annotations
3
+
4
+ from typing import Any, Optional
5
+
6
+ from spaday.component import Child, Component
7
+
8
+ __all__ = ["SpadayTree"]
9
+
10
+
11
+ class SpadayTree(Component):
12
+ """Pierre Trees file tree with serializable paths, selection, search, and Git status."""
13
+
14
+ tag = "spaday-tree"
15
+
16
+ def __init__(
17
+ self,
18
+ *children: Child,
19
+ key: Optional[str] = None,
20
+ paths: Any = None,
21
+ selected_paths: Any = None,
22
+ search: Optional[str] = None,
23
+ git_status: Any = None,
24
+ **props: Any,
25
+ ) -> None:
26
+ super().__init__(
27
+ *children,
28
+ key=key,
29
+ props={
30
+ "paths": paths,
31
+ "selected_paths": selected_paths,
32
+ "search": search,
33
+ "git_status": git_status,
34
+ },
35
+ **props,
36
+ )