Skip to content

Commit

Permalink
feat: Add autofillHints to textfield (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-martinez authored Mar 8, 2022
1 parent bfe8e54 commit bf8ca10
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/components/textfield.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
},
"onChanged": {
"$ref": "defs/listener.schema.json"
},
"autofillHints": {
"$ref": "defs/autofillHints.schema.json"
}
},
"required": [
Expand Down
78 changes: 78 additions & 0 deletions api/defs/autofillHints.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"$schema": "https://raw.githubusercontent.com/lenra-io/ex_component_schema/beta/priv/static/draft-lenra.json",
"$id": "autofillHints.schema.json",
"title": "AutofillHints",
"description": "The AutofillHints enum to handle textfield's autocompletion.",
"type": "array",
"items": {
"type": "string",
"enum": [
"addressCity",
"addressCityAndState",
"addressState",
"birthday",
"birthdayDay",
"birthdayMonth",
"birthdayYear",
"countryCode",
"countryName",
"creditCardExpirationDate",
"creditCardExpirationDay",
"creditCardExpirationMonth",
"creditCardExpirationYear",
"creditCardFamilyName",
"creditCardGivenName",
"creditCardMiddleName",
"creditCardName",
"creditCardNumber",
"creditCardSecurityCode",
"creditCardType",
"email",
"familyName",
"fullStreetAddress",
"gender",
"givenName",
"impp",
"jobTitle",
"language",
"location",
"middleInitial",
"middleName",
"name",
"namePrefix",
"nameSuffix",
"newPassword",
"newUsername",
"nickname",
"oneTimeCode",
"organizationName",
"password",
"photo",
"postalAddress",
"postalAddressExtended",
"postalAddressExtendedPostalCode",
"postalCode",
"streetAddressLevel1",
"streetAddressLevel2",
"streetAddressLevel3",
"streetAddressLevel4",
"streetAddressLine1",
"streetAddressLine2",
"streetAddressLine3",
"sublocality",
"telephoneNumber",
"telephoneNumberAreaCode",
"telephoneNumberCountryCode",
"telephoneNumberDevice",
"telephoneNumberExtension",
"telephoneNumberLocal",
"telephoneNumberLocalPrefix",
"telephoneNumberLocalSuffix",
"telephoneNumberNational",
"transactionAmount",
"transactionCurrency",
"url",
"username"
]
}
}

0 comments on commit bf8ca10

Please sign in to comment.