Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Merged gh-pages with master (#41)
Browse files Browse the repository at this point in the history
* Accessibility improvements on sample web page (#30)

* Added example regarding including token in options

* Master (#32)

* Accessibility improvements on sample web page

* Execute events in try...catch

Previously an error prevented future code from running

* Don't clear input field on keyup if also used as address field

This allows an address field (e.g. addressLine1) to also be used as a
search field

* LowerCase language and countryCode when looking up translations (#34)

* Accessibility improvements on sample web page

* Execute events in try...catch

Previously an error prevented future code from running

* Don't clear input field on keyup if also used as address field

This allows an address field (e.g. addressLine1) to also be used as a
search field

* LowerCase language and country when looking up a translation

* Handle if search input is also used as an output field (#36)

* Accessibility improvements on sample web page

* Execute events in try...catch

Previously an error prevented future code from running

* Don't clear input field on keyup if also used as address field

This allows an address field (e.g. addressLine1) to also be used as a
search field

* LowerCase language and country when looking up a translation

* Handle if search input is also output field

Lock the search field, after an address has been returned, until the
field has been cleared.

* #28 prevent default tab event on choosing an item using the tab key (#29)

* #28 prevent default tab event on choosing an item using the tab key

* #28 target the proper event

* Update LICENSE

* Added 'unbind' to library

* Change focus field default to false

* Tidying

* Dpv updates and rebrand (#39)

* Updating dependencies

* Updating readme for DPV changes.

* Rebranding

* Branding update

* Bumping node version

* Updating readme wording

* Support returning the address lines to DOM nodes other than form fields. e.g. a <div> rather than a <input> (#40)
  • Loading branch information
jbate authored Mar 20, 2018
1 parent 4f0c911 commit 1ecea36
Show file tree
Hide file tree
Showing 27 changed files with 3,570 additions and 467 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "0.12"
- "9.4.0"
before_install:
- npm install -g grunt-cli
install:
Expand Down
13 changes: 1 addition & 12 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,7 @@

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}
Copyright Experian 2017. All rights reserved

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,17 @@ The form fields are wrapped in a `div` with a class name of "formatted-address".

The `name` attribute for each field is the same as the label discussed in [Customising labels](/#customising-labels). That is, either the default label returned by the API, or a custom key if it's overridden.

#### Components and Metadata

In addition to the 7 address lines. A format request also returns an array of objects containing the individual components that make up the address and a metadata object. Currently the metadata object will return Delivery Point Validation (DPV) information for USA searches.

Components and Metadata are not designed to be returned to the user and instead should be stored separately. This will be specific to your requirements and is not included in the sample code.

More information can be found in the [documentation](http://edq.com/documentation/apis/address-validate/global-intuitive#address-components-tables).

## Development

While you're free to take the JavaScript from the [`dist`](/dist/js/contact-data-servicesjs) folder and use this in your website, should you want to contribute to this repo you'll need to compile the new version from the [`src`](/src/js/).
While you're free to take the JavaScript from the [`dist`](/dist/js/contact-data-services.js) folder and use this in your website, should you want to contribute to this repo you'll need to compile the new version from the [`src`](/src/js/).

Make sure Node, Grunt and the Grunt CLI are installed.

Expand Down
2 changes: 1 addition & 1 deletion coverage/coverage.json

Large diffs are not rendered by default.

Loading

0 comments on commit 1ecea36

Please sign in to comment.