polymer-neon-rails 1.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +39 -0
  3. data/Rakefile +1 -0
  4. data/app/assets/components/iron-flex-layout/README.md +4 -0
  5. data/app/assets/components/iron-flex-layout/bower.json +21 -0
  6. data/app/assets/components/iron-flex-layout/classes/iron-flex-layout.html +307 -0
  7. data/app/assets/components/iron-flex-layout/classes/iron-shadow-flex-layout.html +302 -0
  8. data/app/assets/components/iron-flex-layout/demo/index.html +40 -0
  9. data/app/assets/components/iron-flex-layout/demo/x-app.html +106 -0
  10. data/app/assets/components/iron-flex-layout/iron-flex-layout.html +313 -0
  11. data/app/assets/components/iron-meta/README.md +46 -0
  12. data/app/assets/components/iron-meta/bower.json +28 -0
  13. data/app/assets/components/iron-meta/demo/index.html +45 -0
  14. data/app/assets/components/iron-meta/hero.svg +33 -0
  15. data/app/assets/components/iron-meta/index.html +27 -0
  16. data/app/assets/components/iron-meta/iron-meta.html +352 -0
  17. data/app/assets/components/iron-meta/test/basic.html +48 -0
  18. data/app/assets/components/iron-meta/test/index.html +30 -0
  19. data/app/assets/components/iron-meta/test/iron-meta.html +186 -0
  20. data/app/assets/components/iron-resizable-behavior/README.md +16 -0
  21. data/app/assets/components/iron-resizable-behavior/bower.json +26 -0
  22. data/app/assets/components/iron-resizable-behavior/demo/index.html +29 -0
  23. data/app/assets/components/iron-resizable-behavior/demo/src/x-app.html +114 -0
  24. data/app/assets/components/iron-resizable-behavior/index.html +25 -0
  25. data/app/assets/components/iron-resizable-behavior/iron-resizable-behavior.html +139 -0
  26. data/app/assets/components/iron-resizable-behavior/test/basic.html +263 -0
  27. data/app/assets/components/iron-resizable-behavior/test/index.html +31 -0
  28. data/app/assets/components/iron-resizable-behavior/test/test-elements.html +143 -0
  29. data/app/assets/components/iron-selector/README.md +50 -0
  30. data/app/assets/components/iron-selector/bower.json +31 -0
  31. data/app/assets/components/iron-selector/demo/index.html +66 -0
  32. data/app/assets/components/iron-selector/index.html +28 -0
  33. data/app/assets/components/iron-selector/iron-multi-selectable.html +120 -0
  34. data/app/assets/components/iron-selector/iron-selectable.html +307 -0
  35. data/app/assets/components/iron-selector/iron-selection.html +115 -0
  36. data/app/assets/components/iron-selector/iron-selector.html +71 -0
  37. data/app/assets/components/iron-selector/test/activate-event.html +138 -0
  38. data/app/assets/components/iron-selector/test/basic.html +150 -0
  39. data/app/assets/components/iron-selector/test/content-element.html +43 -0
  40. data/app/assets/components/iron-selector/test/content.html +168 -0
  41. data/app/assets/components/iron-selector/test/index.html +36 -0
  42. data/app/assets/components/iron-selector/test/multi.html +135 -0
  43. data/app/assets/components/iron-selector/test/next-previous.html +134 -0
  44. data/app/assets/components/iron-selector/test/selected-attribute.html +72 -0
  45. data/app/assets/components/iron-selector/test/template-repeat.html +110 -0
  46. data/app/assets/components/neon-animation/README.md +304 -0
  47. data/app/assets/components/neon-animation/animations/cascaded-animation.html +84 -0
  48. data/app/assets/components/neon-animation/animations/fade-in-animation.html +49 -0
  49. data/app/assets/components/neon-animation/animations/fade-out-animation.html +49 -0
  50. data/app/assets/components/neon-animation/animations/hero-animation.html +83 -0
  51. data/app/assets/components/neon-animation/animations/opaque-animation.html +46 -0
  52. data/app/assets/components/neon-animation/animations/ripple-animation.html +92 -0
  53. data/app/assets/components/neon-animation/animations/scale-down-animation.html +65 -0
  54. data/app/assets/components/neon-animation/animations/scale-up-animation.html +58 -0
  55. data/app/assets/components/neon-animation/animations/slide-down-animation.html +59 -0
  56. data/app/assets/components/neon-animation/animations/slide-from-left-animation.html +60 -0
  57. data/app/assets/components/neon-animation/animations/slide-from-right-animation.html +60 -0
  58. data/app/assets/components/neon-animation/animations/slide-left-animation.html +59 -0
  59. data/app/assets/components/neon-animation/animations/slide-right-animation.html +59 -0
  60. data/app/assets/components/neon-animation/animations/slide-up-animation.html +59 -0
  61. data/app/assets/components/neon-animation/animations/transform-animation.html +61 -0
  62. data/app/assets/components/neon-animation/bower.json +51 -0
  63. data/app/assets/components/neon-animation/demo/declarative/index.html +108 -0
  64. data/app/assets/components/neon-animation/demo/doc/basic.html +47 -0
  65. data/app/assets/components/neon-animation/demo/doc/my-animatable.html +73 -0
  66. data/app/assets/components/neon-animation/demo/doc/my-dialog.html +97 -0
  67. data/app/assets/components/neon-animation/demo/doc/types.html +53 -0
  68. data/app/assets/components/neon-animation/demo/dropdown/animated-dropdown.html +97 -0
  69. data/app/assets/components/neon-animation/demo/dropdown/index.html +54 -0
  70. data/app/assets/components/neon-animation/demo/grid/animated-grid.html +166 -0
  71. data/app/assets/components/neon-animation/demo/grid/fullsize-page-with-card.html +124 -0
  72. data/app/assets/components/neon-animation/demo/grid/index.html +70 -0
  73. data/app/assets/components/neon-animation/demo/index.html +6 -0
  74. data/app/assets/components/neon-animation/demo/list/full-view.html +122 -0
  75. data/app/assets/components/neon-animation/demo/list/index.html +29 -0
  76. data/app/assets/components/neon-animation/demo/list/list-demo.html +112 -0
  77. data/app/assets/components/neon-animation/demo/list/list-view.html +127 -0
  78. data/app/assets/components/neon-animation/demo/load/animated-grid.html +147 -0
  79. data/app/assets/components/neon-animation/demo/load/full-page.html +86 -0
  80. data/app/assets/components/neon-animation/demo/load/index.html +45 -0
  81. data/app/assets/components/neon-animation/demo/reprojection/animated-grid.html +166 -0
  82. data/app/assets/components/neon-animation/demo/reprojection/fullsize-page-with-card.html +124 -0
  83. data/app/assets/components/neon-animation/demo/reprojection/index.html +66 -0
  84. data/app/assets/components/neon-animation/demo/reprojection/reprojected-pages.html +42 -0
  85. data/app/assets/components/neon-animation/demo/shared.css +40 -0
  86. data/app/assets/components/neon-animation/demo/tiles/circles-page.html +110 -0
  87. data/app/assets/components/neon-animation/demo/tiles/index.html +77 -0
  88. data/app/assets/components/neon-animation/demo/tiles/squares-page.html +104 -0
  89. data/app/assets/components/neon-animation/guides/neon-animation.md +313 -0
  90. data/app/assets/components/neon-animation/index.html +30 -0
  91. data/app/assets/components/neon-animation/neon-animatable-behavior.html +156 -0
  92. data/app/assets/components/neon-animation/neon-animatable.html +54 -0
  93. data/app/assets/components/neon-animation/neon-animated-pages.html +208 -0
  94. data/app/assets/components/neon-animation/neon-animation-behavior.html +88 -0
  95. data/app/assets/components/neon-animation/neon-animation-runner-behavior.html +110 -0
  96. data/app/assets/components/neon-animation/neon-animation.html +17 -0
  97. data/app/assets/components/neon-animation/neon-animations.html +25 -0
  98. data/app/assets/components/neon-animation/neon-shared-element-animatable-behavior.html +37 -0
  99. data/app/assets/components/neon-animation/neon-shared-element-animation-behavior.html +66 -0
  100. data/app/assets/components/neon-animation/web-animations.html +11 -0
  101. data/app/assets/components/neon-elements/README.md +19 -0
  102. data/app/assets/components/neon-elements/bower.json +26 -0
  103. data/app/assets/components/paper-styles/README.md +3 -0
  104. data/app/assets/components/paper-styles/bower.json +27 -0
  105. data/app/assets/components/paper-styles/classes/global.html +96 -0
  106. data/app/assets/components/paper-styles/classes/shadow-layout.html +302 -0
  107. data/app/assets/components/paper-styles/classes/shadow.html +39 -0
  108. data/app/assets/components/paper-styles/classes/typography.html +171 -0
  109. data/app/assets/components/paper-styles/color.html +333 -0
  110. data/app/assets/components/paper-styles/default-theme.html +39 -0
  111. data/app/assets/components/paper-styles/demo-pages.html +72 -0
  112. data/app/assets/components/paper-styles/demo.css +25 -0
  113. data/app/assets/components/paper-styles/paper-styles-classes.html +14 -0
  114. data/app/assets/components/paper-styles/paper-styles.html +17 -0
  115. data/app/assets/components/paper-styles/shadow.html +61 -0
  116. data/app/assets/components/paper-styles/typography.html +240 -0
  117. data/app/assets/components/polymer/LICENSE.txt +27 -0
  118. data/app/assets/components/polymer/bower.json +26 -0
  119. data/app/assets/components/polymer/build.log +27 -0
  120. data/app/assets/components/polymer/polymer-micro.html +523 -0
  121. data/app/assets/components/polymer/polymer-mini.html +1368 -0
  122. data/app/assets/components/polymer/polymer.html +3768 -0
  123. data/app/assets/components/web-animations-js/COPYING +202 -0
  124. data/app/assets/components/web-animations-js/History.md +108 -0
  125. data/app/assets/components/web-animations-js/README.md +161 -0
  126. data/app/assets/components/web-animations-js/bower.json +31 -0
  127. data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +17 -0
  128. data/app/assets/components/web-animations-js/web-animations-next-lite.min.js.map +1 -0
  129. data/app/assets/components/web-animations-js/web-animations-next.min.js +17 -0
  130. data/app/assets/components/web-animations-js/web-animations-next.min.js.map +1 -0
  131. data/app/assets/components/web-animations-js/web-animations.html +50 -0
  132. data/app/assets/components/web-animations-js/web-animations.min.js +17 -0
  133. data/app/assets/components/web-animations-js/web-animations.min.js.gz +0 -0
  134. data/app/assets/components/web-animations-js/web-animations.min.js.map +1 -0
  135. data/app/assets/components/webcomponentsjs/CustomElements.js +956 -0
  136. data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
  137. data/app/assets/components/webcomponentsjs/HTMLImports.js +1078 -0
  138. data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
  139. data/app/assets/components/webcomponentsjs/MutationObserver.js +344 -0
  140. data/app/assets/components/webcomponentsjs/MutationObserver.min.js +11 -0
  141. data/app/assets/components/webcomponentsjs/README.md +125 -0
  142. data/app/assets/components/webcomponentsjs/ShadowDOM.js +4414 -0
  143. data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +15 -0
  144. data/app/assets/components/webcomponentsjs/bower.json +14 -0
  145. data/app/assets/components/webcomponentsjs/build.log +33 -0
  146. data/app/assets/components/webcomponentsjs/package.json +31 -0
  147. data/app/assets/components/webcomponentsjs/webcomponents-lite.js +2300 -0
  148. data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +13 -0
  149. data/app/assets/components/webcomponentsjs/webcomponents.js +7112 -0
  150. data/app/assets/components/webcomponentsjs/webcomponents.min.js +15 -0
  151. data/lib/polymer-neon-rails.rb +2 -0
  152. data/lib/polymer-neon-rails/engine.rb +4 -0
  153. data/lib/polymer-neon-rails/version.rb +3 -0
  154. metadata +264 -0
@@ -0,0 +1,88 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+
11
+ <link rel="import" href="../polymer/polymer.html">
12
+ <link rel="import" href="../iron-meta/iron-meta.html">
13
+
14
+ <script>
15
+
16
+ /**
17
+ * Use `Polymer.NeonAnimationBehavior` to implement an animation.
18
+ * @polymerBehavior
19
+ */
20
+ Polymer.NeonAnimationBehavior = {
21
+
22
+ properties: {
23
+
24
+ /**
25
+ * Defines the animation timing.
26
+ */
27
+ animationTiming: {
28
+ type: Object,
29
+ value: function() {
30
+ return {
31
+ duration: 500,
32
+ easing: 'cubic-bezier(0.4, 0, 0.2, 1)',
33
+ fill: 'both'
34
+ }
35
+ }
36
+ }
37
+
38
+ },
39
+
40
+ registered: function() {
41
+ new Polymer.IronMeta({type: 'animation', key: this.is, value: this.constructor});
42
+ },
43
+
44
+ /**
45
+ * Do any animation configuration here.
46
+ */
47
+ // configure: function(config) {
48
+ // },
49
+
50
+ /**
51
+ * Returns the animation timing by mixing in properties from `config` to the defaults defined
52
+ * by the animation.
53
+ */
54
+ timingFromConfig: function(config) {
55
+ if (config.timing) {
56
+ for (var property in config.timing) {
57
+ this.animationTiming[property] = config.timing[property];
58
+ }
59
+ }
60
+ return this.animationTiming;
61
+ },
62
+
63
+ /**
64
+ * Sets `transform` and `transformOrigin` properties along with the prefixed versions.
65
+ */
66
+ setPrefixedProperty: function(node, property, value) {
67
+ var map = {
68
+ 'transform': ['webkitTransform'],
69
+ 'transformOrigin': ['mozTransformOrigin', 'webkitTransformOrigin']
70
+ };
71
+ var prefixes = map[property];
72
+ for (var prefix, index = 0; prefix = prefixes[index]; index++) {
73
+ node.style[prefix] = value;
74
+ }
75
+ node.style[property] = value;
76
+ },
77
+
78
+ /**
79
+ * Called when the animation finishes.
80
+ */
81
+ complete: function() {
82
+ // FIXME not sure about non-bubbling event
83
+ this.fire(this.animationEndEvent, null, {bubbles: false});
84
+ }
85
+
86
+ };
87
+
88
+ </script>
@@ -0,0 +1,110 @@
1
+ <!--
2
+ Copyright (c) 2015 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
+ <link rel="import" href="../polymer/polymer.html">
10
+ <link rel="import" href="../iron-meta/iron-meta.html">
11
+ <link rel="import" href="neon-animatable-behavior.html">
12
+
13
+ <script>
14
+
15
+ /**
16
+ * `Polymer.NeonAnimationRunnerBehavior` adds a method to run animations.
17
+ * @polymerBehavior
18
+ */
19
+ Polymer.NeonAnimationRunnerBehavior = [Polymer.NeonAnimatableBehavior, {
20
+
21
+ properties: {
22
+
23
+ _animationMeta: {
24
+ type: Object,
25
+ value: function() {
26
+ return new Polymer.IronMeta({type: 'animation'});
27
+ }
28
+ },
29
+
30
+ _player: {
31
+ type: Object
32
+ }
33
+
34
+ },
35
+
36
+ _configureAnimationEffects: function(allConfigs) {
37
+ var allAnimations = [];
38
+ if (allConfigs.length > 0) {
39
+ for (var config, index = 0; config = allConfigs[index]; index++) {
40
+ var animationConstructor = this._animationMeta.byKey(config.name);
41
+ if (animationConstructor) {
42
+ var animation = animationConstructor && new animationConstructor();
43
+ var effect = animation.configure(config);
44
+ if (effect) {
45
+ allAnimations.push({
46
+ animation: animation,
47
+ config: config,
48
+ effect: effect
49
+ });
50
+ }
51
+ } else {
52
+ console.warn(this.is + ':', config.name, 'not found!');
53
+ }
54
+ }
55
+ }
56
+ return allAnimations;
57
+ },
58
+
59
+ _runAnimationEffects: function(allEffects) {
60
+ return player = document.timeline.play(new GroupEffect(allEffects));
61
+ },
62
+
63
+ _completeAnimations: function(allAnimations) {
64
+ for (var animation, index = 0; animation = allAnimations[index]; index++) {
65
+ animation.animation.complete(animation.config);
66
+ }
67
+ },
68
+
69
+ /**
70
+ * Plays an animation with an optional `type`.
71
+ */
72
+ playAnimation: function(type, cookie) {
73
+ var allConfigs = this.getAnimationConfig(type);
74
+ if (!allConfigs) {
75
+ return;
76
+ }
77
+ var allAnimations = this._configureAnimationEffects(allConfigs);
78
+ var allEffects = allAnimations.map(function(animation) {
79
+ return animation.effect;
80
+ });
81
+
82
+ if (allEffects.length > 0) {
83
+ this._player = this._runAnimationEffects(allEffects);
84
+ this._player.onfinish = function() {
85
+ this._completeAnimations(allAnimations);
86
+
87
+ if (this._player) {
88
+ this._player.cancel();
89
+ this._player = null;
90
+ }
91
+
92
+ this.fire('neon-animation-finish', cookie, {bubbles: false});
93
+ }.bind(this);
94
+
95
+ } else {
96
+ this.fire('neon-animation-finish', cookie, {bubbles: false});
97
+ }
98
+ },
99
+
100
+ /**
101
+ * Cancels the currently running animation.
102
+ */
103
+ cancelAnimation: function() {
104
+ if (this._player) {
105
+ this._player.cancel();
106
+ }
107
+ }
108
+
109
+ }];
110
+ </script>
@@ -0,0 +1,17 @@
1
+ <!--
2
+ Copyright (c) 2015 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
+ <link rel="import" href="neon-animatable-behavior.html">
11
+ <link rel="import" href="neon-animated-pages.html">
12
+ <link rel="import" href="neon-animatable.html">
13
+ <link rel="import" href="neon-animation-behavior.html">
14
+ <link rel="import" href="neon-animation-runner-behavior.html">
15
+ <link rel="import" href="neon-animations.html">
16
+ <link rel="import" href="neon-shared-element-animatable-behavior.html">
17
+ <link rel="import" href="neon-shared-element-animation-behavior.html">
@@ -0,0 +1,25 @@
1
+ <!--
2
+ Copyright (c) 2015 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
+ <link rel="import" href="../polymer/polymer.html">
10
+ <link rel="import" href="animations/cascaded-animation.html">
11
+ <link rel="import" href="animations/fade-in-animation.html">
12
+ <link rel="import" href="animations/fade-out-animation.html">
13
+ <link rel="import" href="animations/hero-animation.html">
14
+ <link rel="import" href="animations/opaque-animation.html">
15
+ <link rel="import" href="animations/ripple-animation.html">
16
+ <link rel="import" href="animations/scale-down-animation.html">
17
+ <link rel="import" href="animations/scale-up-animation.html">
18
+ <link rel="import" href="animations/slide-from-left-animation.html">
19
+ <link rel="import" href="animations/slide-from-right-animation.html">
20
+ <link rel="import" href="animations/slide-left-animation.html">
21
+ <link rel="import" href="animations/slide-right-animation.html">
22
+ <link rel="import" href="animations/slide-up-animation.html">
23
+ <link rel="import" href="animations/slide-down-animation.html">
24
+ <link rel="import" href="animations/transform-animation.html">
25
+
@@ -0,0 +1,37 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+
11
+ <link rel="import" href="../polymer/polymer.html">
12
+ <link rel="import" href="neon-animatable-behavior.html">
13
+
14
+ <script>
15
+
16
+ /**
17
+ * Use `Polymer.NeonSharedElementAnimatableBehavior` to implement elements containing shared element
18
+ * animations.
19
+ * @polymerBehavior
20
+ */
21
+ Polymer.NeonSharedElementAnimatableBehavior = [Polymer.NeonAnimatableBehavior, {
22
+
23
+ properties: {
24
+
25
+ /**
26
+ * A map of shared element id to node.
27
+ */
28
+ sharedElements: {
29
+ type: Object,
30
+ value: {}
31
+ }
32
+
33
+ }
34
+
35
+ }];
36
+
37
+ </script>
@@ -0,0 +1,66 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+
11
+ <link rel="import" href="../polymer/polymer.html">
12
+ <link rel="import" href="neon-animation-behavior.html">
13
+
14
+ <script>
15
+
16
+ /**
17
+ * Use `Polymer.NeonSharedElementAnimationBehavior` to implement shared element animations.
18
+ * @polymerBehavior
19
+ */
20
+ Polymer.NeonSharedElementAnimationBehavior = [Polymer.NeonAnimationBehavior, {
21
+
22
+ properties: {
23
+
24
+ /**
25
+ * Cached copy of shared elements.
26
+ */
27
+ sharedElements: {
28
+ type: Object
29
+ }
30
+
31
+ },
32
+
33
+ /**
34
+ * Finds shared elements based on `config`.
35
+ */
36
+ findSharedElements: function(config) {
37
+ var fromPage = config.fromPage;
38
+ var toPage = config.toPage;
39
+ if (!fromPage || !toPage) {
40
+ console.warn(this.is + ':', !fromPage ? 'fromPage' : 'toPage', 'is undefined!');
41
+ return null;
42
+ };
43
+
44
+ if (!fromPage.sharedElements || !toPage.sharedElements) {
45
+ console.warn(this.is + ':', 'sharedElements are undefined for', !fromPage.sharedElements ? fromPage : toPage);
46
+ return null;
47
+ };
48
+
49
+ var from = fromPage.sharedElements[config.id]
50
+ var to = toPage.sharedElements[config.id];
51
+
52
+ if (!from || !to) {
53
+ console.warn(this.is + ':', 'sharedElement with id', config.id, 'not found in', !from ? fromPage : toPage);
54
+ return null;
55
+ }
56
+
57
+ this.sharedElements = {
58
+ from: from,
59
+ to: to
60
+ };
61
+ return this.sharedElements;
62
+ }
63
+
64
+ }];
65
+
66
+ </script>
@@ -0,0 +1,11 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+
11
+ <script src="../web-animations-js/web-animations-next-lite.min.js"></script>
@@ -0,0 +1,19 @@
1
+ # neon-elements
2
+
3
+ The neon elements are for flashy transitions and animations.
4
+
5
+ ## Roadmap
6
+
7
+ ### Elements in progress
8
+
9
+ * `neon-animations` - This is released an usable but we're still adding to it. It contains a ton of neat animation features, including much of the behavior previously in `core-animated-pages`.
10
+
11
+ ### Elements planned
12
+ _Elements we're planning on building soon but haven't started yet_
13
+
14
+ [Lot's we're planning on here, but nothing explicit to list. If there are specific animations you'd like to see, feel free to file issues!]
15
+
16
+ ### Elements not planned, notably
17
+ _Elements we're not planning on building as part of this product line, but that one might be wondering about_
18
+
19
+ [None]
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "neon-elements",
3
+ "version": "1.0.0",
4
+ "homepage": "https://github.com/PolymerElements/neon-elements",
5
+ "authors": [
6
+ "The Polymer Authors"
7
+ ],
8
+ "description": "\"Neon elements implement special effects.\"",
9
+ "main": "\"neon-elements.html\"",
10
+ "keywords": [
11
+ "web-components",
12
+ "polymer",
13
+ "paper"
14
+ ],
15
+ "license": "http://polymer.github.io/LICENSE.txt",
16
+ "ignore": [
17
+ "**/.*",
18
+ "node_modules",
19
+ "bower_components",
20
+ "test",
21
+ "tests"
22
+ ],
23
+ "dependencies": {
24
+ "neon-animation": "PolymerElements/neon-animation#^1.0.0"
25
+ }
26
+ }
@@ -0,0 +1,3 @@
1
+ # paper-styles
2
+
3
+ Material design CSS styles.
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "paper-styles",
3
+ "version": "1.0.4",
4
+ "description": "Common (global) styles for Material Design elements.",
5
+ "authors": [
6
+ "The Polymer Authors"
7
+ ],
8
+ "keywords": [
9
+ "web-component",
10
+ "polymer",
11
+ "style"
12
+ ],
13
+ "main": "paper-styles.html",
14
+ "license": "http://polymer.github.io/LICENSE.txt",
15
+ "homepage": "https://github.com/polymerelements/paper-styles/",
16
+ "ignore": [
17
+ "/.*",
18
+ "/demo/"
19
+ ],
20
+ "dependencies": {
21
+ "iron-flex-layout": "polymerelements/iron-flex-layout#^1.0.0",
22
+ "polymer": "Polymer/polymer#^1.0.0"
23
+ },
24
+ "devDependencies": {
25
+ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
26
+ }
27
+ }
@@ -0,0 +1,96 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+ <link rel="import" href="../paper-styles-classes.html">
11
+
12
+ <!--
13
+ A set of base styles that are applied to the document and standard elements that
14
+ match the Material Design spec.
15
+ -->
16
+ <style>
17
+ /*
18
+ Note that there is a lot of style duplication here. The hope is that the Polymer
19
+ 0.8 styling solution will allow for inheritance of properties so that we can
20
+ eventually avoid it.
21
+ */
22
+
23
+ /* Mixins */
24
+
25
+ /* [paper-font] */
26
+ body {
27
+ font-family: 'Roboto', 'Noto', sans-serif;
28
+ -webkit-font-smoothing: antialiased; /* OS X subpixel AA bleed bug */
29
+ }
30
+
31
+ /* [paper-font=display2] */
32
+ h1 {
33
+ font-size: 45px;
34
+ font-weight: 400;
35
+ letter-spacing: -.018em;
36
+ line-height: 48px;
37
+ }
38
+
39
+ /* [paper-font=display1] */
40
+ h2 {
41
+ font-size: 34px;
42
+ font-weight: 400;
43
+ letter-spacing: -.01em;
44
+ line-height: 40px;
45
+ }
46
+
47
+ /* [paper-font=headline] */
48
+ h3 {
49
+ font-size: 24px;
50
+ font-weight: 400;
51
+ letter-spacing: -.012em;
52
+ line-height: 32px;
53
+ }
54
+
55
+ /* [paper-font=subhead] */
56
+ h4 {
57
+ font-size: 16px;
58
+ font-weight: 400;
59
+ line-height: 24px;
60
+ }
61
+
62
+ /* [paper-font=body2] */
63
+ h5, h6 {
64
+ font-size: 14px;
65
+ font-weight: 500;
66
+ line-height: 24px;
67
+ }
68
+
69
+ /* [paper-font=button] */
70
+ a {
71
+ font-size: 14px;
72
+ font-weight: 500;
73
+ letter-spacing: 0.018em;
74
+ line-height: 24px;
75
+ text-transform: uppercase;
76
+ }
77
+
78
+ /* Overrides */
79
+
80
+ body, a {
81
+ color: #212121;
82
+ }
83
+
84
+ h1, h2, h3, h4, h5, h6, p {
85
+ margin: 0 0 20px 0;
86
+ }
87
+
88
+ h1, h2, h3, h4, h5, h6, a {
89
+ text-rendering: optimizeLegibility;
90
+ }
91
+
92
+ a {
93
+ text-decoration: none;
94
+ }
95
+
96
+ </style>