2.1.0 • Published 4 years ago

@mutt/widget-personnummer v2.1.0

Weekly downloads
177
License
MIT
Repository
github
Last release
4 years ago

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.

2.1.0

4 years ago

2.0.0

4 years ago

2.0.0-beta.1

4 years ago

2.0.0-beta.0

4 years ago

2.0.0-0

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.1

5 years ago