Skip to content

Commit

Permalink
Updated webcomponents
Browse files Browse the repository at this point in the history
  • Loading branch information
jrabbit committed Aug 28, 2015
1 parent f7161d6 commit 7ef2425
Show file tree
Hide file tree
Showing 94 changed files with 2,031 additions and 653 deletions.
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-behaviors/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iron-behaviors",
"version": "1.0.7",
"version": "1.0.8",
"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.7",
"_release": "1.0.8",
"_resolution": {
"type": "version",
"tag": "v1.0.7",
"commit": "033889b20c6b9ebb45a1ff153fbd667e153fe3f7"
"tag": "v1.0.8",
"commit": "663ad706b43989f4961d945b8116cf4db346532f"
},
"_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.7",
"version": "1.0.8",
"description": "Provides a set of behaviors for the iron elements",
"private": true,
"authors": [
Expand Down
9 changes: 7 additions & 2 deletions bower_components/iron-behaviors/iron-control-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@
},

_focusBlurHandler: function(event) {
var target = event.path ? event.path[0] : event.target;
if (target === this) {
// NOTE(cdata): if we are in ShadowDOM land, `event.target` will
// eventually become `this` due to retargeting; if we are not in
// ShadowDOM land, `event.target` will eventually become `this` due
// to the second conditional which fires a synthetic event (that is also
// handled). In either case, we can disregard `event.path`.

if (event.target === this) {
var focused = event.type === 'focus';
this._setFocused(focused);
} else if (!this.shadowRoot) {
Expand Down
2 changes: 2 additions & 0 deletions bower_components/iron-behaviors/test/focused-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@

focusable.addEventListener('focus', function() {
nFocusEvents += 1;
expect(focusable.focused).to.be.equal(true);
MockInteractions.blur(focusable.$.input);
});
focusable.addEventListener('blur', function() {
expect(focusable.focused).to.be.equal(false);
nBlurEvents += 1;
});

Expand Down
45 changes: 45 additions & 0 deletions bower_components/iron-checked-element-behavior/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "iron-checked-element-behavior",
"version": "1.0.1",
"description": "Implements an element that has a checked attribute and can be added to a form",
"authors": "The Polymer Authors",
"keywords": [
"web-components",
"polymer",
"iron",
"behavior"
],
"main": [
"iron-checked-element-behavior.html"
],
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/PolymerElements/iron-checked-element-behavior.git"
},
"license": "http://polymer.github.io/LICENSE.txt",
"homepage": "https://github.com/PolymerElements/iron-checked-element-behavior",
"ignore": [],
"dependencies": {
"polymer": "Polymer/polymer#^1.0.0",
"iron-validatable-behavior": "PolymerElements/iron-validatable-behavior#^1.0.0",
"iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0"
},
"devDependencies": {
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
"paper-button": "PolymerElements/paper-button#^1.0.0",
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.0.1",
"_resolution": {
"type": "version",
"tag": "v1.0.1",
"commit": "c680a5f6a61bd1fb52a691d7ee763f679414615e"
},
"_source": "git://github.com/PolymerElements/iron-checked-element-behavior.git",
"_target": "^1.0.0",
"_originalSource": "PolymerElements/iron-checked-element-behavior"
}
1 change: 1 addition & 0 deletions bower_components/iron-checked-element-behavior/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bower_components
2 changes: 2 additions & 0 deletions bower_components/iron-checked-element-behavior/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# iron-checked-element-behavior
Implements an element that has a checked attribute and can be added to a form
36 changes: 36 additions & 0 deletions bower_components/iron-checked-element-behavior/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "iron-checked-element-behavior",
"version": "1.0.1",
"description": "Implements an element that has a checked attribute and can be added to a form",
"authors": "The Polymer Authors",
"keywords": [
"web-components",
"polymer",
"iron",
"behavior"
],
"main": [
"iron-checked-element-behavior.html"
],
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/PolymerElements/iron-checked-element-behavior.git"
},
"license": "http://polymer.github.io/LICENSE.txt",
"homepage": "https://github.com/PolymerElements/iron-checked-element-behavior",
"ignore": [],
"dependencies": {
"polymer": "Polymer/polymer#^1.0.0",
"iron-validatable-behavior": "PolymerElements/iron-validatable-behavior#^1.0.0",
"iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0"
},
"devDependencies": {
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
"paper-button": "PolymerElements/paper-button#^1.0.0",
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}
}
39 changes: 39 additions & 0 deletions bower_components/iron-checked-element-behavior/demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!doctype html>
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
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
-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">

<title>iron-checked-element-behavior demo</title>

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../paper-styles/demo-pages.html">
<link rel="import" href="simple-checkbox.html">
</head>
<body unresolved>
<div class="horizontal-section-container">
<div>
<h4>Not required</h4>
<div class="horizontal-section">
<simple-checkbox></simple-checkbox>
</div>
</div>
<div>
<h4>Required</h4>
<div class="horizontal-section">
<simple-checkbox required></simple-checkbox>
</div>
</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
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="import" href="../../polymer/polymer.html">
<link rel="import" href="../../paper-button/paper-button.html">
<link rel="import" href="../iron-checked-element-behavior.html">

<dom-module id="simple-checkbox">
<style>
:host {
display: block;
}

:host([invalid]) span {
color: red;
}

#labelText {
display: inline-block;
width: 100px;
}
</style>
<template>
<input type="checkbox" id="checkbox" on-tap="_onCheckTap">
<span id="labelText">{{label}}</span>
<paper-button raised on-click="_onClick">validate</paper-button>

</template>
<script>
Polymer({

is: 'simple-checkbox',

behaviors: [
Polymer.IronCheckedElementBehavior
],

properties: {
label: {
type: String,
value: 'not validated'
}
},

_onCheckTap: function() {
this.checked = this.$.checkbox.checked;
},

_onClick: function() {
this.validate();
this.label = this.invalid ? 'is invalid' : 'is valid';
}
});

</script>

</dom-module>
30 changes: 30 additions & 0 deletions bower_components/iron-checked-element-behavior/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!doctype html>
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
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
-->
<html>
<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">

<title>iron-checked-element-behavior</title>

<script src="../webcomponentsjs/webcomponents-lite.js"></script>

<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-component-page/iron-component-page.html">

</head>
<body>

<iron-component-page></iron-component-page>

</body>
</html>
Loading

0 comments on commit 7ef2425

Please sign in to comment.