{"bugs":{"url":"https://github.com/PolymerElements/iron-input/issues"},"dist":{"shasum":"b205d42a791cf1d68270c34a290ea45e97420e38","tarball":"https://registry.npmjs.org/@polymer/iron-input/-/iron-input-3.0.0-pre.20.tgz","fileCount":17,"integrity":"sha512-laGAs3K3gxZukJUVpS3c+goeZrdKkNTtHOe3iotqgjqVY9gs8Dt2zBZUEo7tDRyll26le0fSzIaKZ9g2msrmSA==","signatures":[{"sig":"MEQCIAozflPLmFN8AeNyoBlwnSUCG+UlwnZmhegbzPMSKIFJAiAigNGBL+vFc52Jd5JxXtrCyeglXXOgliYWHgcsjaDy7w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLZHyCRA9TVsSAnZWagAAGxQP/1gWwaEfyaSQIHAuibZc\nHzQ1pdNSBShR9RQ1yxqQvoC0mRd678k53RMF4dQr0Z7zAyW0ii+Vo786AkjS\nE+NBYpPmVf5c1NBKLwnHE78NEV5E1QH0xdG1mCZy8IRz1kW39N0etf0s+UP2\n5b1NqEgkR1TyDS+i8m6IepXOIs5YQQRD1C/EoqYwAUVodzCtBfYiLiMQUoq2\nFQGZZXjx9dN6ufrufkoxw0lItzw3agw6uBbT9MFxFh7me4EFGJsB3c5xdxnF\n0uoqQ3GbMwqHhHyyKRwBV0LvWNvZl51akHD7tq04Pro1WArqfxjPcjWHpwbq\nQmmuTK2vPn0glIdph7wZ5JAFNneaWO+uTjtRUyqZmnmyDvPx1bkp21a7Z1+E\n2uODe7dpzXWT8a+tQW+bilPi/IT89m16UoI7glSiEedHzuJ+Oux9iFfV6vPy\n7VgIWmElAnlsBENgVYzfIEeOQRbNyb964x2yPmImPqDBp/cCrx+2RxVe36th\n4nXsU3rd7uNhlWClWmoBiP4gfv3NA1MoJzTRR3QJoWB7ayBTw858Xt6ZCons\np7CxOpwDz4rHhDcgxR8IlRyCR1ANVCuOwMIOUTx5jjEWDkOV3fkRfhWmK3P/\niIemjKVia0kS+U5bfVzgzIkv5OwHQRpKSjEqcsuz42Fyj1ByugU8aMfChqk5\n6UGH\r\n=8wJn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"iron-input.js","name":"@polymer/iron-input","author":{"name":"The Polymer Authors"},"readme":"\n<!---\n\nThis README is automatically generated from the comments in these files:\niron-input.html\n\nEdit those files, and our readme bot will duplicate them over here!\nEdit this file, and the bot will squash your changes :)\n\nThe bot does some handling of markdown. Please file a bug if it does the wrong\nthing! https://github.com/PolymerLabs/tedium/issues\n\n-->\n\n[![Build status](https://travis-ci.org/PolymerElements/iron-input.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-input)\n\n_[Demo and API docs](https://elements.polymer-project.org/elements/iron-input)_\n\n\n## &lt;iron-input&gt;\n\n`<iron-input>` adds two-way binding and custom validators using `Polymer.IronValidatorBehavior`\nto `<input>`.\n\n### Changes in 2.0\nSince type-extensions are not available in 2.0, `<iron-input` is a wrapper against a native `input`:\n\n```html\n<iron-input>\n  <input>\n</iron-input>\n ```\n\nOther changes:\n- `prevent-invalid-input` and `allowed-pattern` had to be always used together; deleted `prevent-invalid-input`, so that only \n`allowed-pattern` is needed\n- added an `auto-validate` property\n- Note: imperatively setting the `value` attribute on the native `<input>` is not supported -- the native `input` does not fire an event in this case, so this update cannot be observed, and `bind-value` cannot be updated.\n\n### Two-way binding\n\nBy default you can only get notified of changes to an `input`'s `value` due to user input:\n\n```html\n<input value=\"{{myValue::input}}\">\n```\n\n`iron-input` adds the `bind-value` property that mirrors the `value` property, and can be used\nfor two-way data binding. `bind-value` will notify if it is changed either by user input or by script.\n\n```html\n<iron-input bind-value=\"{{bindValue}}\">\n  <input value=\"{{value::input}}\">\n</iron-input>\n```\n\n### Custom validators\n\nYou can use custom validators that implement `Polymer.IronValidatorBehavior` with `<iron-input>`.\n\n```html\n<iron-input auto-validate validator=\"my-custom-validator\">\n  <input placeholder=\"only 'cat' is valid\">\n </iron-input>\n```\n\n### Stopping invalid input\n\nIt may be desirable to only allow users to enter certain characters. You can use the\n`prevent-invalid-input` and `allowed-pattern` attributes together to accomplish this. This feature\nis separate from validation, and `allowed-pattern` does not affect how the input is validated.\n\n```html\n<!-- only allow characters that match [0-9] -->\n<iron-input allowed-pattern=\"[0-9]\">\n  <input pattern=\"\\d{5}\">\n</iron-input>\n```\n\n\n","gitHead":"83d12224612711a545f9eb4f40fc75d108128b80","license":"BSD-3-Clause","scripts":{"format":"webmat && npm run update-types","update-types":"bower install && gen-typescript-declarations --deleteExisting --outDir ."},"_npmUser":{"name":"emarquez","email":"emarquez@google.com"},"homepage":"https://github.com/PolymerElements/iron-input","keywords":["web-components","polymer","input"],"repository":{"url":"git://github.com/PolymerElements/iron-input.git","type":"git"},"_npmVersion":"6.1.0","description":"An input element with data binding","directories":{},"maintainers":[{"name":"aomarks","email":"aomarks@google.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"keanulee","email":"npm@keanulee.com"},{"name":"notwaldorf","email":"notwaldorf@gmail.com"},{"name":"polymer-devs","email":"admin@polymer-project.org"},{"name":"usergenic","email":"brendan@usergenic.com"}],"resolutions":{"samsam":"1.1.3","inherits":"2.0.3","type-detect":"1.0.0","supports-color":"3.1.2","@webcomponents/webcomponentsjs":"2.0.0-beta.2"},"_nodeVersion":"9.8.0","dependencies":{"@polymer/polymer":"^3.0.0","@polymer/iron-a11y-announcer":"^3.0.0-pre.20","@polymer/iron-validatable-behavior":"^3.0.0-pre.20"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"bower":"^1.8.0","webmat":"^0.2.0","wct-browser-legacy":"^1.0.1","@polymer/paper-styles":"^3.0.0-pre.20","@polymer/test-fixture":"^3.0.0-pre.20","@polymer/iron-demo-helpers":"^3.0.0-pre.20","@polymer/iron-component-page":"^3.0.0-pre.20","@webcomponents/webcomponentsjs":"^2.0.0","@polymer/iron-validator-behavior":"^3.0.0-pre.20","@polymer/gen-typescript-declarations":"^1.2.2"},"_npmOperationalInternal":{"tmp":"tmp/iron-input_3.0.0-pre.20_1529713137718_0.6504389399541992","host":"s3://npm-registry-packages"},"_id":"@polymer/iron-input@3.0.0-pre.20","version":"3.0.0-pre.20"}