@mutt/widget-personnummer
Mutt Forms Widget - Swedish Personnummer Input
868
| Install | |
|---|---|
npm install @mutt/widget-personnummer |
|
| Latest Version: | 2.1.0 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Nov 20, 2019 |
| Links: | npm |
Maintainer: stevenroberts-bbm
Mutt Forms Widget - Personnummer
Mutt Forms Vue widget for Swedish Personnummer lookup.
It is designed to be integrated with https://www.ratsit.se/.
Field Options
This ssn options accepts the following properties:
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
host |
String | true | null | Provider API host |
username |
String | true | null | Username for the provider API |
password |
String | true | null | Password for the provider API |
template |
String | false | '{givenName} {lastName}' |
Template used to display a search result referencing object properties in the returned result |
requiredFieldPaths |
String[] | false | null | An array of field paths to check for values in the returned search result |
minimumAge |
Number | false | null | The minimum age in years |
Complete Example
{
"field_name": {
"widget": "personnummer",
"ssn": {
"host": "https://example.com/ssn-lookup",
"username": "username",
"password": "password123",
"template": "{ssn} - {givenName} {lastName}",
"minimumAge": 18
}
}
}
Field Events
ssnSelect: Emitted when the value has been entered and the detail confirmedssnClear: When the value is changed/clearedtoggleOverlay: Natural language form supportssnRequiredFieldsMissing: WhenrequiredFieldPathsare specified and are missing values
i18n Support
The widget has i18n support via the Vue i18n Plugin
or any other tools that expose a $t function to translate strings.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.1.0 | ^2.5.21 | MIT | |
| 2.0.0 | ^2.5.21 | MIT | |
| 1.1.1 | ^2.5.21 | MIT | |
| 1.1.0 | ^2.5.21 | MIT | |
| 1.0.1 | ^2.5.21 | MIT | |
| 1.0.0 | ^2.5.21 | MIT | |
| 0.1.2 | ^2.5.21 | MIT | |
| 0.1.1 | ^2.5.21 | MIT | |
| 0.1.0 | ^2.5.21 | MIT | |
| 0.0.14 | ^2.5.21 | MIT | |
| 0.0.13 | ^2.5.21 | MIT | |
| 0.0.12 | ^2.5.21 | MIT | |
| 0.0.11 | ^2.5.21 | MIT | |
| 0.0.10 | ^2.5.21 | MIT | |
| 0.0.9 | ^2.5.21 | MIT | |
| 0.0.8 | ^2.5.21 | MIT | |
| 0.0.7 | ^2.5.21 | MIT | |
| 0.0.6 | ^2.5.21 | MIT | |
| 0.0.5 | ^2.5.21 | MIT | |
| 0.0.4 | ^2.5.21 | MIT | |
| 0.0.3 | ^2.5.21 | MIT | |
| 0.0.1 | ^2.5.21 | MIT |
Pre-releases (2)
| Version | Released | Vue | License |
|---|---|---|---|
| 2.0.0-beta.1 | ^2.5.21 | MIT | |
| 2.0.0-beta.0 | ^2.5.21 | MIT |