From 0c44e66f1652c77875b2e638f19a2e289d90f3cd Mon Sep 17 00:00:00 2001 From: FuriosoJack Date: Fri, 9 Mar 2018 09:45:42 -0500 Subject: [PATCH 1/9] =?UTF-8?q?Se=20a=C3=B1ade=20iron-forn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/iron-form | 1 + 1 file changed, 1 insertion(+) create mode 160000 lib/iron-form diff --git a/lib/iron-form b/lib/iron-form new file mode 160000 index 00000000..6f4ab611 --- /dev/null +++ b/lib/iron-form @@ -0,0 +1 @@ +Subproject commit 6f4ab6112a21dc3a4c5fe7abb8095c48eca19e26 From b035c26003bc10ff04f78ff8f44fc7022ba6ff06 Mon Sep 17 00:00:00 2001 From: FuriosoJack Date: Fri, 9 Mar 2018 09:52:42 -0500 Subject: [PATCH 2/9] Iron --- lib/iron-form | 1 - lib/iron-form2/.github/CODEOWNERS | 2 + lib/iron-form2/.github/ISSUE_TEMPLATE.md | 33 + lib/iron-form2/.gitignore | 3 + lib/iron-form2/.travis.yml | 30 + lib/iron-form2/CONTRIBUTING.md | 77 ++ lib/iron-form2/README.md | 77 ++ lib/iron-form2/bower.json | 71 ++ lib/iron-form2/demo/cats-only.html | 65 ++ lib/iron-form2/demo/index.html | 258 ++++++ lib/iron-form2/index.html | 30 + lib/iron-form2/iron-form.d.ts | 142 +++ lib/iron-form2/iron-form.html | 597 ++++++++++++ lib/iron-form2/package-lock.json | 974 +++++++++++++++++++ lib/iron-form2/package.json | 17 + lib/iron-form2/test/basic.html | 1078 ++++++++++++++++++++++ lib/iron-form2/test/index.html | 24 + lib/iron-form2/test/slotted.html | 288 ++++++ 18 files changed, 3766 insertions(+), 1 deletion(-) delete mode 160000 lib/iron-form create mode 100644 lib/iron-form2/.github/CODEOWNERS create mode 100644 lib/iron-form2/.github/ISSUE_TEMPLATE.md create mode 100644 lib/iron-form2/.gitignore create mode 100644 lib/iron-form2/.travis.yml create mode 100644 lib/iron-form2/CONTRIBUTING.md create mode 100644 lib/iron-form2/README.md create mode 100644 lib/iron-form2/bower.json create mode 100644 lib/iron-form2/demo/cats-only.html create mode 100644 lib/iron-form2/demo/index.html create mode 100644 lib/iron-form2/index.html create mode 100644 lib/iron-form2/iron-form.d.ts create mode 100644 lib/iron-form2/iron-form.html create mode 100644 lib/iron-form2/package-lock.json create mode 100644 lib/iron-form2/package.json create mode 100644 lib/iron-form2/test/basic.html create mode 100644 lib/iron-form2/test/index.html create mode 100644 lib/iron-form2/test/slotted.html diff --git a/lib/iron-form b/lib/iron-form deleted file mode 160000 index 6f4ab611..00000000 --- a/lib/iron-form +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6f4ab6112a21dc3a4c5fe7abb8095c48eca19e26 diff --git a/lib/iron-form2/.github/CODEOWNERS b/lib/iron-form2/.github/CODEOWNERS new file mode 100644 index 00000000..cc86f1ec --- /dev/null +++ b/lib/iron-form2/.github/CODEOWNERS @@ -0,0 +1,2 @@ +* @notwaldorf +/.travis.yml @azakus diff --git a/lib/iron-form2/.github/ISSUE_TEMPLATE.md b/lib/iron-form2/.github/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..35461cd1 --- /dev/null +++ b/lib/iron-form2/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,33 @@ + +### Description + + +### Expected outcome + + + +### Actual outcome + + + +### Live Demo + + +### Steps to reproduce + + + +### Browsers Affected + +- [ ] Chrome +- [ ] Firefox +- [ ] Safari 9 +- [ ] Safari 8 +- [ ] Safari 7 +- [ ] Edge +- [ ] IE 11 +- [ ] IE 10 diff --git a/lib/iron-form2/.gitignore b/lib/iron-form2/.gitignore new file mode 100644 index 00000000..678c29bf --- /dev/null +++ b/lib/iron-form2/.gitignore @@ -0,0 +1,3 @@ +bower_components* +bower-*.json +node_modules diff --git a/lib/iron-form2/.travis.yml b/lib/iron-form2/.travis.yml new file mode 100644 index 00000000..a5b98eb2 --- /dev/null +++ b/lib/iron-form2/.travis.yml @@ -0,0 +1,30 @@ +language: node_js +sudo: required +before_script: + - npm install -g polymer-cli + - polymer install --variants + - >- + npm run update-types && git diff --exit-code || (echo -e + '\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run + update-types".' && false) +env: + global: + - secure: >- + JeSfmBNQGyT7fu9NURSHqK9miBYrieoVdCnzOIq1QRDpWEiUGJKrcWKbabA/1MrlYfbQDFwXIDGrv0hcZzf0xbDblo5s/jUnep1vq/w/IRznEDnhJelpjG6c38vlBbPQOZI3L32eu8w5BBmlXhc4XXpUGkIy94O1Iz7Tn3zkeFI/fKhMyrmgDUOuehP0EHyoKxLCyWGLV+aTRtif6TK/wn6ULwM+GvLiS7nykrnA2WoDEECAuCoIsfRD9UFoLH4dNmOoiEHGeSx3rL6aE0TV9GVpPpBkL6qe8LFJLV4GJsekVyeOnKlekbzts8joIrR62P9m2BHZMQkizyx6Tj22vF6uXI8HAvocNIbijiJPSKFRA2Ir6ZAtBKPFMv73upROSvzqT+8UjW4DM9EDQiheCZ+Hkv0cQqtSmmiS3GxrTxW622lKdg2uVbD2qH2Ac2wJNGztukKtAyR2wSyjD7R/wE2MiQrT2YlGw95aMMqVylF1CtXoUJWGXUdfT6NZ7WCjbRj3fwABBY6BT+bJioIolHORdY6QbFUJ8GASqHqYlZShd23JtM5LJeDyJrJ4oEWNJ7q+jYl5xN7zwy/W0H86bn+6JX/Lxq71kvkohpzAHwSWAuAANLYf7cIUZ7GBo1lUzWaSJ1SaW981jH9s87NnyBP2thJAnyr78T6UXjPFZYk= + - secure: >- + THJhGmuNJqLVeRfN2qJL1FKH3TXNwovC0z8G1GU4ML3pYbRL8oFw7nrtnofwgI99axLNEoJFZnkWcmkKRWlDHYX+LwQCUtYr3eW/pncrWGVBElr9HUgw6q0tY0o6v1Oe0Oj3kqxWuFkA1Kv8V7bHvB9ABT7CimwXDAC+uwP4SDqEtlVz8LAg6G74ywJaKg+S1gL8EHTIAGjeMSfKw4UjFAi6QKebJBsPOu8qmGrBSSdaLoDKhQb+kJqcLncJ0PB2AKC8zTzpxsDSwZizGDGLcbuFR1pnqTqISKgfpTVycTHJrEQwYsS6bTR7X86i3lcJ4H5dtI/HHaAQTmeT3JpvTfz5f9dvAuJVqimQOzdFlKM7ehhNk3j9KtED/vnQW9+0AJhOT9+7trokW++jl219QS29FOPYTxSo/XvI6iLZfOr4X0l4VhNkgHeE6EyCUoGNwDRxUvn+KcsQMk6JdHLY+lCckZ+tRFQIUjMPqjn9tB/MjBqtXxDhF5ZjaOcLufzuywKBzlMT4OkAiOGK9qFENKpTVaqvmRPPM1bjkZuzfTBJTOzWDznf2V4r65/s6ZRpoqEy0ozb7NjUEjYOR+OuZfKYVwT5VmAykKLNW3eQJc1zJjvhjghSIxOWH9AvD18UeQtEcv2J5pVFIp+BFVR25i0BH+efOwWJ49hk0o0N+Dw= +node_js: stable +addons: + firefox: latest + apt: + sources: + - google-chrome + packages: + - google-chrome-stable + sauce_connect: true +script: + - xvfb-run polymer test + - >- + if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test -s 'default'; + fi +dist: trusty diff --git a/lib/iron-form2/CONTRIBUTING.md b/lib/iron-form2/CONTRIBUTING.md new file mode 100644 index 00000000..093090d4 --- /dev/null +++ b/lib/iron-form2/CONTRIBUTING.md @@ -0,0 +1,77 @@ + + +# Polymer Elements +## Guide for Contributors + +Polymer Elements are built in the open, and the Polymer authors eagerly encourage any and all forms of community contribution. When contributing, please follow these guidelines: + +### Filing Issues + +**If you are filing an issue to request a feature**, please provide a clear description of the feature. It can be helpful to describe answers to the following questions: + + 1. **Who will use the feature?** _“As someone filling out a form…”_ + 2. **When will they use the feature?** _“When I enter an invalid value…”_ + 3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_ + +**If you are filing an issue to report a bug**, please provide: + + 1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug: + + ```markdown + The `paper-foo` element causes the page to turn pink when clicked. + + ## Expected outcome + + The page stays the same color. + + ## Actual outcome + + The page turns pink. + + ## Steps to reproduce + + 1. Put a `paper-foo` element in the page. + 2. Open the page in a web browser. + 3. Click the `paper-foo` element. + ``` + + 2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [https://jsbin.com/cagaye/edit?html,output](https://jsbin.com/cagaye/edit?html,output). + + 3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers. + +### Submitting Pull Requests + +**Before creating a pull request**, please ensure that an issue exists for the corresponding change in the pull request that you intend to make. **If an issue does not exist, please create one per the guidelines above**. The goal is to discuss the design and necessity of the proposed change with Polymer authors and community before diving into a pull request. + +When submitting pull requests, please provide: + + 1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax: + + ```markdown + (For a single issue) + Fixes #20 + + (For multiple issues) + Fixes #32, fixes #40 + ``` + + 2. **A succinct description of the design** used to fix any related issues. For example: + + ```markdown + This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked. + ``` + + 3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered. + +If a proposed change contains multiple commits, please [squash commits](https://www.google.com/url?q=http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request) to as few as is necessary to succinctly express the change. A Polymer author can help you squash commits, so don’t be afraid to ask us if you need help with that! diff --git a/lib/iron-form2/README.md b/lib/iron-form2/README.md new file mode 100644 index 00000000..270cd20b --- /dev/null +++ b/lib/iron-form2/README.md @@ -0,0 +1,77 @@ + + + +[![Build status](https://travis-ci.org/PolymerElements/iron-form.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-form) +[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/PolymerElements/iron-form) + +_[Demo and API docs](https://elements.polymer-project.org/elements/iron-form)_ + + +## <iron-form> +`` is a wrapper around the HTML `
` element, that can +validate and submit both custom and native HTML elements. + +It has two modes: if `allow-redirect` is true, then after the form submission you +will be redirected to the server response. Otherwise, if it is false, it will +use an `iron-ajax` element to submit the form contents to the server. + + Example: + +```html + + + + I like donuts
+ + +
+``` + +By default, a native `