From 98993d57f148954d3ce897b5c72608e80c4c94f7 Mon Sep 17 00:00:00 2001 From: Thijs Louisse Date: Wed, 7 Sep 2016 11:49:05 +0200 Subject: [PATCH] support for multiple error messages (which are defined in validators) restored main entry in bower json added resolutions added property errors for polylint deleted unused hidden attribute made errors array in paper input private --- bower.json | 10 ++- demo/index.html | 3 + demo/validators/no-catfishes.html | 37 +++++++++++ demo/validators/no-cats.html | 37 +++++++++++ paper-input-behavior.html | 10 +++ paper-input.html | 49 +++++++++++++- test/index.html | 2 + test/paper-input_validations.html | 104 ++++++++++++++++++++++++++++++ test/validators/cats-only.html | 37 +++++++++++ test/validators/letters-only.html | 37 +++++++++++ 10 files changed, 322 insertions(+), 4 deletions(-) create mode 100644 demo/validators/no-catfishes.html create mode 100644 demo/validators/no-cats.html create mode 100644 test/paper-input_validations.html create mode 100644 test/validators/cats-only.html create mode 100644 test/validators/letters-only.html diff --git a/bower.json b/bower.json index d7804157..0176b780 100644 --- a/bower.json +++ b/bower.json @@ -32,7 +32,7 @@ "iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^1.0.0", "iron-behaviors": "PolymerElements/iron-behaviors#^1.0.0", "iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0", - "iron-input": "PolymerElements/iron-input#^1.0.0", + "iron-input": "https://github.com/tlouisse/iron-input.git#feature/multipleValidators", "paper-styles": "PolymerElements/paper-styles#^1.1.4", "iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior#^1.0.0" }, @@ -42,10 +42,16 @@ "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", "iron-icon": "PolymerElements/iron-icon#^1.0.0", "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", - "iron-validator-behavior": "PolymerElements/iron-validator-behavior#^1.0.0", + "iron-validatable-behavior": "https://github.com/tlouisse/iron-validatable-behavior.git", + "iron-validator-behavior": "https://github.com/tlouisse/iron-validator-behavior.git", "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0", "web-component-tester": "^4.0.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" + }, + "resolutions": { + "iron-validatable-behavior": "feature/multipleValidators", + "iron-validator-behavior": "feature/multipleValidators", + "iron-input": "feature/multipleValidators" } } diff --git a/demo/index.html b/demo/index.html index f84799de..9cfdea5d 100644 --- a/demo/index.html +++ b/demo/index.html @@ -30,6 +30,8 @@ + +