Source code for cadrumo.entrypoints.tui.declarations.models
"""Typed presentation and handoff contracts for Declarations screens."""from__future__importannotationsfromenumimportStrEnumfromtypingimportLiteral,ProtocolfrompydanticimportBaseModelfromtextual.screenimportScreenfrom....application.modelo.declarations_calendarimportDeclarationsCalendarEntryRefV1from....application.modelo.declarations_workspaceimport(DeclarationsWorkspaceCalculationRevisionRefV1,DeclarationsWorkspaceDeclarationRefV1,DeclarationsWorkspaceFilingRefV1,DeclarationsWorkspaceZone,)from....application.operator_actions.modelsimportDeclaredNextActionfrom....core.modelsimportSTRICT_FROZEN_CONFIGtypeDeclarationsDestinationIdV1=Literal["declarations.overview","declarations.revisions","declarations.filing_history","declarations.calendar","declarations.modelo_workspace",]
[docs]classModeloWorkspaceScreenFactoryV1(Protocol):"""Injected factory for the existing host-neutral Modelo workspace."""def__call__(self,declaration:DeclarationsWorkspaceDeclarationRefV1,/)->Screen[None]:"""Build the child screen for exactly the selected declaration."""...
[docs]classRevisionHandoffV1(Protocol):"""Injected navigation handoff for one calculation revision identity."""def__call__(self,revision:DeclarationsWorkspaceCalculationRevisionRefV1,/)->None:"""Open the selected calculation revision."""...
[docs]classFilingHandoffV1(Protocol):"""Injected navigation handoff for one filing-history identity."""def__call__(self,filing:DeclarationsWorkspaceFilingRefV1,/)->None:"""Open the selected filing-history entry."""...
[docs]classCalendarEntryHandoffV1(Protocol):"""Injected navigation handoff for one natural legal address."""def__call__(self,entry:DeclarationsCalendarEntryRefV1,/)->None:"""Open the selected safe calendar address."""...
[docs]classCalendarRecoveryHandoffV1(Protocol):"""Injected executor for the canonical excluded recovery action."""def__call__(self,action:DeclaredNextAction,entry:DeclarationsCalendarEntryRefV1,/)->None:"""Submit the exact pre-admitted recovery action for this address."""...