Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated components. new iron-list
Browse files Browse the repository at this point in the history
jrabbit committed Jul 18, 2015
1 parent bb359ec commit 7fdf210
Showing 204 changed files with 33,811 additions and 1,116 deletions.
10 changes: 5 additions & 5 deletions bower_components/font-roboto/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "font-roboto",
"version": "1.0.0",
"version": "1.0.1",
"description": "An HTML import for Roboto",
"authors": [
"The Polymer Authors"
@@ -19,13 +19,13 @@
"ignore": [
"/.*"
],
"_release": "1.0.0",
"_release": "1.0.1",
"_resolution": {
"type": "version",
"tag": "1.0.0",
"commit": "b85b217e5f4b31f9c03b588e25c977b8104a40cd"
"tag": "v1.0.1",
"commit": "21ce9b51a417fa9995cf6606e886aba0728f70a1"
},
"_source": "git://github.com/PolymerElements/font-roboto.git",
"_target": "^1.0.0",
"_target": "^1.0.1",
"_originalSource": "PolymerElements/font-roboto"
}
2 changes: 1 addition & 1 deletion bower_components/font-roboto/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "font-roboto",
"version": "1.0.0",
"version": "1.0.1",
"description": "An HTML import for Roboto",
"authors": [
"The Polymer Authors"
3 changes: 2 additions & 1 deletion bower_components/font-roboto/roboto.html
Original file line number Diff line number Diff line change
@@ -7,4 +7,5 @@
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700">
8 changes: 4 additions & 4 deletions bower_components/hydrolysis/.bower.json
Original file line number Diff line number Diff line change
@@ -19,13 +19,13 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "*"
},
"version": "1.15.1",
"version": "1.15.2",
"homepage": "https://github.com/Polymer/hydrolysis",
"_release": "1.15.1",
"_release": "1.15.2",
"_resolution": {
"type": "version",
"tag": "v1.15.1",
"commit": "ee5fe9ba6735e18e0358f7946045515ac9e29313"
"tag": "v1.15.2",
"commit": "3b255182fd39a273c255ac2a49db8d06d96f667d"
},
"_source": "git://github.com/Polymer/hydrolysis.git",
"_target": "^1.11",
179 changes: 166 additions & 13 deletions bower_components/hydrolysis/hydrolysis.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bower_components/iron-a11y-announcer/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-a11y-announcer",
"version": "1.0.1",
"version": "1.0.2",
"description": "A singleton element that simplifies announcing text to screen readers.",
"keywords": [
"web-components",
@@ -30,11 +30,11 @@
"web-component-tester": "*"
},
"homepage": "https://github.com/PolymerElements/iron-a11y-announcer",
"_release": "1.0.1",
"_release": "1.0.2",
"_resolution": {
"type": "version",
"tag": "v1.0.1",
"commit": "699697fe8935400ab11e3e33cd6a5a54d762300e"
"tag": "v1.0.2",
"commit": "6010b30a67a12333f76394a558c820db727f7c84"
},
"_source": "git://github.com/PolymerElements/iron-a11y-announcer.git",
"_target": "^1.0.0",
2 changes: 1 addition & 1 deletion bower_components/iron-a11y-announcer/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-a11y-announcer",
"version": "1.0.1",
"version": "1.0.2",
"description": "A singleton element that simplifies announcing text to screen readers.",
"keywords": [
"web-components",
Original file line number Diff line number Diff line change
@@ -114,7 +114,7 @@

Polymer.IronA11yAnnouncer.requestAvailability = function() {
if (!Polymer.IronA11yAnnouncer.instance) {
document.createElement('iron-a11y-announcer');
Polymer.IronA11yAnnouncer.instance = document.createElement('iron-a11y-announcer');
}

document.body.appendChild(Polymer.IronA11yAnnouncer.instance);
12 changes: 6 additions & 6 deletions bower_components/iron-ajax/.bower.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "iron-ajax",
"version": "1.0.2",
"version": "1.0.3",
"description": "Makes it easy to make ajax calls and parse the response",
"private": true,
"authors": [
"The Polymer Authors"
],
"keywords": [
"web-components",
"web-component",
"polymer"
"polymer",
"ajax"
],
"main": [
"iron-ajax.html",
@@ -35,11 +35,11 @@
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.0.2",
"_release": "1.0.3",
"_resolution": {
"type": "version",
"tag": "v1.0.2",
"commit": "6ed75a4425b709e6825cd4970e800b053ff8ffd8"
"tag": "v1.0.3",
"commit": "32d96a1064a522cdc8e2cb5462b45d5232a7df16"
},
"_source": "git://github.com/PolymerElements/iron-ajax.git",
"_target": "^1.0.0",
9 changes: 4 additions & 5 deletions bower_components/iron-ajax/README.md
Original file line number Diff line number Diff line change
@@ -4,12 +4,11 @@ iron-ajax
The `iron-ajax` element exposes network request functionality.

```html
<iron-ajax
auto
url="http://gdata.youtube.com/feeds/api/videos/"
params='{"alt":"json", "q":"chrome"}'
<iron-ajax auto
url="https://www.googleapis.com/youtube/v3/search"
params='{"part":"snippet", "q":"polymer", "key": "AIzaSyAuecFZ9xJXbGDkQYWBmYrtzOGJD-iDIgI", "type": "video"}'
handle-as="json"
on-response="handleResponse"></iron-ajax>
last-response="{{ajaxResponse}}"></iron-ajax>
```

With `auto` set to `true`, the element performs a request whenever
6 changes: 3 additions & 3 deletions bower_components/iron-ajax/bower.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "iron-ajax",
"version": "1.0.2",
"version": "1.0.3",
"description": "Makes it easy to make ajax calls and parse the response",
"private": true,
"authors": [
"The Polymer Authors"
],
"keywords": [
"web-components",
"web-component",
"polymer"
"polymer",
"ajax"
],
"main": [
"iron-ajax.html",
28 changes: 20 additions & 8 deletions bower_components/iron-ajax/demo/index.html
Original file line number Diff line number Diff line change
@@ -27,19 +27,31 @@
</head>
<body>

<template is="dom-bind">
<iron-ajax auto url="//gdata.youtube.com/feeds/api/videos/"
params='{"alt":"json", "q":"polymer"}'
handle-as="json" last-response="{{ajaxResponse}}"></iron-ajax>
<template is="dom-bind" id="app">
<iron-ajax auto
url="https://www.googleapis.com/youtube/v3/search"
params='{"part":"snippet", "q":"polymer", "key": "AIzaSyAuecFZ9xJXbGDkQYWBmYrtzOGJD-iDIgI", "type": "video"}'
handle-as="json"
last-response="{{ajaxResponse}}"></iron-ajax>

<h1>Video Feed</h1>
<section class="flex layout horizontal wrap">
<template is="dom-repeat" items="[[ajaxResponse.feed.entry]]">
<a href="[[item.link.0.href]]" target="_blank">
<iron-image src="[[item.media$group.media$thumbnail.0.url]]" width="256" height="256" sizing="cover" preload fade></iron-image>
</a>
<template is="dom-repeat" items="[[ajaxResponse.items]]">
<div>
<h2><a href="[[url(item.id.videoId)]]" target="_blank">[[item.snippet.title]]</a></h2>
<iron-image src="[[item.snippet.thumbnails.high.url]]" width="256" height="256" sizing="cover" preload fade></iron-image>
<p>[[item.snippet.description]]</p>
</div>
</template>
</section>
</template>

<script>
var app = document.querySelector('#app');

app.url = function (videoId) {
return 'https://www.youtube.com/watch?v=' + videoId;
};
</script>
</body>
</html>
33 changes: 33 additions & 0 deletions bower_components/iron-ajax/hero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 31 additions & 15 deletions bower_components/iron-ajax/iron-ajax.html
Original file line number Diff line number Diff line change
@@ -32,9 +32,11 @@
element.
@demo demo/index.html
@hero hero.svg
-->

<script>
'use strict';

Polymer({

@@ -98,8 +100,7 @@
* auto
* url="http://somesite.com"
* headers='{"X-Requested-With": "XMLHttpRequest"}'
* handle-as="json"
* last-response-changed="{{handleResponse}}"></iron-ajax>
* handle-as="json"></iron-ajax>
*
* Note: setting a `Content-Type` header here will override the value
* specified by the `contentType` property of this element.
@@ -118,21 +119,31 @@
*/
contentType: {
type: String,
value: 'application/x-www-form-urlencoded'
value: null
},

/**
* Optional raw body content to send when method === "POST".
* Body content to send with the request, typically used with "POST"
* requests.
*
* Example:
* If body is a string it will be sent unmodified.
*
* If Content-Type is set to a value listed below, then
* the body will be encoded accordingly.
*
* * `content-type="application/json"`
* * body is encoded like `{"foo":"bar baz","x":1}`
* * `content-type="application/x-www-form-urlencoded"`
* * body is encoded like `foo=bar+baz&x=1`
*
* <iron-ajax method="POST" auto url="http://somesite.com"
* body='{"foo":1, "bar":2}'>
* </iron-ajax>
* Otherwise the body will be passed to the browser unmodified, and it
* will handle any encoding (e.g. for FormData, Blob, ArrayBuffer).
*
* @type (ArrayBuffer|ArrayBufferView|Blob|Document|FormData|null|string|undefined|Object)
*/
body: {
type: String,
value: ''
type: Object,
value: null
},

/**
@@ -146,7 +157,7 @@

/**
* Specifies what data to store in the `response` property, and
* to deliver as `event.response` in `response` events.
* to deliver as `event.detail.response` in `response` events.
*
* One of:
*
@@ -317,9 +328,14 @@
* @return {Object}
*/
get requestHeaders() {
var headers = {
'Content-Type': this.contentType
};
var headers = {};
var contentType = this.contentType;
if (contentType == null && (typeof this.body === 'string')) {
contentType = 'application/x-www-form-urlencoded';
}
if (contentType) {
headers['Content-Type'] = contentType;
}
var header;

if (this.headers instanceof Object) {
@@ -339,7 +355,7 @@
* url: string,
* method: (string|undefined),
* async: (boolean|undefined),
* body: (ArrayBuffer|ArrayBufferView|Blob|Document|FormData|null|string|undefined),
* body: (ArrayBuffer|ArrayBufferView|Blob|Document|FormData|null|string|undefined|Object),
* headers: (Object|undefined),
* handleAs: (string|undefined),
* withCredentials: (boolean|undefined)}}
Loading

0 comments on commit 7fdf210

Please sign in to comment.