polymer-paper-rails 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (558) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/components/core-animation/README.md +4 -0
  3. data/app/assets/components/core-animation/bower.json +8 -0
  4. data/app/assets/components/core-animation/core-animation-group.html +169 -0
  5. data/app/assets/components/core-animation/core-animation.html +524 -0
  6. data/app/assets/components/core-animation/demo.html +149 -0
  7. data/app/assets/components/core-animation/index.html +22 -0
  8. data/app/assets/components/core-animation/web-animations.html +10 -0
  9. data/app/assets/components/core-collapse/README.md +4 -0
  10. data/app/assets/components/core-collapse/bower.json +7 -0
  11. data/app/assets/components/core-collapse/core-collapse.css +16 -0
  12. data/app/assets/components/core-collapse/core-collapse.html +262 -0
  13. data/app/assets/components/core-collapse/demo.html +93 -0
  14. data/app/assets/components/core-collapse/index.html +22 -0
  15. data/app/assets/components/core-component-page/README.md +6 -0
  16. data/app/assets/components/core-component-page/bowager-logo.png +0 -0
  17. data/app/assets/components/core-component-page/bower.json +8 -0
  18. data/app/assets/components/core-component-page/core-component-page.html +37 -0
  19. data/app/assets/components/core-component-page/demo.html +23 -0
  20. data/app/assets/components/core-component-page/index.html +22 -0
  21. data/app/assets/components/core-drawer-panel/README.md +4 -0
  22. data/app/assets/components/core-drawer-panel/bower.json +8 -0
  23. data/app/assets/components/core-drawer-panel/core-drawer-panel.css +147 -0
  24. data/app/assets/components/core-drawer-panel/core-drawer-panel.html +339 -0
  25. data/app/assets/components/core-drawer-panel/demo.html +73 -0
  26. data/app/assets/components/core-drawer-panel/index.html +22 -0
  27. data/app/assets/components/core-drawer-panel/metadata.html +37 -0
  28. data/app/assets/components/core-elements/README.md +4 -0
  29. data/app/assets/components/core-elements/bower.json +29 -0
  30. data/app/assets/components/core-elements/demo.html +105 -0
  31. data/app/assets/components/core-elements/demos/core-toolbar.html +98 -0
  32. data/app/assets/components/core-elements/metadata.html +23 -0
  33. data/app/assets/components/core-elements/paper-elements.html +37 -0
  34. data/app/assets/components/core-field/README.md +4 -0
  35. data/app/assets/components/core-field/bower.json +7 -0
  36. data/app/assets/components/core-field/core-field.css +38 -0
  37. data/app/assets/components/core-field/core-field.html +35 -0
  38. data/app/assets/components/core-field/demo.html +67 -0
  39. data/app/assets/components/core-field/index.html +22 -0
  40. data/app/assets/components/core-field/metadata.html +26 -0
  41. data/app/assets/components/core-header-panel/README.md +4 -0
  42. data/app/assets/components/core-header-panel/bower.json +7 -0
  43. data/app/assets/components/core-header-panel/core-header-panel.css +75 -0
  44. data/app/assets/components/core-header-panel/core-header-panel.html +225 -0
  45. data/app/assets/components/core-header-panel/demo.html +100 -0
  46. data/app/assets/components/core-header-panel/index.html +23 -0
  47. data/app/assets/components/core-header-panel/metadata.html +37 -0
  48. data/app/assets/components/core-icon/README.md +4 -0
  49. data/app/assets/components/core-icon/bower.json +8 -0
  50. data/app/assets/components/{core/icon → core-icon}/core-icon.css +3 -12
  51. data/app/assets/components/core-icon/core-icon.html +189 -0
  52. data/app/assets/components/core-icon/demo.html +44 -0
  53. data/app/assets/components/core-icon/index.html +22 -0
  54. data/app/assets/components/core-icon/metadata.html +21 -0
  55. data/app/assets/components/core-icon-button/README.md +4 -0
  56. data/app/assets/components/core-icon-button/bower.json +7 -0
  57. data/app/assets/components/core-icon-button/core-icon-button.css +75 -0
  58. data/app/assets/components/core-icon-button/core-icon-button.html +81 -0
  59. data/app/assets/components/core-icon-button/demo.html +35 -0
  60. data/app/assets/components/core-icon-button/index.html +22 -0
  61. data/app/assets/components/core-icon-button/metadata.html +20 -0
  62. data/app/assets/components/core-icons/README.md +4 -0
  63. data/app/assets/components/core-icons/av-icons.html +46 -0
  64. data/app/assets/components/core-icons/bower.json +9 -0
  65. data/app/assets/components/core-icons/communication-icons.html +59 -0
  66. data/app/assets/components/core-icons/core-icons.html +278 -0
  67. data/app/assets/components/core-icons/demo.html +96 -0
  68. data/app/assets/components/core-icons/device-icons.html +59 -0
  69. data/app/assets/components/core-icons/editor-icons.html +67 -0
  70. data/app/assets/components/core-icons/hardware-icons.html +58 -0
  71. data/app/assets/components/core-icons/image-icons.html +146 -0
  72. data/app/assets/components/core-icons/index.html +22 -0
  73. data/app/assets/components/core-icons/maps-icons.html +69 -0
  74. data/app/assets/components/core-icons/notification-icons.html +50 -0
  75. data/app/assets/components/core-icons/png-icons.html +19 -0
  76. data/app/assets/components/core-icons/social-icons.html +52 -0
  77. data/app/assets/components/core-iconset/README.md +4 -0
  78. data/app/assets/components/core-iconset/bower.json +9 -0
  79. data/app/assets/components/{core/iconset/core-iconset.html.erb → core-iconset/core-iconset.html} +29 -24
  80. data/app/assets/components/core-iconset/demo.html +62 -0
  81. data/app/assets/components/core-iconset/index.html +22 -0
  82. data/app/assets/components/core-iconset/my-icons-big.png +0 -0
  83. data/app/assets/components/core-iconset/my-icons.png +0 -0
  84. data/app/assets/components/core-iconset-svg/README.md +4 -0
  85. data/app/assets/components/core-iconset-svg/bower.json +8 -0
  86. data/app/assets/components/core-iconset-svg/core-iconset-svg.html +168 -0
  87. data/app/assets/components/core-iconset-svg/demo.html +66 -0
  88. data/app/assets/components/core-iconset-svg/index.html +22 -0
  89. data/app/assets/components/core-iconset-svg/svg-sample-icons.html +68 -0
  90. data/app/assets/components/core-input/README.md +2 -0
  91. data/app/assets/components/core-input/bower.json +6 -0
  92. data/app/assets/components/core-input/core-input.css +45 -0
  93. data/app/assets/components/{core/input/core-input.html.erb → core-input/core-input.html} +164 -95
  94. data/app/assets/components/core-input/demo.html +142 -0
  95. data/app/assets/components/core-input/index.html +22 -0
  96. data/app/assets/components/core-input/metadata.html +20 -0
  97. data/app/assets/components/core-item/README.md +4 -0
  98. data/app/assets/components/core-item/bower.json +8 -0
  99. data/app/assets/components/core-item/core-item.css +44 -0
  100. data/app/assets/components/core-item/core-item.html +74 -0
  101. data/app/assets/components/core-item/demo.html +92 -0
  102. data/app/assets/components/core-item/index.html +22 -0
  103. data/app/assets/components/core-item/metadata.html +24 -0
  104. data/app/assets/components/core-media-query/README.md +4 -0
  105. data/app/assets/components/core-media-query/bower.json +7 -0
  106. data/app/assets/components/{core/media-query → core-media-query}/core-media-query.html +1 -0
  107. data/app/assets/components/core-media-query/demo.html +44 -0
  108. data/app/assets/components/core-media-query/index.html +22 -0
  109. data/app/assets/components/core-menu/README.md +4 -0
  110. data/app/assets/components/core-menu/bower.json +9 -0
  111. data/app/assets/components/{core/menu → core-menu}/core-menu.css +0 -0
  112. data/app/assets/components/{core/menu/core-menu.html.erb → core-menu/core-menu.html} +3 -3
  113. data/app/assets/components/{core/menu → core-menu}/core-submenu.css +0 -0
  114. data/app/assets/components/{core/menu/core-submenu.html.erb → core-menu/core-submenu.html} +10 -10
  115. data/app/assets/components/core-menu/demo.html +101 -0
  116. data/app/assets/components/core-menu/index.html +22 -0
  117. data/app/assets/components/core-menu/metadata.html +62 -0
  118. data/app/assets/components/core-meta/README.md +4 -0
  119. data/app/assets/components/core-meta/bower.json +7 -0
  120. data/app/assets/components/{core/meta → core-meta}/core-meta.html +24 -22
  121. data/app/assets/components/core-meta/demo.html +58 -0
  122. data/app/assets/components/core-meta/index.html +22 -0
  123. data/app/assets/components/core-overlay/README.md +4 -0
  124. data/app/assets/components/core-overlay/bower.json +8 -0
  125. data/app/assets/components/{core/overlay → core-overlay}/core-key-helper.html +2 -0
  126. data/app/assets/components/{core/overlay → core-overlay}/core-overlay-layer.html +112 -112
  127. data/app/assets/components/{core/overlay/core-overlay.html.erb → core-overlay/core-overlay.html} +77 -51
  128. data/app/assets/components/core-overlay/demo.html +155 -0
  129. data/app/assets/components/core-overlay/index.html +22 -0
  130. data/app/assets/components/core-popup-menu/README.md +6 -0
  131. data/app/assets/components/core-popup-menu/bower.json +13 -0
  132. data/app/assets/components/core-popup-menu/core-popup-menu.css +28 -0
  133. data/app/assets/components/core-popup-menu/core-popup-menu.html +198 -0
  134. data/app/assets/components/core-popup-menu/core-popup-overlay.html +111 -0
  135. data/app/assets/components/core-popup-menu/demo.html +542 -0
  136. data/app/assets/components/core-popup-menu/index.html +22 -0
  137. data/app/assets/components/core-popup-menu/metadata.html +62 -0
  138. data/app/assets/components/core-range/README.md +2 -0
  139. data/app/assets/components/core-range/bower.json +7 -0
  140. data/app/assets/components/{core/range → core-range}/core-range.html +17 -15
  141. data/app/assets/components/core-range/demo.html +64 -0
  142. data/app/assets/components/core-range/index.html +22 -0
  143. data/app/assets/components/core-scroll-header-panel/README.md +4 -0
  144. data/app/assets/components/core-scroll-header-panel/bower.json +11 -0
  145. data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.css +58 -0
  146. data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +313 -0
  147. data/app/assets/components/core-scroll-header-panel/demo.html +111 -0
  148. data/app/assets/components/core-scroll-header-panel/demos/demo1.html +80 -0
  149. data/app/assets/components/core-scroll-header-panel/demos/demo2.html +82 -0
  150. data/app/assets/components/core-scroll-header-panel/demos/demo3.html +81 -0
  151. data/app/assets/components/core-scroll-header-panel/demos/demo4.html +109 -0
  152. data/app/assets/components/core-scroll-header-panel/demos/demo5.html +109 -0
  153. data/app/assets/components/core-scroll-header-panel/demos/demo6.html +113 -0
  154. data/app/assets/components/core-scroll-header-panel/demos/demo7.html +120 -0
  155. data/app/assets/components/core-scroll-header-panel/demos/demo8.html +122 -0
  156. data/app/assets/components/core-scroll-header-panel/demos/demo9.html +100 -0
  157. data/app/assets/components/core-scroll-header-panel/demos/images/bg2.jpg +0 -0
  158. data/app/assets/components/core-scroll-header-panel/demos/images/bg3.jpg +0 -0
  159. data/app/assets/components/core-scroll-header-panel/demos/images/bg5.jpg +0 -0
  160. data/app/assets/components/core-scroll-header-panel/demos/images/bg6.jpg +0 -0
  161. data/app/assets/components/core-scroll-header-panel/demos/images/bg9.jpg +0 -0
  162. data/app/assets/components/core-scroll-header-panel/demos/lorem-ipsum.html +42 -0
  163. data/app/assets/components/core-scroll-header-panel/index.html +22 -0
  164. data/app/assets/components/core-scroll-header-panel/metadata.html +41 -0
  165. data/app/assets/components/core-selection/README.md +4 -0
  166. data/app/assets/components/core-selection/bower.json +7 -0
  167. data/app/assets/components/{core/selection → core-selection}/core-selection.html +6 -5
  168. data/app/assets/components/core-selection/demo.html +59 -0
  169. data/app/assets/components/core-selection/index.html +22 -0
  170. data/app/assets/components/core-selector/README.md +4 -0
  171. data/app/assets/components/core-selector/bower.json +8 -0
  172. data/app/assets/components/{core/selector/core-selector.html.erb → core-selector/core-selector.html} +53 -16
  173. data/app/assets/components/core-selector/demo.html +106 -0
  174. data/app/assets/components/core-selector/index.html +22 -0
  175. data/app/assets/components/core-selector/metadata.html +20 -0
  176. data/app/assets/components/core-style/README.md +4 -0
  177. data/app/assets/components/core-style/bower.json +7 -0
  178. data/app/assets/components/{core/style → core-style}/core-style.html +387 -386
  179. data/app/assets/components/core-style/demo.html +58 -0
  180. data/app/assets/components/core-style/elements.html +55 -0
  181. data/app/assets/components/core-style/index.html +22 -0
  182. data/app/assets/components/core-style/my-theme.html +73 -0
  183. data/app/assets/components/core-toolbar/README.md +4 -0
  184. data/app/assets/components/core-toolbar/bower.json +7 -0
  185. data/app/assets/components/core-toolbar/core-toolbar.css +110 -0
  186. data/app/assets/components/core-toolbar/core-toolbar.html +74 -0
  187. data/app/assets/components/core-toolbar/demo.html +107 -0
  188. data/app/assets/components/core-toolbar/index.html +22 -0
  189. data/app/assets/components/core-toolbar/metadata.html +28 -0
  190. data/app/assets/components/core-transition/README.md +2 -0
  191. data/app/assets/components/core-transition/bower.json +8 -0
  192. data/app/assets/components/core-transition/core-transition-css.html +221 -0
  193. data/app/assets/components/{core/transition → core-transition}/core-transition-overlay.css +1 -1
  194. data/app/assets/components/core-transition/core-transition.html +140 -0
  195. data/app/assets/components/core-transition/demo.html +87 -0
  196. data/app/assets/components/core-transition/index.html +22 -0
  197. data/app/assets/components/font-roboto/roboto.html +9 -0
  198. data/app/assets/components/paper-button/README.md +4 -0
  199. data/app/assets/components/paper-button/bower.json +11 -0
  200. data/app/assets/components/paper-button/demo.html +99 -0
  201. data/app/assets/components/paper-button/demo2.html +136 -0
  202. data/app/assets/components/paper-button/index.html +22 -0
  203. data/app/assets/components/paper-button/metadata.html +17 -0
  204. data/app/assets/components/paper-button/paper-button.css +11 -1
  205. data/app/assets/components/paper-button/{paper-button.html.erb → paper-button.html} +9 -8
  206. data/app/assets/components/paper-checkbox/README.md +4 -0
  207. data/app/assets/components/paper-checkbox/bower.json +8 -0
  208. data/app/assets/components/paper-checkbox/demo.html +113 -0
  209. data/app/assets/components/paper-checkbox/index.html +22 -0
  210. data/app/assets/components/paper-checkbox/metadata.html +17 -0
  211. data/app/assets/components/paper-checkbox/paper-checkbox.css +49 -48
  212. data/app/assets/components/paper-checkbox/{paper-checkbox.html.erb → paper-checkbox.html} +110 -104
  213. data/app/assets/components/paper-dialog/README.md +4 -0
  214. data/app/assets/components/paper-dialog/bower.json +10 -0
  215. data/app/assets/components/paper-dialog/demo.html +85 -0
  216. data/app/assets/components/paper-dialog/index.html +22 -0
  217. data/app/assets/components/paper-dialog/{paper-dialog-transition.html.erb → paper-dialog-transition.html} +3 -3
  218. data/app/assets/components/paper-dialog/paper-dialog.css +52 -0
  219. data/app/assets/components/paper-dialog/{paper-dialog.html.erb → paper-dialog.html} +7 -7
  220. data/app/assets/components/paper-dropdown/README.md +9 -0
  221. data/app/assets/components/paper-dropdown/bower.json +12 -0
  222. data/app/assets/components/paper-dropdown/demo.html +345 -0
  223. data/app/assets/components/paper-dropdown/index.html +22 -0
  224. data/app/assets/components/paper-dropdown/paper-dropdown.css +48 -0
  225. data/app/assets/components/paper-dropdown/paper-dropdown.html +191 -0
  226. data/app/assets/components/paper-fab/README.md +4 -0
  227. data/app/assets/components/paper-fab/bower.json +8 -0
  228. data/app/assets/components/paper-fab/demo.html +72 -0
  229. data/app/assets/components/paper-fab/demo2.html +103 -0
  230. data/app/assets/components/paper-fab/index.html +22 -0
  231. data/app/assets/components/paper-fab/metadata.html +36 -0
  232. data/app/assets/components/paper-fab/paper-fab.css +11 -2
  233. data/app/assets/components/paper-fab/{paper-fab.html.erb → paper-fab.html} +3 -2
  234. data/app/assets/components/paper-focusable/README.md +4 -0
  235. data/app/assets/components/paper-focusable/bower.json +7 -0
  236. data/app/assets/components/paper-focusable/demo.html +155 -0
  237. data/app/assets/components/paper-focusable/paper-focusable.html +2 -0
  238. data/app/assets/components/paper-icon-button/README.md +4 -0
  239. data/app/assets/components/paper-icon-button/bower.json +9 -0
  240. data/app/assets/components/paper-icon-button/demo.html +102 -0
  241. data/app/assets/components/paper-icon-button/index.html +22 -0
  242. data/app/assets/components/paper-icon-button/metadata.html +21 -0
  243. data/app/assets/components/paper-icon-button/paper-icon-button.css +1 -1
  244. data/app/assets/components/paper-icon-button/{paper-icon-button.html.erb → paper-icon-button.html} +7 -7
  245. data/app/assets/components/paper-icon-button/pulse-ink.css +20 -0
  246. data/app/assets/components/paper-input/README.md +4 -0
  247. data/app/assets/components/paper-input/bower.json +11 -0
  248. data/app/assets/components/paper-input/demo.html +124 -0
  249. data/app/assets/components/paper-input/index.html +22 -0
  250. data/app/assets/components/paper-input/metadata.html +23 -0
  251. data/app/assets/components/paper-input/paper-input.css +152 -0
  252. data/app/assets/components/paper-input/paper-input.html +314 -0
  253. data/app/assets/components/paper-item/README.md +4 -0
  254. data/app/assets/components/paper-item/bower.json +9 -0
  255. data/app/assets/components/paper-item/demo.html +39 -0
  256. data/app/assets/components/paper-item/index.html +22 -0
  257. data/app/assets/components/paper-item/metadata.html +23 -0
  258. data/app/assets/components/paper-item/paper-item.css +15 -2
  259. data/app/assets/components/paper-item/{paper-item.html.erb → paper-item.html} +7 -6
  260. data/app/assets/components/paper-menu-button/README.md +4 -0
  261. data/app/assets/components/paper-menu-button/bower.json +16 -0
  262. data/app/assets/components/paper-menu-button/demo.html +95 -0
  263. data/app/assets/components/paper-menu-button/index.html +22 -0
  264. data/app/assets/components/paper-menu-button/metadata.html +21 -0
  265. data/app/assets/components/paper-menu-button/{paper-menu-button-transition.html.erb → paper-menu-button-transition.html} +31 -26
  266. data/app/assets/components/paper-menu-button/paper-menu-button.css +5 -9
  267. data/app/assets/components/paper-menu-button/{paper-menu-button.html.erb → paper-menu-button.html} +52 -20
  268. data/app/assets/components/paper-progress/README.md +4 -0
  269. data/app/assets/components/paper-progress/bower.json +8 -0
  270. data/app/assets/components/paper-progress/demo.html +107 -0
  271. data/app/assets/components/paper-progress/index.html +22 -0
  272. data/app/assets/components/paper-progress/metadata.html +17 -0
  273. data/app/assets/components/paper-progress/paper-progress.css +1 -1
  274. data/app/assets/components/paper-progress/{paper-progress.html.erb → paper-progress.html} +23 -23
  275. data/app/assets/components/paper-radio-button/README.md +4 -0
  276. data/app/assets/components/paper-radio-button/bower.json +7 -0
  277. data/app/assets/components/paper-radio-button/demo.html +75 -0
  278. data/app/assets/components/paper-radio-button/index.html +22 -0
  279. data/app/assets/components/paper-radio-button/metadata.html +17 -0
  280. data/app/assets/components/paper-radio-button/paper-radio-button.css +14 -8
  281. data/app/assets/components/paper-radio-button/{paper-radio-button.html.erb → paper-radio-button.html} +38 -29
  282. data/app/assets/components/paper-radio-group/README.md +4 -0
  283. data/app/assets/components/paper-radio-group/bower.json +9 -0
  284. data/app/assets/components/paper-radio-group/demo.html +82 -0
  285. data/app/assets/components/paper-radio-group/index.html +22 -0
  286. data/app/assets/components/paper-radio-group/metadata.html +22 -0
  287. data/app/assets/components/paper-radio-group/{paper-radio-group.html.erb → paper-radio-group.html} +16 -16
  288. data/app/assets/components/paper-ripple/README.md +4 -0
  289. data/app/assets/components/paper-ripple/bower.json +9 -0
  290. data/app/assets/components/paper-ripple/demo.html +418 -0
  291. data/app/assets/components/paper-ripple/index.html +22 -0
  292. data/app/assets/components/paper-ripple/metadata.html +20 -0
  293. data/app/assets/components/paper-ripple/paper-ripple.html +3 -2
  294. data/app/assets/components/paper-ripple/raw.html +799 -0
  295. data/app/assets/components/paper-shadow/README.md +4 -0
  296. data/app/assets/components/paper-shadow/bower.json +7 -0
  297. data/app/assets/components/paper-shadow/demo.html +252 -0
  298. data/app/assets/components/paper-shadow/index.html +22 -0
  299. data/app/assets/components/paper-shadow/metadata.html +17 -0
  300. data/app/assets/components/paper-shadow/paper-shadow.css +11 -1
  301. data/app/assets/components/paper-shadow/{paper-shadow.html.erb → paper-shadow.html} +11 -4
  302. data/app/assets/components/paper-slider/README.md +4 -0
  303. data/app/assets/components/paper-slider/bower.json +9 -0
  304. data/app/assets/components/paper-slider/demo.html +151 -0
  305. data/app/assets/components/paper-slider/index.html +22 -0
  306. data/app/assets/components/paper-slider/metadata.html +20 -0
  307. data/app/assets/components/paper-slider/paper-slider.css +58 -26
  308. data/app/assets/components/paper-slider/{paper-slider.html.erb → paper-slider.html} +72 -75
  309. data/app/assets/components/paper-tabs/README.md +4 -0
  310. data/app/assets/components/paper-tabs/bower.json +12 -0
  311. data/app/assets/components/paper-tabs/demo.html +166 -0
  312. data/app/assets/components/paper-tabs/index.html +22 -0
  313. data/app/assets/components/paper-tabs/metadata.html +58 -0
  314. data/app/assets/components/paper-tabs/{paper-tab.html.erb → paper-tab.html} +10 -10
  315. data/app/assets/components/paper-tabs/paper-tabs.css +1 -1
  316. data/app/assets/components/paper-tabs/{paper-tabs.html.erb → paper-tabs.html} +29 -25
  317. data/app/assets/components/paper-toast/README.md +4 -0
  318. data/app/assets/components/paper-toast/bower.json +10 -0
  319. data/app/assets/components/paper-toast/demo.html +67 -0
  320. data/app/assets/components/paper-toast/index.html +22 -0
  321. data/app/assets/components/paper-toast/metadata.html +20 -0
  322. data/app/assets/components/paper-toast/paper-toast.css +80 -0
  323. data/app/assets/components/paper-toast/{paper-toast.html.erb → paper-toast.html} +39 -39
  324. data/app/assets/components/paper-toggle-button/README.md +4 -0
  325. data/app/assets/components/paper-toggle-button/bower.json +8 -0
  326. data/app/assets/components/paper-toggle-button/demo.html +77 -0
  327. data/app/assets/components/paper-toggle-button/index.html +22 -0
  328. data/app/assets/components/paper-toggle-button/metadata.html +17 -0
  329. data/app/assets/components/paper-toggle-button/paper-toggle-button.css +1 -1
  330. data/app/assets/components/paper-toggle-button/{paper-toggle-button.html.erb → paper-toggle-button.html} +39 -20
  331. data/app/assets/components/platform/README.md +6 -0
  332. data/app/assets/components/platform/bower.json +16 -0
  333. data/app/assets/components/platform/build.log +35 -0
  334. data/app/assets/components/platform/platform.js +16 -0
  335. data/app/assets/components/platform/platform.js.map +1 -0
  336. data/app/assets/components/polymer/README.md +17 -0
  337. data/app/assets/components/polymer/bower.json +8 -0
  338. data/app/assets/components/polymer/build.log +35 -0
  339. data/app/assets/components/polymer/layout.html +286 -0
  340. data/app/assets/components/polymer/polymer.html +13 -0
  341. data/app/assets/components/polymer/polymer.js +14 -0
  342. data/app/assets/components/polymer/polymer.js.map +1 -0
  343. data/app/assets/components/sampler-scaffold/README.md +4 -0
  344. data/app/assets/components/sampler-scaffold/bower.json +12 -0
  345. data/app/assets/components/sampler-scaffold/demo.html +54 -0
  346. data/app/assets/components/sampler-scaffold/demos/checkbox.html +20 -0
  347. data/app/assets/components/sampler-scaffold/demos/color.html +20 -0
  348. data/app/assets/components/sampler-scaffold/demos/radio.html +20 -0
  349. data/app/assets/components/sampler-scaffold/demos/range.html +20 -0
  350. data/app/assets/components/sampler-scaffold/demos/string.html +20 -0
  351. data/app/assets/components/sampler-scaffold/index.html +22 -0
  352. data/app/assets/components/sampler-scaffold/sampler-scaffold.css +157 -0
  353. data/app/assets/components/sampler-scaffold/sampler-scaffold.html +224 -0
  354. data/app/assets/components/web-animations-js/COPYING +202 -0
  355. data/app/assets/components/web-animations-js/README.md +237 -0
  356. data/app/assets/components/web-animations-js/run-lint.sh +19 -0
  357. data/app/assets/components/web-animations-js/run-tests-android.sh +25 -0
  358. data/app/assets/components/web-animations-js/run-tests.sh +15 -0
  359. data/app/assets/components/web-animations-js/test/bootstrap.js +1266 -0
  360. data/app/assets/components/web-animations-js/test/img/error.png +0 -0
  361. data/app/assets/components/web-animations-js/test/img/success.png +0 -0
  362. data/app/assets/components/web-animations-js/test/img/unknown.png +0 -0
  363. data/app/assets/components/web-animations-js/test/perf/balls-add-compositing.html +147 -0
  364. data/app/assets/components/web-animations-js/test/perf/balls-replace-compositing.html +144 -0
  365. data/app/assets/components/web-animations-js/test/perf/perf.js +158 -0
  366. data/app/assets/components/web-animations-js/test/perf/updating-inline-style-during-animation.html +165 -0
  367. data/app/assets/components/web-animations-js/test/test-generator.html +240 -0
  368. data/app/assets/components/web-animations-js/test/test-results-post.html +3 -0
  369. data/app/assets/components/web-animations-js/test/test-runner.html +810 -0
  370. data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow-checks.js +42 -0
  371. data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow.html +40 -0
  372. data/app/assets/components/web-animations-js/test/testcases/auto-test-calc-checks.js +41 -0
  373. data/app/assets/components/web-animations-js/test/testcases/auto-test-calc.html +156 -0
  374. data/app/assets/components/web-animations-js/test/testcases/auto-test-change-playback-rate-checks.js +23 -0
  375. data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path-checks.js +65 -0
  376. data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path.html +83 -0
  377. data/app/assets/components/web-animations-js/test/testcases/auto-test-color-checks.js +101 -0
  378. data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names-checks.js +431 -0
  379. data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names.html +204 -0
  380. data/app/assets/components/web-animations-js/test/testcases/auto-test-color.html +117 -0
  381. data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js +45 -0
  382. data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms.html +97 -0
  383. data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor-checks.js +26 -0
  384. data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor.html +68 -0
  385. data/app/assets/components/web-animations-js/test/testcases/auto-test-delay-checks.js +92 -0
  386. data/app/assets/components/web-animations-js/test/testcases/auto-test-delay.html +39 -0
  387. data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate-checks.js +8 -0
  388. data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate.html +30 -0
  389. data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values-checks.js +266 -0
  390. data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values.html +114 -0
  391. data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight-checks.js +26 -0
  392. data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight.html +43 -0
  393. data/app/assets/components/web-animations-js/test/testcases/auto-test-initial-checks.js +74 -0
  394. data/app/assets/components/web-animations-js/test/testcases/auto-test-initial.html +242 -0
  395. data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-checks.js +17 -0
  396. data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback-checks.js +17 -0
  397. data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback.html +78 -0
  398. data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods-checks.js +17 -0
  399. data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods.html +70 -0
  400. data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style.html +69 -0
  401. data/app/assets/components/web-animations-js/test/testcases/auto-test-integer-checks.js +38 -0
  402. data/app/assets/components/web-animations-js/test/testcases/auto-test-integer.html +52 -0
  403. data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start-checks.js +506 -0
  404. data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start.html +160 -0
  405. data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-checks.js +44 -0
  406. data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes-checks.js +41 -0
  407. data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes.html +48 -0
  408. data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate.html +50 -0
  409. data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic-checks.js +162 -0
  410. data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic.html +116 -0
  411. data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill-checks.js +602 -0
  412. data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill.html +167 -0
  413. data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation-checks.js +67 -0
  414. data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation.html +109 -0
  415. data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing-checks.js +65 -0
  416. data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing.html +64 -0
  417. data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units-checks.js +342 -0
  418. data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units.html +103 -0
  419. data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms-checks.js +56 -0
  420. data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms.html +90 -0
  421. data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path-checks.js +110 -0
  422. data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path.html +133 -0
  423. data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric-checks.js +26 -0
  424. data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric.html +42 -0
  425. data/app/assets/components/web-animations-js/test/testcases/auto-test-parent-checks.js +38 -0
  426. data/app/assets/components/web-animations-js/test/testcases/auto-test-parent.html +52 -0
  427. data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes-checks.js +27 -0
  428. data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes.html +43 -0
  429. data/app/assets/components/web-animations-js/test/testcases/auto-test-path-checks.js +20 -0
  430. data/app/assets/components/web-animations-js/test/testcases/auto-test-path.html +41 -0
  431. data/app/assets/components/web-animations-js/test/testcases/auto-test-pause-checks.js +79 -0
  432. data/app/assets/components/web-animations-js/test/testcases/auto-test-pause.html +82 -0
  433. data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-checks.js +37 -0
  434. data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin-checks.js +61 -0
  435. data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin.html +94 -0
  436. data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective.html +79 -0
  437. data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate-checks.js +146 -0
  438. data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate.html +128 -0
  439. data/app/assets/components/web-animations-js/test/testcases/auto-test-position-list-type-checks.js +73 -0
  440. data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle-checks.js +23 -0
  441. data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle.html +57 -0
  442. data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent-checks.js +95 -0
  443. data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent.html +60 -0
  444. data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed-checks.js +69 -0
  445. data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed.html +86 -0
  446. data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand-checks.js +197 -0
  447. data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand.html +115 -0
  448. data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-checks.js +58 -0
  449. data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations-checks.js +92 -0
  450. data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations.html +107 -0
  451. data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time.html +90 -0
  452. data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim-checks.js +23 -0
  453. data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim.html +39 -0
  454. data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle-checks.js +23 -0
  455. data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle.html +38 -0
  456. data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color-checks.js +20 -0
  457. data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color.html +36 -0
  458. data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow-checks.js +20 -0
  459. data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow.html +37 -0
  460. data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions-checks.js +89 -0
  461. data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions.html +77 -0
  462. data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation-checks.js +58 -0
  463. data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation.html +83 -0
  464. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d-checks.js +134 -0
  465. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d.html +123 -0
  466. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions-checks.js +160 -0
  467. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions.html +158 -0
  468. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin-checks.js +37 -0
  469. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin.html +80 -0
  470. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives-checks.js +292 -0
  471. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives.html +97 -0
  472. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units-checks.js +202 -0
  473. data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units.html +98 -0
  474. data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility-checks.js +54 -0
  475. data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility.html +80 -0
  476. data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug-checks.js +58 -0
  477. data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug.html +60 -0
  478. data/app/assets/components/web-animations-js/test/testcases/background.png +0 -0
  479. data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-change-playback-rate.html +65 -0
  480. data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-position-list-type.html +103 -0
  481. data/app/assets/components/web-animations-js/test/testcases/disabled-media.html +439 -0
  482. data/app/assets/components/web-animations-js/test/testcases/disabled-test-compositing-order.html +112 -0
  483. data/app/assets/components/web-animations-js/test/testcases/impl-test-deprecation.html +85 -0
  484. data/app/assets/components/web-animations-js/test/testcases/impl-test-from-css-value.html +219 -0
  485. data/app/assets/components/web-animations-js/test/testcases/impl-test-paced-timing-function.html +83 -0
  486. data/app/assets/components/web-animations-js/test/testcases/impl-test-totimelinetime.html +37 -0
  487. data/app/assets/components/web-animations-js/test/testcases/impl-unit-test-position-type.html +256 -0
  488. data/app/assets/components/web-animations-js/test/testcases/manual-test-add-player-onend.html +57 -0
  489. data/app/assets/components/web-animations-js/test/testcases/manual-test-preset-timings.html +71 -0
  490. data/app/assets/components/web-animations-js/test/testcases/manual-test-step.html +88 -0
  491. data/app/assets/components/web-animations-js/test/testcases/small.mp4 +0 -0
  492. data/app/assets/components/web-animations-js/test/testcases/small.webm +0 -0
  493. data/app/assets/components/web-animations-js/test/testcases/test-bounds.html +69 -0
  494. data/app/assets/components/web-animations-js/test/testcases/test-document-timeline.html +53 -0
  495. data/app/assets/components/web-animations-js/test/testcases/test-dynamic-load.html +65 -0
  496. data/app/assets/components/web-animations-js/test/testcases/test-fill-auto.html +78 -0
  497. data/app/assets/components/web-animations-js/test/testcases/test-getcurrent.html +324 -0
  498. data/app/assets/components/web-animations-js/test/testcases/test-keyframe-animation-effect.html +248 -0
  499. data/app/assets/components/web-animations-js/test/testcases/test-keyframe-composite-operation.html +182 -0
  500. data/app/assets/components/web-animations-js/test/testcases/test-null-target.html +66 -0
  501. data/app/assets/components/web-animations-js/test/testcases/test-pause-for-testing.html +52 -0
  502. data/app/assets/components/web-animations-js/test/testcases/test-player-addeventlistener.html +161 -0
  503. data/app/assets/components/web-animations-js/test/testcases/test-player-cleanup.html +79 -0
  504. data/app/assets/components/web-animations-js/test/testcases/test-player-finish-event.html +101 -0
  505. data/app/assets/components/web-animations-js/test/testcases/test-player-sort.html +48 -0
  506. data/app/assets/components/web-animations-js/test/testcases/test-player.html +786 -0
  507. data/app/assets/components/web-animations-js/test/testcases/test-pseudo-element-reference.html +38 -0
  508. data/app/assets/components/web-animations-js/test/testcases/test-repeated-pause.html +54 -0
  509. data/app/assets/components/web-animations-js/test/testcases/test-restart.html +115 -0
  510. data/app/assets/components/web-animations-js/test/testcases/test-reversed-player-active-phase.html +28 -0
  511. data/app/assets/components/web-animations-js/test/testcases/test-rotation-not-reversed.html +55 -0
  512. data/app/assets/components/web-animations-js/test/testcases/test-update-state.html +113 -0
  513. data/app/assets/components/web-animations-js/test/testcases/unit-test-clone.html +80 -0
  514. data/app/assets/components/web-animations-js/test/testcases/unit-test-delay.html +66 -0
  515. data/app/assets/components/web-animations-js/test/testcases/unit-test-dom-operations.html +164 -0
  516. data/app/assets/components/web-animations-js/test/testcases/unit-test-duration.html +66 -0
  517. data/app/assets/components/web-animations-js/test/testcases/unit-test-get-siblings.html +112 -0
  518. data/app/assets/components/web-animations-js/test/testcases/unit-test-modify-timing-params.html +105 -0
  519. data/app/assets/components/web-animations-js/test/testcases/unit-test-null-effect.html +43 -0
  520. data/app/assets/components/web-animations-js/test/testcases/unit-test-set-parent.html +111 -0
  521. data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness-failure.html +54 -0
  522. data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness.html +248 -0
  523. data/app/assets/components/web-animations-js/test/testcases/unit-test-unpause.html +68 -0
  524. data/app/assets/components/web-animations-js/test/testcases.js +93 -0
  525. data/app/assets/components/web-animations-js/test/testharness_timing.css +75 -0
  526. data/app/assets/components/web-animations-js/test/update-testcases.py +63 -0
  527. data/app/assets/components/web-animations-js/tools/android/config.sh +8 -0
  528. data/app/assets/components/web-animations-js/tools/android/setup.sh +152 -0
  529. data/app/assets/components/web-animations-js/tools/android/stop.sh +20 -0
  530. data/app/assets/components/web-animations-js/tools/python/requirements.txt +12 -0
  531. data/app/assets/components/web-animations-js/tools/python/run-tests.py +813 -0
  532. data/app/assets/components/web-animations-js/tools/python/setup.sh +60 -0
  533. data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation-exercise-1.html +62 -0
  534. data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation.html +120 -0
  535. data/app/assets/components/web-animations-js/tutorial/iframe-contents.html +29 -0
  536. data/app/assets/components/web-animations-js/tutorial/jquery.js +9555 -0
  537. data/app/assets/components/web-animations-js/tutorial/page-load.js +114 -0
  538. data/app/assets/components/web-animations-js/tutorial/parallel/parallel-exercise-1.html +58 -0
  539. data/app/assets/components/web-animations-js/tutorial/parallel/parallel.html +101 -0
  540. data/app/assets/components/web-animations-js/tutorial/sample-tutorial.html +44 -0
  541. data/app/assets/components/web-animations-js/tutorial/try-it-yourself.js +216 -0
  542. data/app/assets/components/web-animations-js/tutorial/tutorial-style.css +344 -0
  543. data/app/assets/components/web-animations-js/tutorial/tutorial-testing.js +84 -0
  544. data/app/assets/components/{core/animation → web-animations-js}/web-animations.js +77 -214
  545. data/lib/polymer-paper-rails/version.rb +1 -1
  546. metadata +540 -61
  547. data/app/assets/components/core/animation/web-animations.html.erb +0 -1
  548. data/app/assets/components/core/icon/core-icon.html.erb +0 -126
  549. data/app/assets/components/core/input/core-input.css +0 -35
  550. data/app/assets/components/core/list/core-list.css +0 -20
  551. data/app/assets/components/core/list/core-list.html.erb +0 -403
  552. data/app/assets/components/core/transition/core-transition-css.html.erb +0 -76
  553. data/app/assets/components/core/transition/core-transition.html.erb +0 -44
  554. data/app/assets/components/paper-input/error-100.png +0 -0
  555. data/app/assets/components/paper-input/error-200.png +0 -0
  556. data/app/assets/components/paper-input/paper-input.html.erb +0 -398
  557. data/app/assets/components/paper-input/paper-input.scss +0 -203
  558. data/app/assets/components/paper-menu-button/paper-menu-button-overlay.html.erb +0 -86
@@ -0,0 +1,66 @@
1
+ <!doctype html>
2
+ <!--
3
+ Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+
11
+ <html>
12
+ <head>
13
+
14
+ <title>core-iconset-svg</title>
15
+ <script src="../platform/platform.js"></script>
16
+ <link rel="import" href="svg-sample-icons.html">
17
+ <style shim-shadowdom>
18
+ .embiggen core-icon {
19
+ height: 128px;
20
+ width: 128px;
21
+ }
22
+
23
+ core-icon:nth-of-type(1) {
24
+ fill: orange;
25
+ }
26
+
27
+ core-icon:nth-of-type(2) {
28
+ fill: green;
29
+ stroke: orange;
30
+ }
31
+
32
+ core-icon:nth-of-type(3) {
33
+ fill: navy;
34
+ }
35
+
36
+ core-icon {
37
+ transition: all 0.5s;
38
+ -webkit-transition: all 0.5s;
39
+ }
40
+
41
+ core-icon:hover {
42
+ -webkit-filter: drop-shadow( 2px 2px 2px #333 );
43
+ filter: drop-shadow( 2px 2px 2px #333 );
44
+ }
45
+ </style>
46
+ </head>
47
+ <body unresolved>
48
+
49
+ <template is="auto-binding">
50
+ <div class="embiggen">
51
+ <template repeat="{{icon in icons}}">
52
+ <core-icon icon="{{icon}}"></core-icon>
53
+ </template>
54
+ </div>
55
+ <core-meta id="meta" type="iconset"></core-meta>
56
+ </template>
57
+ <script>
58
+ addEventListener('template-bound', function(e) {
59
+ var template = e.target;
60
+ var setName = 'svg-sample-icons';
61
+ var icons = template.$.meta.byId(setName).iconNames;
62
+ template.icons = icons.map(function(ic){ return setName + ':' +ic });
63
+ });
64
+ </script>
65
+ </body>
66
+ </html>
@@ -0,0 +1,22 @@
1
+ <!doctype html>
2
+ <!--
3
+ Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS
9
+ -->
10
+ <html>
11
+ <head>
12
+
13
+ <script src="../platform/platform.js"></script>
14
+ <link rel="import" href="../core-component-page/core-component-page.html">
15
+
16
+ </head>
17
+ <body unresolved>
18
+
19
+ <core-component-page></core-component-page>
20
+
21
+ </body>
22
+ </html>
@@ -0,0 +1,68 @@
1
+
2
+ <!--
3
+ Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+
11
+ <link rel="import" href="../core-icon/core-icon.html">
12
+ <link rel="import" href="core-iconset-svg.html">
13
+
14
+ <core-iconset-svg id="svg-sample-icons" iconSize="100">
15
+ <svg>
16
+ <defs>
17
+ <g id="codepen">
18
+ <path class="outer-ring" d="M50,0C22.385,0,0,22.385,0,50c0,27.615,22.385,50,50,50c27.614,0,50-22.385,50-50C100,22.385,77.615,0,50,0z M50,91.789
19
+ C26.958,91.789,8.212,73.042,8.212,50C8.212,26.958,26.958,8.212,50,8.212c23.042,0,41.788,18.747,41.788,41.789
20
+ C91.788,73.042,73.042,91.789,50,91.789z"></path>
21
+ <path class="inner-logo" d="M80.893,40.234c-0.006-0.039-0.016-0.076-0.022-0.115c-0.013-0.075-0.027-0.15-0.046-0.223
22
+ c-0.012-0.044-0.028-0.086-0.042-0.128c-0.021-0.065-0.042-0.13-0.068-0.193c-0.018-0.044-0.039-0.088-0.059-0.13
23
+ c-0.028-0.06-0.057-0.119-0.09-0.175c-0.024-0.042-0.051-0.083-0.076-0.124c-0.036-0.055-0.073-0.109-0.112-0.161
24
+ c-0.029-0.039-0.06-0.078-0.091-0.115c-0.042-0.049-0.086-0.098-0.132-0.143c-0.035-0.036-0.069-0.072-0.106-0.104
25
+ c-0.049-0.044-0.099-0.086-0.15-0.127c-0.04-0.031-0.079-0.062-0.12-0.091c-0.016-0.01-0.029-0.023-0.044-0.033L51.474,19.531
26
+ c-0.893-0.595-2.055-0.595-2.947,0L20.267,38.371c-0.015,0.01-0.028,0.023-0.044,0.033c-0.042,0.029-0.081,0.06-0.12,0.091
27
+ c-0.052,0.041-0.102,0.083-0.15,0.127c-0.037,0.032-0.071,0.068-0.106,0.104c-0.046,0.045-0.09,0.094-0.132,0.143
28
+ c-0.031,0.038-0.062,0.077-0.092,0.115c-0.039,0.052-0.076,0.106-0.111,0.161c-0.027,0.041-0.052,0.082-0.076,0.124
29
+ c-0.033,0.057-0.062,0.115-0.09,0.175c-0.021,0.042-0.042,0.086-0.06,0.13c-0.026,0.063-0.047,0.128-0.068,0.193
30
+ c-0.014,0.042-0.029,0.084-0.042,0.128c-0.02,0.073-0.032,0.148-0.046,0.223c-0.006,0.039-0.016,0.076-0.021,0.115
31
+ c-0.016,0.114-0.024,0.229-0.024,0.346V59.42c0,0.117,0.009,0.233,0.024,0.348c0.005,0.038,0.015,0.077,0.021,0.114
32
+ c0.014,0.075,0.027,0.149,0.046,0.223c0.012,0.043,0.028,0.086,0.042,0.128c0.021,0.065,0.042,0.13,0.068,0.195
33
+ c0.018,0.044,0.039,0.086,0.06,0.129c0.028,0.06,0.058,0.118,0.09,0.177c0.024,0.041,0.049,0.082,0.076,0.122
34
+ c0.035,0.056,0.072,0.109,0.111,0.161c0.029,0.041,0.061,0.078,0.092,0.115c0.042,0.049,0.086,0.098,0.132,0.144
35
+ c0.035,0.036,0.069,0.071,0.106,0.104c0.048,0.044,0.099,0.086,0.15,0.127c0.039,0.031,0.078,0.062,0.12,0.091
36
+ c0.016,0.01,0.029,0.023,0.044,0.032l28.259,18.84c0.446,0.297,0.96,0.447,1.474,0.447c0.513,0,1.027-0.149,1.473-0.447
37
+ l28.259-18.84c0.015-0.009,0.028-0.022,0.044-0.032c0.042-0.029,0.081-0.06,0.12-0.091c0.051-0.041,0.102-0.083,0.15-0.127
38
+ c0.037-0.033,0.071-0.068,0.106-0.104c0.046-0.046,0.09-0.095,0.132-0.144c0.031-0.037,0.062-0.075,0.091-0.115
39
+ c0.04-0.052,0.076-0.105,0.112-0.161c0.025-0.041,0.051-0.081,0.076-0.122c0.033-0.059,0.062-0.117,0.09-0.177
40
+ c0.02-0.042,0.041-0.085,0.059-0.129c0.026-0.065,0.047-0.13,0.068-0.195c0.014-0.042,0.03-0.085,0.042-0.128
41
+ c0.02-0.074,0.033-0.148,0.046-0.223c0.006-0.037,0.016-0.076,0.022-0.114c0.014-0.115,0.023-0.231,0.023-0.348V40.581
42
+ C80.916,40.464,80.907,40.348,80.893,40.234z M52.657,26.707l20.817,13.877l-9.298,6.221l-11.519-7.706V26.707z M47.343,26.707
43
+ v12.393l-11.518,7.706l-9.299-6.221L47.343,26.707z M24.398,45.554L31.046,50l-6.648,4.446V45.554z M47.343,73.294L26.525,59.417
44
+ l9.299-6.219l11.518,7.704V73.294z M50,56.286L40.603,50L50,43.715L59.397,50L50,56.286z M52.657,73.294V60.902l11.519-7.704
45
+ l9.298,6.219L52.657,73.294z M75.602,54.447L68.955,50l6.647-4.446V54.447z"></path>
46
+ </g>
47
+
48
+ <path id="twitter" d="M100.001,17.942c-3.681,1.688-7.633,2.826-11.783,3.339
49
+ c4.236-2.624,7.49-6.779,9.021-11.73c-3.965,2.432-8.354,4.193-13.026,5.146C80.47,10.575,75.138,8,69.234,8
50
+ c-11.33,0-20.518,9.494-20.518,21.205c0,1.662,0.183,3.281,0.533,4.833c-17.052-0.884-32.168-9.326-42.288-22.155
51
+ c-1.767,3.133-2.778,6.773-2.778,10.659c0,7.357,3.622,13.849,9.127,17.65c-3.363-0.109-6.525-1.064-9.293-2.651
52
+ c-0.002,0.089-0.002,0.178-0.002,0.268c0,10.272,7.072,18.845,16.458,20.793c-1.721,0.484-3.534,0.744-5.405,0.744
53
+ c-1.322,0-2.606-0.134-3.859-0.379c2.609,8.424,10.187,14.555,19.166,14.726c-7.021,5.688-15.867,9.077-25.48,9.077
54
+ c-1.656,0-3.289-0.102-4.895-0.297C9.08,88.491,19.865,92,31.449,92c37.737,0,58.374-32.312,58.374-60.336
55
+ c0-0.92-0.02-1.834-0.059-2.743C93.771,25.929,97.251,22.195,100.001,17.942L100.001,17.942z"></path>
56
+
57
+ <g id="youtube">
58
+ <path class="youtube" d="M98.77,27.492c-1.225-5.064-5.576-8.799-10.811-9.354C75.561,16.818,63.01,15.993,50.514,16
59
+ c-12.495-0.007-25.045,0.816-37.446,2.139c-5.235,0.557-9.583,4.289-10.806,9.354C0.522,34.704,0.5,42.574,0.5,50.001
60
+ c0,7.426,0,15.296,1.741,22.509c1.224,5.061,5.572,8.799,10.807,9.352c12.399,1.32,24.949,2.145,37.446,2.14
61
+ c12.494,0.005,25.047-0.817,37.443-2.14c5.234-0.555,9.586-4.291,10.81-9.352c1.741-7.213,1.753-15.083,1.753-22.509
62
+ S100.51,34.704,98.77,27.492 M67.549,52.203L43.977,64.391c-2.344,1.213-4.262,0.119-4.262-2.428V38.036
63
+ c0-2.548,1.917-3.644,4.262-2.429l23.572,12.188C69.896,49.008,69.896,50.992,67.549,52.203"></path>
64
+ </g>
65
+
66
+ </defs>
67
+ </svg>
68
+ </core-iconset-svg>
@@ -0,0 +1,2 @@
1
+ core-input
2
+ ==========
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "core-input",
3
+ "dependencies": {
4
+ "polymer": "Polymer/polymer#>=0.4.0 <1.0.0"
5
+ }
6
+ }
@@ -0,0 +1,45 @@
1
+ /*
2
+ * @license
3
+ * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ * Code distributed by Google as part of the polymer project is also
8
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+
11
+ :host {
12
+ display: inline-block;
13
+ text-align: inherit;
14
+ color: #ccc;
15
+ position: relative;
16
+ width: 20em;
17
+ }
18
+
19
+ :host:hover {
20
+ cursor: text;
21
+ }
22
+
23
+ input,
24
+ textarea {
25
+ font: inherit;
26
+ width: 100%;
27
+ margin: 0;
28
+ padding: 0;
29
+ background-color: transparent;
30
+ border: none;
31
+ outline: none;
32
+ width: 100%;
33
+ }
34
+
35
+ textarea {
36
+ resize: none;
37
+ }
38
+
39
+ textarea[fit] {
40
+ position: absolute;
41
+ top: 0;
42
+ left: 0;
43
+ right: 0;
44
+ bottom: 0;
45
+ }
@@ -18,27 +18,37 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
18
18
  *
19
19
  * <core-input multiline placeholder="Enter multiple lines here"></core-input>
20
20
  *
21
- * The text input's value is considered "committed" if the user hits the `enter`
22
- * key or blurs the input after changing the value. The "change" event is fired
21
+ * The text input's value is considered "committed" if the user hits the "enter"
22
+ * key or blurs the input after changing the value. The `change` event is fired
23
23
  * when the value becomes committed, and the committed value is stored in the
24
- * "value" property. The current value of the input is stored in the "inputValue"
24
+ * `value` property. The current value of the input is stored in the `inputValue`
25
25
  * property.
26
26
  *
27
- * core-input also can optionally validate the value by providing it with a
28
- * regular expression to match against, or a validation function. The
29
- * "input-invalid" event is fired if the input value changes and is invalid.
30
- * The "invalid" property is also available for observation.
27
+ * Validation
28
+ * ----------
29
+ *
30
+ * core-input can optionally validate the value using the HTML5 constraints API,
31
+ * similar to native inputs. There are two methods to configure input validation:
32
+ *
33
+ * 1. By setting the `type` attribute. For example, setting it to `email` will
34
+ * check the value is a valid email, and setting it to `number` will check
35
+ * the input is a number.
36
+ *
37
+ * 2. By setting attributes related to validation. The attributes are `pattern`,
38
+ * `min`, `max`, `step` and `required`.
39
+ *
40
+ * Only `required` is supported for multiline inputs currently.
31
41
  *
32
42
  * Example:
33
43
  *
34
- * // valid only if the value is a number
35
- * <core-input validate="^[0-9]*$" on-input-invalid="{{inputInvalidAction}}"></core-input>
44
+ * <core-input type="email" placeholder="enter your email"></core-input>
45
+ *
46
+ * <core-input type="number" min="5" placeholder="enter a number greater than or equal to 5"></core-input>
36
47
  *
37
- * this.$.input.validate = /^[0-9]*$/; // valid only if the value is a number
48
+ * <core-input pattern=".*abc.*" placeholder="enter something containing 'abc'"></core-input>
38
49
  *
39
- * this.$.input2.validate = function(value) {
40
- * return value === 'foo'; // valid only if the value is 'foo'
41
- * }
50
+ * See https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation
51
+ * for more info on validation.
42
52
  *
43
53
  * @group Polymer Core Elements
44
54
  * @element core-input
@@ -76,19 +86,20 @@ Fired when the inputValue of this text input changes and passes validation.
76
86
  @param {Object} detail
77
87
  @param {string} value The text input's inputValue.
78
88
  -->
89
+ <link href="../polymer/polymer.html" rel="import">
79
90
 
80
91
  <polymer-element name="core-input" on-focus="{{focusAction}}">
81
92
 
82
93
  <template>
83
94
 
84
- <%= stylesheet_link_tag "core/input/core-input" %>
95
+ <link href="core-input.css" rel="stylesheet">
85
96
 
86
97
  <template if="{{multiline}}">
87
- <textarea id="input" value="{{inputValue}}" rows="{{rows}}" fit?="{{rows === 'fit'}}" disabled?="{{disabled}}" placeholder="{{placeholder}}" required?="{{required}}" readonly?="{{readonly}}" aria-label="{{label || placeholder}}" aria-invalid="{{invalid}}" on-change="{{inputChangeAction}}" on-focus="{{inputFocusAction}}" on-blur="{{inputBlurAction}}"></textarea>
98
+ <textarea id="input" value="{{inputValue}}" rows="{{rows}}" fit?="{{rows === 'fit'}}" disabled?="{{disabled}}" placeholder="{{placeholder}}" autofocus?="{{autofocus}}" required?="{{required}}" readonly?="{{readonly}}" maxlength="{{maxlength}}" aria-label="{{label || placeholder}}" aria-invalid="{{invalid}}" on-change="{{inputChangeAction}}" on-focus="{{inputFocusAction}}" on-blur="{{inputBlurAction}}"></textarea>
88
99
  </template>
89
100
 
90
101
  <template if="{{!multiline}}">
91
- <input id="input" value="{{inputValue}}" disabled?="{{disabled}}" type="{{type}}" placeholder="{{placeholder}}" required?="{{required}}" readonly?="{{readonly}}" aria-label="{{label || placeholder}}" aria-invalid="{{invalid}}" on-change="{{inputChangeAction}}" on-focus="{{inputFocusAction}}" on-blur="{{inputBlurAction}}">
102
+ <input id="input" value="{{inputValue}}" disabled?="{{disabled}}" type="{{type}}" placeholder="{{placeholder}}" autofocus?="{{autofocus}}" required?="{{required}}" readonly?="{{readonly}}" pattern="{{pattern}}" min="{{min}}" max="{{max}}" step="{{step}}" maxlength="{{maxlength}}" aria-label="{{label || placeholder}}" aria-invalid="{{invalid}}" on-keypress="{{keypressAction}}" on-change="{{inputChangeAction}}" on-focus="{{inputFocusAction}}" on-blur="{{inputBlurAction}}">
92
103
  </template>
93
104
 
94
105
  </template>
@@ -106,7 +117,7 @@ Fired when the inputValue of this text input changes and passes validation.
106
117
  * @default ''
107
118
  */
108
119
  placeholder: '',
109
-
120
+
110
121
  /**
111
122
  * If true, this input cannot be focused and the user cannot change
112
123
  * its value.
@@ -116,16 +127,7 @@ Fired when the inputValue of this text input changes and passes validation.
116
127
  * @default false
117
128
  */
118
129
  disabled: false,
119
-
120
- /**
121
- * Set the input type. Not supported for `multiline`.
122
- *
123
- * @attribute type
124
- * @type string
125
- * @default text
126
- */
127
- type: 'text',
128
-
130
+
129
131
  /**
130
132
  * If true, the user cannot modify the value of the input.
131
133
  *
@@ -136,13 +138,13 @@ Fired when the inputValue of this text input changes and passes validation.
136
138
  readonly: false,
137
139
 
138
140
  /**
139
- * If true, the input is invalid until the value becomes non-null.
141
+ * If true, this input will automatically gain focus on page load.
140
142
  *
141
- * @attribute required
143
+ * @attribute autofocus
142
144
  * @type boolean
143
145
  * @default false
144
146
  */
145
- required: false,
147
+ autofocus: false,
146
148
 
147
149
  /**
148
150
  * If true, this input accepts multi-line input like a `<textarea>`
@@ -152,7 +154,7 @@ Fired when the inputValue of this text input changes and passes validation.
152
154
  * @default false
153
155
  */
154
156
  multiline: false,
155
-
157
+
156
158
  /**
157
159
  * (multiline only) The height of this text input in rows. The input
158
160
  * will scroll internally if more input is entered beyond the size
@@ -165,7 +167,7 @@ Fired when the inputValue of this text input changes and passes validation.
165
167
  * @default 'fit'
166
168
  */
167
169
  rows: 'fit',
168
-
170
+
169
171
  /**
170
172
  * The current value of this input. Changing inputValue programmatically
171
173
  * will cause value to be out of sync. Instead, change value directly
@@ -176,7 +178,7 @@ Fired when the inputValue of this text input changes and passes validation.
176
178
  * @default ''
177
179
  */
178
180
  inputValue: '',
179
-
181
+
180
182
  /**
181
183
  * The value of the input committed by the user, either by changing the
182
184
  * inputValue and blurring the input, or by hitting the `enter` key.
@@ -188,35 +190,72 @@ Fired when the inputValue of this text input changes and passes validation.
188
190
  value: '',
189
191
 
190
192
  /**
191
- * If this property is not null, the text input's inputValue will be
192
- * validated. You can validate the value with either a regular expression
193
- * or a custom function.
193
+ * Set the input type. Not supported for `multiline`.
194
194
  *
195
- * To use a regular expression, set this property to a RegExp object or
196
- * a string containing the regular expression to match against. To use a
197
- * custom validator, set this property to a function with the signature
198
- * function(value) that returns a boolean. The input is valid if the
199
- * function returns true.
195
+ * @attribute type
196
+ * @type string
197
+ * @default text
198
+ */
199
+ type: 'text',
200
+
201
+ /**
202
+ * If true, the input is invalid if its value is null.
200
203
  *
201
- * Example:
204
+ * @attribute required
205
+ * @type boolean
206
+ * @default false
207
+ */
208
+ required: false,
209
+
210
+ /**
211
+ * A regular expression to validate the input value against. See
212
+ * https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation#Validation-related_attributes
213
+ * for more info. Not supported if `multiline` is true.
202
214
  *
203
- * // valid only if the value is a number
204
- * <core-input validate="^[0-9]*$"></core-input>
215
+ * @attribute pattern
216
+ * @type string
217
+ * @default '.*'
218
+ */
219
+ // FIXME(yvonne): The default is set to .* because we can't bind to pattern such
220
+ // that the attribute is unset if pattern is null.
221
+ pattern: '.*',
222
+
223
+ /**
224
+ * If set, the input is invalid if the value is less than this property. See
225
+ * https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation#Validation-related_attributes
226
+ * for more info. Not supported if `multiline` is true.
205
227
  *
206
- * // valid only if the value is a number
207
- * this.$.input.validate = /^[0-9]*$/;
228
+ * @attribute min
229
+ */
230
+ min: null,
231
+
232
+ /**
233
+ * If set, the input is invalid if the value is greater than this property. See
234
+ * https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation#Validation-related_attributes
235
+ * for more info. Not supported if `multiline` is true.
208
236
  *
209
- * this.$.input2.validate = function(value) {
210
- * // valid only if the value is 'foo'
211
- * return value === 'foo';
212
- * }
237
+ * @attribute max
238
+ */
239
+ max: null,
240
+
241
+ /**
242
+ * If set, the input is invalid if the value is not `min` plus an integral multiple
243
+ * of this property. See
244
+ * https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation#Validation-related_attributes
245
+ * for more info. Not supported if `multiline` is true.
213
246
  *
214
- * @attribute validate
215
- * @type string|RegExp|Function(value)
216
- * @default null
247
+ * @attribute step
217
248
  */
218
- validate: null,
249
+ step: null,
219
250
 
251
+ /**
252
+ * The maximum length of the input value.
253
+ *
254
+ * @attribute maxlength
255
+ * @type number
256
+ */
257
+ maxlength: null,
258
+
220
259
  /**
221
260
  * If this property is true, the text input's inputValue failed validation.
222
261
  *
@@ -225,42 +264,37 @@ Fired when the inputValue of this text input changes and passes validation.
225
264
  * @default false
226
265
  */
227
266
  invalid: false,
267
+
268
+ /**
269
+ * If this property is true, validate the input as they are entered.
270
+ *
271
+ * @attribute validateImmediately
272
+ * @type boolean
273
+ * @default true
274
+ */
275
+ validateImmediately: true
228
276
  },
229
277
 
230
278
  ready: function() {
231
279
  this.handleTabindex(this.getAttribute('tabindex'));
232
280
  },
233
281
 
234
- validateValue: function() {
235
- var valid = true;
236
-
237
- if (this.validate) {
238
-
239
- if (!this.inputValue) {
240
- valid = !this.required;
241
- } else if (typeof this.validate === 'string') {
242
- valid = new RegExp(this.validate).exec(this.inputValue);
243
- } else if (this.validate.exec) {
244
- valid = this.validate.exec(this.inputValue);
245
- } else if (this.validate instanceof Function) {
246
- valid = this.validate.call(this, this.inputValue);
247
- }
248
-
249
- } else if (this.required) {
250
- valid = !!this.inputValue;
282
+ disabledChanged: function() {
283
+ if (this.disabled) {
284
+ this.setAttribute('aria-disabled', true);
285
+ } else {
286
+ this.removeAttribute('aria-disabled');
251
287
  }
252
-
253
- this.invalid = !valid;
254
288
  },
255
289
 
256
290
  invalidChanged: function() {
257
291
  this.classList.toggle('invalid', this.invalid);
258
- this.fire('input-'+ this.invalid ? 'invalid' : 'valid', {value: this.inputValue});
292
+ this.fire('input-'+ (this.invalid ? 'invalid' : 'valid'), {value: this.inputValue});
259
293
  },
260
294
 
261
295
  inputValueChanged: function() {
262
- if (this.validate || this.required) {
263
- this.validateValue();
296
+ if (this.validateImmediately) {
297
+ this.updateValidity_();
264
298
  }
265
299
  },
266
300
 
@@ -269,7 +303,9 @@ Fired when the inputValue of this text input changes and passes validation.
269
303
  },
270
304
 
271
305
  requiredChanged: function() {
272
- this.validateValue();
306
+ if (this.validateImmediately) {
307
+ this.updateValidity_();
308
+ }
273
309
  },
274
310
 
275
311
  attributeChanged: function(attr, oldVal, curVal) {
@@ -295,6 +331,23 @@ Fired when the inputValue of this text input changes and passes validation.
295
331
  this.value = this.inputValue;
296
332
  },
297
333
 
334
+ updateValidity_: function() {
335
+ if (this.$.input.willValidate) {
336
+ this.invalid = !this.$.input.validity.valid;
337
+ }
338
+ },
339
+
340
+ keypressAction: function(e) {
341
+ // disallow non-numeric input if type = number
342
+ if (this.type !== 'number') {
343
+ return;
344
+ }
345
+ var c = String.fromCharCode(e.charCode);
346
+ if (!c.match(/[\d-\.e]/)) {
347
+ e.preventDefault();
348
+ }
349
+ },
350
+
298
351
  inputChangeAction: function() {
299
352
  this.commit();
300
353
  if (!window.ShadowDOMPolyfill) {
@@ -346,40 +399,56 @@ Fired when the inputValue of this text input changes and passes validation.
346
399
  this.$.input.focus();
347
400
  },
348
401
 
349
- setSelectionRange: function( selectionStart, selectionEnd, selectionDirection ) {
402
+ setSelectionRange: function(selectionStart, selectionEnd, selectionDirection) {
350
403
  // forward setSelectionRange method to the internal input / textarea element
351
- this.$.input.setSelectionRange( selectionStart, selectionEnd, selectionDirection );
404
+ this.$.input.setSelectionRange(selectionStart, selectionEnd, selectionDirection);
352
405
  },
353
406
 
354
- setRangeText: function( replacement, start, end, selectMode ) {
407
+ setRangeText: function(replacement, start, end, selectMode) {
355
408
  // forward setRangeText method to the internal input element
356
- if ( !this.multiline ) {
357
- this.$.input.setRangeText( replacement, start, end, selectMode );
409
+ if (!this.multiline) {
410
+ this.$.input.setRangeText(replacement, start, end, selectMode);
358
411
  }
359
412
  },
360
413
 
361
- stepDown: function( n ) {
414
+ stepDown: function(n) {
362
415
  // forward stepDown method to the internal input element
363
- if ( !this.multiline ) {
364
- this.$.input.stepDown( n );
416
+ if (!this.multiline) {
417
+ this.$.input.stepDown(n);
365
418
  }
366
419
  },
367
420
 
368
- stepUp: function( n ) {
421
+ stepUp: function(n) {
369
422
  // forward stepUp method to the internal input element
370
- if ( !this.multiline ) {
371
- this.$.input.stepUp( n );
423
+ if (!this.multiline) {
424
+ this.$.input.stepUp(n);
372
425
  }
426
+ },
427
+
428
+ get willValidate() {
429
+ return this.$.input.willValidate;
430
+ },
431
+
432
+ get validity() {
433
+ return this.$.input.validity;
434
+ },
435
+
436
+ get validationMessage() {
437
+ return this.$.input.validationMessage;
438
+ },
439
+
440
+ checkValidity: function() {
441
+ var r = this.$.input.checkValidity();
442
+ this.updateValidity_();
443
+ return r;
444
+ },
445
+
446
+ setCustomValidity: function(message) {
447
+ this.$.input.setCustomValidity(message);
448
+ this.updateValidity_();
373
449
  }
374
450
 
375
451
  });
376
-
377
- CoreInput = function() {
378
- return document.createElement('core-input');
379
- };
380
- CoreInput.validate = {
381
- number: /^[0-9]*$/
382
- };
383
452
  </script>
384
453
 
385
454
  </polymer-element>