Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@mutt/widget-personnummer

Package Overview
Dependencies
Maintainers
7
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mutt/widget-personnummer

Mutt Forms Widget - Swedish Personnummer Input

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
7
Created
Source

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:

PropertyTypeRequiredDefaultDescription
hostStringtruenullProvider API host
usernameStringtruenullUsername for the provider API
passwordStringtruenullPassword for the provider API
templateStringfalse'{givenName} {lastName}'Template used to display a search result referencing object properties in the returned result
requiredFieldPathsString[]falsenullAn array of field paths to check for values in the returned search result
minimumAgeNumberfalsenullThe 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 confirmed
  • ssnClear: When the value is changed/cleared
  • toggleOverlay: Natural language form support
  • ssnRequiredFieldsMissing: When requiredFieldPaths are 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.

Keywords

mutt-forms

FAQs

Package last updated on 20 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts