Source code for spaday_trees.components

# Generated by spaday.cem from components.cem.json — do not edit by hand.
from __future__ import annotations

from typing import Any

from spaday.catalog import ComponentSchema, PropertySchema
from spaday.component import Child, Component

__all__ = ["SpadayTree"]


[docs] class SpadayTree(Component): """Pierre Trees file tree with serializable paths, selection, search, and Git status.""" tag = "spaday-tree" schema = ComponentSchema( tag="spaday-tree", class_name="SpadayTree", summary="Pierre Trees file tree with serializable paths, selection, search, and Git status.", props=( PropertySchema(name="paths", kind="json", choices=(), default=None, description=None), PropertySchema(name="selected_paths", kind="json", choices=(), default=None, description=None), PropertySchema(name="search", kind="string", choices=(), default=None, description=None), PropertySchema(name="git_status", kind="json", choices=(), default=None, description=None), ), events=("selection-change", "search-change"), slots=(), ) def __init__( self, *children: Child, key: str | None = None, paths: Any = None, selected_paths: Any = None, search: str | None = None, git_status: Any = None, **props: Any, ) -> None: super().__init__( *children, key=key, props={ "paths": paths, "selected_paths": selected_paths, "search": search, "git_status": git_status, }, **props, )