Skip to content

Commit

Permalink
paper-elements#1.0.4 bower_components/paper-elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jrabbit committed Aug 19, 2015
1 parent 7fdf210 commit f7161d6
Show file tree
Hide file tree
Showing 294 changed files with 9,587 additions and 1,589 deletions.
8 changes: 4 additions & 4 deletions bower_components/hydrolysis/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "*"
},
"version": "1.15.2",
"version": "1.15.4",
"homepage": "https://github.com/Polymer/hydrolysis",
"_release": "1.15.2",
"_release": "1.15.4",
"_resolution": {
"type": "version",
"tag": "v1.15.2",
"commit": "3b255182fd39a273c255ac2a49db8d06d96f667d"
"tag": "v1.15.4",
"commit": "fca353c84802728f6b7e906f21f2a8e4b7688663"
},
"_source": "git://github.com/Polymer/hydrolysis.git",
"_target": "^1.11",
Expand Down
2 changes: 1 addition & 1 deletion bower_components/hydrolysis/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "*"
},
"version": "1.15.1"
"version": "1.15.4"
}
206 changes: 177 additions & 29 deletions bower_components/hydrolysis/hydrolysis.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bower_components/iron-a11y-keys-behavior/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"homepage": "https://github.com/PolymerElements/iron-a11y-keys-behavior",
"homepage": "https://github.com/polymerelements/iron-a11y-keys-behavior",
"_release": "1.0.5",
"_resolution": {
"type": "version",
"tag": "v1.0.5",
"commit": "cf833eab5c55a26c5aa92e56d3fcb079120ce66a"
},
"_source": "git://github.com/PolymerElements/iron-a11y-keys-behavior.git",
"_source": "git://github.com/polymerelements/iron-a11y-keys-behavior.git",
"_target": "^1.0.0",
"_originalSource": "PolymerElements/iron-a11y-keys-behavior"
"_originalSource": "polymerelements/iron-a11y-keys-behavior"
}
8 changes: 4 additions & 4 deletions bower_components/iron-ajax/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-ajax",
"version": "1.0.3",
"version": "1.0.4",
"description": "Makes it easy to make ajax calls and parse the response",
"private": true,
"authors": [
Expand Down Expand Up @@ -35,11 +35,11 @@
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.0.3",
"_release": "1.0.4",
"_resolution": {
"type": "version",
"tag": "v1.0.3",
"commit": "32d96a1064a522cdc8e2cb5462b45d5232a7df16"
"tag": "v1.0.4",
"commit": "0aaba00fc2891040d2fbf35dcc9816b7655f2bed"
},
"_source": "git://github.com/PolymerElements/iron-ajax.git",
"_target": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion bower_components/iron-ajax/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-ajax",
"version": "1.0.3",
"version": "1.0.4",
"description": "Makes it easy to make ajax calls and parse the response",
"private": true,
"authors": [
Expand Down
19 changes: 10 additions & 9 deletions bower_components/iron-ajax/iron-request.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
* A reference to the status code, if the `xhr` has completely resolved.
*
* @attribute status
* @type short
* @default 0
*/
status: {
Expand All @@ -77,7 +76,6 @@
* A reference to the status text, if the `xhr` has completely resolved.
*
* @attribute statusText
* @type String
* @default ""
*/
statusText: {
Expand Down Expand Up @@ -237,15 +235,17 @@
}
var body = this._encodeBodyObject(options.body, contentType);


// In IE, `xhr.responseType` is an empty string when the response
// returns. Hence, caching it as `xhr._responseType`.
xhr.responseType = xhr._responseType = (options.handleAs || 'text');
xhr.withCredentials = !!options.withCredentials;



xhr.send(body);
xhr.send(
/** @type {ArrayBuffer|ArrayBufferView|Blob|Document|FormData|
null|string|undefined} */
(body));

return this.completes;
},
Expand Down Expand Up @@ -275,7 +275,7 @@
// If accessing `xhr.responseText` throws, responseType `json`
// is supported and the result is rightly `undefined`.
try {
xhr.responseText;
/** @suppress {suspiciousCode} */ xhr.responseText;
} catch (e) {
return xhr.response;
}
Expand Down Expand Up @@ -314,20 +314,21 @@
* @param {*} body The given body of the request to try and encode.
* @param {?string} contentType The given content type, to infer an encoding
* from.
* @return {?string|*} Either the encoded body as a string, if successful,
* @return {*} Either the encoded body as a string, if successful,
* or the unaltered body object if no encoding could be inferred.
*/
_encodeBodyObject: function(body, contentType) {
if (typeof body == 'string') {
return body; // Already encoded.
}
var bodyObj = /** @type {Object} */ (body);
switch(contentType) {
case('application/json'):
return JSON.stringify(body);
return JSON.stringify(bodyObj);
case('application/x-www-form-urlencoded'):
return this._wwwFormUrlEncode(body);
return this._wwwFormUrlEncode(bodyObj);
}
return body; // Unknown, make no change.
return body;
},

/**
Expand Down
33 changes: 23 additions & 10 deletions bower_components/iron-ajax/test/iron-ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,23 @@
var request;
var server;

// A stand-in for Promise.all, as promise-polyfill doesn't polyfill it.
function promiseAll(promises) {
promises = promises.slice(); // defensive copy
return new Promise(function(resolve, reject) {
var successes = 0;
var onSuccess = function() {
successes++;
if (successes >= promises.length) {
resolve();
};
};
for (var i = 0; i < promises.length; i++) {
promises[i].then(onSuccess, reject);
}
});
}

function timePasses(ms) {
return new Promise(function(resolve) {
window.setTimeout(function() {
Expand Down Expand Up @@ -185,18 +202,17 @@
expect(ajax.generateRequest()).to.be.instanceOf(IronRequest);
});

test('reflects the loading state in the `loading` property', function(done) {
test('reflects the loading state in the `loading` property', function() {
var request = ajax.generateRequest();

expect(ajax.loading).to.be.equal(true);

server.respond();

timePasses(1).then(function() {
return request.completes.then(function() {
return timePasses(1);
}).then(function() {
expect(ajax.loading).to.be.equal(false);
done();
}).catch(function(e) {
done(e);
});
});
});
Expand All @@ -216,13 +232,10 @@
expect(requests).to.deep.eql(ajax.activeRequests);
});

test('empties `activeRequests` when requests are completed', function(done) {
test('empties `activeRequests` when requests are completed', function() {
server.respond();
timePasses(1).then(function() {
promiseAll(requests).then(function() {
expect(ajax.activeRequests.length).to.be.equal(0);
done();
}).catch(function(e) {
done(e);
});
});
});
Expand Down
8 changes: 4 additions & 4 deletions bower_components/iron-autogrow-textarea/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-autogrow-textarea",
"version": "1.0.3",
"version": "1.0.4",
"description": "A textarea element that automatically grows with input",
"authors": [
"The Polymer Authors"
Expand Down Expand Up @@ -37,11 +37,11 @@
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.0.3",
"_release": "1.0.4",
"_resolution": {
"type": "version",
"tag": "v1.0.3",
"commit": "9eae088ce72a31b0baf44e6cdc183e5b73014af5"
"tag": "v1.0.4",
"commit": "0501594add2228c34b39b9fa898d177f7f8e1adb"
},
"_source": "git://github.com/PolymerElements/iron-autogrow-textarea.git",
"_target": "^1.0.0",
Expand Down
16 changes: 2 additions & 14 deletions bower_components/iron-autogrow-textarea/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,7 @@ never scroll.

Example:

<iron-autogrow-textarea id="a1">
<textarea id="t1"></textarea>
</iron-autogrow-textarea>
<iron-autogrow-textarea></iron-autogrow-textarea>

Because the `textarea`'s `value` property is not observable, you should use
this element's `bind-value` instead for imperative updates. Alternatively, if
you do set the `textarea`'s `value` imperatively, you must also call `update`
to notify this element the value has changed.

Example:
/* preferred, using the example HTML above*/
a1.bindValue = 'some\ntext';

/* alternatively, */
t1.value = 'some\ntext';
a1.update();
this element's `bind-value` instead for imperative updates.
2 changes: 1 addition & 1 deletion bower_components/iron-autogrow-textarea/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-autogrow-textarea",
"version": "1.0.3",
"version": "1.0.4",
"description": "A textarea element that automatically grows with input",
"authors": [
"The Polymer Authors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
Example:
<iron-autogrow-textarea id="a1">
<textarea id="t1"></textarea>
</iron-autogrow-textarea>
<iron-autogrow-textarea></iron-autogrow-textarea>
Because the `textarea`'s `value` property is not observable, you should use
this element's `bind-value` instead for imperative updates.
Expand Down Expand Up @@ -63,6 +61,7 @@
height: 100%;
font-size: inherit;
font-family: inherit;
line-height: inherit;
}

::content textarea:invalid {
Expand Down Expand Up @@ -150,8 +149,8 @@
* Bound to the textarea's `autofocus` attribute.
*/
autofocus: {
type: String,
value: 'off'
type: Boolean,
value: false
},

/**
Expand Down Expand Up @@ -302,5 +301,5 @@
_computeValue: function() {
return this.bindValue;
}
})
});
</script>
8 changes: 4 additions & 4 deletions bower_components/iron-behaviors/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-behaviors",
"version": "1.0.4",
"version": "1.0.7",
"description": "Provides a set of behaviors for the iron elements",
"private": true,
"authors": [
Expand Down Expand Up @@ -28,11 +28,11 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"homepage": "https://github.com/PolymerElements/iron-behaviors",
"_release": "1.0.4",
"_release": "1.0.7",
"_resolution": {
"type": "version",
"tag": "v1.0.4",
"commit": "8792edd457de697a74f398c09b67df30adf7d866"
"tag": "v1.0.7",
"commit": "033889b20c6b9ebb45a1ff153fbd667e153fe3f7"
},
"_source": "git://github.com/PolymerElements/iron-behaviors.git",
"_target": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion bower_components/iron-behaviors/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-behaviors",
"version": "1.0.4",
"version": "1.0.7",
"description": "Provides a set of behaviors for the iron elements",
"private": true,
"authors": [
Expand Down
Loading

0 comments on commit f7161d6

Please sign in to comment.