Skip to content

Commit

Permalink
vendored components update
Browse files Browse the repository at this point in the history
  • Loading branch information
jrabbit committed Jun 12, 2015
1 parent 8323c67 commit 151c002
Show file tree
Hide file tree
Showing 102 changed files with 959 additions and 512 deletions.
8 changes: 4 additions & 4 deletions bower_components/hydrolysis/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "*"
},
"version": "1.13.1",
"version": "1.13.2",
"homepage": "https://github.com/Polymer/hydrolysis",
"_release": "1.13.1",
"_release": "1.13.2",
"_resolution": {
"type": "version",
"tag": "v1.13.1",
"commit": "2b45e64292fd7a7cfd02340e47309e825d8028ce"
"tag": "v1.13.2",
"commit": "5bad3bedb7091336fae90f7de8280f7c67f15663"
},
"_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 @@ -15,5 +15,5 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "*"
},
"version": "1.13.1"
"version": "1.13.2"
}
47 changes: 32 additions & 15 deletions bower_components/hydrolysis/hydrolysis.js

Large diffs are not rendered by default.

9 changes: 5 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.1",
"version": "1.0.2",
"description": "Provides a set of behaviors for the iron elements",
"private": true,
"authors": [
Expand All @@ -16,18 +16,19 @@
"iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior#^1.0.0"
},
"devDependencies": {
"paper-styles": "polymerelements/paper-styles#^1.0.2",
"iron-test-helpers": "polymerelements/iron-test-helpers#^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"
},
"homepage": "https://github.com/PolymerElements/iron-behaviors",
"_release": "1.0.1",
"_release": "1.0.2",
"_resolution": {
"type": "version",
"tag": "v1.0.1",
"commit": "03284936c45f058a8192752869a57a0a57a2963f"
"tag": "v1.0.2",
"commit": "750a8c0fe4dfbe96a4b613d84510bc0b0d3f1464"
},
"_source": "git://github.com/PolymerElements/iron-behaviors.git",
"_target": "^1.0.0",
Expand Down
3 changes: 2 additions & 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.1",
"version": "1.0.2",
"description": "Provides a set of behaviors for the iron elements",
"private": true,
"authors": [
Expand All @@ -16,6 +16,7 @@
"iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior#^1.0.0"
},
"devDependencies": {
"paper-styles": "polymerelements/paper-styles#^1.0.2",
"iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0",
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
"test-fixture": "polymerelements/test-fixture#^1.0.0",
Expand Down
26 changes: 12 additions & 14 deletions bower_components/iron-behaviors/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,31 @@
<title>simple-button</title>

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

<link href="../../paper-styles/demo-pages.html" rel="import">
<link href="simple-button.html" rel="import">

<style>

body {
font-family: sans-serif;
padding: 24px;
margin: 0;

.vertical-section {
text-align: center;
}

</style>

</head>
<body>
<div class="vertical-section vertical-section-container centered">
<h3>Normal</h3>

<h3>Normal</h3>

<simple-button tabindex="0">Hello World</simple-button>

<h3>Toggles</h3>
<simple-button tabindex="0">Hello World</simple-button>

<simple-button toggles tabindex="0">Hello World</simple-button>
<h3>Toggles</h3>

<h3>Disabled</h3>
<simple-button toggles tabindex="0">Hello World</simple-button>

<simple-button disabled tabindex="0">Hello World</simple-button>
<h3>Disabled</h3>

<simple-button disabled tabindex="0">Hello World</simple-button>
</div>
</body>
</html>
17 changes: 4 additions & 13 deletions bower_components/iron-behaviors/iron-button-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@

<script>

/** @polymerBehavior Polymer.IronButtonState */
/**
* @demo demo/index.html
* @polymerBehavior
*/
Polymer.IronButtonStateImpl = {

properties: {

/**
* If true, the user is currently holding down the button.
*
* @attribute pressed
* @type boolean
* @default false
*/
pressed: {
type: Boolean,
Expand All @@ -37,10 +36,6 @@
/**
* If true, the button toggles the active state with each tap or press
* of the spacebar.
*
* @attribute toggles
* @type boolean
* @default false
*/
toggles: {
type: Boolean,
Expand All @@ -50,10 +45,6 @@

/**
* If true, the button is a toggle and is currently in the active state.
*
* @attribute active
* @type boolean
* @default false
*/
active: {
type: Boolean,
Expand Down
47 changes: 26 additions & 21 deletions bower_components/iron-behaviors/iron-control-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@

<script>

/** @polymerBehavior */

/**
* @demo demo/index.html
* @polymerBehavior
*/
Polymer.IronControlState = {

properties: {

/**
* If true, the element currently has focus.
*
* @attribute focused
* @type boolean
* @default false
*/
focused: {
type: Boolean,
Expand All @@ -35,10 +33,6 @@

/**
* If true, the user cannot interact with this element.
*
* @attribute disabled
* @type boolean
* @default false
*/
disabled: {
type: Boolean,
Expand All @@ -50,32 +44,43 @@

_oldTabIndex: {
type: Number
},

_boundFocusBlurHandler: {
value: function() {
return this._focusBlurHandler.bind(this);
}
}

},

observers: [
'_changedControlState(focused, disabled)'
],

listeners: {
focus: '_focusHandler',
blur: '_blurHandler'
},

ready: function() {
// TODO(sjmiles): ensure read-only property is valued so the compound
// observer will fire
if (this.focused === undefined) {
this._setFocused(false);
}
this.addEventListener('focus', this._boundFocusBlurHandler, true);
this.addEventListener('blur', this._boundFocusBlurHandler, true);
},

_focusHandler: function() {
this._setFocused(true);
},

_blurHandler: function() {
this._setFocused(false);
_focusBlurHandler: function(event) {
var target = event.path ? event.path[0] : event.target;
if (target === this) {
var focused = event.type === 'focus';
this._setFocused(focused);
} else if (!this.shadowRoot) {
event.stopPropagation();
this.fire(event.type, {sourceEvent: event}, {
node: this,
bubbles: event.bubbles,
cancelable: event.cancelable
});
}
},

_disabledChanged: function(disabled, old) {
Expand Down
38 changes: 38 additions & 0 deletions bower_components/iron-behaviors/test/focused-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
</template>
</test-fixture>

<test-fixture id="NestedFocusedState">
<template>
<nested-focusable></nested-focusable>
</template>
</test-fixture>

<script>
suite('focused-state', function() {
var focusTarget;
Expand Down Expand Up @@ -76,6 +82,38 @@
});
});
});

suite('nested focusable', function() {
var focusable;

setup(function() {
focusable = fixture('NestedFocusedState');
});

test('focus/blur events fired on host element', function(done) {
var nFocusEvents = 0;
var nBlurEvents = 0;
focusable.addEventListener('focus', function() {
nFocusEvents += 1;
// setTimeout to wait for potentially more, erroneous events
setTimeout(function() {
assert.equal(nFocusEvents, 1, 'one focus event fired');
MockInteractions.blur(focusable.$.input);
});
});
focusable.addEventListener('blur', function() {
nBlurEvents += 1;
// setTimeout to wait for potentially more, erroneous events
setTimeout(function() {
assert.equal(nBlurEvents, 1, 'one blur event fired');
done();
});
});
MockInteractions.focus(focusable.$.input);
});

});

</script>

</body>
Expand Down
22 changes: 22 additions & 0 deletions bower_components/iron-behaviors/test/test-elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,25 @@
});

</script>

<dom-module id="nested-focusable">

<template>
<input id="input">
</template>

</dom-module>

<script>

Polymer({

is: 'nested-focusable',

behaviors: [
Polymer.IronControlState
]

});

</script>
6 changes: 3 additions & 3 deletions bower_components/iron-flex-layout/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"devDependencies": {
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"homepage": "https://github.com/polymerelements/iron-flex-layout",
"homepage": "https://github.com/PolymerElements/iron-flex-layout",
"_release": "1.0.1",
"_resolution": {
"type": "version",
"tag": "v1.0.1",
"commit": "8828cc6ad1bb70d6a99aa1ecabc070b30256da06"
},
"_source": "git://github.com/polymerelements/iron-flex-layout.git",
"_source": "git://github.com/PolymerElements/iron-flex-layout.git",
"_target": "^1.0.0",
"_originalSource": "polymerelements/iron-flex-layout"
"_originalSource": "PolymerElements/iron-flex-layout"
}
14 changes: 7 additions & 7 deletions bower_components/iron-icon/.bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iron-icon",
"private": true,
"version": "1.0.0",
"version": "1.0.1",
"license": "http://polymer.github.io/LICENSE.txt",
"description": "An element that supports displaying an icon",
"main": "iron-icon.html",
Expand All @@ -26,14 +26,14 @@
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"homepage": "https://github.com/polymerelements/iron-icon",
"_release": "1.0.0",
"homepage": "https://github.com/PolymerElements/iron-icon",
"_release": "1.0.1",
"_resolution": {
"type": "version",
"tag": "v1.0.0",
"commit": "b6c36359baf7dff86cc4174012296555512ce0c1"
"tag": "v1.0.1",
"commit": "530b0156756487b4c352d67a9e636724d6a4fe5e"
},
"_source": "git://github.com/polymerelements/iron-icon.git",
"_source": "git://github.com/PolymerElements/iron-icon.git",
"_target": "^1.0.0",
"_originalSource": "polymerelements/iron-icon"
"_originalSource": "PolymerElements/iron-icon"
}
2 changes: 1 addition & 1 deletion bower_components/iron-icon/bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iron-icon",
"private": true,
"version": "1.0.0",
"version": "1.0.1",
"license": "http://polymer.github.io/LICENSE.txt",
"description": "An element that supports displaying an icon",
"main": "iron-icon.html",
Expand Down
Loading

0 comments on commit 151c002

Please sign in to comment.