polymer-paper-rails 0.2.0 → 0.2.5
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-a11y-keys/core-a11y-keys.html +335 -0
- data/app/assets/components/core-animation/core-animation.html +7 -6
- data/app/assets/components/core-animation/web-animations.html +1 -1
- data/app/assets/components/core-collapse/core-collapse.html +41 -5
- data/app/assets/components/core-component-page/core-component-page.html +1 -1
- data/app/assets/components/core-drawer-panel/core-drawer-panel.css +14 -9
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +76 -21
- data/app/assets/components/core-drawer-panel/metadata.html +1 -1
- data/app/assets/components/core-dropdown/core-dropdown-base.html +117 -0
- data/app/assets/components/core-dropdown/core-dropdown.html +305 -0
- data/app/assets/components/core-dropdown/metadata.html +62 -0
- data/app/assets/components/core-elements/paper-elements.html +2 -0
- data/app/assets/components/core-focusable/core-focusable.html +4 -0
- data/app/assets/components/core-focusable/core-focusable.js +134 -0
- data/app/assets/components/core-focusable/polymer-mixin.js +35 -0
- data/app/assets/components/core-header-panel/core-header-panel.css +6 -3
- data/app/assets/components/core-header-panel/core-header-panel.html +96 -44
- data/app/assets/components/core-header-panel/metadata.html +1 -1
- data/app/assets/components/core-icon/core-icon.html +19 -5
- data/app/assets/components/core-icons/av-icons.html +57 -31
- data/app/assets/components/core-icons/communication-icons.html +42 -44
- data/app/assets/components/core-icons/core-icons.html +267 -263
- data/app/assets/components/core-icons/device-icons.html +90 -44
- data/app/assets/components/core-icons/editor-icons.html +52 -52
- data/app/assets/components/core-icons/hardware-icons.html +42 -43
- data/app/assets/components/core-icons/image-icons.html +140 -130
- data/app/assets/components/core-icons/maps-icons.html +57 -54
- data/app/assets/components/core-icons/notification-icons.html +34 -35
- data/app/assets/components/core-icons/social-icons.html +38 -37
- data/app/assets/components/core-iconset-svg/core-iconset-svg.html +1 -1
- data/app/assets/components/core-input/core-input.css +3 -7
- data/app/assets/components/core-input/core-input.html +105 -411
- data/app/assets/components/core-input/metadata.html +6 -3
- data/app/assets/components/core-item/core-item.css +7 -6
- data/app/assets/components/core-item/core-item.html +4 -5
- data/app/assets/components/core-item/metadata.html +1 -1
- data/app/assets/components/core-label/core-label.html +124 -0
- data/app/assets/components/core-menu/core-menu.css +3 -3
- data/app/assets/components/core-menu/core-menu.html +8 -2
- data/app/assets/components/core-menu/core-submenu.css +14 -0
- data/app/assets/components/core-menu/core-submenu.html +21 -1
- data/app/assets/components/core-overlay/core-overlay-layer.html +1 -0
- data/app/assets/components/core-overlay/core-overlay.html +163 -90
- data/app/assets/components/core-overlay/gulpfile.js +2 -0
- data/app/assets/components/core-overlay/tests/html/core-overlay-basic.html +127 -0
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning-margin.html +153 -0
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning.html +167 -0
- data/app/assets/components/core-overlay/tests/html/core-overlay-scroll.html +130 -0
- data/app/assets/components/core-overlay/tests/js/htmltests.js +6 -0
- data/app/assets/components/core-overlay/tests/runner.html +14 -0
- data/app/assets/components/core-overlay/tests/tests.json +6 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +45 -9
- data/app/assets/components/core-scroll-header-panel/metadata.html +1 -1
- data/app/assets/components/core-selector/core-selector.html +116 -28
- data/app/assets/components/core-selector/metadata.html +1 -1
- data/app/assets/components/core-style/core-style.html +4 -4
- data/app/assets/components/core-style/elements.html +1 -1
- data/app/assets/components/core-style/my-theme.html +1 -1
- data/app/assets/components/core-toolbar/core-toolbar.css +14 -7
- data/app/assets/components/core-toolbar/core-toolbar.html +88 -7
- data/app/assets/components/core-toolbar/metadata.html +1 -1
- data/app/assets/components/core-transition/core-transition-css.html +1 -2
- data/app/assets/components/core-transition/core-transition-overlay.css +9 -9
- data/app/assets/components/core-transition/core-transition.html +1 -1
- data/app/assets/components/font-roboto/roboto.html +1 -1
- data/app/assets/components/paper-button/metadata.html +2 -2
- data/app/assets/components/paper-button/paper-button-base.html +120 -0
- data/app/assets/components/paper-button/paper-button.html +114 -145
- data/app/assets/components/paper-checkbox/paper-checkbox.css +1 -1
- data/app/assets/components/paper-dialog/paper-action-dialog.html +104 -0
- data/app/assets/components/paper-dialog/paper-dialog-base.html +81 -0
- data/app/assets/components/paper-dialog/paper-dialog-transition.html +1 -1
- data/app/assets/components/paper-dialog/paper-dialog.html +68 -143
- data/app/assets/components/{paper-dropdown/paper-dropdown.css → paper-dropdown-menu/paper-dropdown-menu.css} +1 -5
- data/app/assets/components/paper-dropdown-menu/paper-dropdown-menu.html +181 -0
- data/app/assets/components/{polymer/polymer.html → paper-dropdown/paper-dropdown-transition.css} +9 -7
- data/app/assets/components/paper-dropdown/paper-dropdown-transition.html +166 -0
- data/app/assets/components/paper-dropdown/paper-dropdown.html +69 -143
- data/app/assets/components/paper-fab/metadata.html +1 -1
- data/app/assets/components/paper-fab/paper-fab.html +140 -16
- data/app/assets/components/paper-icon-button/paper-icon-button.html +99 -32
- data/app/assets/components/paper-input/metadata.html +1 -4
- data/app/assets/components/paper-input/paper-autogrow-textarea.html +157 -0
- data/app/assets/components/paper-input/{paper-input.css → paper-input-decorator.css} +25 -25
- data/app/assets/components/paper-input/paper-input-decorator.html +468 -0
- data/app/assets/components/paper-input/paper-input.html +74 -269
- data/app/assets/components/paper-item/metadata.html +1 -1
- data/app/assets/components/paper-item/paper-item.html +95 -52
- data/app/assets/components/paper-menu-button/metadata.html +1 -1
- data/app/assets/components/paper-menu-button/paper-menu-button.css +38 -19
- data/app/assets/components/paper-menu-button/paper-menu-button.html +57 -138
- data/app/assets/components/paper-progress/paper-progress.css +39 -6
- data/app/assets/components/paper-progress/paper-progress.html +30 -4
- data/app/assets/components/paper-radio-button/paper-radio-button.html +3 -0
- data/app/assets/components/paper-radio-group/paper-radio-group.html +34 -1
- data/app/assets/components/paper-ripple/paper-ripple.html +110 -61
- data/app/assets/components/paper-shadow/metadata.html +2 -2
- data/app/assets/components/paper-shadow/paper-shadow.css +20 -45
- data/app/assets/components/paper-shadow/paper-shadow.html +55 -195
- data/app/assets/components/paper-slider/paper-slider.css +15 -1
- data/app/assets/components/paper-slider/paper-slider.html +98 -57
- data/app/assets/components/paper-spinner/paper-spinner.css +311 -0
- data/app/assets/components/paper-spinner/paper-spinner.html +116 -0
- data/app/assets/components/paper-tabs/paper-tab.css +26 -16
- data/app/assets/components/paper-tabs/paper-tab.html +24 -8
- data/app/assets/components/paper-tabs/paper-tabs.css +31 -13
- data/app/assets/components/paper-tabs/paper-tabs.html +217 -20
- data/app/assets/components/paper-toast/paper-toast.html +44 -6
- data/app/assets/components/paper-toggle-button/paper-toggle-button.css +7 -1
- data/app/assets/components/paper-toggle-button/paper-toggle-button.html +12 -2
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +2 -1
- data/app/assets/components/web-animations-next/Gruntfile.js +279 -0
- data/app/assets/components/web-animations-next/History.md +76 -0
- data/app/assets/components/web-animations-next/package.json +33 -0
- data/app/assets/components/web-animations-next/src/animation-constructor.js +139 -0
- data/app/assets/components/web-animations-next/src/animation-node.js +31 -0
- data/app/assets/components/web-animations-next/src/animation.js +65 -0
- data/app/assets/components/web-animations-next/src/apply-preserving-inline-style.js +192 -0
- data/app/assets/components/web-animations-next/src/apply.js +25 -0
- data/app/assets/components/web-animations-next/src/box-handler.js +57 -0
- data/app/assets/components/web-animations-next/src/color-handler.js +62 -0
- data/app/assets/components/web-animations-next/src/deprecation.js +42 -0
- data/app/assets/components/web-animations-next/src/dev.js +16 -0
- data/app/assets/components/web-animations-next/src/dimension-handler.js +167 -0
- data/app/assets/components/web-animations-next/src/effect-callback.js +86 -0
- data/app/assets/components/web-animations-next/src/effect.js +110 -0
- data/app/assets/components/web-animations-next/src/element-animatable.js +19 -0
- data/app/assets/components/web-animations-next/src/font-weight-handler.js +42 -0
- data/app/assets/components/web-animations-next/src/group-constructors.js +81 -0
- data/app/assets/components/web-animations-next/src/handler-utils.js +177 -0
- data/app/assets/components/web-animations-next/src/interpolation.js +49 -0
- data/app/assets/components/web-animations-next/src/matrix-decomposition.js +452 -0
- data/app/assets/components/web-animations-next/src/matrix-interpolation.js +130 -0
- data/app/assets/components/web-animations-next/src/maxifill-player.js +162 -0
- data/app/assets/components/web-animations-next/src/normalize-keyframes.js +259 -0
- data/app/assets/components/web-animations-next/src/number-handler.js +72 -0
- data/app/assets/components/web-animations-next/src/player.js +193 -0
- data/app/assets/components/web-animations-next/src/position-handler.js +117 -0
- data/app/assets/components/web-animations-next/src/property-interpolation.js +62 -0
- data/app/assets/components/web-animations-next/src/property-names.js +35 -0
- data/app/assets/components/web-animations-next/src/scope.js +20 -0
- data/app/assets/components/web-animations-next/src/shadow-handler.js +108 -0
- data/app/assets/components/web-animations-next/src/shape-handler.js +85 -0
- data/app/assets/components/web-animations-next/src/tick.js +148 -0
- data/app/assets/components/web-animations-next/src/timeline.js +77 -0
- data/app/assets/components/web-animations-next/src/timing-utilities.js +242 -0
- data/app/assets/components/web-animations-next/src/transform-handler.js +262 -0
- data/app/assets/components/web-animations-next/src/visibility-handler.js +29 -0
- data/app/assets/components/web-animations-next/target-config.js +124 -0
- data/app/assets/components/web-animations-next/target-loader.js +13 -0
- data/app/assets/components/web-animations-next/templates/boilerplate +13 -0
- data/app/assets/components/web-animations-next/templates/runner.html +26 -0
- data/app/assets/components/web-animations-next/templates/web-animations.html +18 -0
- data/app/assets/components/web-animations-next/templates/web-animations.js +21 -0
- data/app/assets/components/web-animations-next/web-animations-next-lite.dev.html +44 -0
- data/app/assets/components/web-animations-next/web-animations-next-lite.dev.js +21 -0
- data/app/assets/components/web-animations-next/web-animations-next.dev.html +49 -0
- data/app/assets/components/web-animations-next/web-animations-next.dev.js +21 -0
- data/app/assets/components/web-animations-next/web-animations.dev.html +44 -0
- data/app/assets/components/web-animations-next/web-animations.dev.js +21 -0
- data/app/assets/components/web-animations-next/web-animations.html +50 -0
- data/lib/polymer-paper-rails/version.rb +1 -1
- metadata +82 -421
- data/app/assets/components/core-animation/README.md +0 -4
- data/app/assets/components/core-animation/bower.json +0 -8
- data/app/assets/components/core-animation/demo.html +0 -149
- data/app/assets/components/core-animation/index.html +0 -22
- data/app/assets/components/core-collapse/README.md +0 -4
- data/app/assets/components/core-collapse/bower.json +0 -7
- data/app/assets/components/core-collapse/demo.html +0 -93
- data/app/assets/components/core-collapse/index.html +0 -22
- data/app/assets/components/core-component-page/README.md +0 -6
- data/app/assets/components/core-component-page/bower.json +0 -8
- data/app/assets/components/core-component-page/demo.html +0 -23
- data/app/assets/components/core-component-page/index.html +0 -22
- data/app/assets/components/core-drawer-panel/README.md +0 -4
- data/app/assets/components/core-drawer-panel/bower.json +0 -8
- data/app/assets/components/core-drawer-panel/demo.html +0 -73
- data/app/assets/components/core-drawer-panel/index.html +0 -22
- data/app/assets/components/core-elements/README.md +0 -4
- data/app/assets/components/core-elements/bower.json +0 -29
- data/app/assets/components/core-elements/demo.html +0 -105
- data/app/assets/components/core-elements/demos/core-toolbar.html +0 -98
- data/app/assets/components/core-field/README.md +0 -4
- data/app/assets/components/core-field/bower.json +0 -7
- data/app/assets/components/core-field/demo.html +0 -67
- data/app/assets/components/core-field/index.html +0 -22
- data/app/assets/components/core-header-panel/README.md +0 -4
- data/app/assets/components/core-header-panel/bower.json +0 -7
- data/app/assets/components/core-header-panel/demo.html +0 -100
- data/app/assets/components/core-header-panel/index.html +0 -23
- data/app/assets/components/core-icon-button/README.md +0 -4
- data/app/assets/components/core-icon-button/bower.json +0 -7
- data/app/assets/components/core-icon-button/demo.html +0 -35
- data/app/assets/components/core-icon-button/index.html +0 -22
- data/app/assets/components/core-icon/README.md +0 -4
- data/app/assets/components/core-icon/bower.json +0 -8
- data/app/assets/components/core-icon/demo.html +0 -44
- data/app/assets/components/core-icon/index.html +0 -22
- data/app/assets/components/core-icons/README.md +0 -4
- data/app/assets/components/core-icons/bower.json +0 -9
- data/app/assets/components/core-icons/demo.html +0 -96
- data/app/assets/components/core-icons/index.html +0 -22
- data/app/assets/components/core-iconset-svg/README.md +0 -4
- data/app/assets/components/core-iconset-svg/bower.json +0 -8
- data/app/assets/components/core-iconset-svg/demo.html +0 -66
- data/app/assets/components/core-iconset-svg/index.html +0 -22
- data/app/assets/components/core-iconset/README.md +0 -4
- data/app/assets/components/core-iconset/bower.json +0 -9
- data/app/assets/components/core-iconset/demo.html +0 -62
- data/app/assets/components/core-iconset/index.html +0 -22
- data/app/assets/components/core-input/README.md +0 -2
- data/app/assets/components/core-input/bower.json +0 -6
- data/app/assets/components/core-input/demo.html +0 -142
- data/app/assets/components/core-input/index.html +0 -22
- data/app/assets/components/core-item/README.md +0 -4
- data/app/assets/components/core-item/bower.json +0 -8
- data/app/assets/components/core-item/demo.html +0 -92
- data/app/assets/components/core-item/index.html +0 -22
- data/app/assets/components/core-media-query/README.md +0 -4
- data/app/assets/components/core-media-query/bower.json +0 -7
- data/app/assets/components/core-media-query/demo.html +0 -44
- data/app/assets/components/core-media-query/index.html +0 -22
- data/app/assets/components/core-menu/README.md +0 -4
- data/app/assets/components/core-menu/bower.json +0 -9
- data/app/assets/components/core-menu/demo.html +0 -101
- data/app/assets/components/core-menu/index.html +0 -22
- data/app/assets/components/core-meta/README.md +0 -4
- data/app/assets/components/core-meta/bower.json +0 -7
- data/app/assets/components/core-meta/demo.html +0 -58
- data/app/assets/components/core-meta/index.html +0 -22
- data/app/assets/components/core-overlay/README.md +0 -4
- data/app/assets/components/core-overlay/bower.json +0 -8
- data/app/assets/components/core-overlay/demo.html +0 -155
- data/app/assets/components/core-overlay/index.html +0 -22
- data/app/assets/components/core-popup-menu/README.md +0 -6
- data/app/assets/components/core-popup-menu/bower.json +0 -13
- data/app/assets/components/core-popup-menu/demo.html +0 -542
- data/app/assets/components/core-popup-menu/index.html +0 -22
- data/app/assets/components/core-range/README.md +0 -2
- data/app/assets/components/core-range/bower.json +0 -7
- data/app/assets/components/core-range/demo.html +0 -64
- data/app/assets/components/core-range/index.html +0 -22
- data/app/assets/components/core-scroll-header-panel/README.md +0 -4
- data/app/assets/components/core-scroll-header-panel/bower.json +0 -11
- data/app/assets/components/core-scroll-header-panel/demo.html +0 -111
- data/app/assets/components/core-scroll-header-panel/demos/demo1.html +0 -80
- data/app/assets/components/core-scroll-header-panel/demos/demo2.html +0 -82
- data/app/assets/components/core-scroll-header-panel/demos/demo3.html +0 -81
- data/app/assets/components/core-scroll-header-panel/demos/demo4.html +0 -109
- data/app/assets/components/core-scroll-header-panel/demos/demo5.html +0 -109
- data/app/assets/components/core-scroll-header-panel/demos/demo6.html +0 -113
- data/app/assets/components/core-scroll-header-panel/demos/demo7.html +0 -120
- data/app/assets/components/core-scroll-header-panel/demos/demo8.html +0 -122
- data/app/assets/components/core-scroll-header-panel/demos/demo9.html +0 -100
- 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 +0 -42
- data/app/assets/components/core-scroll-header-panel/index.html +0 -22
- data/app/assets/components/core-selection/README.md +0 -4
- data/app/assets/components/core-selection/bower.json +0 -7
- data/app/assets/components/core-selection/demo.html +0 -59
- data/app/assets/components/core-selection/index.html +0 -22
- data/app/assets/components/core-selector/README.md +0 -4
- data/app/assets/components/core-selector/bower.json +0 -8
- data/app/assets/components/core-selector/demo.html +0 -106
- data/app/assets/components/core-selector/index.html +0 -22
- data/app/assets/components/core-style/README.md +0 -4
- data/app/assets/components/core-style/bower.json +0 -7
- data/app/assets/components/core-style/demo.html +0 -58
- data/app/assets/components/core-style/index.html +0 -22
- data/app/assets/components/core-toolbar/README.md +0 -4
- data/app/assets/components/core-toolbar/bower.json +0 -7
- data/app/assets/components/core-toolbar/demo.html +0 -107
- data/app/assets/components/core-toolbar/index.html +0 -22
- data/app/assets/components/core-transition/README.md +0 -2
- data/app/assets/components/core-transition/bower.json +0 -8
- data/app/assets/components/core-transition/demo.html +0 -87
- data/app/assets/components/core-transition/index.html +0 -22
- data/app/assets/components/paper-button/README.md +0 -4
- data/app/assets/components/paper-button/bower.json +0 -11
- data/app/assets/components/paper-button/demo.html +0 -99
- data/app/assets/components/paper-button/demo2.html +0 -136
- data/app/assets/components/paper-button/index.html +0 -22
- data/app/assets/components/paper-button/paper-button.css +0 -125
- data/app/assets/components/paper-checkbox/README.md +0 -4
- data/app/assets/components/paper-checkbox/bower.json +0 -8
- data/app/assets/components/paper-checkbox/demo.html +0 -113
- data/app/assets/components/paper-checkbox/index.html +0 -22
- data/app/assets/components/paper-dialog/README.md +0 -4
- data/app/assets/components/paper-dialog/bower.json +0 -10
- data/app/assets/components/paper-dialog/demo.html +0 -85
- data/app/assets/components/paper-dialog/index.html +0 -22
- data/app/assets/components/paper-dialog/paper-dialog.css +0 -52
- data/app/assets/components/paper-dropdown/README.md +0 -9
- data/app/assets/components/paper-dropdown/bower.json +0 -12
- data/app/assets/components/paper-dropdown/demo.html +0 -345
- data/app/assets/components/paper-dropdown/index.html +0 -22
- data/app/assets/components/paper-fab/README.md +0 -4
- data/app/assets/components/paper-fab/bower.json +0 -8
- data/app/assets/components/paper-fab/demo.html +0 -72
- data/app/assets/components/paper-fab/demo2.html +0 -103
- data/app/assets/components/paper-fab/index.html +0 -22
- data/app/assets/components/paper-fab/paper-fab.css +0 -36
- data/app/assets/components/paper-focusable/README.md +0 -4
- data/app/assets/components/paper-focusable/bower.json +0 -7
- data/app/assets/components/paper-focusable/demo.html +0 -155
- data/app/assets/components/paper-icon-button/README.md +0 -4
- data/app/assets/components/paper-icon-button/bower.json +0 -9
- data/app/assets/components/paper-icon-button/demo.html +0 -102
- data/app/assets/components/paper-icon-button/index.html +0 -22
- data/app/assets/components/paper-icon-button/paper-icon-button.css +0 -17
- data/app/assets/components/paper-icon-button/pulse-ink.css +0 -20
- data/app/assets/components/paper-input/README.md +0 -4
- data/app/assets/components/paper-input/bower.json +0 -11
- data/app/assets/components/paper-input/demo.html +0 -124
- data/app/assets/components/paper-input/index.html +0 -22
- data/app/assets/components/paper-item/README.md +0 -4
- data/app/assets/components/paper-item/bower.json +0 -9
- data/app/assets/components/paper-item/demo.html +0 -39
- data/app/assets/components/paper-item/index.html +0 -22
- data/app/assets/components/paper-item/paper-item.css +0 -43
- data/app/assets/components/paper-menu-button/README.md +0 -4
- data/app/assets/components/paper-menu-button/bower.json +0 -16
- data/app/assets/components/paper-menu-button/demo.html +0 -95
- data/app/assets/components/paper-menu-button/index.html +0 -22
- data/app/assets/components/paper-menu-button/paper-menu-button-transition.css +0 -19
- data/app/assets/components/paper-menu-button/paper-menu-button-transition.html +0 -123
- data/app/assets/components/paper-progress/README.md +0 -4
- data/app/assets/components/paper-progress/bower.json +0 -8
- data/app/assets/components/paper-progress/demo.html +0 -107
- data/app/assets/components/paper-progress/index.html +0 -22
- data/app/assets/components/paper-radio-button/README.md +0 -4
- data/app/assets/components/paper-radio-button/bower.json +0 -7
- data/app/assets/components/paper-radio-button/demo.html +0 -75
- data/app/assets/components/paper-radio-button/index.html +0 -22
- data/app/assets/components/paper-radio-group/README.md +0 -4
- data/app/assets/components/paper-radio-group/bower.json +0 -9
- data/app/assets/components/paper-radio-group/demo.html +0 -82
- data/app/assets/components/paper-radio-group/index.html +0 -22
- data/app/assets/components/paper-ripple/README.md +0 -4
- data/app/assets/components/paper-ripple/bower.json +0 -9
- data/app/assets/components/paper-ripple/demo.html +0 -418
- data/app/assets/components/paper-ripple/index.html +0 -22
- data/app/assets/components/paper-ripple/raw.html +0 -799
- data/app/assets/components/paper-shadow/README.md +0 -4
- data/app/assets/components/paper-shadow/bower.json +0 -7
- data/app/assets/components/paper-shadow/demo.html +0 -252
- data/app/assets/components/paper-shadow/index.html +0 -22
- data/app/assets/components/paper-slider/README.md +0 -4
- data/app/assets/components/paper-slider/bower.json +0 -9
- data/app/assets/components/paper-slider/demo.html +0 -151
- data/app/assets/components/paper-slider/index.html +0 -22
- data/app/assets/components/paper-tabs/README.md +0 -4
- data/app/assets/components/paper-tabs/bower.json +0 -12
- data/app/assets/components/paper-tabs/demo.html +0 -166
- data/app/assets/components/paper-tabs/index.html +0 -22
- data/app/assets/components/paper-toast/README.md +0 -4
- data/app/assets/components/paper-toast/bower.json +0 -10
- data/app/assets/components/paper-toast/demo.html +0 -67
- data/app/assets/components/paper-toast/index.html +0 -22
- data/app/assets/components/paper-toggle-button/README.md +0 -4
- data/app/assets/components/paper-toggle-button/bower.json +0 -8
- data/app/assets/components/paper-toggle-button/demo.html +0 -77
- data/app/assets/components/paper-toggle-button/index.html +0 -22
- data/app/assets/components/platform/README.md +0 -6
- data/app/assets/components/platform/bower.json +0 -16
- data/app/assets/components/platform/build.log +0 -35
- data/app/assets/components/platform/platform.js.map +0 -1
- data/app/assets/components/polymer/README.md +0 -17
- data/app/assets/components/polymer/bower.json +0 -8
- data/app/assets/components/polymer/build.log +0 -35
- data/app/assets/components/polymer/layout.html +0 -286
- data/app/assets/components/polymer/polymer.js +0 -14
- data/app/assets/components/polymer/polymer.js.map +0 -1
- data/app/assets/components/sampler-scaffold/README.md +0 -4
- data/app/assets/components/sampler-scaffold/bower.json +0 -12
- data/app/assets/components/sampler-scaffold/demo.html +0 -54
- data/app/assets/components/sampler-scaffold/demos/checkbox.html +0 -20
- data/app/assets/components/sampler-scaffold/demos/color.html +0 -20
- data/app/assets/components/sampler-scaffold/demos/radio.html +0 -20
- data/app/assets/components/sampler-scaffold/demos/range.html +0 -20
- data/app/assets/components/sampler-scaffold/demos/string.html +0 -20
- data/app/assets/components/sampler-scaffold/index.html +0 -22
- data/app/assets/components/web-animations-js/COPYING +0 -202
- data/app/assets/components/web-animations-js/README.md +0 -237
- data/app/assets/components/web-animations-js/run-lint.sh +0 -19
- data/app/assets/components/web-animations-js/run-tests-android.sh +0 -25
- data/app/assets/components/web-animations-js/run-tests.sh +0 -15
- data/app/assets/components/web-animations-js/test/bootstrap.js +0 -1266
- 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 +0 -147
- data/app/assets/components/web-animations-js/test/perf/balls-replace-compositing.html +0 -144
- data/app/assets/components/web-animations-js/test/perf/perf.js +0 -158
- data/app/assets/components/web-animations-js/test/perf/updating-inline-style-during-animation.html +0 -165
- data/app/assets/components/web-animations-js/test/test-generator.html +0 -240
- data/app/assets/components/web-animations-js/test/test-results-post.html +0 -3
- data/app/assets/components/web-animations-js/test/test-runner.html +0 -810
- data/app/assets/components/web-animations-js/test/testcases.js +0 -93
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow-checks.js +0 -42
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow.html +0 -40
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc-checks.js +0 -41
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc.html +0 -156
- data/app/assets/components/web-animations-js/test/testcases/auto-test-change-playback-rate-checks.js +0 -23
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path-checks.js +0 -65
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path.html +0 -83
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-checks.js +0 -101
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names-checks.js +0 -431
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names.html +0 -204
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color.html +0 -117
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js +0 -45
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms.html +0 -97
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor-checks.js +0 -26
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor.html +0 -68
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay-checks.js +0 -92
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay.html +0 -39
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate-checks.js +0 -8
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate.html +0 -30
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values-checks.js +0 -266
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values.html +0 -114
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight-checks.js +0 -26
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight.html +0 -43
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial-checks.js +0 -74
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial.html +0 -242
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-checks.js +0 -17
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback-checks.js +0 -17
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback.html +0 -78
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods-checks.js +0 -17
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods.html +0 -70
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style.html +0 -69
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer-checks.js +0 -38
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer.html +0 -52
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start-checks.js +0 -506
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start.html +0 -160
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-checks.js +0 -44
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes-checks.js +0 -41
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes.html +0 -48
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate.html +0 -50
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic-checks.js +0 -162
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic.html +0 -116
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill-checks.js +0 -602
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill.html +0 -167
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation-checks.js +0 -67
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation.html +0 -109
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing-checks.js +0 -65
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing.html +0 -64
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units-checks.js +0 -342
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units.html +0 -103
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms-checks.js +0 -56
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms.html +0 -90
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path-checks.js +0 -110
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path.html +0 -133
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric-checks.js +0 -26
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric.html +0 -42
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent-checks.js +0 -38
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent.html +0 -52
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes-checks.js +0 -27
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes.html +0 -43
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path-checks.js +0 -20
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path.html +0 -41
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause-checks.js +0 -79
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause.html +0 -82
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-checks.js +0 -37
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin-checks.js +0 -61
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin.html +0 -94
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective.html +0 -79
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate-checks.js +0 -146
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate.html +0 -128
- data/app/assets/components/web-animations-js/test/testcases/auto-test-position-list-type-checks.js +0 -73
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle-checks.js +0 -23
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle.html +0 -57
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent-checks.js +0 -95
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent.html +0 -60
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed-checks.js +0 -69
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed.html +0 -86
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand-checks.js +0 -197
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand.html +0 -115
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-checks.js +0 -58
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations-checks.js +0 -92
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations.html +0 -107
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time.html +0 -90
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim-checks.js +0 -23
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim.html +0 -39
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle-checks.js +0 -23
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle.html +0 -38
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color-checks.js +0 -20
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color.html +0 -36
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow-checks.js +0 -20
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow.html +0 -37
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions-checks.js +0 -89
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions.html +0 -77
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation-checks.js +0 -58
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation.html +0 -83
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d-checks.js +0 -134
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d.html +0 -123
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions-checks.js +0 -160
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions.html +0 -158
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin-checks.js +0 -37
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin.html +0 -80
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives-checks.js +0 -292
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives.html +0 -97
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units-checks.js +0 -202
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units.html +0 -98
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility-checks.js +0 -54
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility.html +0 -80
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug-checks.js +0 -58
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug.html +0 -60
- 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 +0 -65
- data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-position-list-type.html +0 -103
- data/app/assets/components/web-animations-js/test/testcases/disabled-media.html +0 -439
- data/app/assets/components/web-animations-js/test/testcases/disabled-test-compositing-order.html +0 -112
- data/app/assets/components/web-animations-js/test/testcases/impl-test-deprecation.html +0 -85
- data/app/assets/components/web-animations-js/test/testcases/impl-test-from-css-value.html +0 -219
- data/app/assets/components/web-animations-js/test/testcases/impl-test-paced-timing-function.html +0 -83
- data/app/assets/components/web-animations-js/test/testcases/impl-test-totimelinetime.html +0 -37
- data/app/assets/components/web-animations-js/test/testcases/impl-unit-test-position-type.html +0 -256
- data/app/assets/components/web-animations-js/test/testcases/manual-test-add-player-onend.html +0 -57
- data/app/assets/components/web-animations-js/test/testcases/manual-test-preset-timings.html +0 -71
- data/app/assets/components/web-animations-js/test/testcases/manual-test-step.html +0 -88
- 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 +0 -69
- data/app/assets/components/web-animations-js/test/testcases/test-document-timeline.html +0 -53
- data/app/assets/components/web-animations-js/test/testcases/test-dynamic-load.html +0 -65
- data/app/assets/components/web-animations-js/test/testcases/test-fill-auto.html +0 -78
- data/app/assets/components/web-animations-js/test/testcases/test-getcurrent.html +0 -324
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-animation-effect.html +0 -248
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-composite-operation.html +0 -182
- data/app/assets/components/web-animations-js/test/testcases/test-null-target.html +0 -66
- data/app/assets/components/web-animations-js/test/testcases/test-pause-for-testing.html +0 -52
- data/app/assets/components/web-animations-js/test/testcases/test-player-addeventlistener.html +0 -161
- data/app/assets/components/web-animations-js/test/testcases/test-player-cleanup.html +0 -79
- data/app/assets/components/web-animations-js/test/testcases/test-player-finish-event.html +0 -101
- data/app/assets/components/web-animations-js/test/testcases/test-player-sort.html +0 -48
- data/app/assets/components/web-animations-js/test/testcases/test-player.html +0 -786
- data/app/assets/components/web-animations-js/test/testcases/test-pseudo-element-reference.html +0 -38
- data/app/assets/components/web-animations-js/test/testcases/test-repeated-pause.html +0 -54
- data/app/assets/components/web-animations-js/test/testcases/test-restart.html +0 -115
- data/app/assets/components/web-animations-js/test/testcases/test-reversed-player-active-phase.html +0 -28
- data/app/assets/components/web-animations-js/test/testcases/test-rotation-not-reversed.html +0 -55
- data/app/assets/components/web-animations-js/test/testcases/test-update-state.html +0 -113
- data/app/assets/components/web-animations-js/test/testcases/unit-test-clone.html +0 -80
- data/app/assets/components/web-animations-js/test/testcases/unit-test-delay.html +0 -66
- data/app/assets/components/web-animations-js/test/testcases/unit-test-dom-operations.html +0 -164
- data/app/assets/components/web-animations-js/test/testcases/unit-test-duration.html +0 -66
- data/app/assets/components/web-animations-js/test/testcases/unit-test-get-siblings.html +0 -112
- data/app/assets/components/web-animations-js/test/testcases/unit-test-modify-timing-params.html +0 -105
- data/app/assets/components/web-animations-js/test/testcases/unit-test-null-effect.html +0 -43
- data/app/assets/components/web-animations-js/test/testcases/unit-test-set-parent.html +0 -111
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness-failure.html +0 -54
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness.html +0 -248
- data/app/assets/components/web-animations-js/test/testcases/unit-test-unpause.html +0 -68
- data/app/assets/components/web-animations-js/test/testharness_timing.css +0 -75
- data/app/assets/components/web-animations-js/test/update-testcases.py +0 -63
- data/app/assets/components/web-animations-js/tools/android/config.sh +0 -8
- data/app/assets/components/web-animations-js/tools/android/setup.sh +0 -152
- data/app/assets/components/web-animations-js/tools/android/stop.sh +0 -20
- data/app/assets/components/web-animations-js/tools/python/requirements.txt +0 -12
- data/app/assets/components/web-animations-js/tools/python/run-tests.py +0 -813
- data/app/assets/components/web-animations-js/tools/python/setup.sh +0 -60
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation-exercise-1.html +0 -62
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation.html +0 -120
- data/app/assets/components/web-animations-js/tutorial/iframe-contents.html +0 -29
- data/app/assets/components/web-animations-js/tutorial/jquery.js +0 -9555
- data/app/assets/components/web-animations-js/tutorial/page-load.js +0 -114
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel-exercise-1.html +0 -58
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel.html +0 -101
- data/app/assets/components/web-animations-js/tutorial/sample-tutorial.html +0 -44
- data/app/assets/components/web-animations-js/tutorial/try-it-yourself.js +0 -216
- data/app/assets/components/web-animations-js/tutorial/tutorial-style.css +0 -344
- data/app/assets/components/web-animations-js/tutorial/tutorial-testing.js +0 -84
@@ -8,307 +8,112 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
8
8
|
-->
|
9
9
|
|
10
10
|
<!--
|
11
|
-
|
12
|
-
|
11
|
+
|
12
|
+
Material Design: <a href="http://www.google.com/design/spec/components/text-fields.html#text-fields-single-line-text-field">Single line text field</a>
|
13
|
+
|
14
|
+
`paper-input` is a single-line text field for user input. It is a convenience element composed of
|
15
|
+
a `paper-input-decorator` and a `input is="core-input"`.
|
13
16
|
|
14
17
|
Example:
|
15
18
|
|
16
19
|
<paper-input label="Your Name"></paper-input>
|
17
|
-
|
20
|
+
|
21
|
+
If you need more control over the `input` element, use `paper-input-decorator`.
|
18
22
|
|
19
23
|
Theming
|
20
|
-
|
24
|
+
-------
|
25
|
+
|
26
|
+
`paper-input` can be styled similarly to `paper-input-decorator`.
|
27
|
+
|
28
|
+
Form submission
|
29
|
+
---------------
|
30
|
+
|
31
|
+
Unlike inputs using `paper-input-decorator` directly, `paper-input` does not work out of
|
32
|
+
the box with the native `form` element. This is because the native `form` is not aware of
|
33
|
+
shadow DOM and does not treat `paper-input` as a form element.
|
21
34
|
|
22
|
-
|
23
|
-
|
35
|
+
Use `paper-input-decorator` directly, or see
|
36
|
+
<a href="https://github.com/garstasio/ajax-form">`ajax-form`</a> for a possible solution
|
37
|
+
to submitting a `paper-input`.
|
24
38
|
|
25
39
|
@group Paper Elements
|
26
40
|
@element paper-input
|
27
|
-
@extends core-input
|
28
41
|
@homepage github.io
|
29
42
|
-->
|
30
43
|
<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
44
|
<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
45
|
|
89
|
-
|
90
|
-
<div class="unfocused-underline" fit invisible?="{{disabled}}"></div>
|
91
|
-
<div id="focusedUnderline" class="focused-underline" fit invisible?="{{!focused}}" animated?="{{underlineAnimated}}"></div>
|
92
|
-
</div>
|
46
|
+
<link href="paper-input-decorator.html" rel="import">
|
93
47
|
|
94
|
-
|
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>
|
48
|
+
<polymer-element name="paper-input">
|
98
49
|
|
99
|
-
|
50
|
+
<template>
|
100
51
|
|
101
|
-
<
|
52
|
+
<style>
|
53
|
+
:host {
|
54
|
+
display: inline-block;
|
55
|
+
}
|
56
|
+
</style>
|
102
57
|
|
103
|
-
|
58
|
+
<paper-input-decorator id="decorator" label="{{label}}" floatingLabel="{{floatingLabel}}" value="{{value}}" disabled?="{{disabled}}">
|
59
|
+
<input is="core-input" value="{{value}}" committedValue="{{committedValue}}" on-change="{{changeAction}}" disabled?="{{disabled}}">
|
60
|
+
</paper-input-decorator>
|
104
61
|
|
105
|
-
|
106
|
-
paperInput.focusedColor = '#4059a9';
|
107
|
-
paperInput.invalidColor = '#d34336';
|
62
|
+
</template>
|
108
63
|
|
109
|
-
|
64
|
+
<script>
|
110
65
|
|
111
|
-
|
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: '',
|
66
|
+
Polymer('paper-input', {
|
121
67
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
68
|
+
publish: {
|
69
|
+
/**
|
70
|
+
* The label for this input. It normally appears as grey text inside
|
71
|
+
* the text input and disappears once the user enters text.
|
72
|
+
*
|
73
|
+
* @attribute label
|
74
|
+
* @type string
|
75
|
+
* @default ''
|
76
|
+
*/
|
77
|
+
label: '',
|
131
78
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
*/
|
142
|
-
maxRows: 0,
|
79
|
+
/**
|
80
|
+
* If true, the label will "float" above the text input once the
|
81
|
+
* user enters text instead of disappearing.
|
82
|
+
*
|
83
|
+
* @attribute floatingLabel
|
84
|
+
* @type boolean
|
85
|
+
* @default false
|
86
|
+
*/
|
87
|
+
floatingLabel: false,
|
143
88
|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
error: '',
|
89
|
+
/**
|
90
|
+
* Set to true to style the element as disabled.
|
91
|
+
*
|
92
|
+
* @attribute disabled
|
93
|
+
* @type boolean
|
94
|
+
* @default false
|
95
|
+
*/
|
96
|
+
disabled: {value: false, reflect: true},
|
153
97
|
|
154
|
-
|
98
|
+
value: '',
|
155
99
|
|
156
|
-
|
100
|
+
committedValue: ''
|
157
101
|
|
158
|
-
|
159
|
-
var tokens = this.inputValue ? String(this.inputValue).replace(/&/gm, '&').replace(/"/gm, '"').replace(/'/gm, ''').replace(/</gm, '<').replace(/>/gm, '>').split('\n') : [''];
|
102
|
+
},
|
160
103
|
|
161
|
-
|
162
|
-
|
163
|
-
|
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
|
-
}
|
104
|
+
valueChanged: function() {
|
105
|
+
this.$.decorator.updateLabelVisibility(this.value);
|
106
|
+
},
|
171
107
|
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
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;
|
108
|
+
changeAction: function(e) {
|
109
|
+
if (!window.ShadowDOMPolyfill) {
|
110
|
+
// re-fire event that does not bubble across shadow roots
|
111
|
+
this.fire('change', null, this);
|
306
112
|
}
|
113
|
+
}
|
307
114
|
|
308
|
-
|
309
|
-
|
310
|
-
}());
|
115
|
+
});
|
311
116
|
|
312
|
-
|
117
|
+
</script>
|
313
118
|
|
314
119
|
</polymer-element>
|
@@ -8,97 +8,140 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
8
8
|
-->
|
9
9
|
|
10
10
|
<!--
|
11
|
-
@group Paper Elements
|
12
11
|
|
13
|
-
|
14
|
-
|
12
|
+
Material Design: <a href="http://www.google.com/design/spec/components/menus.html">Menus</a>
|
13
|
+
|
14
|
+
`paper-item` is a simple item object for use in menus. When the user touches the item, a ripple
|
15
|
+
effect emanates from the point of contact. If used in a `core-selector`, the selected item will
|
16
|
+
be highlighted.
|
15
17
|
|
16
18
|
Example:
|
17
19
|
|
18
20
|
<core-menu>
|
19
|
-
<paper-item
|
20
|
-
<paper-item
|
21
|
-
<paper-item
|
21
|
+
<paper-item>Cut</paper-item>
|
22
|
+
<paper-item>Copy</paper-item>
|
23
|
+
<paper-item>Paste</paper-item>
|
22
24
|
</core-menu>
|
23
25
|
|
24
|
-
|
26
|
+
Links
|
27
|
+
-----
|
28
|
+
|
29
|
+
To use as a link, put an `<a>` element in the item. You may also use the `noink` attribute to
|
30
|
+
prevent the ripple from "freezing" during a page navigation.
|
25
31
|
|
26
32
|
Example:
|
27
33
|
|
28
|
-
<paper-item
|
29
|
-
<a href="http://www.polymer-project.org"
|
34
|
+
<paper-item noink>
|
35
|
+
<a href="http://www.polymer-project.org" layout horizontal center>Polymer</a>
|
30
36
|
</paper-item>
|
31
37
|
|
32
|
-
@
|
38
|
+
@group Paper Elements
|
39
|
+
@element paper-item
|
40
|
+
@extends paper-button-base
|
41
|
+
@status unstable
|
33
42
|
-->
|
34
43
|
|
35
44
|
<link href="../polymer/polymer.html" rel="import">
|
36
|
-
<link href="../
|
45
|
+
<link href="../paper-button/paper-button-base.html" rel="import">
|
37
46
|
<link href="../paper-ripple/paper-ripple.html" rel="import">
|
38
47
|
|
39
|
-
<
|
40
|
-
|
41
|
-
<polymer-element name="paper-item" attributes="label iconSrc icon" center horizontal layout>
|
48
|
+
<polymer-element name="paper-item" extends="paper-button-base">
|
42
49
|
|
43
50
|
<template>
|
44
51
|
|
45
|
-
<
|
52
|
+
<style>
|
53
|
+
|
54
|
+
:host {
|
55
|
+
display: block;
|
56
|
+
position: relative;
|
57
|
+
font-size: 16px;
|
58
|
+
box-sizing: border-box;
|
59
|
+
min-width: 7em;
|
60
|
+
outline: none;
|
61
|
+
-moz-user-select: none;
|
62
|
+
-ms-user-select: none;
|
63
|
+
-webkit-user-select: none;
|
64
|
+
user-select: none;
|
65
|
+
cursor: pointer;
|
66
|
+
z-index: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
:host([disabled]) {
|
70
|
+
color: #a8a8a8;
|
71
|
+
cursor: auto;
|
72
|
+
pointer-events: none;
|
73
|
+
}
|
74
|
+
|
75
|
+
:host(.core-selected) {
|
76
|
+
background-color: #eaeaea;
|
77
|
+
}
|
78
|
+
|
79
|
+
#ripple {
|
80
|
+
pointer-events: none;
|
81
|
+
z-index: -1;
|
82
|
+
}
|
83
|
+
|
84
|
+
.button-content {
|
85
|
+
height: 100%;
|
86
|
+
padding: 0.9em 1em;
|
87
|
+
}
|
88
|
+
|
89
|
+
polyfill-next-selector { content: '.button-content > a'; }
|
90
|
+
::content > a {
|
91
|
+
height: 100%;
|
92
|
+
/* flex */
|
93
|
+
-ms-flex: 1 1 0.000000001px;
|
94
|
+
-webkit-flex: 1;
|
95
|
+
flex: 1;
|
96
|
+
-webkit-flex-basis: 0.000000001px;
|
97
|
+
flex-basis: 0.000000001px;
|
98
|
+
}
|
99
|
+
|
100
|
+
</style>
|
101
|
+
|
102
|
+
<!-- this div is needed to position the ripple behind text content -->
|
103
|
+
<div class="button-content" relative layout horizontal center>
|
104
|
+
<content></content>
|
105
|
+
</div>
|
46
106
|
|
47
|
-
<core-icon id="icon" hidden?="{{!iconSrc && !icon}}" src="{{iconSrc}}" icon="{{icon}}"></core-icon>
|
48
|
-
<div id="label">{{label}}</div>
|
49
|
-
<content></content>
|
50
107
|
</template>
|
51
108
|
|
52
109
|
<script>
|
53
|
-
Polymer(
|
110
|
+
Polymer({
|
54
111
|
|
55
112
|
publish: {
|
56
113
|
|
57
114
|
/**
|
58
|
-
*
|
115
|
+
* If true, the button will be styled with a shadow.
|
59
116
|
*
|
60
|
-
* @attribute
|
61
|
-
* @type
|
62
|
-
* @default
|
117
|
+
* @attribute raised
|
118
|
+
* @type boolean
|
119
|
+
* @default false
|
63
120
|
*/
|
64
|
-
|
121
|
+
raised: false,
|
65
122
|
|
66
123
|
/**
|
67
|
-
*
|
68
|
-
*
|
124
|
+
* By default the ripple emanates from where the user touched the button.
|
125
|
+
* Set this to true to always center the ripple.
|
69
126
|
*
|
70
|
-
* @attribute
|
71
|
-
* @type
|
72
|
-
* @default
|
127
|
+
* @attribute recenteringTouch
|
128
|
+
* @type boolean
|
129
|
+
* @default false
|
73
130
|
*/
|
74
|
-
|
131
|
+
recenteringTouch: false,
|
75
132
|
|
76
133
|
/**
|
77
|
-
*
|
78
|
-
*
|
79
|
-
* set separately where the icon is used. Should not use `src`
|
80
|
-
* if you are using this property.
|
134
|
+
* By default the ripple expands to fill the button. Set this to false to
|
135
|
+
* constrain the ripple to a circle within the button.
|
81
136
|
*
|
82
|
-
* @attribute
|
83
|
-
* @type
|
84
|
-
* @default
|
137
|
+
* @attribute fill
|
138
|
+
* @type boolean
|
139
|
+
* @default true
|
85
140
|
*/
|
86
|
-
|
87
|
-
|
88
|
-
},
|
89
|
-
|
90
|
-
eventDelegates: {
|
91
|
-
'down': 'downAction',
|
92
|
-
'up': 'upAction'
|
93
|
-
},
|
141
|
+
fill: true
|
94
142
|
|
95
|
-
downAction: function(e) {
|
96
|
-
this.$.ripple.downAction(e);
|
97
|
-
},
|
98
|
-
|
99
|
-
upAction: function(e) {
|
100
|
-
this.$.ripple.upAction(e);
|
101
143
|
}
|
144
|
+
|
102
145
|
});
|
103
146
|
</script>
|
104
|
-
</polymer-element>
|
147
|
+
</polymer-element>
|