cadrumo.entrypoints.tui.declarations.routes module¶
Closed Declarations route catalogue and injected root factory.
Bases:
DeclarationsWorkspaceScreenExplicit refusal without fabricating an empty result.
- Parameters:
controller (DeclarationsWorkspaceController)
target (DeclarationsRouteTargetV1)
Called by Textual to create child widgets.
This method is called when a widget is mounted or by setting recompose=True when calling [refresh()][textual.widget.Widget.refresh].
Note that you don’t typically need to explicitly call this method.
Example
def compose(self) -> ComposeResult: yield Header() yield Label("Press the button below:") yield Button() yield Footer()
Populate navigation while preserving the visible refusal.
- Return type:
Permit navigation away from the unavailable body.
- Return type:
- Parameters:
event (RowSelected)
Widget may receive focus.
Widget’s children may receive focus.
- class DeclarationsRouteV1(destination, zone, factory)[source]¶
Bases:
objectOne route and its projection zone.
- Parameters:
destination (DeclarationsDestinationIdV1)
zone (DeclarationsWorkspaceZone | None)
factory (DeclarationsInternalScreenFactoryV1 | None)
-
destination:
TypeAliasType¶
-
zone:
DeclarationsWorkspaceZone|None¶
- declared_declarations_destination_ids()[source]¶
Return the destination identities from the defining literal.
- resolve_declarations_screen(controller, target)[source]¶
Resolve a target without I/O or controller construction.
- Return type:
- Parameters:
controller (DeclarationsWorkspaceController)
target (DeclarationsRouteTargetV1)
- declarations_screen_factory(projection, *, work_action, revisions_action, filing_action, modelo_workspace_factory=None, revision_handoff=None, filing_handoff=None, calendar_projection=None, calendar_entry_handoff=None, calendar_recovery_handoff=None)[source]¶
Bind only injected facts, admissions, and typed handoffs.
- Return type:
- Parameters:
projection (DeclarationsWorkspaceProjectionV1)
work_action (ActionReference)
revisions_action (ActionReference)
filing_action (ActionReference)
modelo_workspace_factory (ModeloWorkspaceScreenFactoryV1 | None)
revision_handoff (RevisionHandoffV1 | None)
filing_handoff (FilingHandoffV1 | None)
calendar_projection (DeclarationsCalendarProjectionV1 | None)
calendar_entry_handoff (CalendarEntryHandoffV1 | None)
calendar_recovery_handoff (CalendarRecoveryHandoffV1 | None)