spaday-perspective 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,15 @@
1
+ from pathlib import Path
2
+
3
+ from spaday import ComponentPackage
4
+
5
+ from .components import PerspectivePanel
6
+
7
+ __version__ = "0.1.0"
8
+
9
+ package = ComponentPackage(
10
+ name="perspective",
11
+ assets_dir=Path(__file__).parent / "extension",
12
+ assets=(("js", "cdn/index.js"),),
13
+ )
14
+
15
+ __all__ = ["PerspectivePanel", "package"]
@@ -0,0 +1,22 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "modules": [
4
+ {
5
+ "path": "src/ts/index.ts",
6
+ "declarations": [
7
+ {
8
+ "kind": "class",
9
+ "name": "PerspectivePanel",
10
+ "customElement": true,
11
+ "tagName": "perspective-panel",
12
+ "summary": "Perspective workspace whose data connection and layout are configured by a serializable prop.",
13
+ "attributes": [
14
+ { "name": "config", "type": { "text": "unknown" } },
15
+ { "name": "theme", "type": { "text": "string" } }
16
+ ],
17
+ "slots": []
18
+ }
19
+ ]
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,32 @@
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__ = ["PerspectivePanel"]
9
+
10
+
11
+ class PerspectivePanel(Component):
12
+ """Perspective workspace whose data connection and layout are configured by a serializable prop."""
13
+
14
+ tag = "perspective-panel"
15
+
16
+ def __init__(
17
+ self,
18
+ *children: Child,
19
+ key: Optional[str] = None,
20
+ config: Any = None,
21
+ theme: Optional[str] = None,
22
+ **props: Any,
23
+ ) -> None:
24
+ super().__init__(
25
+ *children,
26
+ key=key,
27
+ props={
28
+ "config": config,
29
+ "theme": theme,
30
+ },
31
+ **props,
32
+ )