cadrumo.entrypoints.tui.aeat_sync.screens module¶
Six safe, host-neutral AEAT Sync projection screens.
- aeat_sync_copy(key, **values)[source]¶
Resolve every operator-facing AEAT Sync string through one boundary.
- class AeatSyncRouteRequested(target)[source]¶
Bases:
MessageAsk the owning host to replace this active internal workspace body.
- Parameters:
target (AeatSyncRouteTargetV1)
- time¶
- class AeatSyncWorkspaceScreen(controller, *, id)[source]¶
Bases:
AccountChromeScreenCommon one-scroll shell; it reads only the injected immutable projection.
- Parameters:
controller (AeatSyncWorkspaceController)
id (str)
- BINDINGS: ClassVar¶
A list of key bindings.
- CSS: ClassVar[str]¶
Inline CSS, useful for quick scripts. Rules here take priority over CSS_PATH.
Note
This CSS applies to the whole app.
- zone: AeatSyncWorkspaceZone¶
- heading: str¶
- compose()[source]¶
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()
- on_mount()[source]¶
Render all six independent source states and this screen’s safe rows.
- Return type:
- refresh_projection(projection)[source]¶
Apply one explicit preloaded snapshot and retain semantic focus.
- Return type:
- Parameters:
projection (AeatSyncWorkspaceProjectionV1)
- add_operation(row)[source]¶
Render an explicit mutation button only for a closed admitted pair.
- Return type:
- Parameters:
row (_OperationRow)
- async on_button_pressed(event)[source]¶
Hand the exact admitted request to the optional owning host door.
- async on_data_table_row_selected(event)[source]¶
Request a host-owned internal route only for an observable zone.
- Return type:
- Parameters:
event (RowSelected)
- on_data_table_row_highlighted(event)[source]¶
Track semantic identity instead of a mutable row position.
- Return type:
- Parameters:
event (RowHighlighted)
- action_back()[source]¶
Return a zone to the AEAT Sync overview; leave the workspace only from the overview.
- Return type:
- on_aeat_sync_route_requested(event)[source]¶
Resolve the requested zone here and hand the finished body to the host.
- Return type:
- Parameters:
event (AeatSyncRouteRequested)
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.
- class AeatSyncOverviewScreen(controller)[source]¶
Bases:
AeatSyncWorkspaceScreenOverview preserving local, AEAT, and discrepancy axes per area.
- Parameters:
controller (AeatSyncWorkspaceController)
- zone: AeatSyncWorkspaceZone¶
- heading: str¶
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.
- class AeatSyncCensusScreen(controller)[source]¶
Bases:
AeatSyncWorkspaceScreenCensus comparison without taxpayer values.
- Parameters:
controller (AeatSyncWorkspaceController)
- zone: AeatSyncWorkspaceZone¶
- heading: str¶
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.
- class AeatSyncFiledDeclarationsScreen(controller)[source]¶
Bases:
AeatSyncWorkspaceScreenFiled declaration observation retaining local and AEAT state separately.
- Parameters:
controller (AeatSyncWorkspaceController)
- zone: AeatSyncWorkspaceZone¶
- heading: str¶
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.
- class AeatSyncNotificationsScreen(controller)[source]¶
Bases:
AeatSyncWorkspaceScreenNotification metadata surface with no identity or document content.
- Parameters:
controller (AeatSyncWorkspaceController)
- zone: AeatSyncWorkspaceZone¶
- heading: str¶
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.
- class AeatSyncEvidenceComparisonScreen(controller)[source]¶
Bases:
AeatSyncWorkspaceScreenEvidence comparison screen retaining the two observed source states.
- Parameters:
controller (AeatSyncWorkspaceController)
- zone: AeatSyncWorkspaceZone¶
- heading: str¶
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.
- class AeatSyncReconciliationScreen(controller)[source]¶
Bases:
AeatSyncWorkspaceScreenReconciliation status surface without a generic mutation path.
- Parameters:
controller (AeatSyncWorkspaceController)
- zone: AeatSyncWorkspaceZone¶
- heading: str¶
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.