exlab_wizard.ui.components.credential_field#
Credential field component (Frontend Spec §7.4.1).
Three resting / transient states:
not_set –
Status: Not setwith a[Set]button.set –
Status: Set ✓with[Replace]and[Clear].editing – inline password input with Save / Cancel.
Never displays a stored secret.
Functions
|
Build a credential row. |
|
Compute the visible labels / button names for a state. |
Classes
|
In-memory state for a credential row. |
- class exlab_wizard.ui.components.credential_field.CredentialState(state='not_set', pending_value=None)[source]#
Bases:
objectIn-memory state for a credential row.
- exlab_wizard.ui.components.credential_field.credential_field(*, label, on_save, on_clear, initial_state=None)[source]#
Build a credential row.
The
on_savecallback is invoked with the typed password when the operator clicks Save while editing;on_clearis invoked when the operator confirms the Clear action.