cadrumo.entrypoints.tui.ledger.routes module¶
Closed internal Ledger route catalogue and injected root factory.
Bases:
LedgerWorkspaceScreenTyped placeholder for an area unavailable in application state.
- Parameters:
controller (LedgerWorkspaceController)
refusal (LedgerRouteRefusalV1)
Keep the entire workspace vocabulary reachable beside the refusal.
- Return type:
Allow movement away from a placeholder while preserving refusals.
- Return type:
- Parameters:
event (RowSelected)
Widget may receive focus.
Widget’s children may receive focus.
- class LedgerRouteV1(destination, area, factory)[source]¶
Bases:
objectOne 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:
- Parameters:
controller (LedgerWorkspaceController)
target (LedgerRouteTargetV1)
- 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:
- Parameters:
projection (LedgerWorkspaceProjectionV1)
review_action (ActionReference)
classify_action (ActionReference | None)
classification_submitter (LedgerClassificationSubmitterV1 | None)
import_door (LedgerImportDoorV1 | None)
evidence_action (ActionReference | None)
evidence_items (tuple[AttachmentReviewItem, ...] | None)
link_action (ActionReference | None)
link_submitter (LedgerLinkSubmitterV1 | None)
invoice_add_door (LedgerInvoiceAddDoorV1 | None)
exclusion_submitter (LedgerExclusionSubmitterV1 | None)
evidence_door (LedgerEvidenceDoorV1 | None)
refresh (LedgerWorkspaceRefreshDoorV1 | None)