polymer-paper-rails 0.2.6 → 1.0.0.pre.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/components/iron-a11y-announcer/README.md +29 -0
- data/app/assets/components/iron-a11y-announcer/bower.json +28 -0
- data/app/assets/components/iron-a11y-announcer/demo/index.html +40 -0
- data/app/assets/components/iron-a11y-announcer/demo/x-announces.html +50 -0
- data/app/assets/components/iron-a11y-announcer/index.html +28 -0
- data/app/assets/components/iron-a11y-announcer/iron-a11y-announcer.html +125 -0
- data/app/assets/components/iron-a11y-announcer/test/index.html +26 -0
- data/app/assets/components/iron-a11y-announcer/test/iron-a11y-announcer.html +59 -0
- data/app/assets/components/iron-a11y-keys-behavior/README.md +15 -0
- data/app/assets/components/iron-a11y-keys-behavior/bower.json +27 -0
- data/app/assets/components/iron-a11y-keys-behavior/demo/index.html +21 -0
- data/app/assets/components/iron-a11y-keys-behavior/demo/x-key-aware.html +69 -0
- data/app/assets/components/iron-a11y-keys-behavior/index.html +24 -0
- data/app/assets/components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html +418 -0
- data/app/assets/components/iron-a11y-keys-behavior/test/basic-test.html +248 -0
- data/app/assets/components/{paper-icon-button/metadata.html → iron-a11y-keys-behavior/test/index.html} +18 -10
- data/app/assets/components/iron-autogrow-textarea/README.md +24 -0
- data/app/assets/components/iron-autogrow-textarea/bower.json +37 -0
- data/app/assets/components/iron-autogrow-textarea/demo/index.html +81 -0
- data/app/assets/components/iron-autogrow-textarea/hero.svg +33 -0
- data/app/assets/components/iron-autogrow-textarea/index.html +30 -0
- data/app/assets/components/iron-autogrow-textarea/iron-autogrow-textarea.html +263 -0
- data/app/assets/components/iron-autogrow-textarea/test/basic.html +94 -0
- data/app/assets/components/iron-autogrow-textarea/test/index.html +25 -0
- data/app/assets/components/iron-behaviors/README.md +4 -0
- data/app/assets/components/iron-behaviors/bower.json +25 -0
- data/app/assets/components/iron-behaviors/demo/index.html +49 -0
- data/app/assets/components/iron-behaviors/demo/simple-button.html +70 -0
- data/app/assets/components/iron-behaviors/index.html +27 -0
- data/app/assets/components/iron-behaviors/iron-button-state.html +195 -0
- data/app/assets/components/iron-behaviors/iron-control-state.html +102 -0
- data/app/assets/components/iron-behaviors/test/active-state.html +154 -0
- data/app/assets/components/iron-behaviors/test/disabled-state.html +85 -0
- data/app/assets/components/iron-behaviors/test/focused-state.html +82 -0
- data/app/assets/components/iron-behaviors/test/index.html +25 -0
- data/app/assets/components/iron-behaviors/test/test-elements.html +44 -0
- data/app/assets/components/iron-fit-behavior/README.md +3 -0
- data/app/assets/components/iron-fit-behavior/bower.json +31 -0
- data/app/assets/components/iron-fit-behavior/demo/index.html +42 -0
- data/app/assets/components/iron-fit-behavior/demo/simple-fit.html +42 -0
- data/app/assets/components/iron-fit-behavior/index.html +30 -0
- data/app/assets/components/iron-fit-behavior/iron-fit-behavior.html +230 -0
- data/app/assets/components/iron-fit-behavior/test/index.html +34 -0
- data/app/assets/components/iron-fit-behavior/test/iron-fit-behavior.html +332 -0
- data/app/assets/components/iron-fit-behavior/test/test-fit.html +42 -0
- data/app/assets/components/iron-flex-layout/README.md +4 -0
- data/app/assets/components/iron-flex-layout/bower.json +21 -0
- data/app/assets/components/iron-flex-layout/classes/iron-flex-layout.html +307 -0
- data/app/assets/components/iron-flex-layout/classes/iron-shadow-flex-layout.html +302 -0
- data/app/assets/components/iron-flex-layout/demo/index.html +40 -0
- data/app/assets/components/iron-flex-layout/demo/x-app.html +106 -0
- data/app/assets/components/iron-flex-layout/iron-flex-layout.html +313 -0
- data/app/assets/components/iron-form-element-behavior/README.md +2 -0
- data/app/assets/components/iron-form-element-behavior/bower.json +27 -0
- data/app/assets/components/iron-form-element-behavior/demo/index.html +53 -0
- data/app/assets/components/iron-form-element-behavior/demo/simple-element.html +27 -0
- data/app/assets/components/iron-form-element-behavior/demo/simple-form.html +42 -0
- data/app/assets/components/iron-form-element-behavior/index.html +30 -0
- data/app/assets/components/iron-form-element-behavior/iron-form-element-behavior.html +50 -0
- data/app/assets/components/iron-icon/README.md +56 -0
- data/app/assets/components/iron-icon/bower.json +29 -0
- data/app/assets/components/iron-icon/demo/index.html +28 -0
- data/app/assets/components/iron-icon/demo/location.png +0 -0
- data/app/assets/components/iron-icon/hero.svg +19 -0
- data/app/assets/components/iron-icon/index.html +26 -0
- data/app/assets/components/iron-icon/iron-icon.html +187 -0
- data/app/assets/components/iron-icon/test/index.html +31 -0
- data/app/assets/components/iron-icon/test/iron-icon.html +120 -0
- data/app/assets/components/iron-icons/README.md +8 -0
- data/app/assets/components/{core-icons → iron-icons}/av-icons.html +19 -11
- data/app/assets/components/iron-icons/bower.json +37 -0
- data/app/assets/components/{core-icons → iron-icons}/communication-icons.html +14 -9
- data/app/assets/components/iron-icons/demo/index.html +132 -0
- data/app/assets/components/{core-icons → iron-icons}/device-icons.html +13 -9
- data/app/assets/components/{core-icons → iron-icons}/editor-icons.html +8 -5
- data/app/assets/components/{core-icons → iron-icons}/hardware-icons.html +11 -6
- data/app/assets/components/iron-icons/hero.svg +35 -0
- data/app/assets/components/{core-icons → iron-icons}/image-icons.html +23 -11
- data/app/assets/components/{core-menu/core-submenu.css → iron-icons/index.html} +14 -32
- data/app/assets/components/{core-icons/core-icons.html → iron-icons/iron-icons.html} +60 -35
- data/app/assets/components/{core-icons → iron-icons}/maps-icons.html +13 -12
- data/app/assets/components/{core-icons → iron-icons}/notification-icons.html +20 -7
- data/app/assets/components/{core-icons → iron-icons}/social-icons.html +6 -5
- data/app/assets/components/iron-iconset-svg/README.md +4 -0
- data/app/assets/components/iron-iconset-svg/bower.json +27 -0
- data/app/assets/components/iron-iconset-svg/demo/index.html +65 -0
- data/app/assets/components/{core-iconset-svg → iron-iconset-svg/demo}/svg-sample-icons.html +12 -11
- data/app/assets/components/iron-iconset-svg/index.html +26 -0
- data/app/assets/components/iron-iconset-svg/iron-iconset-svg.html +191 -0
- data/app/assets/components/iron-iconset-svg/test/index.html +30 -0
- data/app/assets/components/iron-iconset-svg/test/iron-iconset-svg.html +107 -0
- data/app/assets/components/iron-input/README.md +16 -0
- data/app/assets/components/iron-input/bower.json +36 -0
- data/app/assets/components/iron-input/demo/index.html +87 -0
- data/app/assets/components/iron-input/hero.svg +19 -0
- data/app/assets/components/iron-input/index.html +30 -0
- data/app/assets/components/iron-input/iron-input.html +235 -0
- data/app/assets/components/iron-input/test/index.html +24 -0
- data/app/assets/components/iron-input/test/iron-input.html +139 -0
- data/app/assets/components/iron-input/test/letters-only.html +30 -0
- data/app/assets/components/iron-media-query/README.md +11 -0
- data/app/assets/components/iron-media-query/bower.json +30 -0
- data/app/assets/components/iron-media-query/demo/index.html +38 -0
- data/app/assets/components/iron-media-query/hero.svg +29 -0
- data/app/assets/components/iron-media-query/index.html +29 -0
- data/app/assets/components/iron-media-query/iron-media-query.html +84 -0
- data/app/assets/components/iron-media-query/test/basic.html +71 -0
- data/app/assets/components/iron-media-query/test/index.html +30 -0
- data/app/assets/components/iron-menu-behavior/README.md +3 -0
- data/app/assets/components/iron-menu-behavior/bower.json +32 -0
- data/app/assets/components/iron-menu-behavior/demo/index.html +100 -0
- data/app/assets/components/iron-menu-behavior/demo/simple-menu.html +50 -0
- data/app/assets/components/iron-menu-behavior/demo/simple-menubar.html +54 -0
- data/app/assets/components/iron-menu-behavior/index.html +30 -0
- data/app/assets/components/iron-menu-behavior/iron-menu-behavior.html +214 -0
- data/app/assets/components/iron-menu-behavior/iron-menubar-behavior.html +65 -0
- data/app/assets/components/iron-menu-behavior/test/index.html +35 -0
- data/app/assets/components/iron-menu-behavior/test/iron-menu-behavior.html +108 -0
- data/app/assets/components/iron-menu-behavior/test/iron-menubar-behavior.html +108 -0
- data/app/assets/components/iron-menu-behavior/test/test-menu.html +40 -0
- data/app/assets/components/iron-menu-behavior/test/test-menubar.html +40 -0
- data/app/assets/components/iron-meta/README.md +46 -0
- data/app/assets/components/iron-meta/bower.json +28 -0
- data/app/assets/components/iron-meta/demo/index.html +45 -0
- data/app/assets/components/iron-meta/hero.svg +33 -0
- data/app/assets/components/iron-meta/index.html +27 -0
- data/app/assets/components/iron-meta/iron-meta.html +352 -0
- data/app/assets/components/iron-meta/test/basic.html +48 -0
- data/app/assets/components/iron-meta/test/index.html +30 -0
- data/app/assets/components/iron-meta/test/iron-meta.html +186 -0
- data/app/assets/components/iron-overlay-behavior/README.md +11 -0
- data/app/assets/components/iron-overlay-behavior/bower.json +36 -0
- data/app/assets/components/iron-overlay-behavior/demo/index.html +149 -0
- data/app/assets/components/iron-overlay-behavior/demo/simple-overlay.html +50 -0
- data/app/assets/components/iron-overlay-behavior/index.html +30 -0
- data/app/assets/components/iron-overlay-behavior/iron-overlay-backdrop.html +132 -0
- data/app/assets/components/iron-overlay-behavior/iron-overlay-behavior.html +432 -0
- data/app/assets/components/iron-overlay-behavior/iron-overlay-manager.html +107 -0
- data/app/assets/components/iron-overlay-behavior/test/index.html +34 -0
- data/app/assets/components/iron-overlay-behavior/test/iron-overlay-behavior.html +314 -0
- data/app/assets/components/iron-overlay-behavior/test/test-overlay.html +49 -0
- data/app/assets/components/iron-range-behavior/README.md +4 -0
- data/app/assets/components/iron-range-behavior/bower.json +30 -0
- data/app/assets/components/iron-range-behavior/demo/index.html +76 -0
- data/app/assets/components/iron-range-behavior/index.html +24 -0
- data/app/assets/components/iron-range-behavior/iron-range-behavior.html +101 -0
- data/app/assets/components/iron-range-behavior/test/basic.html +119 -0
- data/app/assets/components/iron-range-behavior/test/index.html +25 -0
- data/app/assets/components/iron-resizable-behavior/README.md +16 -0
- data/app/assets/components/iron-resizable-behavior/bower.json +26 -0
- data/app/assets/components/iron-resizable-behavior/demo/index.html +29 -0
- data/app/assets/components/iron-resizable-behavior/demo/src/x-app.html +114 -0
- data/app/assets/components/iron-resizable-behavior/index.html +25 -0
- data/app/assets/components/iron-resizable-behavior/iron-resizable-behavior.html +139 -0
- data/app/assets/components/iron-resizable-behavior/test/basic.html +263 -0
- data/app/assets/components/{core-overlay/core-key-helper.html → iron-resizable-behavior/test/index.html} +20 -11
- data/app/assets/components/iron-resizable-behavior/test/test-elements.html +143 -0
- data/app/assets/components/iron-selector/README.md +50 -0
- data/app/assets/components/iron-selector/bower.json +31 -0
- data/app/assets/components/iron-selector/demo/index.html +66 -0
- data/app/assets/components/iron-selector/index.html +28 -0
- data/app/assets/components/iron-selector/iron-multi-selectable.html +120 -0
- data/app/assets/components/iron-selector/iron-selectable.html +307 -0
- data/app/assets/components/iron-selector/iron-selection.html +115 -0
- data/app/assets/components/iron-selector/iron-selector.html +71 -0
- data/app/assets/components/iron-selector/test/activate-event.html +138 -0
- data/app/assets/components/iron-selector/test/basic.html +150 -0
- data/app/assets/components/iron-selector/test/content-element.html +43 -0
- data/app/assets/components/iron-selector/test/content.html +168 -0
- data/app/assets/components/iron-selector/test/index.html +36 -0
- data/app/assets/components/iron-selector/test/multi.html +135 -0
- data/app/assets/components/iron-selector/test/next-previous.html +134 -0
- data/app/assets/components/iron-selector/test/selected-attribute.html +72 -0
- data/app/assets/components/iron-selector/test/template-repeat.html +110 -0
- data/app/assets/components/iron-validatable-behavior/README.md +3 -0
- data/app/assets/components/iron-validatable-behavior/bower.json +35 -0
- data/app/assets/components/iron-validatable-behavior/demo/cats-only.html +46 -0
- data/app/assets/components/iron-validatable-behavior/demo/index.html +71 -0
- data/app/assets/components/iron-validatable-behavior/demo/validatable-input.html +46 -0
- data/app/assets/components/iron-validatable-behavior/index.html +30 -0
- data/app/assets/components/iron-validatable-behavior/iron-validatable-behavior.html +101 -0
- data/app/assets/components/iron-validatable-behavior/test/index.html +35 -0
- data/app/assets/components/iron-validatable-behavior/test/iron-validatable-behavior.html +52 -0
- data/app/assets/components/iron-validatable-behavior/test/test-validatable.html +28 -0
- data/app/assets/components/neon-animation/README.md +304 -0
- data/app/assets/components/neon-animation/animations/cascaded-animation.html +84 -0
- data/app/assets/components/neon-animation/animations/fade-in-animation.html +49 -0
- data/app/assets/components/neon-animation/animations/fade-out-animation.html +49 -0
- data/app/assets/components/neon-animation/animations/hero-animation.html +83 -0
- data/app/assets/components/neon-animation/animations/opaque-animation.html +46 -0
- data/app/assets/components/neon-animation/animations/ripple-animation.html +92 -0
- data/app/assets/components/neon-animation/animations/scale-down-animation.html +65 -0
- data/app/assets/components/neon-animation/animations/scale-up-animation.html +58 -0
- data/app/assets/components/neon-animation/animations/slide-down-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/slide-from-left-animation.html +60 -0
- data/app/assets/components/neon-animation/animations/slide-from-right-animation.html +60 -0
- data/app/assets/components/neon-animation/animations/slide-left-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/slide-right-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/slide-up-animation.html +59 -0
- data/app/assets/components/neon-animation/animations/transform-animation.html +61 -0
- data/app/assets/components/neon-animation/bower.json +51 -0
- data/app/assets/components/neon-animation/demo/declarative/index.html +108 -0
- data/app/assets/components/neon-animation/demo/doc/basic.html +47 -0
- data/app/assets/components/neon-animation/demo/doc/my-animatable.html +73 -0
- data/app/assets/components/neon-animation/demo/doc/my-dialog.html +97 -0
- data/app/assets/components/neon-animation/demo/doc/types.html +53 -0
- data/app/assets/components/neon-animation/demo/dropdown/animated-dropdown.html +97 -0
- data/app/assets/components/neon-animation/demo/dropdown/index.html +54 -0
- data/app/assets/components/neon-animation/demo/grid/animated-grid.html +166 -0
- data/app/assets/components/neon-animation/demo/grid/fullsize-page-with-card.html +124 -0
- data/app/assets/components/neon-animation/demo/grid/index.html +70 -0
- data/app/assets/components/neon-animation/demo/index.html +6 -0
- data/app/assets/components/neon-animation/demo/list/full-view.html +122 -0
- data/app/assets/components/neon-animation/demo/list/index.html +29 -0
- data/app/assets/components/neon-animation/demo/list/list-demo.html +112 -0
- data/app/assets/components/neon-animation/demo/list/list-view.html +127 -0
- data/app/assets/components/neon-animation/demo/load/animated-grid.html +147 -0
- data/app/assets/components/neon-animation/demo/load/full-page.html +86 -0
- data/app/assets/components/neon-animation/demo/load/index.html +45 -0
- data/app/assets/components/neon-animation/demo/reprojection/animated-grid.html +166 -0
- data/app/assets/components/neon-animation/demo/reprojection/fullsize-page-with-card.html +124 -0
- data/app/assets/components/neon-animation/demo/reprojection/index.html +66 -0
- data/app/assets/components/neon-animation/demo/reprojection/reprojected-pages.html +42 -0
- data/app/assets/components/neon-animation/demo/shared.css +40 -0
- data/app/assets/components/neon-animation/demo/tiles/circles-page.html +110 -0
- data/app/assets/components/neon-animation/demo/tiles/index.html +77 -0
- data/app/assets/components/neon-animation/demo/tiles/squares-page.html +104 -0
- data/app/assets/components/neon-animation/guides/neon-animation.md +313 -0
- data/app/assets/components/neon-animation/index.html +30 -0
- data/app/assets/components/neon-animation/neon-animatable-behavior.html +156 -0
- data/app/assets/components/neon-animation/neon-animatable.html +54 -0
- data/app/assets/components/neon-animation/neon-animated-pages.html +208 -0
- data/app/assets/components/neon-animation/neon-animation-behavior.html +88 -0
- data/app/assets/components/neon-animation/neon-animation-runner-behavior.html +110 -0
- data/app/assets/components/neon-animation/neon-animation.html +17 -0
- data/app/assets/components/neon-animation/neon-animations.html +25 -0
- data/app/assets/components/neon-animation/neon-shared-element-animatable-behavior.html +37 -0
- data/app/assets/components/neon-animation/neon-shared-element-animation-behavior.html +66 -0
- data/app/assets/components/{core-collapse/core-collapse.css → neon-animation/web-animations.html} +5 -10
- data/app/assets/components/paper-behaviors/README.md +4 -0
- data/app/assets/components/paper-behaviors/bower.json +39 -0
- data/app/assets/components/paper-behaviors/demo/index.html +57 -0
- data/app/assets/components/paper-behaviors/demo/paper-button.html +71 -0
- data/app/assets/components/paper-behaviors/demo/paper-radio-button.html +116 -0
- data/app/assets/components/paper-behaviors/index.html +26 -0
- data/app/assets/components/paper-behaviors/paper-button-behavior.html +55 -0
- data/app/assets/components/paper-behaviors/paper-inky-focus-behavior.html +44 -0
- data/app/assets/components/paper-behaviors/test/index.html +26 -0
- data/app/assets/components/paper-behaviors/test/paper-button-behavior.html +82 -0
- data/app/assets/components/paper-behaviors/test/paper-radio-button-behavior.html +62 -0
- data/app/assets/components/paper-behaviors/test/test-button.html +34 -0
- data/app/assets/components/paper-behaviors/test/test-radio-button.html +41 -0
- data/app/assets/components/paper-button/README.md +45 -0
- data/app/assets/components/paper-button/bower.json +39 -0
- data/app/assets/components/paper-button/demo/index.html +158 -0
- data/app/assets/components/paper-button/index.html +26 -0
- data/app/assets/components/paper-button/paper-button.html +113 -133
- data/app/assets/components/paper-button/test/index.html +25 -0
- data/app/assets/components/paper-button/test/paper-button.html +83 -0
- data/app/assets/components/paper-checkbox/README.md +31 -0
- data/app/assets/components/paper-checkbox/bower.json +37 -0
- data/app/assets/components/paper-checkbox/demo/index.html +94 -0
- data/app/assets/components/paper-checkbox/index.html +30 -0
- data/app/assets/components/paper-checkbox/paper-checkbox.css +141 -136
- data/app/assets/components/paper-checkbox/paper-checkbox.html +163 -102
- data/app/assets/components/paper-checkbox/test/basic.html +101 -0
- data/app/assets/components/paper-checkbox/test/index.html +24 -0
- data/app/assets/components/paper-dialog/README.md +3 -0
- data/app/assets/components/paper-dialog/bower.json +35 -0
- data/app/assets/components/paper-dialog/demo/index.html +158 -0
- data/app/assets/components/paper-dialog/hero.svg +58 -0
- data/app/assets/components/paper-dialog/index.html +30 -0
- data/app/assets/components/paper-dialog/paper-dialog.html +87 -66
- data/app/assets/components/paper-dialog/test/index.html +34 -0
- data/app/assets/components/paper-dialog/test/paper-dialog.html +53 -0
- data/app/assets/components/paper-dialog-behavior/README.md +24 -0
- data/app/assets/components/paper-dialog-behavior/bower.json +37 -0
- data/app/assets/components/paper-dialog-behavior/demo/index.html +96 -0
- data/app/assets/components/paper-dialog-behavior/demo/simple-dialog.html +42 -0
- data/app/assets/components/paper-dialog-behavior/hero.svg +51 -0
- data/app/assets/components/paper-dialog-behavior/index.html +30 -0
- data/app/assets/components/paper-dialog-behavior/paper-dialog-behavior.html +236 -0
- data/app/assets/components/paper-dialog-behavior/paper-dialog-common.css +58 -0
- data/app/assets/components/paper-dialog-behavior/test/index.html +34 -0
- data/app/assets/components/paper-dialog-behavior/test/paper-dialog-behavior.html +217 -0
- data/app/assets/components/paper-dialog-behavior/test/test-dialog.html +42 -0
- data/app/assets/components/paper-dialog-scrollable/README.md +8 -0
- data/app/assets/components/paper-dialog-scrollable/bower.json +36 -0
- data/app/assets/components/paper-dialog-scrollable/demo/index.html +290 -0
- data/app/assets/components/paper-dialog-scrollable/hero.svg +69 -0
- data/app/assets/components/paper-dialog-scrollable/index.html +30 -0
- data/app/assets/components/paper-dialog-scrollable/paper-dialog-scrollable.html +150 -0
- data/app/assets/components/paper-dialog-scrollable/test/index.html +34 -0
- data/app/assets/components/paper-dialog-scrollable/test/paper-dialog-scrollable.html +171 -0
- data/app/assets/components/paper-drawer-panel/README.md +71 -0
- data/app/assets/components/paper-drawer-panel/bower.json +33 -0
- data/app/assets/components/paper-drawer-panel/demo/index.html +85 -0
- data/app/assets/components/paper-drawer-panel/hero.svg +21 -0
- data/app/assets/components/paper-drawer-panel/index.html +29 -0
- data/app/assets/components/{core-drawer-panel/core-drawer-panel.css → paper-drawer-panel/paper-drawer-panel.css} +33 -51
- data/app/assets/components/paper-drawer-panel/paper-drawer-panel.html +585 -0
- data/app/assets/components/paper-elements/README.md +21 -0
- data/app/assets/components/paper-elements/bower.json +51 -0
- data/app/assets/components/paper-fab/README.md +44 -0
- data/app/assets/components/paper-fab/bower.json +39 -0
- data/app/assets/components/paper-fab/demo/index.html +93 -0
- data/app/assets/components/paper-fab/index.html +24 -0
- data/app/assets/components/paper-fab/paper-fab.html +119 -140
- data/app/assets/components/paper-fab/test/a11y.html +71 -0
- data/app/assets/components/paper-fab/test/basic.html +76 -0
- data/app/assets/components/paper-fab/test/index.html +26 -0
- data/app/assets/components/paper-header-panel/README.md +105 -0
- data/app/assets/components/paper-header-panel/bower.json +28 -0
- data/app/assets/components/paper-header-panel/demo/index.html +148 -0
- data/app/assets/components/paper-header-panel/hero.svg +38 -0
- data/app/assets/components/paper-header-panel/index.html +36 -0
- data/app/assets/components/paper-header-panel/paper-header-panel.html +496 -0
- data/app/assets/components/paper-header-panel/test/basic.html +156 -0
- data/app/assets/components/paper-header-panel/test/index.html +34 -0
- data/app/assets/components/paper-icon-button/README.md +49 -0
- data/app/assets/components/paper-icon-button/bower.json +33 -0
- data/app/assets/components/paper-icon-button/demo/index.html +154 -0
- data/app/assets/components/paper-icon-button/index.html +23 -0
- data/app/assets/components/paper-icon-button/paper-icon-button.html +86 -99
- data/app/assets/components/paper-icon-button/test/a11y.html +69 -0
- data/app/assets/components/paper-icon-button/test/basic.html +77 -0
- data/app/assets/components/paper-icon-button/test/index.html +26 -0
- data/app/assets/components/paper-input/README.md +5 -0
- data/app/assets/components/{core-menu/core-menu.css → paper-input/all-imports.html} +6 -12
- data/app/assets/components/paper-input/bower.json +44 -0
- data/app/assets/components/paper-input/demo/index.html +96 -0
- data/app/assets/components/paper-input/demo/ssn-input.html +94 -0
- data/app/assets/components/paper-input/demo/ssn-validator.html +31 -0
- data/app/assets/components/paper-input/hero.svg +19 -0
- data/app/assets/components/paper-input/index.html +28 -0
- data/app/assets/components/paper-input/paper-input-addon-behavior.html +47 -0
- data/app/assets/components/paper-input/paper-input-behavior.html +317 -0
- data/app/assets/components/paper-input/paper-input-char-counter.html +95 -0
- data/app/assets/components/paper-input/paper-input-container.html +495 -0
- data/app/assets/components/paper-input/paper-input-error.html +99 -0
- data/app/assets/components/paper-input/paper-input.html +96 -115
- data/app/assets/components/paper-input/paper-textarea.html +106 -0
- data/app/assets/components/paper-input/test/index.html +28 -0
- data/app/assets/components/paper-input/test/letters-only.html +30 -0
- data/app/assets/components/paper-input/test/paper-input-char-counter.html +112 -0
- data/app/assets/components/paper-input/test/paper-input-container.html +237 -0
- data/app/assets/components/paper-input/test/paper-input-error.html +60 -0
- data/app/assets/components/paper-input/test/paper-input.html +213 -0
- data/app/assets/components/paper-input/test/paper-textarea.html +169 -0
- data/app/assets/components/paper-item/README.md +4 -0
- data/app/assets/components/{font-roboto/roboto.html → paper-item/all-imports.html} +6 -2
- data/app/assets/components/paper-item/bower.json +40 -0
- data/app/assets/components/paper-item/demo/index.html +285 -0
- data/app/assets/components/paper-item/index.html +30 -0
- data/app/assets/components/paper-item/paper-icon-item.html +86 -0
- data/app/assets/components/paper-item/paper-item-body.html +93 -0
- data/app/assets/components/{core-animation/web-animations.html → paper-item/paper-item-shared.css} +13 -4
- data/app/assets/components/paper-item/paper-item.html +66 -117
- data/app/assets/components/paper-item/test/index.html +34 -0
- data/app/assets/components/paper-item/test/paper-item.html +66 -0
- data/app/assets/components/paper-material/README.md +13 -0
- data/app/assets/components/paper-material/bower.json +36 -0
- data/app/assets/components/paper-material/demo/index.html +113 -0
- data/app/assets/components/paper-material/index.html +30 -0
- data/app/assets/components/paper-material/paper-material.html +98 -0
- data/app/assets/components/paper-material/test/index.html +25 -0
- data/app/assets/components/paper-material/test/paper-material.html +92 -0
- data/app/assets/components/paper-menu/README.md +3 -0
- data/app/assets/components/paper-menu/bower.json +32 -0
- data/app/assets/components/paper-menu/demo/index.html +81 -0
- data/app/assets/components/paper-menu/hero.svg +35 -0
- data/app/assets/components/paper-menu/index.html +30 -0
- data/app/assets/components/paper-menu/paper-menu.html +133 -0
- data/app/assets/components/paper-menu/test/index.html +34 -0
- data/app/assets/components/paper-menu/test/paper-menu.html +67 -0
- data/app/assets/components/paper-progress/README.md +47 -0
- data/app/assets/components/paper-progress/bower.json +31 -0
- data/app/assets/components/paper-progress/demo/index.html +122 -0
- data/app/assets/components/paper-progress/hero.svg +21 -0
- data/app/assets/components/paper-progress/index.html +28 -0
- data/app/assets/components/paper-progress/paper-progress.html +153 -78
- data/app/assets/components/paper-progress/test/basic.html +121 -0
- data/app/assets/components/paper-progress/test/index.html +25 -0
- data/app/assets/components/paper-radio-button/README.md +29 -0
- data/app/assets/components/paper-radio-button/bower.json +35 -0
- data/app/assets/components/paper-radio-button/demo/index.html +94 -0
- data/app/assets/components/paper-radio-button/hero.svg +22 -0
- data/app/assets/components/paper-radio-button/index.html +29 -0
- data/app/assets/components/paper-radio-button/paper-radio-button.css +26 -25
- data/app/assets/components/paper-radio-button/paper-radio-button.html +123 -141
- data/app/assets/components/paper-radio-button/test/basic.html +101 -0
- data/app/assets/components/paper-radio-button/test/index.html +24 -0
- data/app/assets/components/paper-radio-group/README.md +20 -0
- data/app/assets/components/paper-radio-group/bower.json +36 -0
- data/app/assets/components/paper-radio-group/demo/index.html +108 -0
- data/app/assets/components/paper-radio-group/hero.svg +25 -0
- data/app/assets/components/paper-radio-group/index.html +30 -0
- data/app/assets/components/paper-radio-group/paper-radio-group.html +153 -68
- data/app/assets/components/paper-radio-group/test/basic.html +167 -0
- data/app/assets/components/paper-radio-group/test/index.html +25 -0
- data/app/assets/components/paper-ripple/README.md +65 -0
- data/app/assets/components/paper-ripple/bower.json +29 -0
- data/app/assets/components/paper-ripple/demo/index.html +413 -0
- data/app/assets/components/paper-ripple/hero.svg +30 -0
- data/app/assets/components/paper-ripple/index.html +27 -0
- data/app/assets/components/paper-ripple/paper-ripple.html +552 -315
- data/app/assets/components/paper-ripple/test/index.html +25 -0
- data/app/assets/components/paper-ripple/test/paper-ripple.html +166 -0
- data/app/assets/components/paper-scroll-header-panel/README.md +56 -0
- data/app/assets/components/paper-scroll-header-panel/bower.json +38 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo1.html +81 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo2.html +78 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo3.html +79 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo4.html +108 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo5.html +107 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo6.html +112 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo7.html +114 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo8.html +125 -0
- data/app/assets/components/paper-scroll-header-panel/demo/demo9.html +105 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg2.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg3.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg5.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg6.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/images/bg9.jpg +0 -0
- data/app/assets/components/paper-scroll-header-panel/demo/index.html +107 -0
- data/app/assets/components/paper-scroll-header-panel/demo/lorem-ipsum.html +42 -0
- data/app/assets/components/paper-scroll-header-panel/demo/sample-content.html +72 -0
- data/app/assets/components/paper-scroll-header-panel/hero.svg +41 -0
- data/app/assets/components/paper-scroll-header-panel/index.html +28 -0
- data/app/assets/components/paper-scroll-header-panel/paper-scroll-header-panel.html +455 -0
- data/app/assets/components/paper-scroll-header-panel/test/basic.html +112 -0
- data/app/assets/components/paper-scroll-header-panel/test/index.html +25 -0
- data/app/assets/components/paper-slider/README.md +69 -0
- data/app/assets/components/paper-slider/bower.json +34 -0
- data/app/assets/components/paper-slider/demo/index.html +113 -0
- data/app/assets/components/paper-slider/hero.svg +20 -0
- data/app/assets/components/paper-slider/index.html +29 -0
- data/app/assets/components/paper-slider/paper-slider.css +39 -26
- data/app/assets/components/paper-slider/paper-slider.html +305 -228
- data/app/assets/components/paper-slider/test/basic.html +139 -0
- data/app/assets/components/paper-slider/test/index.html +25 -0
- data/app/assets/components/paper-spinner/README.md +45 -0
- data/app/assets/components/paper-spinner/bower.json +33 -0
- data/app/assets/components/paper-spinner/demo/index.html +98 -0
- data/app/assets/components/paper-spinner/hero.svg +27 -0
- data/app/assets/components/paper-spinner/index.html +30 -0
- data/app/assets/components/paper-spinner/paper-spinner.css +42 -40
- data/app/assets/components/paper-spinner/paper-spinner.html +168 -103
- data/app/assets/components/paper-spinner/test/index.html +34 -0
- data/app/assets/components/paper-spinner/test/paper-spinner.html +63 -0
- data/app/assets/components/paper-styles/README.md +3 -0
- data/app/assets/components/paper-styles/bower.json +27 -0
- data/app/assets/components/paper-styles/classes/global.html +96 -0
- data/app/assets/components/paper-styles/classes/shadow-layout.html +302 -0
- data/app/assets/components/paper-styles/classes/shadow.html +39 -0
- data/app/assets/components/paper-styles/classes/typography.html +171 -0
- data/app/assets/components/paper-styles/color.html +333 -0
- data/app/assets/components/paper-styles/default-theme.html +39 -0
- data/app/assets/components/paper-styles/demo-pages.html +72 -0
- data/app/assets/components/paper-styles/demo.css +25 -0
- data/app/assets/components/{paper-dropdown/paper-dropdown-transition.css → paper-styles/paper-styles-classes.html} +8 -9
- data/app/assets/components/paper-styles/paper-styles.html +17 -0
- data/app/assets/components/paper-styles/shadow.html +61 -0
- data/app/assets/components/paper-styles/typography.html +240 -0
- data/app/assets/components/paper-tabs/README.md +56 -0
- data/app/assets/components/paper-tabs/bower.json +37 -0
- data/app/assets/components/paper-tabs/demo/index.html +177 -0
- data/app/assets/components/paper-tabs/hero.svg +23 -0
- data/app/assets/components/paper-tabs/index.html +25 -0
- data/app/assets/components/paper-tabs/paper-tab.html +122 -46
- data/app/assets/components/paper-tabs/paper-tabs-icons.html +18 -0
- data/app/assets/components/paper-tabs/paper-tabs.html +387 -257
- data/app/assets/components/paper-tabs/test/attr-for-selected.html +82 -0
- data/app/assets/components/paper-tabs/test/basic.html +157 -0
- data/app/assets/components/paper-tabs/test/index.html +32 -0
- data/app/assets/components/paper-toast/README.md +4 -0
- data/app/assets/components/paper-toast/bower.json +28 -0
- data/app/assets/components/paper-toast/demo/index.html +56 -0
- data/app/assets/components/paper-toast/hero.svg +20 -0
- data/app/assets/components/paper-toast/index.html +26 -0
- data/app/assets/components/paper-toast/paper-toast.html +133 -265
- data/app/assets/components/paper-toggle-button/README.md +26 -0
- data/app/assets/components/paper-toggle-button/bower.json +36 -0
- data/app/assets/components/paper-toggle-button/demo/index.html +106 -0
- data/app/assets/components/paper-toggle-button/hero.svg +22 -0
- data/app/assets/components/paper-toggle-button/index.html +26 -0
- data/app/assets/components/paper-toggle-button/paper-toggle-button.css +36 -23
- data/app/assets/components/paper-toggle-button/paper-toggle-button.html +152 -148
- data/app/assets/components/paper-toggle-button/test/basic.html +86 -0
- data/app/assets/components/paper-toggle-button/test/index.html +25 -0
- data/app/assets/components/paper-toolbar/README.md +51 -0
- data/app/assets/components/paper-toolbar/bower.json +35 -0
- data/app/assets/components/paper-toolbar/demo/index.html +81 -0
- data/app/assets/components/paper-toolbar/index.html +38 -0
- data/app/assets/components/paper-toolbar/paper-toolbar.html +375 -0
- data/app/assets/components/paper-toolbar/test/index.html +24 -0
- data/app/assets/components/paper-toolbar/test/paper-toolbar.html +147 -0
- data/app/assets/components/polymer/LICENSE.txt +27 -0
- data/app/assets/components/polymer/bower.json +26 -0
- data/app/assets/components/polymer/build.log +27 -0
- data/app/assets/components/polymer/polymer-micro.html +523 -0
- data/app/assets/components/polymer/polymer-mini.html +1368 -0
- data/app/assets/components/polymer/polymer.html +3768 -0
- data/app/assets/components/web-animations-js/COPYING +202 -0
- data/app/assets/components/web-animations-js/History.md +108 -0
- data/app/assets/components/web-animations-js/README.md +161 -0
- data/app/assets/components/web-animations-js/bower.json +31 -0
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +2 -2
- data/app/assets/components/web-animations-js/web-animations-next-lite.min.js.map +1 -0
- data/app/assets/components/web-animations-js/web-animations-next.min.js +2 -2
- data/app/assets/components/web-animations-js/web-animations-next.min.js.map +1 -0
- data/app/assets/components/web-animations-js/web-animations.html +50 -0
- data/app/assets/components/web-animations-js/web-animations.min.js +2 -2
- data/app/assets/components/web-animations-js/web-animations.min.js.gz +0 -0
- data/app/assets/components/web-animations-js/web-animations.min.js.map +1 -0
- data/app/assets/components/webcomponentsjs/CustomElements.js +343 -21
- data/app/assets/components/webcomponentsjs/CustomElements.min.js +2 -2
- data/app/assets/components/webcomponentsjs/HTMLImports.js +348 -34
- data/app/assets/components/webcomponentsjs/HTMLImports.min.js +2 -2
- data/app/assets/components/webcomponentsjs/MutationObserver.js +344 -0
- data/app/assets/components/webcomponentsjs/MutationObserver.min.js +11 -0
- data/app/assets/components/webcomponentsjs/README.md +125 -0
- data/app/assets/components/webcomponentsjs/ShadowDOM.js +230 -93
- data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +6 -4
- data/app/assets/components/webcomponentsjs/bower.json +14 -0
- data/app/assets/components/webcomponentsjs/build.log +33 -0
- data/app/assets/components/webcomponentsjs/package.json +1 -1
- data/app/assets/components/webcomponentsjs/webcomponents-lite.js +671 -99
- data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +4 -2
- data/app/assets/components/webcomponentsjs/webcomponents.js +1149 -151
- data/app/assets/components/webcomponentsjs/webcomponents.min.js +6 -5
- data/lib/polymer-paper-rails/version.rb +1 -1
- metadata +532 -130
- data/app/assets/components/core-a11y-keys/core-a11y-keys.html +0 -335
- data/app/assets/components/core-animation/core-animation-group.html +0 -169
- data/app/assets/components/core-animation/core-animation.html +0 -525
- data/app/assets/components/core-collapse/core-collapse.html +0 -298
- data/app/assets/components/core-component-page/bowager-logo.png +0 -0
- data/app/assets/components/core-component-page/core-component-page.html +0 -37
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +0 -418
- data/app/assets/components/core-drawer-panel/metadata.html +0 -37
- data/app/assets/components/core-dropdown/core-dropdown-base.html +0 -117
- data/app/assets/components/core-dropdown/core-dropdown.html +0 -311
- data/app/assets/components/core-field/core-field.css +0 -38
- data/app/assets/components/core-field/core-field.html +0 -35
- data/app/assets/components/core-field/metadata.html +0 -26
- data/app/assets/components/core-focusable/core-focusable.html +0 -4
- data/app/assets/components/core-focusable/core-focusable.js +0 -134
- data/app/assets/components/core-focusable/polymer-mixin.js +0 -35
- data/app/assets/components/core-header-panel/core-header-panel.css +0 -78
- data/app/assets/components/core-header-panel/core-header-panel.html +0 -277
- data/app/assets/components/core-header-panel/metadata.html +0 -37
- data/app/assets/components/core-icon/core-icon.css +0 -16
- data/app/assets/components/core-icon/core-icon.html +0 -201
- data/app/assets/components/core-icon/metadata.html +0 -21
- data/app/assets/components/core-icon-button/core-icon-button.css +0 -75
- data/app/assets/components/core-icon-button/core-icon-button.html +0 -81
- data/app/assets/components/core-icon-button/metadata.html +0 -20
- data/app/assets/components/core-iconset/core-iconset.html +0 -241
- 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/core-iconset-svg.html +0 -168
- data/app/assets/components/core-input/core-input.css +0 -41
- data/app/assets/components/core-input/core-input.html +0 -148
- data/app/assets/components/core-input/metadata.html +0 -23
- data/app/assets/components/core-item/core-item.css +0 -45
- data/app/assets/components/core-item/core-item.html +0 -73
- data/app/assets/components/core-item/metadata.html +0 -24
- data/app/assets/components/core-media-query/core-media-query.html +0 -87
- data/app/assets/components/core-menu/core-menu.html +0 -73
- data/app/assets/components/core-menu/core-submenu.html +0 -126
- data/app/assets/components/core-menu/metadata.html +0 -62
- data/app/assets/components/core-meta/core-meta.html +0 -145
- data/app/assets/components/core-overlay/core-overlay-layer.html +0 -116
- data/app/assets/components/core-overlay/core-overlay.html +0 -776
- data/app/assets/components/core-overlay/gulpfile.js +0 -2
- data/app/assets/components/core-range/core-range.html +0 -108
- data/app/assets/components/core-resizable/core-resizable.html +0 -248
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.css +0 -58
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +0 -360
- data/app/assets/components/core-scroll-header-panel/metadata.html +0 -41
- data/app/assets/components/core-selection/core-selection.html +0 -149
- data/app/assets/components/core-selector/core-selector.html +0 -548
- data/app/assets/components/core-selector/metadata.html +0 -20
- data/app/assets/components/core-style/core-style.html +0 -387
- data/app/assets/components/core-style/elements.html +0 -55
- data/app/assets/components/core-style/my-theme.html +0 -73
- data/app/assets/components/core-toolbar/core-toolbar.css +0 -117
- data/app/assets/components/core-toolbar/core-toolbar.html +0 -155
- data/app/assets/components/core-toolbar/metadata.html +0 -28
- data/app/assets/components/core-transition/core-transition-css.html +0 -220
- data/app/assets/components/core-transition/core-transition-overlay.css +0 -46
- data/app/assets/components/core-transition/core-transition.html +0 -140
- data/app/assets/components/paper-button/metadata.html +0 -17
- data/app/assets/components/paper-button/paper-button-base.html +0 -164
- data/app/assets/components/paper-dialog/paper-action-dialog.html +0 -104
- data/app/assets/components/paper-dialog/paper-dialog-base.html +0 -81
- data/app/assets/components/paper-dialog/paper-dialog-transition.css +0 -59
- data/app/assets/components/paper-dialog/paper-dialog-transition.html +0 -27
- data/app/assets/components/paper-dropdown/paper-dropdown-transition.html +0 -166
- data/app/assets/components/paper-dropdown/paper-dropdown.html +0 -117
- data/app/assets/components/paper-dropdown-menu/paper-dropdown-menu.css +0 -44
- data/app/assets/components/paper-dropdown-menu/paper-dropdown-menu.html +0 -184
- data/app/assets/components/paper-elements/metadata.html +0 -23
- data/app/assets/components/paper-elements/paper-elements.html +0 -40
- data/app/assets/components/paper-fab/metadata.html +0 -36
- data/app/assets/components/paper-input/metadata.html +0 -20
- data/app/assets/components/paper-input/paper-autogrow-textarea.html +0 -162
- data/app/assets/components/paper-input/paper-char-counter.html +0 -121
- data/app/assets/components/paper-input/paper-input-decorator.css +0 -132
- data/app/assets/components/paper-input/paper-input-decorator.html +0 -547
- data/app/assets/components/paper-item/metadata.html +0 -23
- data/app/assets/components/paper-menu-button/metadata.html +0 -21
- data/app/assets/components/paper-menu-button/paper-menu-button.css +0 -101
- data/app/assets/components/paper-menu-button/paper-menu-button.html +0 -79
- data/app/assets/components/paper-progress/metadata.html +0 -17
- data/app/assets/components/paper-progress/paper-progress.css +0 -68
- data/app/assets/components/paper-radio-button/metadata.html +0 -17
- data/app/assets/components/paper-radio-group/metadata.html +0 -22
- data/app/assets/components/paper-ripple/metadata.html +0 -20
- data/app/assets/components/paper-shadow/metadata.html +0 -17
- data/app/assets/components/paper-shadow/paper-shadow.css +0 -66
- data/app/assets/components/paper-shadow/paper-shadow.html +0 -86
- data/app/assets/components/paper-slider/metadata.html +0 -20
- data/app/assets/components/paper-tabs/metadata.html +0 -58
- data/app/assets/components/paper-tabs/paper-tab.css +0 -59
- data/app/assets/components/paper-tabs/paper-tabs.css +0 -80
- data/app/assets/components/paper-toast/metadata.html +0 -20
- data/app/assets/components/paper-toast/paper-toast.css +0 -80
- data/app/assets/components/paper-toggle-button/metadata.html +0 -17
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +0 -158
- data/app/assets/components/sampler-scaffold/sampler-scaffold.html +0 -224
@@ -7,17 +7,20 @@
|
|
7
7
|
* Code distributed by Google as part of the polymer project is also
|
8
8
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
9
9
|
*/
|
10
|
-
// @version 0.
|
10
|
+
// @version 0.7.3
|
11
11
|
window.WebComponents = window.WebComponents || {};
|
12
12
|
|
13
13
|
(function(scope) {
|
14
14
|
var flags = scope.flags || {};
|
15
|
-
var file = "webcomponents.js";
|
15
|
+
var file = "webcomponents-lite.js";
|
16
16
|
var script = document.querySelector('script[src*="' + file + '"]');
|
17
17
|
if (!flags.noOpts) {
|
18
|
-
location.search.slice(1).split("&").forEach(function(
|
19
|
-
|
20
|
-
|
18
|
+
location.search.slice(1).split("&").forEach(function(option) {
|
19
|
+
var parts = option.split("=");
|
20
|
+
var match;
|
21
|
+
if (parts[0] && (match = parts[0].match(/wc-(.+)/))) {
|
22
|
+
flags[match[1]] = parts[1] || true;
|
23
|
+
}
|
21
24
|
});
|
22
25
|
if (script) {
|
23
26
|
for (var i = 0, a; a = script.attributes[i]; i++) {
|
@@ -49,7 +52,565 @@ window.WebComponents = window.WebComponents || {};
|
|
49
52
|
window.CustomElements.flags.register = flags.register;
|
50
53
|
}
|
51
54
|
scope.flags = flags;
|
52
|
-
})(WebComponents);
|
55
|
+
})(window.WebComponents);
|
56
|
+
|
57
|
+
(function(scope) {
|
58
|
+
"use strict";
|
59
|
+
var hasWorkingUrl = false;
|
60
|
+
if (!scope.forceJURL) {
|
61
|
+
try {
|
62
|
+
var u = new URL("b", "http://a");
|
63
|
+
u.pathname = "c%20d";
|
64
|
+
hasWorkingUrl = u.href === "http://a/c%20d";
|
65
|
+
} catch (e) {}
|
66
|
+
}
|
67
|
+
if (hasWorkingUrl) return;
|
68
|
+
var relative = Object.create(null);
|
69
|
+
relative["ftp"] = 21;
|
70
|
+
relative["file"] = 0;
|
71
|
+
relative["gopher"] = 70;
|
72
|
+
relative["http"] = 80;
|
73
|
+
relative["https"] = 443;
|
74
|
+
relative["ws"] = 80;
|
75
|
+
relative["wss"] = 443;
|
76
|
+
var relativePathDotMapping = Object.create(null);
|
77
|
+
relativePathDotMapping["%2e"] = ".";
|
78
|
+
relativePathDotMapping[".%2e"] = "..";
|
79
|
+
relativePathDotMapping["%2e."] = "..";
|
80
|
+
relativePathDotMapping["%2e%2e"] = "..";
|
81
|
+
function isRelativeScheme(scheme) {
|
82
|
+
return relative[scheme] !== undefined;
|
83
|
+
}
|
84
|
+
function invalid() {
|
85
|
+
clear.call(this);
|
86
|
+
this._isInvalid = true;
|
87
|
+
}
|
88
|
+
function IDNAToASCII(h) {
|
89
|
+
if ("" == h) {
|
90
|
+
invalid.call(this);
|
91
|
+
}
|
92
|
+
return h.toLowerCase();
|
93
|
+
}
|
94
|
+
function percentEscape(c) {
|
95
|
+
var unicode = c.charCodeAt(0);
|
96
|
+
if (unicode > 32 && unicode < 127 && [ 34, 35, 60, 62, 63, 96 ].indexOf(unicode) == -1) {
|
97
|
+
return c;
|
98
|
+
}
|
99
|
+
return encodeURIComponent(c);
|
100
|
+
}
|
101
|
+
function percentEscapeQuery(c) {
|
102
|
+
var unicode = c.charCodeAt(0);
|
103
|
+
if (unicode > 32 && unicode < 127 && [ 34, 35, 60, 62, 96 ].indexOf(unicode) == -1) {
|
104
|
+
return c;
|
105
|
+
}
|
106
|
+
return encodeURIComponent(c);
|
107
|
+
}
|
108
|
+
var EOF = undefined, ALPHA = /[a-zA-Z]/, ALPHANUMERIC = /[a-zA-Z0-9\+\-\.]/;
|
109
|
+
function parse(input, stateOverride, base) {
|
110
|
+
function err(message) {
|
111
|
+
errors.push(message);
|
112
|
+
}
|
113
|
+
var state = stateOverride || "scheme start", cursor = 0, buffer = "", seenAt = false, seenBracket = false, errors = [];
|
114
|
+
loop: while ((input[cursor - 1] != EOF || cursor == 0) && !this._isInvalid) {
|
115
|
+
var c = input[cursor];
|
116
|
+
switch (state) {
|
117
|
+
case "scheme start":
|
118
|
+
if (c && ALPHA.test(c)) {
|
119
|
+
buffer += c.toLowerCase();
|
120
|
+
state = "scheme";
|
121
|
+
} else if (!stateOverride) {
|
122
|
+
buffer = "";
|
123
|
+
state = "no scheme";
|
124
|
+
continue;
|
125
|
+
} else {
|
126
|
+
err("Invalid scheme.");
|
127
|
+
break loop;
|
128
|
+
}
|
129
|
+
break;
|
130
|
+
|
131
|
+
case "scheme":
|
132
|
+
if (c && ALPHANUMERIC.test(c)) {
|
133
|
+
buffer += c.toLowerCase();
|
134
|
+
} else if (":" == c) {
|
135
|
+
this._scheme = buffer;
|
136
|
+
buffer = "";
|
137
|
+
if (stateOverride) {
|
138
|
+
break loop;
|
139
|
+
}
|
140
|
+
if (isRelativeScheme(this._scheme)) {
|
141
|
+
this._isRelative = true;
|
142
|
+
}
|
143
|
+
if ("file" == this._scheme) {
|
144
|
+
state = "relative";
|
145
|
+
} else if (this._isRelative && base && base._scheme == this._scheme) {
|
146
|
+
state = "relative or authority";
|
147
|
+
} else if (this._isRelative) {
|
148
|
+
state = "authority first slash";
|
149
|
+
} else {
|
150
|
+
state = "scheme data";
|
151
|
+
}
|
152
|
+
} else if (!stateOverride) {
|
153
|
+
buffer = "";
|
154
|
+
cursor = 0;
|
155
|
+
state = "no scheme";
|
156
|
+
continue;
|
157
|
+
} else if (EOF == c) {
|
158
|
+
break loop;
|
159
|
+
} else {
|
160
|
+
err("Code point not allowed in scheme: " + c);
|
161
|
+
break loop;
|
162
|
+
}
|
163
|
+
break;
|
164
|
+
|
165
|
+
case "scheme data":
|
166
|
+
if ("?" == c) {
|
167
|
+
this._query = "?";
|
168
|
+
state = "query";
|
169
|
+
} else if ("#" == c) {
|
170
|
+
this._fragment = "#";
|
171
|
+
state = "fragment";
|
172
|
+
} else {
|
173
|
+
if (EOF != c && " " != c && "\n" != c && "\r" != c) {
|
174
|
+
this._schemeData += percentEscape(c);
|
175
|
+
}
|
176
|
+
}
|
177
|
+
break;
|
178
|
+
|
179
|
+
case "no scheme":
|
180
|
+
if (!base || !isRelativeScheme(base._scheme)) {
|
181
|
+
err("Missing scheme.");
|
182
|
+
invalid.call(this);
|
183
|
+
} else {
|
184
|
+
state = "relative";
|
185
|
+
continue;
|
186
|
+
}
|
187
|
+
break;
|
188
|
+
|
189
|
+
case "relative or authority":
|
190
|
+
if ("/" == c && "/" == input[cursor + 1]) {
|
191
|
+
state = "authority ignore slashes";
|
192
|
+
} else {
|
193
|
+
err("Expected /, got: " + c);
|
194
|
+
state = "relative";
|
195
|
+
continue;
|
196
|
+
}
|
197
|
+
break;
|
198
|
+
|
199
|
+
case "relative":
|
200
|
+
this._isRelative = true;
|
201
|
+
if ("file" != this._scheme) this._scheme = base._scheme;
|
202
|
+
if (EOF == c) {
|
203
|
+
this._host = base._host;
|
204
|
+
this._port = base._port;
|
205
|
+
this._path = base._path.slice();
|
206
|
+
this._query = base._query;
|
207
|
+
this._username = base._username;
|
208
|
+
this._password = base._password;
|
209
|
+
break loop;
|
210
|
+
} else if ("/" == c || "\\" == c) {
|
211
|
+
if ("\\" == c) err("\\ is an invalid code point.");
|
212
|
+
state = "relative slash";
|
213
|
+
} else if ("?" == c) {
|
214
|
+
this._host = base._host;
|
215
|
+
this._port = base._port;
|
216
|
+
this._path = base._path.slice();
|
217
|
+
this._query = "?";
|
218
|
+
this._username = base._username;
|
219
|
+
this._password = base._password;
|
220
|
+
state = "query";
|
221
|
+
} else if ("#" == c) {
|
222
|
+
this._host = base._host;
|
223
|
+
this._port = base._port;
|
224
|
+
this._path = base._path.slice();
|
225
|
+
this._query = base._query;
|
226
|
+
this._fragment = "#";
|
227
|
+
this._username = base._username;
|
228
|
+
this._password = base._password;
|
229
|
+
state = "fragment";
|
230
|
+
} else {
|
231
|
+
var nextC = input[cursor + 1];
|
232
|
+
var nextNextC = input[cursor + 2];
|
233
|
+
if ("file" != this._scheme || !ALPHA.test(c) || nextC != ":" && nextC != "|" || EOF != nextNextC && "/" != nextNextC && "\\" != nextNextC && "?" != nextNextC && "#" != nextNextC) {
|
234
|
+
this._host = base._host;
|
235
|
+
this._port = base._port;
|
236
|
+
this._username = base._username;
|
237
|
+
this._password = base._password;
|
238
|
+
this._path = base._path.slice();
|
239
|
+
this._path.pop();
|
240
|
+
}
|
241
|
+
state = "relative path";
|
242
|
+
continue;
|
243
|
+
}
|
244
|
+
break;
|
245
|
+
|
246
|
+
case "relative slash":
|
247
|
+
if ("/" == c || "\\" == c) {
|
248
|
+
if ("\\" == c) {
|
249
|
+
err("\\ is an invalid code point.");
|
250
|
+
}
|
251
|
+
if ("file" == this._scheme) {
|
252
|
+
state = "file host";
|
253
|
+
} else {
|
254
|
+
state = "authority ignore slashes";
|
255
|
+
}
|
256
|
+
} else {
|
257
|
+
if ("file" != this._scheme) {
|
258
|
+
this._host = base._host;
|
259
|
+
this._port = base._port;
|
260
|
+
this._username = base._username;
|
261
|
+
this._password = base._password;
|
262
|
+
}
|
263
|
+
state = "relative path";
|
264
|
+
continue;
|
265
|
+
}
|
266
|
+
break;
|
267
|
+
|
268
|
+
case "authority first slash":
|
269
|
+
if ("/" == c) {
|
270
|
+
state = "authority second slash";
|
271
|
+
} else {
|
272
|
+
err("Expected '/', got: " + c);
|
273
|
+
state = "authority ignore slashes";
|
274
|
+
continue;
|
275
|
+
}
|
276
|
+
break;
|
277
|
+
|
278
|
+
case "authority second slash":
|
279
|
+
state = "authority ignore slashes";
|
280
|
+
if ("/" != c) {
|
281
|
+
err("Expected '/', got: " + c);
|
282
|
+
continue;
|
283
|
+
}
|
284
|
+
break;
|
285
|
+
|
286
|
+
case "authority ignore slashes":
|
287
|
+
if ("/" != c && "\\" != c) {
|
288
|
+
state = "authority";
|
289
|
+
continue;
|
290
|
+
} else {
|
291
|
+
err("Expected authority, got: " + c);
|
292
|
+
}
|
293
|
+
break;
|
294
|
+
|
295
|
+
case "authority":
|
296
|
+
if ("@" == c) {
|
297
|
+
if (seenAt) {
|
298
|
+
err("@ already seen.");
|
299
|
+
buffer += "%40";
|
300
|
+
}
|
301
|
+
seenAt = true;
|
302
|
+
for (var i = 0; i < buffer.length; i++) {
|
303
|
+
var cp = buffer[i];
|
304
|
+
if (" " == cp || "\n" == cp || "\r" == cp) {
|
305
|
+
err("Invalid whitespace in authority.");
|
306
|
+
continue;
|
307
|
+
}
|
308
|
+
if (":" == cp && null === this._password) {
|
309
|
+
this._password = "";
|
310
|
+
continue;
|
311
|
+
}
|
312
|
+
var tempC = percentEscape(cp);
|
313
|
+
null !== this._password ? this._password += tempC : this._username += tempC;
|
314
|
+
}
|
315
|
+
buffer = "";
|
316
|
+
} else if (EOF == c || "/" == c || "\\" == c || "?" == c || "#" == c) {
|
317
|
+
cursor -= buffer.length;
|
318
|
+
buffer = "";
|
319
|
+
state = "host";
|
320
|
+
continue;
|
321
|
+
} else {
|
322
|
+
buffer += c;
|
323
|
+
}
|
324
|
+
break;
|
325
|
+
|
326
|
+
case "file host":
|
327
|
+
if (EOF == c || "/" == c || "\\" == c || "?" == c || "#" == c) {
|
328
|
+
if (buffer.length == 2 && ALPHA.test(buffer[0]) && (buffer[1] == ":" || buffer[1] == "|")) {
|
329
|
+
state = "relative path";
|
330
|
+
} else if (buffer.length == 0) {
|
331
|
+
state = "relative path start";
|
332
|
+
} else {
|
333
|
+
this._host = IDNAToASCII.call(this, buffer);
|
334
|
+
buffer = "";
|
335
|
+
state = "relative path start";
|
336
|
+
}
|
337
|
+
continue;
|
338
|
+
} else if (" " == c || "\n" == c || "\r" == c) {
|
339
|
+
err("Invalid whitespace in file host.");
|
340
|
+
} else {
|
341
|
+
buffer += c;
|
342
|
+
}
|
343
|
+
break;
|
344
|
+
|
345
|
+
case "host":
|
346
|
+
case "hostname":
|
347
|
+
if (":" == c && !seenBracket) {
|
348
|
+
this._host = IDNAToASCII.call(this, buffer);
|
349
|
+
buffer = "";
|
350
|
+
state = "port";
|
351
|
+
if ("hostname" == stateOverride) {
|
352
|
+
break loop;
|
353
|
+
}
|
354
|
+
} else if (EOF == c || "/" == c || "\\" == c || "?" == c || "#" == c) {
|
355
|
+
this._host = IDNAToASCII.call(this, buffer);
|
356
|
+
buffer = "";
|
357
|
+
state = "relative path start";
|
358
|
+
if (stateOverride) {
|
359
|
+
break loop;
|
360
|
+
}
|
361
|
+
continue;
|
362
|
+
} else if (" " != c && "\n" != c && "\r" != c) {
|
363
|
+
if ("[" == c) {
|
364
|
+
seenBracket = true;
|
365
|
+
} else if ("]" == c) {
|
366
|
+
seenBracket = false;
|
367
|
+
}
|
368
|
+
buffer += c;
|
369
|
+
} else {
|
370
|
+
err("Invalid code point in host/hostname: " + c);
|
371
|
+
}
|
372
|
+
break;
|
373
|
+
|
374
|
+
case "port":
|
375
|
+
if (/[0-9]/.test(c)) {
|
376
|
+
buffer += c;
|
377
|
+
} else if (EOF == c || "/" == c || "\\" == c || "?" == c || "#" == c || stateOverride) {
|
378
|
+
if ("" != buffer) {
|
379
|
+
var temp = parseInt(buffer, 10);
|
380
|
+
if (temp != relative[this._scheme]) {
|
381
|
+
this._port = temp + "";
|
382
|
+
}
|
383
|
+
buffer = "";
|
384
|
+
}
|
385
|
+
if (stateOverride) {
|
386
|
+
break loop;
|
387
|
+
}
|
388
|
+
state = "relative path start";
|
389
|
+
continue;
|
390
|
+
} else if (" " == c || "\n" == c || "\r" == c) {
|
391
|
+
err("Invalid code point in port: " + c);
|
392
|
+
} else {
|
393
|
+
invalid.call(this);
|
394
|
+
}
|
395
|
+
break;
|
396
|
+
|
397
|
+
case "relative path start":
|
398
|
+
if ("\\" == c) err("'\\' not allowed in path.");
|
399
|
+
state = "relative path";
|
400
|
+
if ("/" != c && "\\" != c) {
|
401
|
+
continue;
|
402
|
+
}
|
403
|
+
break;
|
404
|
+
|
405
|
+
case "relative path":
|
406
|
+
if (EOF == c || "/" == c || "\\" == c || !stateOverride && ("?" == c || "#" == c)) {
|
407
|
+
if ("\\" == c) {
|
408
|
+
err("\\ not allowed in relative path.");
|
409
|
+
}
|
410
|
+
var tmp;
|
411
|
+
if (tmp = relativePathDotMapping[buffer.toLowerCase()]) {
|
412
|
+
buffer = tmp;
|
413
|
+
}
|
414
|
+
if (".." == buffer) {
|
415
|
+
this._path.pop();
|
416
|
+
if ("/" != c && "\\" != c) {
|
417
|
+
this._path.push("");
|
418
|
+
}
|
419
|
+
} else if ("." == buffer && "/" != c && "\\" != c) {
|
420
|
+
this._path.push("");
|
421
|
+
} else if ("." != buffer) {
|
422
|
+
if ("file" == this._scheme && this._path.length == 0 && buffer.length == 2 && ALPHA.test(buffer[0]) && buffer[1] == "|") {
|
423
|
+
buffer = buffer[0] + ":";
|
424
|
+
}
|
425
|
+
this._path.push(buffer);
|
426
|
+
}
|
427
|
+
buffer = "";
|
428
|
+
if ("?" == c) {
|
429
|
+
this._query = "?";
|
430
|
+
state = "query";
|
431
|
+
} else if ("#" == c) {
|
432
|
+
this._fragment = "#";
|
433
|
+
state = "fragment";
|
434
|
+
}
|
435
|
+
} else if (" " != c && "\n" != c && "\r" != c) {
|
436
|
+
buffer += percentEscape(c);
|
437
|
+
}
|
438
|
+
break;
|
439
|
+
|
440
|
+
case "query":
|
441
|
+
if (!stateOverride && "#" == c) {
|
442
|
+
this._fragment = "#";
|
443
|
+
state = "fragment";
|
444
|
+
} else if (EOF != c && " " != c && "\n" != c && "\r" != c) {
|
445
|
+
this._query += percentEscapeQuery(c);
|
446
|
+
}
|
447
|
+
break;
|
448
|
+
|
449
|
+
case "fragment":
|
450
|
+
if (EOF != c && " " != c && "\n" != c && "\r" != c) {
|
451
|
+
this._fragment += c;
|
452
|
+
}
|
453
|
+
break;
|
454
|
+
}
|
455
|
+
cursor++;
|
456
|
+
}
|
457
|
+
}
|
458
|
+
function clear() {
|
459
|
+
this._scheme = "";
|
460
|
+
this._schemeData = "";
|
461
|
+
this._username = "";
|
462
|
+
this._password = null;
|
463
|
+
this._host = "";
|
464
|
+
this._port = "";
|
465
|
+
this._path = [];
|
466
|
+
this._query = "";
|
467
|
+
this._fragment = "";
|
468
|
+
this._isInvalid = false;
|
469
|
+
this._isRelative = false;
|
470
|
+
}
|
471
|
+
function jURL(url, base) {
|
472
|
+
if (base !== undefined && !(base instanceof jURL)) base = new jURL(String(base));
|
473
|
+
this._url = url;
|
474
|
+
clear.call(this);
|
475
|
+
var input = url.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g, "");
|
476
|
+
parse.call(this, input, null, base);
|
477
|
+
}
|
478
|
+
jURL.prototype = {
|
479
|
+
toString: function() {
|
480
|
+
return this.href;
|
481
|
+
},
|
482
|
+
get href() {
|
483
|
+
if (this._isInvalid) return this._url;
|
484
|
+
var authority = "";
|
485
|
+
if ("" != this._username || null != this._password) {
|
486
|
+
authority = this._username + (null != this._password ? ":" + this._password : "") + "@";
|
487
|
+
}
|
488
|
+
return this.protocol + (this._isRelative ? "//" + authority + this.host : "") + this.pathname + this._query + this._fragment;
|
489
|
+
},
|
490
|
+
set href(href) {
|
491
|
+
clear.call(this);
|
492
|
+
parse.call(this, href);
|
493
|
+
},
|
494
|
+
get protocol() {
|
495
|
+
return this._scheme + ":";
|
496
|
+
},
|
497
|
+
set protocol(protocol) {
|
498
|
+
if (this._isInvalid) return;
|
499
|
+
parse.call(this, protocol + ":", "scheme start");
|
500
|
+
},
|
501
|
+
get host() {
|
502
|
+
return this._isInvalid ? "" : this._port ? this._host + ":" + this._port : this._host;
|
503
|
+
},
|
504
|
+
set host(host) {
|
505
|
+
if (this._isInvalid || !this._isRelative) return;
|
506
|
+
parse.call(this, host, "host");
|
507
|
+
},
|
508
|
+
get hostname() {
|
509
|
+
return this._host;
|
510
|
+
},
|
511
|
+
set hostname(hostname) {
|
512
|
+
if (this._isInvalid || !this._isRelative) return;
|
513
|
+
parse.call(this, hostname, "hostname");
|
514
|
+
},
|
515
|
+
get port() {
|
516
|
+
return this._port;
|
517
|
+
},
|
518
|
+
set port(port) {
|
519
|
+
if (this._isInvalid || !this._isRelative) return;
|
520
|
+
parse.call(this, port, "port");
|
521
|
+
},
|
522
|
+
get pathname() {
|
523
|
+
return this._isInvalid ? "" : this._isRelative ? "/" + this._path.join("/") : this._schemeData;
|
524
|
+
},
|
525
|
+
set pathname(pathname) {
|
526
|
+
if (this._isInvalid || !this._isRelative) return;
|
527
|
+
this._path = [];
|
528
|
+
parse.call(this, pathname, "relative path start");
|
529
|
+
},
|
530
|
+
get search() {
|
531
|
+
return this._isInvalid || !this._query || "?" == this._query ? "" : this._query;
|
532
|
+
},
|
533
|
+
set search(search) {
|
534
|
+
if (this._isInvalid || !this._isRelative) return;
|
535
|
+
this._query = "?";
|
536
|
+
if ("?" == search[0]) search = search.slice(1);
|
537
|
+
parse.call(this, search, "query");
|
538
|
+
},
|
539
|
+
get hash() {
|
540
|
+
return this._isInvalid || !this._fragment || "#" == this._fragment ? "" : this._fragment;
|
541
|
+
},
|
542
|
+
set hash(hash) {
|
543
|
+
if (this._isInvalid) return;
|
544
|
+
this._fragment = "#";
|
545
|
+
if ("#" == hash[0]) hash = hash.slice(1);
|
546
|
+
parse.call(this, hash, "fragment");
|
547
|
+
},
|
548
|
+
get origin() {
|
549
|
+
var host;
|
550
|
+
if (this._isInvalid || !this._scheme) {
|
551
|
+
return "";
|
552
|
+
}
|
553
|
+
switch (this._scheme) {
|
554
|
+
case "data":
|
555
|
+
case "file":
|
556
|
+
case "javascript":
|
557
|
+
case "mailto":
|
558
|
+
return "null";
|
559
|
+
}
|
560
|
+
host = this.host;
|
561
|
+
if (!host) {
|
562
|
+
return "";
|
563
|
+
}
|
564
|
+
return this._scheme + "://" + host;
|
565
|
+
}
|
566
|
+
};
|
567
|
+
var OriginalURL = scope.URL;
|
568
|
+
if (OriginalURL) {
|
569
|
+
jURL.createObjectURL = function(blob) {
|
570
|
+
return OriginalURL.createObjectURL.apply(OriginalURL, arguments);
|
571
|
+
};
|
572
|
+
jURL.revokeObjectURL = function(url) {
|
573
|
+
OriginalURL.revokeObjectURL(url);
|
574
|
+
};
|
575
|
+
}
|
576
|
+
scope.URL = jURL;
|
577
|
+
})(this);
|
578
|
+
|
579
|
+
if (typeof WeakMap === "undefined") {
|
580
|
+
(function() {
|
581
|
+
var defineProperty = Object.defineProperty;
|
582
|
+
var counter = Date.now() % 1e9;
|
583
|
+
var WeakMap = function() {
|
584
|
+
this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__");
|
585
|
+
};
|
586
|
+
WeakMap.prototype = {
|
587
|
+
set: function(key, value) {
|
588
|
+
var entry = key[this.name];
|
589
|
+
if (entry && entry[0] === key) entry[1] = value; else defineProperty(key, this.name, {
|
590
|
+
value: [ key, value ],
|
591
|
+
writable: true
|
592
|
+
});
|
593
|
+
return this;
|
594
|
+
},
|
595
|
+
get: function(key) {
|
596
|
+
var entry;
|
597
|
+
return (entry = key[this.name]) && entry[0] === key ? entry[1] : undefined;
|
598
|
+
},
|
599
|
+
"delete": function(key) {
|
600
|
+
var entry = key[this.name];
|
601
|
+
if (!entry || entry[0] !== key) return false;
|
602
|
+
entry[0] = entry[1] = undefined;
|
603
|
+
return true;
|
604
|
+
},
|
605
|
+
has: function(key) {
|
606
|
+
var entry = key[this.name];
|
607
|
+
if (!entry) return false;
|
608
|
+
return entry[0] === key;
|
609
|
+
}
|
610
|
+
};
|
611
|
+
window.WeakMap = WeakMap;
|
612
|
+
})();
|
613
|
+
}
|
53
614
|
|
54
615
|
(function(global) {
|
55
616
|
var registrationsTable = new WeakMap();
|
@@ -350,42 +911,6 @@ window.WebComponents = window.WebComponents || {};
|
|
350
911
|
if (!global.MutationObserver) global.MutationObserver = JsMutationObserver;
|
351
912
|
})(this);
|
352
913
|
|
353
|
-
if (typeof WeakMap === "undefined") {
|
354
|
-
(function() {
|
355
|
-
var defineProperty = Object.defineProperty;
|
356
|
-
var counter = Date.now() % 1e9;
|
357
|
-
var WeakMap = function() {
|
358
|
-
this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__");
|
359
|
-
};
|
360
|
-
WeakMap.prototype = {
|
361
|
-
set: function(key, value) {
|
362
|
-
var entry = key[this.name];
|
363
|
-
if (entry && entry[0] === key) entry[1] = value; else defineProperty(key, this.name, {
|
364
|
-
value: [ key, value ],
|
365
|
-
writable: true
|
366
|
-
});
|
367
|
-
return this;
|
368
|
-
},
|
369
|
-
get: function(key) {
|
370
|
-
var entry;
|
371
|
-
return (entry = key[this.name]) && entry[0] === key ? entry[1] : undefined;
|
372
|
-
},
|
373
|
-
"delete": function(key) {
|
374
|
-
var entry = key[this.name];
|
375
|
-
if (!entry || entry[0] !== key) return false;
|
376
|
-
entry[0] = entry[1] = undefined;
|
377
|
-
return true;
|
378
|
-
},
|
379
|
-
has: function(key) {
|
380
|
-
var entry = key[this.name];
|
381
|
-
if (!entry) return false;
|
382
|
-
return entry[0] === key;
|
383
|
-
}
|
384
|
-
};
|
385
|
-
window.WeakMap = WeakMap;
|
386
|
-
})();
|
387
|
-
}
|
388
|
-
|
389
914
|
window.HTMLImports = window.HTMLImports || {
|
390
915
|
flags: {}
|
391
916
|
};
|
@@ -437,26 +962,35 @@ window.HTMLImports = window.HTMLImports || {
|
|
437
962
|
}
|
438
963
|
function watchImportsLoad(callback, doc) {
|
439
964
|
var imports = doc.querySelectorAll("link[rel=import]");
|
440
|
-
var
|
441
|
-
function checkDone(
|
442
|
-
if (
|
443
|
-
callback(
|
965
|
+
var parsedCount = 0, importCount = imports.length, newImports = [], errorImports = [];
|
966
|
+
function checkDone() {
|
967
|
+
if (parsedCount == importCount && callback) {
|
968
|
+
callback({
|
969
|
+
allImports: imports,
|
970
|
+
loadedImports: newImports,
|
971
|
+
errorImports: errorImports
|
972
|
+
});
|
444
973
|
}
|
445
974
|
}
|
446
975
|
function loadedImport(e) {
|
447
976
|
markTargetLoaded(e);
|
448
|
-
|
977
|
+
newImports.push(this);
|
978
|
+
parsedCount++;
|
979
|
+
checkDone();
|
980
|
+
}
|
981
|
+
function errorLoadingImport(e) {
|
982
|
+
errorImports.push(this);
|
983
|
+
parsedCount++;
|
449
984
|
checkDone();
|
450
985
|
}
|
451
|
-
if (
|
452
|
-
for (var i = 0, imp; i <
|
986
|
+
if (importCount) {
|
987
|
+
for (var i = 0, imp; i < importCount && (imp = imports[i]); i++) {
|
453
988
|
if (isImportLoaded(imp)) {
|
454
|
-
|
455
|
-
|
456
|
-
});
|
989
|
+
parsedCount++;
|
990
|
+
checkDone();
|
457
991
|
} else {
|
458
992
|
imp.addEventListener("load", loadedImport);
|
459
|
-
imp.addEventListener("error",
|
993
|
+
imp.addEventListener("error", errorLoadingImport);
|
460
994
|
}
|
461
995
|
}
|
462
996
|
} else {
|
@@ -506,11 +1040,11 @@ window.HTMLImports = window.HTMLImports || {
|
|
506
1040
|
}
|
507
1041
|
})();
|
508
1042
|
}
|
509
|
-
whenReady(function() {
|
1043
|
+
whenReady(function(detail) {
|
510
1044
|
HTMLImports.ready = true;
|
511
1045
|
HTMLImports.readyTime = new Date().getTime();
|
512
1046
|
var evt = rootDocument.createEvent("CustomEvent");
|
513
|
-
evt.initCustomEvent("HTMLImportsLoaded", true, true,
|
1047
|
+
evt.initCustomEvent("HTMLImportsLoaded", true, true, detail);
|
514
1048
|
rootDocument.dispatchEvent(evt);
|
515
1049
|
});
|
516
1050
|
scope.IMPORT_LINK_TYPE = IMPORT_LINK_TYPE;
|
@@ -518,7 +1052,7 @@ window.HTMLImports = window.HTMLImports || {
|
|
518
1052
|
scope.rootDocument = rootDocument;
|
519
1053
|
scope.whenReady = whenReady;
|
520
1054
|
scope.isIE = isIE;
|
521
|
-
})(HTMLImports);
|
1055
|
+
})(window.HTMLImports);
|
522
1056
|
|
523
1057
|
(function(scope) {
|
524
1058
|
var modules = [];
|
@@ -532,26 +1066,29 @@ window.HTMLImports = window.HTMLImports || {
|
|
532
1066
|
};
|
533
1067
|
scope.addModule = addModule;
|
534
1068
|
scope.initializeModules = initializeModules;
|
535
|
-
})(HTMLImports);
|
1069
|
+
})(window.HTMLImports);
|
536
1070
|
|
537
|
-
HTMLImports.addModule(function(scope) {
|
1071
|
+
window.HTMLImports.addModule(function(scope) {
|
538
1072
|
var CSS_URL_REGEXP = /(url\()([^)]*)(\))/g;
|
539
1073
|
var CSS_IMPORT_REGEXP = /(@import[\s]+(?!url\())([^;]*)(;)/g;
|
540
1074
|
var path = {
|
541
|
-
resolveUrlsInStyle: function(style) {
|
1075
|
+
resolveUrlsInStyle: function(style, linkUrl) {
|
542
1076
|
var doc = style.ownerDocument;
|
543
1077
|
var resolver = doc.createElement("a");
|
544
|
-
style.textContent = this.resolveUrlsInCssText(style.textContent, resolver);
|
1078
|
+
style.textContent = this.resolveUrlsInCssText(style.textContent, linkUrl, resolver);
|
545
1079
|
return style;
|
546
1080
|
},
|
547
|
-
resolveUrlsInCssText: function(cssText, urlObj) {
|
548
|
-
var r = this.replaceUrls(cssText, urlObj, CSS_URL_REGEXP);
|
549
|
-
r = this.replaceUrls(r, urlObj, CSS_IMPORT_REGEXP);
|
1081
|
+
resolveUrlsInCssText: function(cssText, linkUrl, urlObj) {
|
1082
|
+
var r = this.replaceUrls(cssText, urlObj, linkUrl, CSS_URL_REGEXP);
|
1083
|
+
r = this.replaceUrls(r, urlObj, linkUrl, CSS_IMPORT_REGEXP);
|
550
1084
|
return r;
|
551
1085
|
},
|
552
|
-
replaceUrls: function(text, urlObj, regexp) {
|
1086
|
+
replaceUrls: function(text, urlObj, linkUrl, regexp) {
|
553
1087
|
return text.replace(regexp, function(m, pre, url, post) {
|
554
1088
|
var urlPath = url.replace(/["']/g, "");
|
1089
|
+
if (linkUrl) {
|
1090
|
+
urlPath = new URL(urlPath, linkUrl).href;
|
1091
|
+
}
|
555
1092
|
urlObj.href = urlPath;
|
556
1093
|
urlPath = urlObj.href;
|
557
1094
|
return pre + "'" + urlPath + "'" + post;
|
@@ -561,7 +1098,7 @@ HTMLImports.addModule(function(scope) {
|
|
561
1098
|
scope.path = path;
|
562
1099
|
});
|
563
1100
|
|
564
|
-
HTMLImports.addModule(function(scope) {
|
1101
|
+
window.HTMLImports.addModule(function(scope) {
|
565
1102
|
var xhr = {
|
566
1103
|
async: true,
|
567
1104
|
ok: function(request) {
|
@@ -593,7 +1130,7 @@ HTMLImports.addModule(function(scope) {
|
|
593
1130
|
scope.xhr = xhr;
|
594
1131
|
});
|
595
1132
|
|
596
|
-
HTMLImports.addModule(function(scope) {
|
1133
|
+
window.HTMLImports.addModule(function(scope) {
|
597
1134
|
var xhr = scope.xhr;
|
598
1135
|
var flags = scope.flags;
|
599
1136
|
var Loader = function(onLoad, onComplete) {
|
@@ -686,7 +1223,7 @@ HTMLImports.addModule(function(scope) {
|
|
686
1223
|
scope.Loader = Loader;
|
687
1224
|
});
|
688
1225
|
|
689
|
-
HTMLImports.addModule(function(scope) {
|
1226
|
+
window.HTMLImports.addModule(function(scope) {
|
690
1227
|
var Observer = function(addCallback) {
|
691
1228
|
this.addCallback = addCallback;
|
692
1229
|
this.mo = new MutationObserver(this.handler.bind(this));
|
@@ -719,7 +1256,7 @@ HTMLImports.addModule(function(scope) {
|
|
719
1256
|
scope.Observer = Observer;
|
720
1257
|
});
|
721
1258
|
|
722
|
-
HTMLImports.addModule(function(scope) {
|
1259
|
+
window.HTMLImports.addModule(function(scope) {
|
723
1260
|
var path = scope.path;
|
724
1261
|
var rootDocument = scope.rootDocument;
|
725
1262
|
var flags = scope.flags;
|
@@ -728,7 +1265,7 @@ HTMLImports.addModule(function(scope) {
|
|
728
1265
|
var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]";
|
729
1266
|
var importParser = {
|
730
1267
|
documentSelectors: IMPORT_SELECTOR,
|
731
|
-
importsSelectors: [ IMPORT_SELECTOR, "link[rel=stylesheet]", "style", "script:not([type])", 'script[type="text/javascript"]' ].join(","),
|
1268
|
+
importsSelectors: [ IMPORT_SELECTOR, "link[rel=stylesheet]", "style", "script:not([type])", 'script[type="application/javascript"]', 'script[type="text/javascript"]' ].join(","),
|
732
1269
|
map: {
|
733
1270
|
link: "parseLink",
|
734
1271
|
script: "parseScript",
|
@@ -819,6 +1356,7 @@ HTMLImports.addModule(function(scope) {
|
|
819
1356
|
parseStyle: function(elt) {
|
820
1357
|
var src = elt;
|
821
1358
|
elt = cloneStyle(elt);
|
1359
|
+
src.__appliedElement = elt;
|
822
1360
|
elt.__importElement = src;
|
823
1361
|
this.parseGeneric(elt);
|
824
1362
|
},
|
@@ -863,9 +1401,11 @@ HTMLImports.addModule(function(scope) {
|
|
863
1401
|
}
|
864
1402
|
}
|
865
1403
|
if (fakeLoad) {
|
866
|
-
|
867
|
-
|
868
|
-
|
1404
|
+
setTimeout(function() {
|
1405
|
+
elt.dispatchEvent(new CustomEvent("load", {
|
1406
|
+
bubbles: false
|
1407
|
+
}));
|
1408
|
+
});
|
869
1409
|
}
|
870
1410
|
}
|
871
1411
|
},
|
@@ -948,7 +1488,7 @@ HTMLImports.addModule(function(scope) {
|
|
948
1488
|
scope.IMPORT_SELECTOR = IMPORT_SELECTOR;
|
949
1489
|
});
|
950
1490
|
|
951
|
-
HTMLImports.addModule(function(scope) {
|
1491
|
+
window.HTMLImports.addModule(function(scope) {
|
952
1492
|
var flags = scope.flags;
|
953
1493
|
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
|
954
1494
|
var IMPORT_SELECTOR = scope.IMPORT_SELECTOR;
|
@@ -1047,7 +1587,7 @@ HTMLImports.addModule(function(scope) {
|
|
1047
1587
|
scope.importLoader = importLoader;
|
1048
1588
|
});
|
1049
1589
|
|
1050
|
-
HTMLImports.addModule(function(scope) {
|
1590
|
+
window.HTMLImports.addModule(function(scope) {
|
1051
1591
|
var parser = scope.parser;
|
1052
1592
|
var importer = scope.importer;
|
1053
1593
|
var dynamic = {
|
@@ -1103,7 +1643,7 @@ HTMLImports.addModule(function(scope) {
|
|
1103
1643
|
} else {
|
1104
1644
|
document.addEventListener("DOMContentLoaded", bootstrap);
|
1105
1645
|
}
|
1106
|
-
})(HTMLImports);
|
1646
|
+
})(window.HTMLImports);
|
1107
1647
|
|
1108
1648
|
window.CustomElements = window.CustomElements || {
|
1109
1649
|
flags: {}
|
@@ -1124,9 +1664,9 @@ window.CustomElements = window.CustomElements || {
|
|
1124
1664
|
scope.initializeModules = initializeModules;
|
1125
1665
|
scope.hasNative = Boolean(document.registerElement);
|
1126
1666
|
scope.useNative = !flags.register && scope.hasNative && !window.ShadowDOMPolyfill && (!window.HTMLImports || HTMLImports.useNative);
|
1127
|
-
})(CustomElements);
|
1667
|
+
})(window.CustomElements);
|
1128
1668
|
|
1129
|
-
CustomElements.addModule(function(scope) {
|
1669
|
+
window.CustomElements.addModule(function(scope) {
|
1130
1670
|
var IMPORT_LINK_TYPE = window.HTMLImports ? HTMLImports.IMPORT_LINK_TYPE : "none";
|
1131
1671
|
function forSubtree(node, cb) {
|
1132
1672
|
findAllElements(node, function(e) {
|
@@ -1160,13 +1700,10 @@ CustomElements.addModule(function(scope) {
|
|
1160
1700
|
root = root.olderShadowRoot;
|
1161
1701
|
}
|
1162
1702
|
}
|
1163
|
-
var processingDocuments;
|
1164
1703
|
function forDocumentTree(doc, cb) {
|
1165
|
-
|
1166
|
-
_forDocumentTree(doc, cb);
|
1167
|
-
processingDocuments = null;
|
1704
|
+
_forDocumentTree(doc, cb, []);
|
1168
1705
|
}
|
1169
|
-
function _forDocumentTree(doc, cb) {
|
1706
|
+
function _forDocumentTree(doc, cb, processingDocuments) {
|
1170
1707
|
doc = wrap(doc);
|
1171
1708
|
if (processingDocuments.indexOf(doc) >= 0) {
|
1172
1709
|
return;
|
@@ -1175,7 +1712,7 @@ CustomElements.addModule(function(scope) {
|
|
1175
1712
|
var imports = doc.querySelectorAll("link[rel=" + IMPORT_LINK_TYPE + "]");
|
1176
1713
|
for (var i = 0, l = imports.length, n; i < l && (n = imports[i]); i++) {
|
1177
1714
|
if (n.import) {
|
1178
|
-
_forDocumentTree(n.import, cb);
|
1715
|
+
_forDocumentTree(n.import, cb, processingDocuments);
|
1179
1716
|
}
|
1180
1717
|
}
|
1181
1718
|
cb(doc);
|
@@ -1184,7 +1721,7 @@ CustomElements.addModule(function(scope) {
|
|
1184
1721
|
scope.forSubtree = forSubtree;
|
1185
1722
|
});
|
1186
1723
|
|
1187
|
-
CustomElements.addModule(function(scope) {
|
1724
|
+
window.CustomElements.addModule(function(scope) {
|
1188
1725
|
var flags = scope.flags;
|
1189
1726
|
var forSubtree = scope.forSubtree;
|
1190
1727
|
var forDocumentTree = scope.forDocumentTree;
|
@@ -1282,7 +1819,7 @@ CustomElements.addModule(function(scope) {
|
|
1282
1819
|
if (p == doc) {
|
1283
1820
|
return true;
|
1284
1821
|
}
|
1285
|
-
p = p.parentNode || p.host;
|
1822
|
+
p = p.parentNode || p.nodeType === Node.DOCUMENT_FRAGMENT_NODE && p.host;
|
1286
1823
|
}
|
1287
1824
|
}
|
1288
1825
|
function watchShadow(node) {
|
@@ -1380,7 +1917,7 @@ CustomElements.addModule(function(scope) {
|
|
1380
1917
|
scope.takeRecords = takeRecords;
|
1381
1918
|
});
|
1382
1919
|
|
1383
|
-
CustomElements.addModule(function(scope) {
|
1920
|
+
window.CustomElements.addModule(function(scope) {
|
1384
1921
|
var flags = scope.flags;
|
1385
1922
|
function upgrade(node) {
|
1386
1923
|
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
|
@@ -1440,9 +1977,10 @@ CustomElements.addModule(function(scope) {
|
|
1440
1977
|
scope.implementPrototype = implementPrototype;
|
1441
1978
|
});
|
1442
1979
|
|
1443
|
-
CustomElements.addModule(function(scope) {
|
1980
|
+
window.CustomElements.addModule(function(scope) {
|
1981
|
+
var isIE11OrOlder = scope.isIE11OrOlder;
|
1444
1982
|
var upgradeDocumentTree = scope.upgradeDocumentTree;
|
1445
|
-
var
|
1983
|
+
var upgradeAll = scope.upgradeAll;
|
1446
1984
|
var upgradeWithDefinition = scope.upgradeWithDefinition;
|
1447
1985
|
var implementPrototype = scope.implementPrototype;
|
1448
1986
|
var useNative = scope.useNative;
|
@@ -1571,6 +2109,12 @@ CustomElements.addModule(function(scope) {
|
|
1571
2109
|
}
|
1572
2110
|
}
|
1573
2111
|
function createElement(tag, typeExtension) {
|
2112
|
+
if (tag) {
|
2113
|
+
tag = tag.toLowerCase();
|
2114
|
+
}
|
2115
|
+
if (typeExtension) {
|
2116
|
+
typeExtension = typeExtension.toLowerCase();
|
2117
|
+
}
|
1574
2118
|
var definition = getRegisteredDefinition(typeExtension || tag);
|
1575
2119
|
if (definition) {
|
1576
2120
|
if (tag == definition.tag && typeExtension == definition.is) {
|
@@ -1592,14 +2136,8 @@ CustomElements.addModule(function(scope) {
|
|
1592
2136
|
}
|
1593
2137
|
return element;
|
1594
2138
|
}
|
1595
|
-
function cloneNode(deep) {
|
1596
|
-
var n = domCloneNode.call(this, deep);
|
1597
|
-
upgrade(n);
|
1598
|
-
return n;
|
1599
|
-
}
|
1600
2139
|
var domCreateElement = document.createElement.bind(document);
|
1601
2140
|
var domCreateElementNS = document.createElementNS.bind(document);
|
1602
|
-
var domCloneNode = Node.prototype.cloneNode;
|
1603
2141
|
var isInstance;
|
1604
2142
|
if (!Object.__proto__ && !useNative) {
|
1605
2143
|
isInstance = function(obj, ctor) {
|
@@ -1617,10 +2155,34 @@ CustomElements.addModule(function(scope) {
|
|
1617
2155
|
return obj instanceof base;
|
1618
2156
|
};
|
1619
2157
|
}
|
2158
|
+
function wrapDomMethodToForceUpgrade(obj, methodName) {
|
2159
|
+
var orig = obj[methodName];
|
2160
|
+
obj[methodName] = function() {
|
2161
|
+
var n = orig.apply(this, arguments);
|
2162
|
+
upgradeAll(n);
|
2163
|
+
return n;
|
2164
|
+
};
|
2165
|
+
}
|
2166
|
+
wrapDomMethodToForceUpgrade(Node.prototype, "cloneNode");
|
2167
|
+
wrapDomMethodToForceUpgrade(document, "importNode");
|
2168
|
+
if (isIE11OrOlder) {
|
2169
|
+
(function() {
|
2170
|
+
var importNode = document.importNode;
|
2171
|
+
document.importNode = function() {
|
2172
|
+
var n = importNode.apply(document, arguments);
|
2173
|
+
if (n.nodeType == n.DOCUMENT_FRAGMENT_NODE) {
|
2174
|
+
var f = document.createDocumentFragment();
|
2175
|
+
f.appendChild(n);
|
2176
|
+
return f;
|
2177
|
+
} else {
|
2178
|
+
return n;
|
2179
|
+
}
|
2180
|
+
};
|
2181
|
+
})();
|
2182
|
+
}
|
1620
2183
|
document.registerElement = register;
|
1621
2184
|
document.createElement = createElement;
|
1622
2185
|
document.createElementNS = createElementNS;
|
1623
|
-
Node.prototype.cloneNode = cloneNode;
|
1624
2186
|
scope.registry = registry;
|
1625
2187
|
scope.instanceof = isInstance;
|
1626
2188
|
scope.reservedTagList = reservedTagList;
|
@@ -1692,6 +2254,7 @@ CustomElements.addModule(function(scope) {
|
|
1692
2254
|
var loadEvent = window.HTMLImports && !HTMLImports.ready ? "HTMLImportsLoaded" : "DOMContentLoaded";
|
1693
2255
|
window.addEventListener(loadEvent, bootstrap);
|
1694
2256
|
}
|
2257
|
+
scope.isIE11OrOlder = isIE11OrOlder;
|
1695
2258
|
})(window.CustomElements);
|
1696
2259
|
|
1697
2260
|
if (typeof HTMLTemplateElement === "undefined") {
|
@@ -1702,10 +2265,10 @@ if (typeof HTMLTemplateElement === "undefined") {
|
|
1702
2265
|
HTMLTemplateElement.decorate = function(template) {
|
1703
2266
|
if (!template.content) {
|
1704
2267
|
template.content = template.ownerDocument.createDocumentFragment();
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
2268
|
+
}
|
2269
|
+
var child;
|
2270
|
+
while (child = template.firstChild) {
|
2271
|
+
template.content.appendChild(child);
|
1709
2272
|
}
|
1710
2273
|
};
|
1711
2274
|
HTMLTemplateElement.bootstrap = function(doc) {
|
@@ -1717,6 +2280,15 @@ if (typeof HTMLTemplateElement === "undefined") {
|
|
1717
2280
|
addEventListener("DOMContentLoaded", function() {
|
1718
2281
|
HTMLTemplateElement.bootstrap(document);
|
1719
2282
|
});
|
2283
|
+
var createElement = document.createElement;
|
2284
|
+
document.createElement = function() {
|
2285
|
+
"use strict";
|
2286
|
+
var el = createElement.apply(document, arguments);
|
2287
|
+
if (el.localName == "template") {
|
2288
|
+
HTMLTemplateElement.decorate(el);
|
2289
|
+
}
|
2290
|
+
return el;
|
2291
|
+
};
|
1720
2292
|
})();
|
1721
2293
|
}
|
1722
2294
|
|