cadrumo.entrypoints.tui.ledger.routes module

Closed internal Ledger route catalogue and injected root factory.

class LedgerUnavailableScreen(controller, refusal)[source]

Bases: LedgerWorkspaceScreen

Typed placeholder for an area unavailable in application state.

Parameters:
compose()[source]

Render the explicit unavailability and no action affordance.

Return type:

Iterable[Widget]

on_mount()[source]

Keep the entire workspace vocabulary reachable beside the refusal.

Return type:

None

on_data_table_row_selected(event)[source]

Allow movement away from a placeholder while preserving refusals.

Return type:

None

Parameters:

event (RowSelected)

can_focus: bool

Widget may receive focus.

can_focus_children: bool

Widget’s children may receive focus.

class LedgerRouteV1(destination, area, factory)[source]

Bases: object

One internal destination and its read body.

Parameters:
  • destination (LedgerDestinationIdV1)

  • area (LedgerWorkspaceArea)

  • factory (LedgerInternalScreenFactoryV1)

destination: TypeAliasType
area: LedgerWorkspaceArea
factory: TypeAliasType
resolve_ledger_screen(controller, target)[source]

Resolve one internal route without reading state or invoking an action.

Return type:

LedgerWorkspaceScreen

Parameters:
ledger_screen_factory(projection, *, review_action, classify_action=None, classification_submitter=None, import_door=None, evidence_action=None, evidence_items=None, link_action=None, link_submitter=None, invoice_add_door=None, exclusion_submitter=None, evidence_door=None, refresh=None)[source]

Bind an injected immutable projection to the outer navigation factory contract.

Return type:

TuiScreenFactoryV1

Parameters: