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
@@ -1 +0,0 @@
|
|
1
|
-
<%= javascript_include_tag "core/animation/web-animations" %>
|
@@ -1,126 +0,0 @@
|
|
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.txt
|
4
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
5
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
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.txt
|
8
|
-
-->
|
9
|
-
<!--
|
10
|
-
|
11
|
-
The `core-icon` element displays an icon using CSS background image. By default an icon renders as 24px square.
|
12
|
-
|
13
|
-
Example using src:
|
14
|
-
|
15
|
-
<core-icon src="star.png"></core-icon>
|
16
|
-
|
17
|
-
Example setting size to 32px x 32px:
|
18
|
-
|
19
|
-
<core-icon src="big_star.png" size="32"></core-icon>
|
20
|
-
|
21
|
-
Example using icon from default iconset:
|
22
|
-
|
23
|
-
<core-icon icon="menu"></core-icon>
|
24
|
-
|
25
|
-
Example using icon `cherry` from custom iconset `fruit`:
|
26
|
-
|
27
|
-
<core-icon icon="fruit:cherry"></core-icon>
|
28
|
-
|
29
|
-
See [core-iconset](#core-iconset) and [core-iconset-svg](#core-iconset-svg) for more information about
|
30
|
-
how to use a custom iconset.
|
31
|
-
|
32
|
-
See [core-icons](http://www.polymer-project.org/components/core-icons/demo.html) for the default set of icons. To use the default set of icons you'll need to include an import for `core-icons.html`.
|
33
|
-
|
34
|
-
@group Polymer Core Elements
|
35
|
-
@element core-icon
|
36
|
-
@homepage polymer.github.io
|
37
|
-
-->
|
38
|
-
<%= html_import_tag "core/iconset/core-iconset" %>
|
39
|
-
|
40
|
-
<%= stylesheet_link_tag "core/icon/core-icon"%>
|
41
|
-
|
42
|
-
|
43
|
-
<polymer-element name="core-icon" attributes="src size icon">
|
44
|
-
<script>
|
45
|
-
(function() {
|
46
|
-
|
47
|
-
// mono-state
|
48
|
-
var meta;
|
49
|
-
|
50
|
-
Polymer('core-icon', {
|
51
|
-
|
52
|
-
/**
|
53
|
-
* The URL of an image for the icon. If the src property is specified,
|
54
|
-
* the icon property should not be.
|
55
|
-
*
|
56
|
-
* @attribute src
|
57
|
-
* @type string
|
58
|
-
* @default ''
|
59
|
-
*/
|
60
|
-
src: '',
|
61
|
-
|
62
|
-
/**
|
63
|
-
* Specifies the size of the icon in pixel units.
|
64
|
-
*
|
65
|
-
* @attribute size
|
66
|
-
* @type string
|
67
|
-
* @default 24
|
68
|
-
*/
|
69
|
-
size: 24,
|
70
|
-
|
71
|
-
/**
|
72
|
-
* Specifies the icon name or index in the set of icons available in
|
73
|
-
* the icon's icon set. If the icon property is specified,
|
74
|
-
* the src property should not be.
|
75
|
-
*
|
76
|
-
* @attribute icon
|
77
|
-
* @type string
|
78
|
-
* @default ''
|
79
|
-
*/
|
80
|
-
icon: '',
|
81
|
-
|
82
|
-
observe: {
|
83
|
-
'size icon': 'updateIcon'
|
84
|
-
},
|
85
|
-
|
86
|
-
defaultIconset: 'icons',
|
87
|
-
|
88
|
-
ready: function() {
|
89
|
-
if (!meta) {
|
90
|
-
meta = document.createElement('core-iconset');
|
91
|
-
}
|
92
|
-
this.updateIcon();
|
93
|
-
},
|
94
|
-
|
95
|
-
srcChanged: function() {
|
96
|
-
this.style.backgroundImage = 'url(' + this.src + ')';
|
97
|
-
this.style.backgroundPosition = 'center';
|
98
|
-
this.style.backgroundSize = this.size + 'px ' + this.size + 'px';
|
99
|
-
},
|
100
|
-
|
101
|
-
getIconset: function(name) {
|
102
|
-
return meta.byId(name || this.defaultIconset);
|
103
|
-
},
|
104
|
-
|
105
|
-
updateIcon: function() {
|
106
|
-
if (this.size) {
|
107
|
-
this.style.width = this.style.height = this.size + 'px';
|
108
|
-
}
|
109
|
-
if (this.icon) {
|
110
|
-
var parts = String(this.icon).split(':');
|
111
|
-
var icon = parts.pop();
|
112
|
-
if (icon) {
|
113
|
-
var set = this.getIconset(parts.pop());
|
114
|
-
if (set) {
|
115
|
-
set.applyIcon(this, icon, this.size / set.iconSize);
|
116
|
-
}
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
});
|
122
|
-
|
123
|
-
})();
|
124
|
-
</script>
|
125
|
-
|
126
|
-
</polymer-element>
|
@@ -1,35 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: inline-block;
|
3
|
-
text-align: inherit;
|
4
|
-
color: #ccc;
|
5
|
-
position: relative;
|
6
|
-
width: 20em;
|
7
|
-
}
|
8
|
-
|
9
|
-
:host:hover {
|
10
|
-
cursor: text;
|
11
|
-
}
|
12
|
-
|
13
|
-
input,
|
14
|
-
textarea {
|
15
|
-
font: inherit;
|
16
|
-
width: 100%;
|
17
|
-
margin: 0;
|
18
|
-
padding: 0;
|
19
|
-
background-color: transparent;
|
20
|
-
border: none;
|
21
|
-
outline: none;
|
22
|
-
width: 100%;
|
23
|
-
}
|
24
|
-
|
25
|
-
textarea {
|
26
|
-
resize: none;
|
27
|
-
}
|
28
|
-
|
29
|
-
textarea[fit] {
|
30
|
-
position: absolute;
|
31
|
-
top: 0;
|
32
|
-
left: 0;
|
33
|
-
right: 0;
|
34
|
-
bottom: 0;
|
35
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
overflow: auto;
|
4
|
-
/*-webkit-overflow-scrolling: touch;
|
5
|
-
-webkit-transform: translateZ(0);
|
6
|
-
transform: translateZ(0);*/
|
7
|
-
}
|
8
|
-
|
9
|
-
.core-list-viewport > * {
|
10
|
-
overflow: hidden;
|
11
|
-
}
|
12
|
-
|
13
|
-
.core-list-viewport.horizontal {
|
14
|
-
height: 100%;
|
15
|
-
white-space: nowrap;
|
16
|
-
}
|
17
|
-
|
18
|
-
.core-list-viewport.horizontal > * {
|
19
|
-
display: inline-block;
|
20
|
-
}
|
@@ -1,403 +0,0 @@
|
|
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.txt
|
4
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
5
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
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.txt
|
8
|
-
-->
|
9
|
-
|
10
|
-
<!--
|
11
|
-
`core-list` displays a virtual, 'infinite' list. The template inside the
|
12
|
-
`core-list` element represents the dom to create for each list item. The
|
13
|
-
`data` property specifies an array of list item data. The `height` property
|
14
|
-
represents the height of a list item.
|
15
|
-
|
16
|
-
By default, the list supports selection via tapping. Styling the selection
|
17
|
-
should be done via binding. The `selectedProperty` property is set on the
|
18
|
-
list view data for each selected item.
|
19
|
-
|
20
|
-
`core-list` manages a viewport of data based on the current scroll position.
|
21
|
-
For performance reasons, not every item in the list is rendered at once.
|
22
|
-
|
23
|
-
<core-list data="{{data}}" height="80">
|
24
|
-
<template>
|
25
|
-
<div class="{{ {selected: selected} | tokenList }}">List row: {{index}}</div>
|
26
|
-
</template>
|
27
|
-
</core-list>
|
28
|
-
|
29
|
-
@group Polymer Core Elements
|
30
|
-
@element core-list
|
31
|
-
-->
|
32
|
-
|
33
|
-
<%= html_import_tag "core/selection/core-selection" %>
|
34
|
-
|
35
|
-
<polymer-element name="core-list" on-tap="{{tapHandler}}">
|
36
|
-
<template>
|
37
|
-
<core-selection id="selection" multi="{{multi}}" on-core-select="{{selectedHandler}}"></core-selection>
|
38
|
-
<%= stylesheet_link_tag "core-list/core-list"%>
|
39
|
-
<div id="viewport" class="core-list-viewport"><content></content></div>
|
40
|
-
</template>
|
41
|
-
<script>
|
42
|
-
(function() {
|
43
|
-
|
44
|
-
Polymer('core-list', {
|
45
|
-
|
46
|
-
publish: {
|
47
|
-
/**
|
48
|
-
* Fired when an item element is tapped.
|
49
|
-
*
|
50
|
-
* @event core-activate
|
51
|
-
* @param {Object} detail
|
52
|
-
* @param {Object} detail.item the item element
|
53
|
-
*/
|
54
|
-
|
55
|
-
/**
|
56
|
-
*
|
57
|
-
* An array of source data for the list to display.
|
58
|
-
*
|
59
|
-
* @attribute data
|
60
|
-
* @type array
|
61
|
-
* @default null
|
62
|
-
*/
|
63
|
-
data: null,
|
64
|
-
|
65
|
-
/**
|
66
|
-
*
|
67
|
-
* An optional element on which to listen for scroll events.
|
68
|
-
*
|
69
|
-
* @attribute scrollTarget
|
70
|
-
* @type Element
|
71
|
-
* @default core-list
|
72
|
-
*/
|
73
|
-
scrollTarget: null,
|
74
|
-
|
75
|
-
/**
|
76
|
-
*
|
77
|
-
* The height of a list item. `core-list` currently supports only fixed-height
|
78
|
-
* list items. This height must be specified via the height property.
|
79
|
-
*
|
80
|
-
* @attribute height
|
81
|
-
* @type number
|
82
|
-
* @default 80
|
83
|
-
*/
|
84
|
-
height: 80,
|
85
|
-
|
86
|
-
/**
|
87
|
-
*
|
88
|
-
* The number of extra items rendered above the minimum set required to
|
89
|
-
* fill the list's height.
|
90
|
-
*
|
91
|
-
* @attribute extraItems
|
92
|
-
* @type number
|
93
|
-
* @default 30
|
94
|
-
*/
|
95
|
-
extraItems: 30,
|
96
|
-
|
97
|
-
/**
|
98
|
-
*
|
99
|
-
* The property set on the list view data to represent selection state.
|
100
|
-
* This should set so that it does not conflict with other data properties.
|
101
|
-
* Note, selection data is not stored on the data in given in the data property.
|
102
|
-
*
|
103
|
-
* @attribute selectedProperty
|
104
|
-
* @type string
|
105
|
-
* @default 'selected'
|
106
|
-
*/
|
107
|
-
selectedProperty: 'selected',
|
108
|
-
|
109
|
-
// TODO(sorvell): experimental
|
110
|
-
/**
|
111
|
-
*
|
112
|
-
* If true, data is sync'd from the list back to the list's data.
|
113
|
-
*
|
114
|
-
* @attribute sync
|
115
|
-
* @type boolean
|
116
|
-
* @default false
|
117
|
-
*/
|
118
|
-
sync: false,
|
119
|
-
|
120
|
-
/**
|
121
|
-
*
|
122
|
-
* Set to true to support multiple selection.
|
123
|
-
*
|
124
|
-
* @attribute multi
|
125
|
-
* @type boolean
|
126
|
-
* @default false
|
127
|
-
*/
|
128
|
-
multi: false
|
129
|
-
|
130
|
-
},
|
131
|
-
|
132
|
-
observe: {
|
133
|
-
'data template scrollTarget': 'initialize'
|
134
|
-
},
|
135
|
-
|
136
|
-
ready: function() {
|
137
|
-
this.clearSelection();
|
138
|
-
this._boundScrollHandler = this.scrollHandler.bind(this);
|
139
|
-
},
|
140
|
-
|
141
|
-
attached: function() {
|
142
|
-
this.template = this.querySelector('template');
|
143
|
-
},
|
144
|
-
|
145
|
-
// TODO(sorvell): it'd be nice to dispense with 'data' and just use
|
146
|
-
// template repeat's model. However, we need tighter integration
|
147
|
-
// with TemplateBinding for this.
|
148
|
-
initialize: function() {
|
149
|
-
if (!this.data || !this.template) {
|
150
|
-
return;
|
151
|
-
}
|
152
|
-
var target = this.scrollTarget || this;
|
153
|
-
if (this._target !== target) {
|
154
|
-
if (this._target) {
|
155
|
-
this._target.removeEventListener('scroll', this._boundScrollHandler, false);
|
156
|
-
}
|
157
|
-
this._target = target;
|
158
|
-
this._target.addEventListener('scroll', this._boundScrollHandler, false);
|
159
|
-
}
|
160
|
-
|
161
|
-
this.initializeViewport();
|
162
|
-
this.initalizeData();
|
163
|
-
this.onMutation(this, this.initializeItems);
|
164
|
-
},
|
165
|
-
|
166
|
-
// TODO(sorvell): need to handle resizing
|
167
|
-
initializeViewport: function() {
|
168
|
-
this.$.viewport.style.height = this.height * this.data.length + 'px';
|
169
|
-
this._visibleCount = Math.ceil(this._target.offsetHeight / this.height);
|
170
|
-
this._physicalCount = Math.min(this._visibleCount + this.extraItems,
|
171
|
-
this.data.length);
|
172
|
-
this._physicalHeight = this.height * this._physicalCount;
|
173
|
-
},
|
174
|
-
|
175
|
-
// TODO(sorvell): selection currently cannot be maintained when
|
176
|
-
// items are added or deleted.
|
177
|
-
initalizeData: function() {
|
178
|
-
var exampleDatum = this.data[0] || {};
|
179
|
-
this._propertyNames = Object.getOwnPropertyNames(exampleDatum);
|
180
|
-
this._physicalData = new Array(this._physicalCount);
|
181
|
-
for (var i = 0; i < this._physicalCount; ++i) {
|
182
|
-
this._physicalData[i] = {};
|
183
|
-
this.updateItem(i, i);
|
184
|
-
}
|
185
|
-
this.template.model = this._physicalData;
|
186
|
-
this.template.setAttribute('repeat', '');
|
187
|
-
},
|
188
|
-
|
189
|
-
initializeItems: function() {
|
190
|
-
this._physicalItems = new Array(this._physicalCount);
|
191
|
-
for (var i = 0, item = this.template.nextElementSibling;
|
192
|
-
item && i < this._physicalCount;
|
193
|
-
++i, item = item.nextElementSibling) {
|
194
|
-
this._physicalItems[i] = item;
|
195
|
-
item._transformValue = 0;
|
196
|
-
}
|
197
|
-
this.refresh(false);
|
198
|
-
},
|
199
|
-
|
200
|
-
updateItem: function(virtualIndex, physicalIndex) {
|
201
|
-
var virtualDatum = this.data[virtualIndex];
|
202
|
-
var physicalDatum = this._physicalData[physicalIndex];
|
203
|
-
this.pushItemData(virtualDatum, physicalDatum);
|
204
|
-
physicalDatum._physicalIndex = physicalIndex;
|
205
|
-
physicalDatum._virtualIndex = virtualIndex;
|
206
|
-
if (this.selectedProperty) {
|
207
|
-
physicalDatum[this.selectedProperty] = this._selectedData.get(virtualDatum);
|
208
|
-
}
|
209
|
-
},
|
210
|
-
|
211
|
-
pushItemData: function(source, dest) {
|
212
|
-
for (var i = 0; i < this._propertyNames.length; ++i) {
|
213
|
-
var propertyName = this._propertyNames[i];
|
214
|
-
dest[propertyName] = source[propertyName];
|
215
|
-
}
|
216
|
-
},
|
217
|
-
|
218
|
-
// experimental: push physical data back to this.data.
|
219
|
-
// this is optional when scrolling and needs to be called at other times.
|
220
|
-
syncData: function() {
|
221
|
-
if (this.firstPhysicalIndex === undefined ||
|
222
|
-
this.baseVirtualIndex === undefined) {
|
223
|
-
return;
|
224
|
-
}
|
225
|
-
var p, v;
|
226
|
-
for (var i = 0; i < this.firstPhysicalIndex; ++i) {
|
227
|
-
p = this._physicalData[i];
|
228
|
-
v = this.data[this.baseVirtualIndex + this._physicalCount + i];
|
229
|
-
this.pushItemData(p, v);
|
230
|
-
}
|
231
|
-
for (var i = this.firstPhysicalIndex; i < this._physicalCount; ++i) {
|
232
|
-
p = this._physicalData[i];
|
233
|
-
v = this.data[this.baseVirtualIndex + i];
|
234
|
-
this.pushItemData(p, v);
|
235
|
-
}
|
236
|
-
},
|
237
|
-
|
238
|
-
scrollHandler: function(e, detail) {
|
239
|
-
this._scrollTop = e.detail ? e.detail.target.scrollTop : e.target.scrollTop;
|
240
|
-
this.refresh(false);
|
241
|
-
},
|
242
|
-
|
243
|
-
/**
|
244
|
-
* Refresh the list at the current scroll position.
|
245
|
-
*
|
246
|
-
* @method refresh
|
247
|
-
*/
|
248
|
-
refresh: function(force) {
|
249
|
-
var firstVisibleIndex = Math.floor(this._scrollTop / this.height);
|
250
|
-
var visibleMidpoint = firstVisibleIndex + this._visibleCount / 2;
|
251
|
-
|
252
|
-
var firstReifiedIndex = Math.max(0, Math.floor(visibleMidpoint -
|
253
|
-
this._physicalCount / 2));
|
254
|
-
firstReifiedIndex = Math.min(firstReifiedIndex, this.data.length -
|
255
|
-
this._physicalCount);
|
256
|
-
|
257
|
-
var firstPhysicalIndex = firstReifiedIndex % this._physicalCount;
|
258
|
-
var baseVirtualIndex = firstReifiedIndex - firstPhysicalIndex;
|
259
|
-
|
260
|
-
var baseTransformValue = Math.floor(this.height * baseVirtualIndex);
|
261
|
-
var nextTransformValue = Math.floor(baseTransformValue +
|
262
|
-
this._physicalHeight);
|
263
|
-
|
264
|
-
var baseTransformString = 'translate3d(0,' + baseTransformValue + 'px,0)';
|
265
|
-
var nextTransformString = 'translate3d(0,' + nextTransformValue + 'px,0)';
|
266
|
-
// TODO(sorvell): experiemental for sync'ing back to virtual data.
|
267
|
-
if (this.sync) {
|
268
|
-
this.syncData();
|
269
|
-
}
|
270
|
-
this.firstPhysicalIndex = firstPhysicalIndex;
|
271
|
-
this.baseVirtualIndex = baseVirtualIndex;
|
272
|
-
|
273
|
-
for (var i = 0; i < firstPhysicalIndex; ++i) {
|
274
|
-
var item = this._physicalItems[i];
|
275
|
-
if (force || item._transformValue != nextTransformValue) {
|
276
|
-
this.updateItem(baseVirtualIndex + this._physicalCount + i, i);
|
277
|
-
setTransform(item, nextTransformString, nextTransformValue);
|
278
|
-
}
|
279
|
-
}
|
280
|
-
for (var i = firstPhysicalIndex; i < this._physicalCount; ++i) {
|
281
|
-
var item = this._physicalItems[i];
|
282
|
-
if (force || item._transformValue != baseTransformValue) {
|
283
|
-
this.updateItem(baseVirtualIndex + i, i);
|
284
|
-
setTransform(item, baseTransformString, baseTransformValue);
|
285
|
-
}
|
286
|
-
}
|
287
|
-
},
|
288
|
-
|
289
|
-
// list selection
|
290
|
-
tapHandler: function(e) {
|
291
|
-
if (e.target === this) {
|
292
|
-
return;
|
293
|
-
}
|
294
|
-
if (this.sync) {
|
295
|
-
this.syncData();
|
296
|
-
}
|
297
|
-
var n = e.target;
|
298
|
-
var model = n.templateInstance && n.templateInstance.model;
|
299
|
-
if (model) {
|
300
|
-
var vi = model._virtualIndex, pi = model._physicalIndex;
|
301
|
-
var data = this.data[vi], item = this._physicalItems[pi];
|
302
|
-
this.$.selection.select(data);
|
303
|
-
this.asyncFire('core-activate', {data: data, item: item});
|
304
|
-
}
|
305
|
-
},
|
306
|
-
|
307
|
-
selectedHandler: function(e, detail) {
|
308
|
-
if (this.selectedProperty) {
|
309
|
-
var i$ = this.indexesForData(detail.item);
|
310
|
-
// TODO(sorvell): we should be relying on selection to store the
|
311
|
-
// selected data but we want to optimize for lookup.
|
312
|
-
this._selectedData.set(detail.item, detail.isSelected);
|
313
|
-
if (i$.physical >= 0) {
|
314
|
-
this.updateItem(i$.virtual, i$.physical);
|
315
|
-
}
|
316
|
-
}
|
317
|
-
},
|
318
|
-
|
319
|
-
/**
|
320
|
-
* Select the list item at the given index.
|
321
|
-
*
|
322
|
-
* @method selectItem
|
323
|
-
* @param {number} index
|
324
|
-
*/
|
325
|
-
selectItem: function(index) {
|
326
|
-
var data = this.data[index];
|
327
|
-
if (data) {
|
328
|
-
this.$.selection.select(data);
|
329
|
-
}
|
330
|
-
},
|
331
|
-
|
332
|
-
/**
|
333
|
-
* Set the selected state of the list item at the given index.
|
334
|
-
*
|
335
|
-
* @method setItemSelected
|
336
|
-
* @param {number} index
|
337
|
-
* @param {boolean} isSelected
|
338
|
-
*/
|
339
|
-
setItemSelected: function(index, isSelected) {
|
340
|
-
var data = this.data[index];
|
341
|
-
if (data) {
|
342
|
-
this.$.selection.setItemSelected(data, isSelected);
|
343
|
-
}
|
344
|
-
},
|
345
|
-
|
346
|
-
indexesForData: function(data) {
|
347
|
-
var virtual = this.data.indexOf(data);
|
348
|
-
var physical = this.virtualToPhysicalIndex(virtual);
|
349
|
-
return { virtual: virtual, physical: physical };
|
350
|
-
},
|
351
|
-
|
352
|
-
virtualToPhysicalIndex: function(index) {
|
353
|
-
for (var i=0, l=this._physicalData.length; i<l; i++) {
|
354
|
-
if (this._physicalData[i]._virtualIndex === index) {
|
355
|
-
return i;
|
356
|
-
}
|
357
|
-
}
|
358
|
-
return -1;
|
359
|
-
},
|
360
|
-
|
361
|
-
get selection() {
|
362
|
-
return this.$.selection.getSelection();
|
363
|
-
},
|
364
|
-
|
365
|
-
selectedChanged: function() {
|
366
|
-
this.$.selection.select(this.selected);
|
367
|
-
},
|
368
|
-
|
369
|
-
clearSelection: function() {
|
370
|
-
this._selectedData = new WeakMap();
|
371
|
-
if (this.multi) {
|
372
|
-
var s$ = this.selection;
|
373
|
-
for (var i=0, l=s$.length, s; (i<l) && (s=s$[i]); i++) {
|
374
|
-
this.$.selection.setItemSelected(s, false);
|
375
|
-
}
|
376
|
-
} else {
|
377
|
-
this.$.selection.setItemSelected(this.selection, false);
|
378
|
-
}
|
379
|
-
this.$.selection.clear();
|
380
|
-
},
|
381
|
-
|
382
|
-
scrollToItem: function(index) {
|
383
|
-
this.scrollTop = index * this.height;
|
384
|
-
}
|
385
|
-
|
386
|
-
});
|
387
|
-
|
388
|
-
// determine proper transform mechanizm
|
389
|
-
if (document.documentElement.style.transform !== undefined) {
|
390
|
-
function setTransform(element, string, value) {
|
391
|
-
element.style.transform = string;
|
392
|
-
element._transformValue = value;
|
393
|
-
}
|
394
|
-
} else {
|
395
|
-
function setTransform(element, string, value) {
|
396
|
-
element.style.webkitTransform = string;
|
397
|
-
element._transformValue = value;
|
398
|
-
}
|
399
|
-
}
|
400
|
-
|
401
|
-
})();
|
402
|
-
</script>
|
403
|
-
</polymer-element>
|