diff --git a/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json b/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json
index 845de2758a..75f9aadbc3 100644
--- a/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json
+++ b/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json
@@ -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.6",
"_resolution": {
"type": "version",
"tag": "v1.0.6",
"commit": "af5c98b1cf9b3d180a6326c99ac9c7057eee647f"
},
- "_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"
}
\ No newline at end of file
diff --git a/dashboard-ui/bower_components/iron-autogrow-textarea/.bower.json b/dashboard-ui/bower_components/iron-autogrow-textarea/.bower.json
index 89969e265f..2533391c70 100644
--- a/dashboard-ui/bower_components/iron-autogrow-textarea/.bower.json
+++ b/dashboard-ui/bower_components/iron-autogrow-textarea/.bower.json
@@ -1,6 +1,6 @@
{
"name": "iron-autogrow-textarea",
- "version": "1.0.6",
+ "version": "1.0.7",
"description": "A textarea element that automatically grows with input",
"authors": [
"The Polymer Authors"
@@ -37,11 +37,11 @@
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
- "_release": "1.0.6",
+ "_release": "1.0.7",
"_resolution": {
"type": "version",
- "tag": "v1.0.6",
- "commit": "e0465d41019cf03827f4820a254ce80e56266e99"
+ "tag": "v1.0.7",
+ "commit": "f31131a9c45af7845780f94ec7e69816929ac6cc"
},
"_source": "git://github.com/PolymerElements/iron-autogrow-textarea.git",
"_target": "^1.0.0",
diff --git a/dashboard-ui/bower_components/iron-autogrow-textarea/bower.json b/dashboard-ui/bower_components/iron-autogrow-textarea/bower.json
index c30922c49c..278babaa63 100644
--- a/dashboard-ui/bower_components/iron-autogrow-textarea/bower.json
+++ b/dashboard-ui/bower_components/iron-autogrow-textarea/bower.json
@@ -1,6 +1,6 @@
{
"name": "iron-autogrow-textarea",
- "version": "1.0.6",
+ "version": "1.0.7",
"description": "A textarea element that automatically grows with input",
"authors": [
"The Polymer Authors"
diff --git a/dashboard-ui/bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html b/dashboard-ui/bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html
index 8742a14123..cdd6fdb798 100644
--- a/dashboard-ui/bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html
+++ b/dashboard-ui/bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html
@@ -26,6 +26,12 @@ Example:
Because the `textarea`'s `value` property is not observable, you should use
this element's `bind-value` instead for imperative updates.
+### Styling
+The following custom properties and mixins are available for styling:
+Custom property | Description | Default
+----------------|-------------|----------
+`--iron-autogrow-textarea` | Mixin applied to the textarea | `{}`
+
@group Iron Elements
@hero hero.svg
@demo demo/index.html
@@ -62,6 +68,7 @@ this element's `bind-value` instead for imperative updates.
font-size: inherit;
font-family: inherit;
line-height: inherit;
+ @apply(--iron-autogrow-textarea);
}
::content textarea:invalid {
@@ -82,6 +89,7 @@ this element's `bind-value` instead for imperative updates.
placeholder$="[[placeholder]]"
readonly$="[[readonly]]"
required$="[[required]]"
+ disabled$="[[disabled]]"
rows$="[[rows]]"
maxlength$="[[maxlength]]">
@@ -278,7 +286,14 @@ this element's `bind-value` instead for imperative updates.
return;
}
- textarea.value = this.bindValue;
+ // If the bindValue changed manually, then we need to also update
+ // the underlying textarea's value. Otherwise this change was probably
+ // generated from the _onInput handler, and the two values are already
+ // the same.
+ if (textarea.value !== this.bindValue) {
+ textarea.value = !(this.bindValue || this.bindValue === 0) ? '' : this.bindValue;
+ }
+
this.$.mirror.innerHTML = this._valueForMirror();
// manually notify because we don't want to notify until after setting value
this.fire('bind-value-changed', {value: this.bindValue});
diff --git a/dashboard-ui/bower_components/iron-autogrow-textarea/test/basic.html b/dashboard-ui/bower_components/iron-autogrow-textarea/test/basic.html
index 4ab7c36e6b..896c2c47b1 100644
--- a/dashboard-ui/bower_components/iron-autogrow-textarea/test/basic.html
+++ b/dashboard-ui/bower_components/iron-autogrow-textarea/test/basic.html
@@ -88,6 +88,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
assert.isTrue(finalHeight < initialHeight);
});
+ test('an undefined bindValue is the empty string', function() {
+ var autogrow = fixture('basic');
+ var initialHeight = autogrow.offsetHeight;
+
+ autogrow.bindValue = 'batman\nand\nrobin';
+ var finalHeight = autogrow.offsetHeight;
+ assert.isTrue(finalHeight > initialHeight);
+
+ autogrow.bindValue = undefined;
+ assert.equal(autogrow.offsetHeight, initialHeight);
+ assert.equal(autogrow.textarea.value, '');
+ });
+
test('textarea selection works', function() {
var autogrow = fixture('basic');
var textarea = autogrow.textarea;
diff --git a/dashboard-ui/bower_components/iron-behaviors/.bower.json b/dashboard-ui/bower_components/iron-behaviors/.bower.json
index 5d7b926afb..7f83839174 100644
--- a/dashboard-ui/bower_components/iron-behaviors/.bower.json
+++ b/dashboard-ui/bower_components/iron-behaviors/.bower.json
@@ -1,6 +1,6 @@
{
"name": "iron-behaviors",
- "version": "1.0.8",
+ "version": "1.0.9",
"description": "Provides a set of behaviors for the iron elements",
"private": true,
"authors": [
@@ -28,11 +28,11 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"homepage": "https://github.com/polymerelements/iron-behaviors",
- "_release": "1.0.8",
+ "_release": "1.0.9",
"_resolution": {
"type": "version",
- "tag": "v1.0.8",
- "commit": "663ad706b43989f4961d945b8116cf4db346532f"
+ "tag": "v1.0.9",
+ "commit": "4b8cab62a4916cc4b1dbd262cbb7eb1eec624b6f"
},
"_source": "git://github.com/polymerelements/iron-behaviors.git",
"_target": "^1.0.0",
diff --git a/dashboard-ui/bower_components/iron-behaviors/bower.json b/dashboard-ui/bower_components/iron-behaviors/bower.json
index 2f7f40e09f..a7f622baa7 100644
--- a/dashboard-ui/bower_components/iron-behaviors/bower.json
+++ b/dashboard-ui/bower_components/iron-behaviors/bower.json
@@ -1,6 +1,6 @@
{
"name": "iron-behaviors",
- "version": "1.0.8",
+ "version": "1.0.9",
"description": "Provides a set of behaviors for the iron elements",
"private": true,
"authors": [
diff --git a/dashboard-ui/bower_components/iron-behaviors/iron-button-state.html b/dashboard-ui/bower_components/iron-behaviors/iron-button-state.html
index 96a2bfa9f8..28cdd93fa5 100644
--- a/dashboard-ui/bower_components/iron-behaviors/iron-button-state.html
+++ b/dashboard-ui/bower_components/iron-behaviors/iron-button-state.html
@@ -125,33 +125,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}
},
- _eventSourceIsPrimaryInput: function(event) {
- event = event.detail.sourceEvent || event;
-
- // Always true for non-mouse events....
- if (!this._mouseEventRe.test(event.type)) {
- return true;
- }
-
- // http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
- if ('buttons' in event) {
- return event.buttons === 1;
- }
-
- // http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which
- if (typeof event.which === 'number') {
- return event.which < 2;
- }
-
- // http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
- return event.button < 1;
- },
-
_downHandler: function(event) {
- if (!this._eventSourceIsPrimaryInput(event)) {
- return;
- }
-
this._setPointerDown(true);
this._setPressed(true);
this._setReceivedFocusFromKeyboard(false);
diff --git a/dashboard-ui/bower_components/iron-behaviors/test/active-state.html b/dashboard-ui/bower_components/iron-behaviors/test/active-state.html
index 0fa6fdcf89..5a9447689c 100644
--- a/dashboard-ui/bower_components/iron-behaviors/test/active-state.html
+++ b/dashboard-ui/bower_components/iron-behaviors/test/active-state.html
@@ -41,20 +41,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
activeTarget = fixture('TrivialActiveState');
});
- suite('non-primary pointer input source', function() {
- test('does not cause state to change', function() {
- var rightClickMouseEvent = new CustomEvent('mousedown');
- rightClickMouseEvent.buttons = 2;
- activeTarget.dispatchEvent(rightClickMouseEvent);
- expect(activeTarget.pressed).to.be.equal(false);
- });
- });
-
suite('active state with toggles attribute', function() {
setup(function() {
activeTarget = fixture('ToggleActiveState');
});
+ suite('when down', function() {
+ test('is pressed', function() {
+ MockInteractions.down(activeTarget);
+ expect(activeTarget.hasAttribute('pressed')).to.be.eql(true);
+ });
+ });
+
suite('when clicked', function() {
test('is activated', function(done) {
MockInteractions.downAndUp(activeTarget, function() {
diff --git a/dashboard-ui/bower_components/iron-meta/.bower.json b/dashboard-ui/bower_components/iron-meta/.bower.json
index 8119ebcf41..9e650790be 100644
--- a/dashboard-ui/bower_components/iron-meta/.bower.json
+++ b/dashboard-ui/bower_components/iron-meta/.bower.json
@@ -25,14 +25,14 @@
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
- "homepage": "https://github.com/polymerelements/iron-meta",
+ "homepage": "https://github.com/PolymerElements/iron-meta",
"_release": "1.0.3",
"_resolution": {
"type": "version",
"tag": "v1.0.3",
"commit": "91529259262b0d8f33fed44bc3fd47aedf35cb04"
},
- "_source": "git://github.com/polymerelements/iron-meta.git",
+ "_source": "git://github.com/PolymerElements/iron-meta.git",
"_target": "^1.0.0",
- "_originalSource": "polymerelements/iron-meta"
+ "_originalSource": "PolymerElements/iron-meta"
}
\ No newline at end of file
diff --git a/dashboard-ui/bower_components/paper-behaviors/.bower.json b/dashboard-ui/bower_components/paper-behaviors/.bower.json
index dbdd848f9b..478d01f193 100644
--- a/dashboard-ui/bower_components/paper-behaviors/.bower.json
+++ b/dashboard-ui/bower_components/paper-behaviors/.bower.json
@@ -1,6 +1,6 @@
{
"name": "paper-behaviors",
- "version": "1.0.4",
+ "version": "1.0.5",
"description": "Common behaviors across the paper elements",
"authors": [
"The Polymer Authors"
@@ -25,6 +25,7 @@
"homepage": "https://github.com/PolymerElements/paper-behaviors",
"dependencies": {
"iron-behaviors": "PolymerElements/iron-behaviors#^1.0.0",
+ "iron-checked-element-behavior": "PolymerElements/iron-checked-element-behavior#^1.0.0",
"polymer": "Polymer/polymer#^1.0.0"
},
"devDependencies": {
@@ -36,11 +37,11 @@
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
- "_release": "1.0.4",
+ "_release": "1.0.5",
"_resolution": {
"type": "version",
- "tag": "v1.0.4",
- "commit": "a7ac7fbdb79b4d82416ec9b41613575386d0d226"
+ "tag": "v1.0.5",
+ "commit": "57b4ddedf6fa54171d0c9d078f340399724bfe4e"
},
"_source": "git://github.com/PolymerElements/paper-behaviors.git",
"_target": "^1.0.0",
diff --git a/dashboard-ui/bower_components/paper-behaviors/bower.json b/dashboard-ui/bower_components/paper-behaviors/bower.json
index 0dc6cdb1d4..b05703da76 100644
--- a/dashboard-ui/bower_components/paper-behaviors/bower.json
+++ b/dashboard-ui/bower_components/paper-behaviors/bower.json
@@ -1,6 +1,6 @@
{
"name": "paper-behaviors",
- "version": "1.0.4",
+ "version": "1.0.5",
"description": "Common behaviors across the paper elements",
"authors": [
"The Polymer Authors"
@@ -25,6 +25,7 @@
"homepage": "https://github.com/PolymerElements/paper-behaviors",
"dependencies": {
"iron-behaviors": "PolymerElements/iron-behaviors#^1.0.0",
+ "iron-checked-element-behavior": "PolymerElements/iron-checked-element-behavior#^1.0.0",
"polymer": "Polymer/polymer#^1.0.0"
},
"devDependencies": {
diff --git a/dashboard-ui/bower_components/paper-behaviors/demo/paper-button.html b/dashboard-ui/bower_components/paper-behaviors/demo/paper-button.html
index c38bd00924..a520a0f9ec 100644
--- a/dashboard-ui/bower_components/paper-behaviors/demo/paper-button.html
+++ b/dashboard-ui/bower_components/paper-behaviors/demo/paper-button.html
@@ -18,6 +18,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
:host {
display: inline-block;
+ position: relative;
background-color: #4285F4;
color: #fff;
border-radius: 3px;
diff --git a/dashboard-ui/bower_components/paper-behaviors/demo/paper-radio-button.html b/dashboard-ui/bower_components/paper-behaviors/demo/paper-radio-button.html
index 93af1752b5..0972024433 100644
--- a/dashboard-ui/bower_components/paper-behaviors/demo/paper-radio-button.html
+++ b/dashboard-ui/bower_components/paper-behaviors/demo/paper-radio-button.html
@@ -10,7 +10,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
-
+
diff --git a/dashboard-ui/bower_components/paper-behaviors/test/paper-button-behavior.html b/dashboard-ui/bower_components/paper-behaviors/test/paper-button-behavior.html index 9663938d72..74d61a17d0 100644 --- a/dashboard-ui/bower_components/paper-behaviors/test/paper-button-behavior.html +++ b/dashboard-ui/bower_components/paper-behaviors/test/paper-button-behavior.html @@ -39,19 +39,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN }); test('normal (no states)', function() { - assert.equal(button._elevation, 1); + assert.equal(button.elevation, 1); }); test('set disabled property', function() { button.disabled = true; - assert.equal(button._elevation, 0); + assert.equal(button.elevation, 0); }); test('pressed and released', function() { MockInteractions.down(button); - assert.equal(button._elevation, 4); + assert.equal(button.elevation, 4); MockInteractions.up(button); - assert.equal(button._elevation, 1); + assert.equal(button.elevation, 1); + assert.ok(button.hasRipple()); }); suite('a button with toggles', function() { @@ -62,7 +63,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN test('activated by tap', function(done) { MockInteractions.downAndUp(button, function() { try { - assert.equal(button._elevation, 4); + assert.equal(button.elevation, 4); + assert.ok(button.hasRipple()); done(); } catch (e) { done(e); @@ -73,7 +75,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN test('receives focused', function() { MockInteractions.focus(button); - assert.equal(button._elevation, 3); + assert.equal(button.elevation, 3); + assert.ok(button.hasRipple()); }); }); diff --git a/dashboard-ui/bower_components/paper-behaviors/test/paper-checked-element-behavior.html b/dashboard-ui/bower_components/paper-behaviors/test/paper-checked-element-behavior.html new file mode 100644 index 0000000000..363cf4c7bf --- /dev/null +++ b/dashboard-ui/bower_components/paper-behaviors/test/paper-checked-element-behavior.html @@ -0,0 +1,94 @@ + + + + +
+
+ + + + + + + + + + +
+