NEURALNG

API

Public contract

Inputs and models

NameTypeDefaultPurpose
valuemodel<string>'' Password value shared by Signals and Angular Forms.
visiblemodel<boolean>false Current plain-text visibility state.
toggleVisibilitybooleantrue Shows the accessible visibility control.
showFeedbackbooleanfalse Renders the deterministic strength meter and label.
disabledbooleanfalse Disables input and visibility control.
readonlybooleanfalse Keeps value focusable without allowing edits.
requiredbooleanfalse Applies native required semantics.
invalidbooleanfalse Exposes invalid visual and ARIA state.
pendingbooleanfalse Exposes asynchronous validation state.
touchedbooleanfalse Form interaction state.
dirtybooleanfalse Form modification state.
minLengthnumber | undefinedundefined Native minimum length constraint.
maxLengthnumber | undefinedundefined Native maximum length constraint.
namestring'' Native form and password-manager field name.
autocompletestringcurrent-password Native password-manager autocomplete purpose.
inputModestring'' Native virtual keyboard hint.
placeholderstring'' Input placeholder.
ariaLabelstring'' Accessible input name when no external label exists.
passwordIdstringgenerated Native input ID.
showIconClassstringnt-eye Icon used while the value is hidden.
hideIconClassstringnt-eye-off Icon used while the value is visible.
showPasswordLabelstringlocale Visibility control label.
hidePasswordLabelstringlocale Hide control label.
weakLabel / mediumLabel / strongLabelstringlocale Component strength-label overrides.
capsLockMessagestringlocale Caps Lock warning override.
fluidbooleanfalse Fills the available inline size.
unstyledbooleanfalse Removes visual base classes.
passwordClass / inputClassstring'' Additive root and native-input classes.
classesNeuralPasswordClasses{} Typed additive internal classes.

Events

valueChangestring

Implicit model output.

visibleChangeboolean

Implicit visibility model output.

visibilityChangeboolean

Semantic user visibility event.

strengthChangeNeuralPasswordStrengthChange

Value, score and presentation strength.

touchvoid

First blur/touch interaction.

capsLockChangeboolean

Implicit Caps Lock model output.

Methods

focus(options?)

Focuses the native password input.

select()

Selects the complete native value.

reset(value?)

Resets value and interaction state.

Typed class slots

root

Component root.

inputGroup

Input and toggle frame.

input

Native password input.

toggle

Visibility button.

toggleIcon

Visibility Neural icon.

feedback

Strength feedback wrapper.

meter

Strength meter track.

meterBar

Strength meter fill.

strengthLabel

Localized strength text.

capsLock

Caps Lock message.