Skip to content

Commit

Permalink
Enhancements for United Kingdom datasets (#23)
Browse files Browse the repository at this point in the history
* Adding more search options and refactoring
* Reset search mode on search
* Only show supported search types
* Hiding search types not supported by the country
* Select the radio button

---------

Co-authored-by: Patricia Schott <[email protected]>
  • Loading branch information
pschott and Patricia Schott authored Sep 16, 2024
1 parent 736b8f5 commit 2ab4448
Show file tree
Hide file tree
Showing 19 changed files with 931 additions and 596 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ After instantiating a new instance the constructor returns an object that can be
| `post-formatting-search` | After the formatting search has returned a result | ```address.events.on("post-formatting-search", function(data){ // ... });```|
| `post-reset` | After the demo has been reset | ```address.events.on("post-reset", function(){ // ... });```|
| `post-search-type-change` | After the search type has been changed | ```address.events.on("post-search-type-change", function(searchType){ // ... });```|
| `post-country-list-change` | After the country list has been changed | ```address.events.on("post-country-list-change", function(supportedSearchTypes, currentSearchType){ // ... });```|
| `post-datasets-update` | To populate the authorized country dataset(s) into the country dataset dropdown | ```address.events.on("post-datasets-update", function(){ // ... });```|
| `error-display` | To display error when the selected search type is not supported for the country dataset selected | ```address.events.on("error-display", function (error){ // ... });```|
| `request-timeout` | A timeout occurred during the XMLHttpRequest | ```address.events.on("request-timeout", function(xhr){ // ... });```|
Expand All @@ -109,7 +110,7 @@ By default the API returns the formatted address using a global 7-line layout. T
* postal_code
* country

However, in your integration you might wish to change "locality" to "city" or "postalCode" to "post code", for example.
However, in your integration you might wish to change "locality" to "city" or "postal_code" to "post code", for example.

1. Access the [_translations.js file](/src/ts/translations.js)

Expand Down
4 changes: 2 additions & 2 deletions dist/css/experian-address-validation.css
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ input.showing-suggestions {
}

.picklist-use-entered-option,
.address-picklist div:not(.selected) .what3Words-name {
.address-picklist div:not(.selected) .what3words-name {
font-weight: bold;
padding-bottom: 0px;
}

.picklist-use-entered-option,
.address-picklist div:not(.selected) .what3Words-description {
.address-picklist div:not(.selected) .what3words-description {
font-style: italic;
padding-top: 0px;
font-size: 12px;
Expand Down
2 changes: 1 addition & 1 deletion dist/js/address-metadata-display.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/js/experian-address-validation.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2ab4448

Please sign in to comment.