Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

8/1 master -> stable #17

Merged
merged 45 commits into from
Aug 1, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ab2cfb1
polymer-animation: properties -> keyframes
Jul 12, 2013
b71cfc6
Setting .responseType needs to come after open
ebidel Jul 12, 2013
a3a4b84
adjust transition duration from 0.5 to 0.33
frankiefu Jul 12, 2013
22498e9
allow 'flex' as well as 'fit'
Jul 12, 2013
3629cab
new polymer-elements
Jul 13, 2013
62d82e8
fix path to polymer.js
Jul 13, 2013
76af4de
polymer-meta: allow different type of metadata
frankiefu Jul 15, 2013
fdd023a
Merge pull request #11 from ebidel/master
frankiefu Jul 16, 2013
ab736e7
better support on multi-selection, allow to use selected to set
frankiefu Jul 16, 2013
e554b4d
create polymer-flex-panel which is a flexbox container
frankiefu Jul 16, 2013
b3d6b99
remove listeners correctly
frankiefu Jul 16, 2013
2b27a61
add test for multi-selection in polymer-selector
frankiefu Jul 16, 2013
a3c8a99
add gruntfile for building docs, and manifest.xml for discovery
Jul 17, 2013
f91b89e
fix commit:a3c8a99 which overwrites some previous changes
frankiefu Jul 17, 2013
0af4253
add attributes h-flex and v-flex for flexbox (row/column)
frankiefu Jul 17, 2013
d68e042
fix doc tool provisioning
Jul 18, 2013
dd9cb8f
add 'tools' submodule for doc support
Jul 19, 2013
bedd75f
don't need to collapse if the target's initial size is 0 (closed)
frankiefu Jul 19, 2013
5320f18
don't need to collapse/hide if the target's initial size is 0
frankiefu Jul 19, 2013
d448fd5
polymer-animation: update polymer-translate
Jul 15, 2013
32a2181
polymer-animation: use TimingEvents
Jul 23, 2013
c69074b
include docs infrastructure
Jul 18, 2013
6f41849
consolidate unpositioning
Jul 23, 2013
3648208
freshen tools
Jul 23, 2013
d3f3ba3
tweak the hiding code to try to get less janky transitions
Jul 24, 2013
49318f9
(only a) starting point for polymer-list
Jul 24, 2013
a312d18
allow items to be not inside polymer-selector; using "target" to specify
frankiefu Jul 25, 2013
fd6d2db
remove inline styling
sorvell Jul 25, 2013
a1f945f
collapse: make opening and closing have the same delay
frankiefu Jul 25, 2013
8972b13
Avoid conflicts between click and tap by asynchronously listening for…
sorvell Jul 25, 2013
98c6c9e
add missing polymer-grid.html
frankiefu Jul 25, 2013
c88b9b3
polymer-overlay: overlay animations
Jul 10, 2013
6f743ed
polymer-animation: fix declarative
Jul 23, 2013
b88dc31
polymer-animation: refactor some event stuff
Jul 23, 2013
d473e01
just use ::-webkit-distributed without content prefix
frankiefu Jul 29, 2013
1ce11ae
add selectedItem to published
frankiefu Jul 29, 2013
7ba9633
remove async fire
frankiefu Jul 29, 2013
d06d688
Merge branch 'master' of github.com:Polymer/polymer-elements
frankiefu Jul 29, 2013
fe2da1a
h-flex to h-flexbox and v-flex to v-flexbox
frankiefu Jul 30, 2013
1866e99
experiments with grid layout handling of 'unused' panels
Jul 30, 2013
aa44365
use defaultClosed to indicate the target is already closed
frankiefu Jul 30, 2013
db5afa2
set selectedItem before setting selection
frankiefu Jul 30, 2013
79aad0c
Merge branch 'master' of github.com:Polymer/polymer-elements
frankiefu Jul 30, 2013
aae8ab5
revert previous checkin
frankiefu Jul 31, 2013
605905a
remove use of noscript.
sorvell Jul 31, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/node_modules
/docs

/build.bat
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tools"]
path = tools
url = https://github.com/Polymer/tools.git
35 changes: 35 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
yuidoc: {
compile: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
exclude: 'docs',
extension: '.js,.html',
paths: '.',
outdir: 'docs',
linkNatives: 'true',
tabtospace: 2,
themedir: 'tools/doc/themes/footstrap'
}
}
}
});

// plugins
grunt.loadNpmTasks('grunt-contrib-yuidoc');

// tasks
grunt.registerTask('default', ['yuidoc']);
grunt.registerTask('docs', ['yuidoc']);
};

22 changes: 22 additions & 0 deletions manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<meta>
<polymer-element-meta name="polymer-ajax"></polymer-element-meta>
<polymer-element-meta name="polymer-animation"></polymer-element-meta>
<polymer-element-meta name="polymer-collapse"></polymer-element-meta>
<polymer-element-meta name="polymer-file"></polymer-element-meta>
<polymer-element-meta name="polymer-flex-layout"></polymer-element-meta>
<polymer-element-meta name="polymer-google-jsapi"></polymer-element-meta>
<polymer-element-meta name="polymer-grid-layout"></polymer-element-meta>
<polymer-element-meta name="polymer-flex-layout"></polymer-element-meta>
<polymer-element-meta name="polymer-jsonp"></polymer-element-meta>
<polymer-element-meta name="polymer-key-helper"></polymer-element-meta>
<polymer-element-meta name="polymer-layout"></polymer-element-meta>
<polymer-element-meta name="polymer-localstorage"></polymer-element-meta>
<polymer-element-meta name="polymer-media-query"></polymer-element-meta>
<polymer-element-meta name="polymer-meta"></polymer-element-meta>
<polymer-element-meta name="polymer-overlay"></polymer-element-meta>
<polymer-element-meta name="polymer-page"></polymer-element-meta>
<polymer-element-meta name="polymer-selector"></polymer-element-meta>
<polymer-element-meta name="polymer-shared-lib"></polymer-element-meta>
<polymer-element-meta name="polymer-view-source-link"></polymer-element-meta>
</meta>
10 changes: 1 addition & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@
"name": "PolymerElements",
"version": "0.0.1",
"devDependencies": {
"mocha": "*",
"chai": "*",
"grunt": "*",
"grunt-contrib-uglify": "*",
"grunt-contrib-yuidoc": "*",
"grunt-karma-0.9.1": "~0.4.3",
"karma-mocha": "*",
"karma-browserstack-launcher": "*",
"karma-script-launcher": "*",
"karma-crbot-reporter": "*"
"grunt-contrib-yuidoc": "*"
}
}
2 changes: 1 addition & 1 deletion polymer-ajax/polymer-xhr.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
if (params && method == 'GET') {
url += (url.indexOf('?') > 0 ? '&' : '?') + params;
}
xhr.open(method, url, async);
if (options.responseType) {
xhr.responseType = options.responseType;
}
xhr.open(method, url, async);
this.makeReadyStateHandler(xhr, options.callback);
this.setRequestHeaders(options.headers);
xhr.send(method == 'POST' ? (options.body || params) : null);
Expand Down
69 changes: 47 additions & 22 deletions polymer-animation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,46 +40,71 @@
<div class="animations">
<polymer-animation duration="1">
raw
<polymer-animation-prop name="opacity" easing="ease-in-out">
<polymer-animation-keyframe value="1"></polymer-animation-keyframe>
<polymer-animation-keyframe value="0.3"></polymer-animation-keyframe>
<polymer-animation-keyframe value="1"></polymer-animation-keyframe>
</polymer-animation-prop>
<polymer-animation-keyframe>
<polymer-animation-prop name="opacity" value="1">
</polymer-animation-prop>
</polymer-animation-keyframe>
<polymer-animation-keyframe>
<polymer-animation-prop name="opacity" value="0.3">
</polymer-animation-prop>
</polymer-animation-keyframe>
<polymer-animation-keyframe>
<polymer-animation-prop name="opacity" value="1">
</polymer-animation-prop>
</polymer-animation-keyframe>
</polymer-animation>
<polymer-animation-group type="seq">
raw group
<polymer-animation duration="0.3">
<polymer-animation-prop name="opacity" easing="ease-in-out">
<polymer-animation-keyframe value="1"></polymer-animation-keyframe>
<polymer-animation-keyframe value="0.3"></polymer-animation-keyframe>
<polymer-animation-keyframe value="1"></polymer-animation-keyframe>
</polymer-animation-prop>
<polymer-animation-keyframe>
<polymer-animation-prop name="opacity" value="1">
</polymer-animation-prop>
</polymer-animation-keyframe>
<polymer-animation-keyframe>
<polymer-animation-prop name="opacity" value="0.3">
</polymer-animation-prop>
</polymer-animation-keyframe>
<polymer-animation-keyframe>
<polymer-animation-prop name="opacity" value="1">
</polymer-animation-prop>
</polymer-animation-keyframe>
</polymer-animation>
<polymer-animation duration="0.3">
<polymer-animation-prop name="transform" easing="ease-in-out">
<polymer-animation-keyframe value="scale(1)"></polymer-animation-keyframe>
<polymer-animation-keyframe value="scale(1.2)"></polymer-animation-keyframe>
<polymer-animation-keyframe value="scale(1)"></polymer-animation-keyframe>
</polymer-animation-prop>
<polymer-animation-keyframe>
<polymer-animation-prop name="transform" value="scale(1)">
</polymer-animation-prop>
</polymer-animation-keyframe>
<polymer-animation-keyframe>
<polymer-animation-prop name="transform" value="scale(1.2)">
</polymer-animation-prop>
</polymer-animation-keyframe>
<polymer-animation-keyframe>
<polymer-animation-prop name="transform" value="scale(1)">
</polymer-animation-prop>
</polymer-animation-keyframe>
</polymer-animation>
</polymer-animation-group>
<polymer-bounce duration="1">bounce</polymer-bounce>
<polymer-shake>shake</polymer-shake>
<polymer-shake duration="Infinity">shake forever</polymer-shake>
<!--<polymer-shake duration="Infinity">shake forever</polymer-shake>//-->
<polymer-flip>flip X</polymer-flip>
<polymer-flip axis="y">flip Y</polymer-flip>
<polymer-blink>blink</polymer-blink>
<polymer-fadein>fade in</polymer-fadein>
<polymer-fadeout>fade out</polymer-fadeout>
<polymer-fadeout>fade out (with event)</polymer-fadeout>
</div>
<script>
document.addEventListener('WebComponentsReady', function() {
document.querySelector('.animations').addEventListener('click',
function(e) {
var animation = e.target;
animation.target = target;
animation.play();
});
function(e) {
var animation = e.target;
animation.target = target;
animation.play();
});
document.querySelector('polymer-fadeout').addEventListener(
'complete', function(e) {
alert('complete!');
});
});
</script>
</body>
Expand Down
23 changes: 7 additions & 16 deletions polymer-animation/polymer-animation-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,6 @@
/**
* Component for a group of animations.
*
* A fade in and move animation in sequence:
*
* <polymer-animation-group type="seq">
* <polymer-animation>
* <polymer-animation-prop name="opacity">
* <polymer-animation-keyframe value="0.5" offset="0"></polymer-animation-keyframe>
* <polymer-animation-keyframe value="1" offset="1"></polymer-animation-keyframe>
* <polymer-animation-prop>
* </polymer-animation>
* <polymer-animation>
* <polymer-animation-prop name="transform">
* <polymer-animation-keyframe value="translateX(0)" offset="0"></polymer-animation-keyframe>
* <polymer-animation-keyframe value="translateX(100px)" offset="1"></polymer-animation-keyframe>
* <polymer-animation-prop>
* </polymer-animation>
* </polymer-animation-group>
* @class polymer-animation-group
*/
Polymer('polymer-animation-group', {
Expand Down Expand Up @@ -55,6 +39,13 @@
makeAnimation: function() {
return new ANIMATION_GROUPS[this.type](this.childAnimations, this.timingProps);
},
doOnChildren: function(inFn) {
var children = this.children;
if (!children.length) {
children = this.webkitShadowRoot ? this.webkitShadowRoot.childNodes : [];
}
Array.prototype.forEach.call(children, inFn, this);
},
completeApply: function() {
this.doOnChildren(function(c) {
c.completeApply();
Expand Down
31 changes: 10 additions & 21 deletions polymer-animation/polymer-animation-keyframe.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
<polymer-element name="polymer-animation-keyframe" attributes="offset value easing">
<script>
/**
* Defines the value at a keyframe for the containing `polymer-animation-prop`.
* Defines a keyframe in an animation. Its children should be
* `<polymer-animation-prop>` elements specifying the css
* property value at the keyframe.
*
* @class polymer-animation-keyframe
*/
/**
* From 0 to 1.
* @property offset
* @type Number
* @required
*/
/**
* Property value at the animation offset.
* @property value
* @type String
* @required
*/
/**
* @property easing
* @type String
*/
Polymer('polymer-animation-keyframe', {
get properties() {
var props = {
// TODO bug in webanimations polyfill
value: String(this.value) || "",
};
var more = this.offset !== null || this.easing;
var props = {};
var children = this.querySelectorAll('polymer-animation-prop');
Array.prototype.forEach.call(children, function(c) {
props[c.name] = c.value;
});
if (this.offset !== null) {
props.offset = this.offset;
}
if (this.easing) {
props.timingFunction = this.easing;
}
return more ? props : String(this.value);
return props;
}
});
</script>
Expand Down
20 changes: 8 additions & 12 deletions polymer-animation/polymer-animation-prop.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
<link rel="import" href="polymer-animation-keyframe.html">
<polymer-element name="polymer-animation-prop" attributes="name">
<polymer-element name="polymer-animation-prop" attributes="name value">
<script>
/**
* An animated property. Its children should be `<polymer-animation-keyframe>`
* elements specifying the keyframe values.
* A CSS property and value to use in a `<polymer-animation-keyframe>`.
*
* Declaring an property to move down and then right:
*
* <polymer-animation-prop name="transform">
* <polymer-animation-keyframe offset="0" value="translate(0,0)"></polymer-animation-keyframe>
* <polymer-animation-keyframe offset="0.5" value="translate(0,100px)"></polymer-animation-keyframe>
* <polymer-animation-keyframe offset="1" value="translate(100px,100px)"></polymer-animation-keyframe>
* </polymer-animation-prop>
* @class polymer-animation-prop
*/
/**
Expand All @@ -20,6 +11,11 @@
* @type String
* @required
*/
Polymer('polymer-animation-prop');
/**
* CSS property value.
* @property value
* @required
*/
Polymer('polymer-animation-prop');
</script>
</polymer-element>
Loading