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.
- checksums.yaml +4 -4
- data/app/assets/components/core-animation/README.md +4 -0
- data/app/assets/components/core-animation/bower.json +8 -0
- data/app/assets/components/core-animation/core-animation-group.html +169 -0
- data/app/assets/components/core-animation/core-animation.html +524 -0
- data/app/assets/components/core-animation/demo.html +149 -0
- data/app/assets/components/core-animation/index.html +22 -0
- data/app/assets/components/core-animation/web-animations.html +10 -0
- data/app/assets/components/core-collapse/README.md +4 -0
- data/app/assets/components/core-collapse/bower.json +7 -0
- data/app/assets/components/core-collapse/core-collapse.css +16 -0
- data/app/assets/components/core-collapse/core-collapse.html +262 -0
- data/app/assets/components/core-collapse/demo.html +93 -0
- data/app/assets/components/core-collapse/index.html +22 -0
- data/app/assets/components/core-component-page/README.md +6 -0
- data/app/assets/components/core-component-page/bowager-logo.png +0 -0
- data/app/assets/components/core-component-page/bower.json +8 -0
- data/app/assets/components/core-component-page/core-component-page.html +37 -0
- data/app/assets/components/core-component-page/demo.html +23 -0
- data/app/assets/components/core-component-page/index.html +22 -0
- data/app/assets/components/core-drawer-panel/README.md +4 -0
- data/app/assets/components/core-drawer-panel/bower.json +8 -0
- data/app/assets/components/core-drawer-panel/core-drawer-panel.css +147 -0
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +339 -0
- data/app/assets/components/core-drawer-panel/demo.html +73 -0
- data/app/assets/components/core-drawer-panel/index.html +22 -0
- data/app/assets/components/core-drawer-panel/metadata.html +37 -0
- data/app/assets/components/core-elements/README.md +4 -0
- data/app/assets/components/core-elements/bower.json +29 -0
- data/app/assets/components/core-elements/demo.html +105 -0
- data/app/assets/components/core-elements/demos/core-toolbar.html +98 -0
- data/app/assets/components/core-elements/metadata.html +23 -0
- data/app/assets/components/core-elements/paper-elements.html +37 -0
- data/app/assets/components/core-field/README.md +4 -0
- data/app/assets/components/core-field/bower.json +7 -0
- data/app/assets/components/core-field/core-field.css +38 -0
- data/app/assets/components/core-field/core-field.html +35 -0
- data/app/assets/components/core-field/demo.html +67 -0
- data/app/assets/components/core-field/index.html +22 -0
- data/app/assets/components/core-field/metadata.html +26 -0
- data/app/assets/components/core-header-panel/README.md +4 -0
- data/app/assets/components/core-header-panel/bower.json +7 -0
- data/app/assets/components/core-header-panel/core-header-panel.css +75 -0
- data/app/assets/components/core-header-panel/core-header-panel.html +225 -0
- data/app/assets/components/core-header-panel/demo.html +100 -0
- data/app/assets/components/core-header-panel/index.html +23 -0
- data/app/assets/components/core-header-panel/metadata.html +37 -0
- data/app/assets/components/core-icon/README.md +4 -0
- data/app/assets/components/core-icon/bower.json +8 -0
- data/app/assets/components/{core/icon → core-icon}/core-icon.css +3 -12
- data/app/assets/components/core-icon/core-icon.html +189 -0
- data/app/assets/components/core-icon/demo.html +44 -0
- data/app/assets/components/core-icon/index.html +22 -0
- data/app/assets/components/core-icon/metadata.html +21 -0
- data/app/assets/components/core-icon-button/README.md +4 -0
- data/app/assets/components/core-icon-button/bower.json +7 -0
- data/app/assets/components/core-icon-button/core-icon-button.css +75 -0
- data/app/assets/components/core-icon-button/core-icon-button.html +81 -0
- data/app/assets/components/core-icon-button/demo.html +35 -0
- data/app/assets/components/core-icon-button/index.html +22 -0
- data/app/assets/components/core-icon-button/metadata.html +20 -0
- data/app/assets/components/core-icons/README.md +4 -0
- data/app/assets/components/core-icons/av-icons.html +46 -0
- data/app/assets/components/core-icons/bower.json +9 -0
- data/app/assets/components/core-icons/communication-icons.html +59 -0
- data/app/assets/components/core-icons/core-icons.html +278 -0
- data/app/assets/components/core-icons/demo.html +96 -0
- data/app/assets/components/core-icons/device-icons.html +59 -0
- data/app/assets/components/core-icons/editor-icons.html +67 -0
- data/app/assets/components/core-icons/hardware-icons.html +58 -0
- data/app/assets/components/core-icons/image-icons.html +146 -0
- data/app/assets/components/core-icons/index.html +22 -0
- data/app/assets/components/core-icons/maps-icons.html +69 -0
- data/app/assets/components/core-icons/notification-icons.html +50 -0
- data/app/assets/components/core-icons/png-icons.html +19 -0
- data/app/assets/components/core-icons/social-icons.html +52 -0
- data/app/assets/components/core-iconset/README.md +4 -0
- data/app/assets/components/core-iconset/bower.json +9 -0
- data/app/assets/components/{core/iconset/core-iconset.html.erb → core-iconset/core-iconset.html} +29 -24
- data/app/assets/components/core-iconset/demo.html +62 -0
- data/app/assets/components/core-iconset/index.html +22 -0
- data/app/assets/components/core-iconset/my-icons-big.png +0 -0
- data/app/assets/components/core-iconset/my-icons.png +0 -0
- data/app/assets/components/core-iconset-svg/README.md +4 -0
- data/app/assets/components/core-iconset-svg/bower.json +8 -0
- data/app/assets/components/core-iconset-svg/core-iconset-svg.html +168 -0
- data/app/assets/components/core-iconset-svg/demo.html +66 -0
- data/app/assets/components/core-iconset-svg/index.html +22 -0
- data/app/assets/components/core-iconset-svg/svg-sample-icons.html +68 -0
- data/app/assets/components/core-input/README.md +2 -0
- data/app/assets/components/core-input/bower.json +6 -0
- data/app/assets/components/core-input/core-input.css +45 -0
- data/app/assets/components/{core/input/core-input.html.erb → core-input/core-input.html} +164 -95
- data/app/assets/components/core-input/demo.html +142 -0
- data/app/assets/components/core-input/index.html +22 -0
- data/app/assets/components/core-input/metadata.html +20 -0
- data/app/assets/components/core-item/README.md +4 -0
- data/app/assets/components/core-item/bower.json +8 -0
- data/app/assets/components/core-item/core-item.css +44 -0
- data/app/assets/components/core-item/core-item.html +74 -0
- data/app/assets/components/core-item/demo.html +92 -0
- data/app/assets/components/core-item/index.html +22 -0
- data/app/assets/components/core-item/metadata.html +24 -0
- data/app/assets/components/core-media-query/README.md +4 -0
- data/app/assets/components/core-media-query/bower.json +7 -0
- data/app/assets/components/{core/media-query → core-media-query}/core-media-query.html +1 -0
- data/app/assets/components/core-media-query/demo.html +44 -0
- data/app/assets/components/core-media-query/index.html +22 -0
- data/app/assets/components/core-menu/README.md +4 -0
- data/app/assets/components/core-menu/bower.json +9 -0
- data/app/assets/components/{core/menu → core-menu}/core-menu.css +0 -0
- data/app/assets/components/{core/menu/core-menu.html.erb → core-menu/core-menu.html} +3 -3
- data/app/assets/components/{core/menu → core-menu}/core-submenu.css +0 -0
- data/app/assets/components/{core/menu/core-submenu.html.erb → core-menu/core-submenu.html} +10 -10
- data/app/assets/components/core-menu/demo.html +101 -0
- data/app/assets/components/core-menu/index.html +22 -0
- data/app/assets/components/core-menu/metadata.html +62 -0
- data/app/assets/components/core-meta/README.md +4 -0
- data/app/assets/components/core-meta/bower.json +7 -0
- data/app/assets/components/{core/meta → core-meta}/core-meta.html +24 -22
- data/app/assets/components/core-meta/demo.html +58 -0
- data/app/assets/components/core-meta/index.html +22 -0
- data/app/assets/components/core-overlay/README.md +4 -0
- data/app/assets/components/core-overlay/bower.json +8 -0
- data/app/assets/components/{core/overlay → core-overlay}/core-key-helper.html +2 -0
- data/app/assets/components/{core/overlay → core-overlay}/core-overlay-layer.html +112 -112
- data/app/assets/components/{core/overlay/core-overlay.html.erb → core-overlay/core-overlay.html} +77 -51
- data/app/assets/components/core-overlay/demo.html +155 -0
- data/app/assets/components/core-overlay/index.html +22 -0
- data/app/assets/components/core-popup-menu/README.md +6 -0
- data/app/assets/components/core-popup-menu/bower.json +13 -0
- data/app/assets/components/core-popup-menu/core-popup-menu.css +28 -0
- data/app/assets/components/core-popup-menu/core-popup-menu.html +198 -0
- data/app/assets/components/core-popup-menu/core-popup-overlay.html +111 -0
- data/app/assets/components/core-popup-menu/demo.html +542 -0
- data/app/assets/components/core-popup-menu/index.html +22 -0
- data/app/assets/components/core-popup-menu/metadata.html +62 -0
- data/app/assets/components/core-range/README.md +2 -0
- data/app/assets/components/core-range/bower.json +7 -0
- data/app/assets/components/{core/range → core-range}/core-range.html +17 -15
- data/app/assets/components/core-range/demo.html +64 -0
- data/app/assets/components/core-range/index.html +22 -0
- data/app/assets/components/core-scroll-header-panel/README.md +4 -0
- data/app/assets/components/core-scroll-header-panel/bower.json +11 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.css +58 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +313 -0
- data/app/assets/components/core-scroll-header-panel/demo.html +111 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo1.html +80 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo2.html +82 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo3.html +81 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo4.html +109 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo5.html +109 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo6.html +113 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo7.html +120 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo8.html +122 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo9.html +100 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg2.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg3.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg5.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg6.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg9.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/lorem-ipsum.html +42 -0
- data/app/assets/components/core-scroll-header-panel/index.html +22 -0
- data/app/assets/components/core-scroll-header-panel/metadata.html +41 -0
- data/app/assets/components/core-selection/README.md +4 -0
- data/app/assets/components/core-selection/bower.json +7 -0
- data/app/assets/components/{core/selection → core-selection}/core-selection.html +6 -5
- data/app/assets/components/core-selection/demo.html +59 -0
- data/app/assets/components/core-selection/index.html +22 -0
- data/app/assets/components/core-selector/README.md +4 -0
- data/app/assets/components/core-selector/bower.json +8 -0
- data/app/assets/components/{core/selector/core-selector.html.erb → core-selector/core-selector.html} +53 -16
- data/app/assets/components/core-selector/demo.html +106 -0
- data/app/assets/components/core-selector/index.html +22 -0
- data/app/assets/components/core-selector/metadata.html +20 -0
- data/app/assets/components/core-style/README.md +4 -0
- data/app/assets/components/core-style/bower.json +7 -0
- data/app/assets/components/{core/style → core-style}/core-style.html +387 -386
- data/app/assets/components/core-style/demo.html +58 -0
- data/app/assets/components/core-style/elements.html +55 -0
- data/app/assets/components/core-style/index.html +22 -0
- data/app/assets/components/core-style/my-theme.html +73 -0
- data/app/assets/components/core-toolbar/README.md +4 -0
- data/app/assets/components/core-toolbar/bower.json +7 -0
- data/app/assets/components/core-toolbar/core-toolbar.css +110 -0
- data/app/assets/components/core-toolbar/core-toolbar.html +74 -0
- data/app/assets/components/core-toolbar/demo.html +107 -0
- data/app/assets/components/core-toolbar/index.html +22 -0
- data/app/assets/components/core-toolbar/metadata.html +28 -0
- data/app/assets/components/core-transition/README.md +2 -0
- data/app/assets/components/core-transition/bower.json +8 -0
- data/app/assets/components/core-transition/core-transition-css.html +221 -0
- data/app/assets/components/{core/transition → core-transition}/core-transition-overlay.css +1 -1
- data/app/assets/components/core-transition/core-transition.html +140 -0
- data/app/assets/components/core-transition/demo.html +87 -0
- data/app/assets/components/core-transition/index.html +22 -0
- data/app/assets/components/font-roboto/roboto.html +9 -0
- data/app/assets/components/paper-button/README.md +4 -0
- data/app/assets/components/paper-button/bower.json +11 -0
- data/app/assets/components/paper-button/demo.html +99 -0
- data/app/assets/components/paper-button/demo2.html +136 -0
- data/app/assets/components/paper-button/index.html +22 -0
- data/app/assets/components/paper-button/metadata.html +17 -0
- data/app/assets/components/paper-button/paper-button.css +11 -1
- data/app/assets/components/paper-button/{paper-button.html.erb → paper-button.html} +9 -8
- data/app/assets/components/paper-checkbox/README.md +4 -0
- data/app/assets/components/paper-checkbox/bower.json +8 -0
- data/app/assets/components/paper-checkbox/demo.html +113 -0
- data/app/assets/components/paper-checkbox/index.html +22 -0
- data/app/assets/components/paper-checkbox/metadata.html +17 -0
- data/app/assets/components/paper-checkbox/paper-checkbox.css +49 -48
- data/app/assets/components/paper-checkbox/{paper-checkbox.html.erb → paper-checkbox.html} +110 -104
- data/app/assets/components/paper-dialog/README.md +4 -0
- data/app/assets/components/paper-dialog/bower.json +10 -0
- data/app/assets/components/paper-dialog/demo.html +85 -0
- data/app/assets/components/paper-dialog/index.html +22 -0
- data/app/assets/components/paper-dialog/{paper-dialog-transition.html.erb → paper-dialog-transition.html} +3 -3
- data/app/assets/components/paper-dialog/paper-dialog.css +52 -0
- data/app/assets/components/paper-dialog/{paper-dialog.html.erb → paper-dialog.html} +7 -7
- data/app/assets/components/paper-dropdown/README.md +9 -0
- data/app/assets/components/paper-dropdown/bower.json +12 -0
- data/app/assets/components/paper-dropdown/demo.html +345 -0
- data/app/assets/components/paper-dropdown/index.html +22 -0
- data/app/assets/components/paper-dropdown/paper-dropdown.css +48 -0
- data/app/assets/components/paper-dropdown/paper-dropdown.html +191 -0
- data/app/assets/components/paper-fab/README.md +4 -0
- data/app/assets/components/paper-fab/bower.json +8 -0
- data/app/assets/components/paper-fab/demo.html +72 -0
- data/app/assets/components/paper-fab/demo2.html +103 -0
- data/app/assets/components/paper-fab/index.html +22 -0
- data/app/assets/components/paper-fab/metadata.html +36 -0
- data/app/assets/components/paper-fab/paper-fab.css +11 -2
- data/app/assets/components/paper-fab/{paper-fab.html.erb → paper-fab.html} +3 -2
- data/app/assets/components/paper-focusable/README.md +4 -0
- data/app/assets/components/paper-focusable/bower.json +7 -0
- data/app/assets/components/paper-focusable/demo.html +155 -0
- data/app/assets/components/paper-focusable/paper-focusable.html +2 -0
- data/app/assets/components/paper-icon-button/README.md +4 -0
- data/app/assets/components/paper-icon-button/bower.json +9 -0
- data/app/assets/components/paper-icon-button/demo.html +102 -0
- data/app/assets/components/paper-icon-button/index.html +22 -0
- data/app/assets/components/paper-icon-button/metadata.html +21 -0
- data/app/assets/components/paper-icon-button/paper-icon-button.css +1 -1
- data/app/assets/components/paper-icon-button/{paper-icon-button.html.erb → paper-icon-button.html} +7 -7
- data/app/assets/components/paper-icon-button/pulse-ink.css +20 -0
- data/app/assets/components/paper-input/README.md +4 -0
- data/app/assets/components/paper-input/bower.json +11 -0
- data/app/assets/components/paper-input/demo.html +124 -0
- data/app/assets/components/paper-input/index.html +22 -0
- data/app/assets/components/paper-input/metadata.html +23 -0
- data/app/assets/components/paper-input/paper-input.css +152 -0
- data/app/assets/components/paper-input/paper-input.html +314 -0
- data/app/assets/components/paper-item/README.md +4 -0
- data/app/assets/components/paper-item/bower.json +9 -0
- data/app/assets/components/paper-item/demo.html +39 -0
- data/app/assets/components/paper-item/index.html +22 -0
- data/app/assets/components/paper-item/metadata.html +23 -0
- data/app/assets/components/paper-item/paper-item.css +15 -2
- data/app/assets/components/paper-item/{paper-item.html.erb → paper-item.html} +7 -6
- data/app/assets/components/paper-menu-button/README.md +4 -0
- data/app/assets/components/paper-menu-button/bower.json +16 -0
- data/app/assets/components/paper-menu-button/demo.html +95 -0
- data/app/assets/components/paper-menu-button/index.html +22 -0
- data/app/assets/components/paper-menu-button/metadata.html +21 -0
- data/app/assets/components/paper-menu-button/{paper-menu-button-transition.html.erb → paper-menu-button-transition.html} +31 -26
- data/app/assets/components/paper-menu-button/paper-menu-button.css +5 -9
- data/app/assets/components/paper-menu-button/{paper-menu-button.html.erb → paper-menu-button.html} +52 -20
- data/app/assets/components/paper-progress/README.md +4 -0
- data/app/assets/components/paper-progress/bower.json +8 -0
- data/app/assets/components/paper-progress/demo.html +107 -0
- data/app/assets/components/paper-progress/index.html +22 -0
- data/app/assets/components/paper-progress/metadata.html +17 -0
- data/app/assets/components/paper-progress/paper-progress.css +1 -1
- data/app/assets/components/paper-progress/{paper-progress.html.erb → paper-progress.html} +23 -23
- data/app/assets/components/paper-radio-button/README.md +4 -0
- data/app/assets/components/paper-radio-button/bower.json +7 -0
- data/app/assets/components/paper-radio-button/demo.html +75 -0
- data/app/assets/components/paper-radio-button/index.html +22 -0
- data/app/assets/components/paper-radio-button/metadata.html +17 -0
- data/app/assets/components/paper-radio-button/paper-radio-button.css +14 -8
- data/app/assets/components/paper-radio-button/{paper-radio-button.html.erb → paper-radio-button.html} +38 -29
- data/app/assets/components/paper-radio-group/README.md +4 -0
- data/app/assets/components/paper-radio-group/bower.json +9 -0
- data/app/assets/components/paper-radio-group/demo.html +82 -0
- data/app/assets/components/paper-radio-group/index.html +22 -0
- data/app/assets/components/paper-radio-group/metadata.html +22 -0
- data/app/assets/components/paper-radio-group/{paper-radio-group.html.erb → paper-radio-group.html} +16 -16
- data/app/assets/components/paper-ripple/README.md +4 -0
- data/app/assets/components/paper-ripple/bower.json +9 -0
- data/app/assets/components/paper-ripple/demo.html +418 -0
- data/app/assets/components/paper-ripple/index.html +22 -0
- data/app/assets/components/paper-ripple/metadata.html +20 -0
- data/app/assets/components/paper-ripple/paper-ripple.html +3 -2
- data/app/assets/components/paper-ripple/raw.html +799 -0
- data/app/assets/components/paper-shadow/README.md +4 -0
- data/app/assets/components/paper-shadow/bower.json +7 -0
- data/app/assets/components/paper-shadow/demo.html +252 -0
- data/app/assets/components/paper-shadow/index.html +22 -0
- data/app/assets/components/paper-shadow/metadata.html +17 -0
- data/app/assets/components/paper-shadow/paper-shadow.css +11 -1
- data/app/assets/components/paper-shadow/{paper-shadow.html.erb → paper-shadow.html} +11 -4
- data/app/assets/components/paper-slider/README.md +4 -0
- data/app/assets/components/paper-slider/bower.json +9 -0
- data/app/assets/components/paper-slider/demo.html +151 -0
- data/app/assets/components/paper-slider/index.html +22 -0
- data/app/assets/components/paper-slider/metadata.html +20 -0
- data/app/assets/components/paper-slider/paper-slider.css +58 -26
- data/app/assets/components/paper-slider/{paper-slider.html.erb → paper-slider.html} +72 -75
- data/app/assets/components/paper-tabs/README.md +4 -0
- data/app/assets/components/paper-tabs/bower.json +12 -0
- data/app/assets/components/paper-tabs/demo.html +166 -0
- data/app/assets/components/paper-tabs/index.html +22 -0
- data/app/assets/components/paper-tabs/metadata.html +58 -0
- data/app/assets/components/paper-tabs/{paper-tab.html.erb → paper-tab.html} +10 -10
- data/app/assets/components/paper-tabs/paper-tabs.css +1 -1
- data/app/assets/components/paper-tabs/{paper-tabs.html.erb → paper-tabs.html} +29 -25
- data/app/assets/components/paper-toast/README.md +4 -0
- data/app/assets/components/paper-toast/bower.json +10 -0
- data/app/assets/components/paper-toast/demo.html +67 -0
- data/app/assets/components/paper-toast/index.html +22 -0
- data/app/assets/components/paper-toast/metadata.html +20 -0
- data/app/assets/components/paper-toast/paper-toast.css +80 -0
- data/app/assets/components/paper-toast/{paper-toast.html.erb → paper-toast.html} +39 -39
- data/app/assets/components/paper-toggle-button/README.md +4 -0
- data/app/assets/components/paper-toggle-button/bower.json +8 -0
- data/app/assets/components/paper-toggle-button/demo.html +77 -0
- data/app/assets/components/paper-toggle-button/index.html +22 -0
- data/app/assets/components/paper-toggle-button/metadata.html +17 -0
- data/app/assets/components/paper-toggle-button/paper-toggle-button.css +1 -1
- data/app/assets/components/paper-toggle-button/{paper-toggle-button.html.erb → paper-toggle-button.html} +39 -20
- data/app/assets/components/platform/README.md +6 -0
- data/app/assets/components/platform/bower.json +16 -0
- data/app/assets/components/platform/build.log +35 -0
- data/app/assets/components/platform/platform.js +16 -0
- data/app/assets/components/platform/platform.js.map +1 -0
- data/app/assets/components/polymer/README.md +17 -0
- data/app/assets/components/polymer/bower.json +8 -0
- data/app/assets/components/polymer/build.log +35 -0
- data/app/assets/components/polymer/layout.html +286 -0
- data/app/assets/components/polymer/polymer.html +13 -0
- data/app/assets/components/polymer/polymer.js +14 -0
- data/app/assets/components/polymer/polymer.js.map +1 -0
- data/app/assets/components/sampler-scaffold/README.md +4 -0
- data/app/assets/components/sampler-scaffold/bower.json +12 -0
- data/app/assets/components/sampler-scaffold/demo.html +54 -0
- data/app/assets/components/sampler-scaffold/demos/checkbox.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/color.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/radio.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/range.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/string.html +20 -0
- data/app/assets/components/sampler-scaffold/index.html +22 -0
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +157 -0
- data/app/assets/components/sampler-scaffold/sampler-scaffold.html +224 -0
- data/app/assets/components/web-animations-js/COPYING +202 -0
- data/app/assets/components/web-animations-js/README.md +237 -0
- data/app/assets/components/web-animations-js/run-lint.sh +19 -0
- data/app/assets/components/web-animations-js/run-tests-android.sh +25 -0
- data/app/assets/components/web-animations-js/run-tests.sh +15 -0
- data/app/assets/components/web-animations-js/test/bootstrap.js +1266 -0
- data/app/assets/components/web-animations-js/test/img/error.png +0 -0
- data/app/assets/components/web-animations-js/test/img/success.png +0 -0
- data/app/assets/components/web-animations-js/test/img/unknown.png +0 -0
- data/app/assets/components/web-animations-js/test/perf/balls-add-compositing.html +147 -0
- data/app/assets/components/web-animations-js/test/perf/balls-replace-compositing.html +144 -0
- data/app/assets/components/web-animations-js/test/perf/perf.js +158 -0
- data/app/assets/components/web-animations-js/test/perf/updating-inline-style-during-animation.html +165 -0
- data/app/assets/components/web-animations-js/test/test-generator.html +240 -0
- data/app/assets/components/web-animations-js/test/test-results-post.html +3 -0
- data/app/assets/components/web-animations-js/test/test-runner.html +810 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow-checks.js +42 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow.html +40 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc-checks.js +41 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc.html +156 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-change-playback-rate-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path-checks.js +65 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path.html +83 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-checks.js +101 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names-checks.js +431 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names.html +204 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color.html +117 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js +45 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms.html +97 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor-checks.js +26 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor.html +68 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay-checks.js +92 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay.html +39 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate-checks.js +8 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate.html +30 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values-checks.js +266 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values.html +114 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight-checks.js +26 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight.html +43 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial-checks.js +74 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial.html +242 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-checks.js +17 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback-checks.js +17 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback.html +78 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods-checks.js +17 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods.html +70 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style.html +69 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer-checks.js +38 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer.html +52 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start-checks.js +506 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start.html +160 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-checks.js +44 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes-checks.js +41 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes.html +48 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate.html +50 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic-checks.js +162 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic.html +116 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill-checks.js +602 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill.html +167 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation-checks.js +67 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation.html +109 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing-checks.js +65 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing.html +64 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units-checks.js +342 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units.html +103 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms-checks.js +56 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms.html +90 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path-checks.js +110 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path.html +133 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric-checks.js +26 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric.html +42 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent-checks.js +38 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent.html +52 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes-checks.js +27 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes.html +43 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path-checks.js +20 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path.html +41 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause-checks.js +79 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause.html +82 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-checks.js +37 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin-checks.js +61 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin.html +94 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective.html +79 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate-checks.js +146 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate.html +128 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-position-list-type-checks.js +73 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle.html +57 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent-checks.js +95 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent.html +60 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed-checks.js +69 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed.html +86 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand-checks.js +197 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand.html +115 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-checks.js +58 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations-checks.js +92 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations.html +107 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time.html +90 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim.html +39 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle.html +38 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color-checks.js +20 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color.html +36 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow-checks.js +20 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow.html +37 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions-checks.js +89 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions.html +77 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation-checks.js +58 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation.html +83 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d-checks.js +134 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d.html +123 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions-checks.js +160 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions.html +158 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin-checks.js +37 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin.html +80 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives-checks.js +292 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives.html +97 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units-checks.js +202 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units.html +98 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility-checks.js +54 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility.html +80 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug-checks.js +58 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug.html +60 -0
- data/app/assets/components/web-animations-js/test/testcases/background.png +0 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-change-playback-rate.html +65 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-position-list-type.html +103 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-media.html +439 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-test-compositing-order.html +112 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-deprecation.html +85 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-from-css-value.html +219 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-paced-timing-function.html +83 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-totimelinetime.html +37 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-unit-test-position-type.html +256 -0
- data/app/assets/components/web-animations-js/test/testcases/manual-test-add-player-onend.html +57 -0
- data/app/assets/components/web-animations-js/test/testcases/manual-test-preset-timings.html +71 -0
- data/app/assets/components/web-animations-js/test/testcases/manual-test-step.html +88 -0
- data/app/assets/components/web-animations-js/test/testcases/small.mp4 +0 -0
- data/app/assets/components/web-animations-js/test/testcases/small.webm +0 -0
- data/app/assets/components/web-animations-js/test/testcases/test-bounds.html +69 -0
- data/app/assets/components/web-animations-js/test/testcases/test-document-timeline.html +53 -0
- data/app/assets/components/web-animations-js/test/testcases/test-dynamic-load.html +65 -0
- data/app/assets/components/web-animations-js/test/testcases/test-fill-auto.html +78 -0
- data/app/assets/components/web-animations-js/test/testcases/test-getcurrent.html +324 -0
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-animation-effect.html +248 -0
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-composite-operation.html +182 -0
- data/app/assets/components/web-animations-js/test/testcases/test-null-target.html +66 -0
- data/app/assets/components/web-animations-js/test/testcases/test-pause-for-testing.html +52 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-addeventlistener.html +161 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-cleanup.html +79 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-finish-event.html +101 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-sort.html +48 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player.html +786 -0
- data/app/assets/components/web-animations-js/test/testcases/test-pseudo-element-reference.html +38 -0
- data/app/assets/components/web-animations-js/test/testcases/test-repeated-pause.html +54 -0
- data/app/assets/components/web-animations-js/test/testcases/test-restart.html +115 -0
- data/app/assets/components/web-animations-js/test/testcases/test-reversed-player-active-phase.html +28 -0
- data/app/assets/components/web-animations-js/test/testcases/test-rotation-not-reversed.html +55 -0
- data/app/assets/components/web-animations-js/test/testcases/test-update-state.html +113 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-clone.html +80 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-delay.html +66 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-dom-operations.html +164 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-duration.html +66 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-get-siblings.html +112 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-modify-timing-params.html +105 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-null-effect.html +43 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-set-parent.html +111 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness-failure.html +54 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness.html +248 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-unpause.html +68 -0
- data/app/assets/components/web-animations-js/test/testcases.js +93 -0
- data/app/assets/components/web-animations-js/test/testharness_timing.css +75 -0
- data/app/assets/components/web-animations-js/test/update-testcases.py +63 -0
- data/app/assets/components/web-animations-js/tools/android/config.sh +8 -0
- data/app/assets/components/web-animations-js/tools/android/setup.sh +152 -0
- data/app/assets/components/web-animations-js/tools/android/stop.sh +20 -0
- data/app/assets/components/web-animations-js/tools/python/requirements.txt +12 -0
- data/app/assets/components/web-animations-js/tools/python/run-tests.py +813 -0
- data/app/assets/components/web-animations-js/tools/python/setup.sh +60 -0
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation-exercise-1.html +62 -0
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation.html +120 -0
- data/app/assets/components/web-animations-js/tutorial/iframe-contents.html +29 -0
- data/app/assets/components/web-animations-js/tutorial/jquery.js +9555 -0
- data/app/assets/components/web-animations-js/tutorial/page-load.js +114 -0
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel-exercise-1.html +58 -0
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel.html +101 -0
- data/app/assets/components/web-animations-js/tutorial/sample-tutorial.html +44 -0
- data/app/assets/components/web-animations-js/tutorial/try-it-yourself.js +216 -0
- data/app/assets/components/web-animations-js/tutorial/tutorial-style.css +344 -0
- data/app/assets/components/web-animations-js/tutorial/tutorial-testing.js +84 -0
- data/app/assets/components/{core/animation → web-animations-js}/web-animations.js +77 -214
- data/lib/polymer-paper-rails/version.rb +1 -1
- metadata +540 -61
- data/app/assets/components/core/animation/web-animations.html.erb +0 -1
- data/app/assets/components/core/icon/core-icon.html.erb +0 -126
- data/app/assets/components/core/input/core-input.css +0 -35
- data/app/assets/components/core/list/core-list.css +0 -20
- data/app/assets/components/core/list/core-list.html.erb +0 -403
- data/app/assets/components/core/transition/core-transition-css.html.erb +0 -76
- data/app/assets/components/core/transition/core-transition.html.erb +0 -44
- data/app/assets/components/paper-input/error-100.png +0 -0
- data/app/assets/components/paper-input/error-200.png +0 -0
- data/app/assets/components/paper-input/paper-input.html.erb +0 -398
- data/app/assets/components/paper-input/paper-input.scss +0 -203
- data/app/assets/components/paper-menu-button/paper-menu-button-overlay.html.erb +0 -86
data/app/assets/components/paper-icon-button/{paper-icon-button.html.erb → paper-icon-button.html}
RENAMED
@@ -15,7 +15,7 @@ Example:
|
|
15
15
|
|
16
16
|
<paper-icon-button iconSrc="star.png"></paper-icon-button>
|
17
17
|
|
18
|
-
`paper-icon-button` includes a default icon set. Use `icon` to specify
|
18
|
+
`paper-icon-button` includes a default icon set. Use `icon` to specify
|
19
19
|
which icon from the icon set to use.
|
20
20
|
|
21
21
|
Example:
|
@@ -35,21 +35,21 @@ See `core-iconset` for more information about how to use a custom icon set.
|
|
35
35
|
@homepage github.io
|
36
36
|
-->
|
37
37
|
|
38
|
-
|
39
|
-
|
38
|
+
<link href="../core-icon/core-icon.html" rel="import">
|
39
|
+
<link href="../paper-button/paper-button.html" rel="import">
|
40
40
|
|
41
41
|
<polymer-element name="paper-icon-button" extends="paper-button" attributes="fill">
|
42
42
|
|
43
43
|
<template>
|
44
44
|
|
45
|
-
|
45
|
+
<link href="paper-icon-button.css" rel="stylesheet">
|
46
46
|
|
47
47
|
<shadow></shadow>
|
48
48
|
|
49
49
|
</template>
|
50
50
|
|
51
51
|
<script>
|
52
|
-
|
52
|
+
|
53
53
|
Polymer('paper-icon-button', {
|
54
54
|
|
55
55
|
publish: {
|
@@ -81,7 +81,7 @@ See `core-iconset` for more information about how to use a custom icon set.
|
|
81
81
|
}
|
82
82
|
|
83
83
|
});
|
84
|
-
|
84
|
+
|
85
85
|
</script>
|
86
|
-
|
86
|
+
|
87
87
|
</polymer-element>
|
@@ -0,0 +1,20 @@
|
|
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
|
+
@-webkit-keyframes pulse-ink {
|
12
|
+
0% {
|
13
|
+
-webkit-transform: scale(0);
|
14
|
+
opacity: 0;
|
15
|
+
}
|
16
|
+
100% {
|
17
|
+
-webkit-transform: scale(1);
|
18
|
+
opacity: 0.9;
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"name": "paper-input",
|
3
|
+
"private": true,
|
4
|
+
"dependencies": {
|
5
|
+
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0",
|
6
|
+
"core-icon": "Polymer/core-icon#>=0.4.0 <1.0.0",
|
7
|
+
"core-icons": "Polymer/core-icons#>=0.4.0 <1.0.0",
|
8
|
+
"core-input": "Polymer/core-input#>=0.4.0 <1.0.0",
|
9
|
+
"core-style": "Polymer/core-style#>=0.4.0 <1.0.0"
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,124 @@
|
|
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
|
+
<!doctype html>
|
11
|
+
<html>
|
12
|
+
<head>
|
13
|
+
|
14
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
|
15
|
+
|
16
|
+
<title>paper-input</title>
|
17
|
+
|
18
|
+
<script src="../platform/platform.js"></script>
|
19
|
+
|
20
|
+
<link href="../font-roboto/roboto.html" rel="import">
|
21
|
+
<link href="paper-input.html" rel="import">
|
22
|
+
|
23
|
+
<style shim-shadowdom>
|
24
|
+
|
25
|
+
body {
|
26
|
+
font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
|
27
|
+
margin: 0;
|
28
|
+
padding: 24px;
|
29
|
+
-webkit-user-select: none;
|
30
|
+
-moz-user-select: none;
|
31
|
+
-ms-user-select: none;
|
32
|
+
user-select: none;
|
33
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
34
|
+
-webkit-touch-callout: none;
|
35
|
+
}
|
36
|
+
|
37
|
+
paper-input.narrow {
|
38
|
+
width: 150px;
|
39
|
+
}
|
40
|
+
|
41
|
+
</style>
|
42
|
+
|
43
|
+
</head>
|
44
|
+
<body unresolved>
|
45
|
+
<section>
|
46
|
+
|
47
|
+
<paper-input label="Type something"></paper-input>
|
48
|
+
|
49
|
+
<br>
|
50
|
+
|
51
|
+
<paper-input label="Type something" value="Prefilled value"></paper-input>
|
52
|
+
|
53
|
+
<br>
|
54
|
+
|
55
|
+
<paper-input class="narrow" label="Long labels get truncated"></paper-input>
|
56
|
+
|
57
|
+
<br>
|
58
|
+
|
59
|
+
<paper-input label="Type only numbers" type="number" error="Input is not a number!"></paper-input>
|
60
|
+
|
61
|
+
<br>
|
62
|
+
|
63
|
+
<paper-input label="Type something" required error="This input requires a value!"></paper-input>
|
64
|
+
|
65
|
+
<br>
|
66
|
+
|
67
|
+
<paper-input disabled label="I'm disabled"></paper-input>
|
68
|
+
|
69
|
+
<br>
|
70
|
+
|
71
|
+
<paper-input floatingLabel label="Floating label"></paper-input>
|
72
|
+
|
73
|
+
<br>
|
74
|
+
|
75
|
+
<paper-input floatingLabel label="Type an email here (floating label)" type="email" error="Input is not an email!"></paper-input>
|
76
|
+
|
77
|
+
<br>
|
78
|
+
|
79
|
+
<paper-input multiline label="Type multiple lines here"></paper-input>
|
80
|
+
|
81
|
+
<br>
|
82
|
+
|
83
|
+
<paper-input floatingLabel multiline label="Type multiple lines here" value="Prefilled multiline input value"></paper-input>
|
84
|
+
|
85
|
+
<br>
|
86
|
+
|
87
|
+
<paper-input multiline rows="3" label="This input is 3 rows high"></paper-input>
|
88
|
+
|
89
|
+
<br>
|
90
|
+
|
91
|
+
<paper-input multiline maxRows="3" label="This input is at most 3 rows high"></paper-input>
|
92
|
+
|
93
|
+
<br>
|
94
|
+
|
95
|
+
<paper-input multiline label="Sized with CSS, height: 150px;" style="height: 150px;"></paper-input>
|
96
|
+
|
97
|
+
<br>
|
98
|
+
|
99
|
+
<paper-input multiline floatingLabel label="Multiple lines and a floating label"></paper-input>
|
100
|
+
|
101
|
+
<br>
|
102
|
+
|
103
|
+
<paper-input label="Becomes visible after polymer-ready" hidden></paper-input>
|
104
|
+
|
105
|
+
<paper-input multiline floatingLabel rows="2" label="Becomes visible after polymer-ready, min 2 rows" value="Some prefilled value" hidden></paper-input>
|
106
|
+
|
107
|
+
<br>
|
108
|
+
|
109
|
+
</section>
|
110
|
+
|
111
|
+
<script>
|
112
|
+
|
113
|
+
document.addEventListener('polymer-ready', function() {
|
114
|
+
|
115
|
+
setTimeout(function() {
|
116
|
+
Array.prototype.forEach.call(document.querySelectorAll('paper-input[hidden]'), function(node) {
|
117
|
+
node.removeAttribute('hidden');
|
118
|
+
});
|
119
|
+
}, 500);
|
120
|
+
|
121
|
+
});
|
122
|
+
|
123
|
+
</script>
|
124
|
+
</body>
|
@@ -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 sources='["paper-input.html","../core-input/core-input.html"]'></core-component-page>
|
20
|
+
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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
|
+
<x-meta id="paper-input" label="Input" group="Paper" isEditor>
|
11
|
+
|
12
|
+
<template>
|
13
|
+
<paper-input label="Type something..."></paper-input>
|
14
|
+
</template>
|
15
|
+
|
16
|
+
<template id="imports">
|
17
|
+
<link rel="import" href="paper-input.html">
|
18
|
+
</template>
|
19
|
+
|
20
|
+
<property name="validate" kind="string"></property>
|
21
|
+
<property name="error" kind="string"></property>
|
22
|
+
|
23
|
+
</x-meta>
|
@@ -0,0 +1,152 @@
|
|
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
|
+
outline: none;
|
14
|
+
text-align: inherit;
|
15
|
+
color: #757575;
|
16
|
+
padding: 0.75em 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
:host /deep/ input,
|
20
|
+
:host /deep/ textarea {
|
21
|
+
font: inherit;
|
22
|
+
color: #000;
|
23
|
+
/* fit to the container for auto-resizing */
|
24
|
+
position: absolute;
|
25
|
+
top: 0;
|
26
|
+
left: 0;
|
27
|
+
bottom: 0;
|
28
|
+
right: 0;
|
29
|
+
padding: 0;
|
30
|
+
/* Important to use margin here so the margin remains visible
|
31
|
+
* when textarea scrolls internally. */
|
32
|
+
margin: 0.5em 0 0.25em;
|
33
|
+
background-color: transparent;
|
34
|
+
border: none;
|
35
|
+
outline: none;
|
36
|
+
width: 100%;
|
37
|
+
}
|
38
|
+
|
39
|
+
:host /deep/ input::hover,
|
40
|
+
:host /deep/ textarea::hover {
|
41
|
+
cursor: text;
|
42
|
+
}
|
43
|
+
|
44
|
+
input:invalid,
|
45
|
+
textarea:invalid {
|
46
|
+
box-shadow: none;
|
47
|
+
}
|
48
|
+
|
49
|
+
textarea {
|
50
|
+
resize: none;
|
51
|
+
overflow: hidden;
|
52
|
+
}
|
53
|
+
|
54
|
+
[invisible] {
|
55
|
+
visibility: hidden;
|
56
|
+
}
|
57
|
+
|
58
|
+
[animated] {
|
59
|
+
visibility: visible !important;
|
60
|
+
-webkit-transition: -webkit-transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
61
|
+
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
62
|
+
}
|
63
|
+
|
64
|
+
.floated-label {
|
65
|
+
font-size: 0.75em;
|
66
|
+
background: transparent;
|
67
|
+
white-space: nowrap;
|
68
|
+
}
|
69
|
+
|
70
|
+
.mirror-text {
|
71
|
+
padding: 0.5em 0 0.25em;
|
72
|
+
max-width: 100%;
|
73
|
+
white-space: nowrap;
|
74
|
+
}
|
75
|
+
|
76
|
+
:host([multiline]) .mirror-text {
|
77
|
+
white-space: pre-wrap;
|
78
|
+
word-wrap: break-word;
|
79
|
+
}
|
80
|
+
|
81
|
+
.label {
|
82
|
+
padding: 0.5em 0 0.25em;
|
83
|
+
background: transparent;
|
84
|
+
pointer-events: none;
|
85
|
+
}
|
86
|
+
|
87
|
+
.label-text {
|
88
|
+
overflow: hidden;
|
89
|
+
text-overflow: ellipsis;
|
90
|
+
white-space: nowrap;
|
91
|
+
display: inline-block;
|
92
|
+
max-width: 100%;
|
93
|
+
-moz-transform-origin: 0% 0%;
|
94
|
+
-webkit-transform-origin: 0% 0%;
|
95
|
+
transform-origin: 0% 0%;
|
96
|
+
}
|
97
|
+
|
98
|
+
.cursor {
|
99
|
+
position: absolute;
|
100
|
+
top: 0.4em;
|
101
|
+
left: 0;
|
102
|
+
width: 1px;
|
103
|
+
height: 1.4em;
|
104
|
+
opacity: 0.4;
|
105
|
+
-moz-transform-origin: 0%;
|
106
|
+
-webkit-transform-origin: 0%;
|
107
|
+
transform-origin: 0%;
|
108
|
+
-webkit-transform: none;
|
109
|
+
transform: none;
|
110
|
+
}
|
111
|
+
|
112
|
+
.cursor[invisible] {
|
113
|
+
opacity: 0.75;
|
114
|
+
-webkit-transform: translate3d(3em,0,0) scale3d(50,1,1);
|
115
|
+
transform: translate3d(3em,0,0) scale3d(50,1,1);
|
116
|
+
}
|
117
|
+
|
118
|
+
.underline {
|
119
|
+
height: 0px;
|
120
|
+
overflow: visible;
|
121
|
+
}
|
122
|
+
|
123
|
+
:host([disabled]) .underline {
|
124
|
+
border-bottom: 1px dashed;
|
125
|
+
}
|
126
|
+
|
127
|
+
.unfocused-underline {
|
128
|
+
height: 1px;
|
129
|
+
background: #757575;
|
130
|
+
border-bottom-color: #757575;
|
131
|
+
}
|
132
|
+
|
133
|
+
.focused-underline {
|
134
|
+
height: 2px;
|
135
|
+
-webkit-transform: none;
|
136
|
+
transform: none;
|
137
|
+
}
|
138
|
+
|
139
|
+
.focused-underline[invisible] {
|
140
|
+
-webkit-transform: scale3d(0,1,1);
|
141
|
+
transform: scale3d(0,1,1);
|
142
|
+
}
|
143
|
+
|
144
|
+
.error-text {
|
145
|
+
font-size: 0.75em;
|
146
|
+
padding: 0.5em 0;
|
147
|
+
}
|
148
|
+
|
149
|
+
.error-icon {
|
150
|
+
height: 20px;
|
151
|
+
width: 20px;
|
152
|
+
}
|
@@ -0,0 +1,314 @@
|
|
1
|
+
<!--
|
2
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
3
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE
|
4
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS
|
5
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS
|
6
|
+
Code distributed by Google as part of the polymer project is also
|
7
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS
|
8
|
+
-->
|
9
|
+
|
10
|
+
<!--
|
11
|
+
`paper-input` is a single- or multi-line text field where user can enter input.
|
12
|
+
It can optionally have a label.
|
13
|
+
|
14
|
+
Example:
|
15
|
+
|
16
|
+
<paper-input label="Your Name"></paper-input>
|
17
|
+
<paper-input multiline label="Enter multiple lines here"></paper-input>
|
18
|
+
|
19
|
+
Theming
|
20
|
+
--------
|
21
|
+
|
22
|
+
Set `CoreStyle.g.paperInput.focusedColor` and `CoreStyle.g.paperInput.invalidColor` to theme
|
23
|
+
the focused and invalid states.
|
24
|
+
|
25
|
+
@group Paper Elements
|
26
|
+
@element paper-input
|
27
|
+
@extends core-input
|
28
|
+
@homepage github.io
|
29
|
+
-->
|
30
|
+
<link href="../polymer/polymer.html" rel="import">
|
31
|
+
<link href="../core-icon/core-icon.html" rel="import">
|
32
|
+
<link href="../core-icons/core-icons.html" rel="import">
|
33
|
+
<link href="../core-input/core-input.html" rel="import">
|
34
|
+
<link href="../core-style/core-style.html" rel="import">
|
35
|
+
|
36
|
+
<core-style id="paper-input">
|
37
|
+
|
38
|
+
:host([focused]) .floated-label {
|
39
|
+
color: {{g.paperInput.focusedColor}};
|
40
|
+
}
|
41
|
+
|
42
|
+
.focused-underline,
|
43
|
+
.cursor {
|
44
|
+
background-color: {{g.paperInput.focusedColor}};
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
:host(.invalid[focused]) .floated-label,
|
49
|
+
:host([focused]) .error-text,
|
50
|
+
:host([focused]) .error-icon {
|
51
|
+
color: {{g.paperInput.invalidColor}};
|
52
|
+
}
|
53
|
+
|
54
|
+
:host(.invalid) .focused-underline,
|
55
|
+
:host(.invalid) .cursor {
|
56
|
+
background-color: {{g.paperInput.invalidColor}};
|
57
|
+
}
|
58
|
+
|
59
|
+
</core-style>
|
60
|
+
|
61
|
+
<polymer-element name="paper-input" extends="core-input" layout vertical attributes="label floatingLabel maxRows error" on-transitionEnd="{{transitionEndAction}}" on-webkitTransitionEnd="{{transitionEndAction}}">
|
62
|
+
|
63
|
+
<template>
|
64
|
+
|
65
|
+
<link href="paper-input.css" rel="stylesheet">
|
66
|
+
<core-style ref="paper-input"></core-style>
|
67
|
+
|
68
|
+
<div class="floated-label" aria-hidden="true" hidden?="{{!floatingLabel}}" invisible?="{{!inputValue && !(type === 'number' && !validity.valid) || labelAnimated}}">
|
69
|
+
<!-- needed for floating label animation measurement -->
|
70
|
+
<span id="floatedLabelText" class="label-text">{{label}}</span>
|
71
|
+
</div>
|
72
|
+
|
73
|
+
<div flex auto relative on-down="{{downAction}}" on-up="{{upAction}}">
|
74
|
+
|
75
|
+
<div id="mirror" class="mirror-text" invisible aria-hidden="true"></div>
|
76
|
+
|
77
|
+
<div class="label" fit aria-hidden="true">
|
78
|
+
<!-- needed for floating label animation measurement -->
|
79
|
+
<span id="labelText" class="label-text" invisible?="{{inputValue || !inputValue && type === 'number' && !validity.valid}}" animated?=
|
80
|
+
"{{labelAnimated}}">{{label}}</span>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div class="cursor" invisible?="{{!cursorAnimated}}" animated?="{{cursorAnimated}}"></div>
|
84
|
+
|
85
|
+
<shadow></shadow>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<div id="underline" class="underline" relative>
|
90
|
+
<div class="unfocused-underline" fit invisible?="{{disabled}}"></div>
|
91
|
+
<div id="focusedUnderline" class="focused-underline" fit invisible?="{{!focused}}" animated?="{{underlineAnimated}}"></div>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
<div layout horizontal center hidden?="{{!invalid}}">
|
95
|
+
<div class="error-text" flex auto role="alert" aria-hidden="{{!invalid}}">{{error || validationMessage}}</div>
|
96
|
+
<core-icon class="error-icon" icon="warning"></core-icon>
|
97
|
+
</div>
|
98
|
+
|
99
|
+
</template>
|
100
|
+
|
101
|
+
<script>
|
102
|
+
|
103
|
+
(function() {
|
104
|
+
|
105
|
+
var paperInput = CoreStyle.g.paperInput = CoreStyle.g.paperInput || {};
|
106
|
+
paperInput.focusedColor = '#4059a9';
|
107
|
+
paperInput.invalidColor = '#d34336';
|
108
|
+
|
109
|
+
Polymer('paper-input', {
|
110
|
+
|
111
|
+
publish: {
|
112
|
+
/**
|
113
|
+
* The label for this input. It normally appears as grey text inside
|
114
|
+
* the text input and disappears once the user enters text.
|
115
|
+
*
|
116
|
+
* @attribute label
|
117
|
+
* @type string
|
118
|
+
* @default ''
|
119
|
+
*/
|
120
|
+
label: '',
|
121
|
+
|
122
|
+
/**
|
123
|
+
* If true, the label will "float" above the text input once the
|
124
|
+
* user enters text instead of disappearing.
|
125
|
+
*
|
126
|
+
* @attribute floatingLabel
|
127
|
+
* @type boolean
|
128
|
+
* @default false
|
129
|
+
*/
|
130
|
+
floatingLabel: false,
|
131
|
+
|
132
|
+
/**
|
133
|
+
* (multiline only) If set to a non-zero value, the height of this
|
134
|
+
* text input will grow with the value changes until it is maxRows
|
135
|
+
* rows tall. If the maximum size does not fit the value, the text
|
136
|
+
* input will scroll internally.
|
137
|
+
*
|
138
|
+
* @attribute maxRows
|
139
|
+
* @type number
|
140
|
+
* @default 0
|
141
|
+
*/
|
142
|
+
maxRows: 0,
|
143
|
+
|
144
|
+
/**
|
145
|
+
* The message to display if the input value fails validation. If this
|
146
|
+
* is unset or the empty string, a default message is displayed depending
|
147
|
+
* on the type of validation error.
|
148
|
+
*
|
149
|
+
* @attribute error
|
150
|
+
* @type string
|
151
|
+
*/
|
152
|
+
error: '',
|
153
|
+
|
154
|
+
focused: {value: false, reflect: true}
|
155
|
+
|
156
|
+
},
|
157
|
+
|
158
|
+
get inputValueForMirror() {
|
159
|
+
var tokens = this.inputValue ? String(this.inputValue).replace(/&/gm, '&').replace(/"/gm, '"').replace(/'/gm, ''').replace(/</gm, '<').replace(/>/gm, '>').split('\n') : [''];
|
160
|
+
|
161
|
+
// Enforce the min and max heights for a multiline input here to
|
162
|
+
// avoid measurement
|
163
|
+
if (this.multiline) {
|
164
|
+
if (this.maxRows && tokens.length > this.maxRows) {
|
165
|
+
tokens = tokens.slice(0, this.maxRows);
|
166
|
+
}
|
167
|
+
while (this.rows && tokens.length < this.rows) {
|
168
|
+
tokens.push('');
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
return tokens.join('<br>') + ' ';
|
173
|
+
},
|
174
|
+
|
175
|
+
get inputHasValue() {
|
176
|
+
// if type = number, the input value is the empty string until a valid number
|
177
|
+
// is entered so we must do some hacks here
|
178
|
+
return this.inputValue || (this.type === 'number' && !this.validity.valid);
|
179
|
+
},
|
180
|
+
|
181
|
+
syncInputValueToMirror: function() {
|
182
|
+
this.$.mirror.innerHTML = this.inputValueForMirror;
|
183
|
+
},
|
184
|
+
|
185
|
+
ready: function() {
|
186
|
+
this.syncInputValueToMirror();
|
187
|
+
},
|
188
|
+
|
189
|
+
prepareLabelTransform: function() {
|
190
|
+
var toRect = this.$.floatedLabelText.getBoundingClientRect();
|
191
|
+
var fromRect = this.$.labelText.getBoundingClientRect();
|
192
|
+
if (toRect.width !== 0) {
|
193
|
+
var sy = toRect.height / fromRect.height;
|
194
|
+
this.$.labelText.cachedTransform =
|
195
|
+
'scale3d(' + (toRect.width / fromRect.width) + ',' + sy + ',1) ' +
|
196
|
+
'translate3d(0,' + (toRect.top - fromRect.top) / sy + 'px,0)';
|
197
|
+
}
|
198
|
+
},
|
199
|
+
|
200
|
+
animateFloatingLabel: function() {
|
201
|
+
if (!this.floatingLabel || this.labelAnimated) {
|
202
|
+
return;
|
203
|
+
}
|
204
|
+
|
205
|
+
if (!this.$.labelText.cachedTransform) {
|
206
|
+
this.prepareLabelTransform();
|
207
|
+
}
|
208
|
+
|
209
|
+
// If there's still no cached transform, the input is invisible so don't
|
210
|
+
// do the animation.
|
211
|
+
if (!this.$.labelText.cachedTransform) {
|
212
|
+
return;
|
213
|
+
}
|
214
|
+
|
215
|
+
this.labelAnimated = true;
|
216
|
+
// Handle interrupted animation
|
217
|
+
this.async(function() {
|
218
|
+
this.transitionEndAction();
|
219
|
+
}, null, 250);
|
220
|
+
|
221
|
+
if (this.inputHasValue) {
|
222
|
+
this.$.labelText.style.webkitTransform = this.$.labelText.cachedTransform;
|
223
|
+
this.$.labelText.style.transform = this.$.labelText.cachedTransform;
|
224
|
+
} else {
|
225
|
+
// Handle if the label started out floating
|
226
|
+
if (!this.$.labelText.style.webkitTransform && !this.$.labelText.style.transform) {
|
227
|
+
this.$.labelText.style.webkitTransform = this.$.labelText.cachedTransform;
|
228
|
+
this.$.labelText.style.transform = this.$.labelText.cachedTransform;
|
229
|
+
this.$.labelText.offsetTop;
|
230
|
+
}
|
231
|
+
this.$.labelText.style.webkitTransform = '';
|
232
|
+
this.$.labelText.style.transform = '';
|
233
|
+
}
|
234
|
+
},
|
235
|
+
|
236
|
+
inputValueChanged: function(old) {
|
237
|
+
this.super();
|
238
|
+
|
239
|
+
this.syncInputValueToMirror();
|
240
|
+
if (old && !this.inputValue || !old && this.inputValue) {
|
241
|
+
this.animateFloatingLabel();
|
242
|
+
}
|
243
|
+
},
|
244
|
+
|
245
|
+
placeholderChanged: function() {
|
246
|
+
this.label = this.placeholder;
|
247
|
+
},
|
248
|
+
|
249
|
+
inputFocusAction: function() {
|
250
|
+
this.super(arguments);
|
251
|
+
this.focused = true;
|
252
|
+
},
|
253
|
+
|
254
|
+
inputBlurAction: function(e) {
|
255
|
+
this.super(arguments);
|
256
|
+
this.focused = false;
|
257
|
+
},
|
258
|
+
|
259
|
+
downAction: function(e) {
|
260
|
+
if (this.disabled) {
|
261
|
+
return;
|
262
|
+
}
|
263
|
+
|
264
|
+
if (this.focused) {
|
265
|
+
return;
|
266
|
+
}
|
267
|
+
|
268
|
+
// The underline spills from the tap location
|
269
|
+
var rect = this.$.underline.getBoundingClientRect();
|
270
|
+
var right = e.x - rect.left;
|
271
|
+
this.$.focusedUnderline.style.mozTransformOrigin = right + 'px';
|
272
|
+
this.$.focusedUnderline.style.webkitTransformOrigin = right + 'px ';
|
273
|
+
this.$.focusedUnderline.style.transformOriginX = right + 'px';
|
274
|
+
|
275
|
+
// Animations only run when the user interacts with the input
|
276
|
+
this.underlineAnimated = true;
|
277
|
+
|
278
|
+
// Cursor animation only runs if the input is empty
|
279
|
+
if (!this.inputHasValue) {
|
280
|
+
this.cursorAnimated = true;
|
281
|
+
}
|
282
|
+
// Handle interrupted animation
|
283
|
+
this.async(function() {
|
284
|
+
this.transitionEndAction();
|
285
|
+
}, null, 250);
|
286
|
+
},
|
287
|
+
|
288
|
+
keydownAction: function() {
|
289
|
+
this.super();
|
290
|
+
|
291
|
+
// more type = number hacks. see core-input for more info
|
292
|
+
if (this.type === 'number') {
|
293
|
+
var valid = !this.inputValue && this.validity.valid;
|
294
|
+
this.async(function() {
|
295
|
+
if (valid !== (!this.inputValue && this.validity.valid)) {
|
296
|
+
this.animateFloatingLabel();
|
297
|
+
}
|
298
|
+
});
|
299
|
+
}
|
300
|
+
},
|
301
|
+
|
302
|
+
transitionEndAction: function() {
|
303
|
+
this.underlineAnimated = false;
|
304
|
+
this.cursorAnimated = false;
|
305
|
+
this.labelAnimated = false;
|
306
|
+
}
|
307
|
+
|
308
|
+
});
|
309
|
+
|
310
|
+
}());
|
311
|
+
|
312
|
+
</script>
|
313
|
+
|
314
|
+
</polymer-element>
|