diff --git a/dashboard-ui/bower_components/get-style-property/.bower.json b/dashboard-ui/bower_components/get-style-property/.bower.json index d943fa3b04..973f1966c0 100644 --- a/dashboard-ui/bower_components/get-style-property/.bower.json +++ b/dashboard-ui/bower_components/get-style-property/.bower.json @@ -31,6 +31,6 @@ "commit": "34fc5e4a0f252964ed2790138b8d7d30d04b55c1" }, "_source": "git://github.com/desandro/get-style-property.git", - "_target": "~1.0.4", + "_target": "1.x", "_originalSource": "get-style-property" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/iron-behaviors/.bower.json b/dashboard-ui/bower_components/iron-behaviors/.bower.json index d1982e29d1..b5f528b092 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.10", + "version": "1.0.11", "description": "Provides a set of behaviors for the iron elements", "private": true, "authors": [ @@ -16,25 +16,27 @@ ], "license": "http://polymer.github.io/LICENSE.txt", "dependencies": { - "polymer": "Polymer/polymer#^1.0.0", + "polymer": "Polymer/polymer#^1.2.0", "iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior#^1.0.0" }, "devDependencies": { "paper-styles": "polymerelements/paper-styles#^1.0.2", + "paper-input": "polymerelements/paper-input#^1.0.0", "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": "*", + "web-component-tester": "polymer/web-component-tester#^3.4.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "homepage": "https://github.com/polymerelements/iron-behaviors", - "_release": "1.0.10", + "ignore": [], + "homepage": "https://github.com/PolymerElements/iron-behaviors", + "_release": "1.0.11", "_resolution": { "type": "version", - "tag": "v1.0.10", - "commit": "da937a6c5841fc9dba57f3087083445c9ad709a8" + "tag": "v1.0.11", + "commit": "084fbc7f60343d717bb2208f350774f4c9899777" }, - "_source": "git://github.com/polymerelements/iron-behaviors.git", + "_source": "git://github.com/PolymerElements/iron-behaviors.git", "_target": "^1.0.0", - "_originalSource": "polymerelements/iron-behaviors" + "_originalSource": "PolymerElements/iron-behaviors" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/iron-behaviors/.travis.yml b/dashboard-ui/bower_components/iron-behaviors/.travis.yml index e873af2d84..d798e9dafa 100644 --- a/dashboard-ui/bower_components/iron-behaviors/.travis.yml +++ b/dashboard-ui/bower_components/iron-behaviors/.travis.yml @@ -1,12 +1,9 @@ language: node_js sudo: false -cache: - directories: - - node_modules matrix: include: - node_js: stable - script: xvfb-run -a wct --simpleOutput -l firefox -l chrome + script: xvfb-run wct addons: firefox: latest apt: @@ -18,10 +15,11 @@ matrix: script: - | if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then - wct --simpleOutput -s 'Windows 10/microsoftedge' -s 'Windows 8.1/internet explorer@11' -s 'Windows 7/internet explorer@10' -s 'OS X 10.10/safari@8' -s 'OS X 10.9/safari@7' + wct -s 'default' fi before_script: -- npm install bower web-component-tester +- npm install bower +- npm install web-component-tester - export PATH=$PWD/node_modules/.bin:$PATH - bower install env: diff --git a/dashboard-ui/bower_components/iron-behaviors/bower.json b/dashboard-ui/bower_components/iron-behaviors/bower.json index e001c7f0a7..507f2924e1 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.10", + "version": "1.0.11", "description": "Provides a set of behaviors for the iron elements", "private": true, "authors": [ @@ -16,15 +16,17 @@ ], "license": "http://polymer.github.io/LICENSE.txt", "dependencies": { - "polymer": "Polymer/polymer#^1.0.0", + "polymer": "Polymer/polymer#^1.2.0", "iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior#^1.0.0" }, "devDependencies": { "paper-styles": "polymerelements/paper-styles#^1.0.2", + "paper-input": "polymerelements/paper-input#^1.0.0", "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": "*", + "web-component-tester": "polymer/web-component-tester#^3.4.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" - } + }, + "ignore": [] } 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 29abc2b1d0..e4075dd43b 100644 --- a/dashboard-ui/bower_components/iron-behaviors/iron-button-state.html +++ b/dashboard-ui/bower_components/iron-behaviors/iron-button-state.html @@ -136,14 +136,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN this._setPressed(false); }, - __isFocusedLightDescendant: function(target) { - var root = Polymer.dom(this).getOwnerRoot() || document; - var focusedElement = root.activeElement; - - // TODO(noms): remove the `this !== target` check once polymer#2610 is fixed. - return this !== target && this.isLightDescendant(target) && target == focusedElement; - }, - /** * @param {!KeyboardEvent} event . */ @@ -153,7 +145,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN // Ignore the event if this is coming from a focused light child, since that // element will deal with it. - if (this.__isFocusedLightDescendant(target)) + if (this.isLightDescendant(target)) return; keyboardEvent.preventDefault(); @@ -170,7 +162,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN // Ignore the event if this is coming from a focused light child, since that // element will deal with it. - if (this.__isFocusedLightDescendant(target)) + if (this.isLightDescendant(target)) return; if (this.pressed) { 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 2b2f8e0338..28b6ce9aec 100644 --- a/dashboard-ui/bower_components/iron-behaviors/test/active-state.html +++ b/dashboard-ui/bower_components/iron-behaviors/test/active-state.html @@ -13,12 +13,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN - - - - + @@ -33,12 +30,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN - + + + + + - - - - diff --git a/dashboard-ui/bower_components/iron-behaviors/test/focused-state.html b/dashboard-ui/bower_components/iron-behaviors/test/focused-state.html index 371254fab1..e17c7f95ab 100644 --- a/dashboard-ui/bower_components/iron-behaviors/test/focused-state.html +++ b/dashboard-ui/bower_components/iron-behaviors/test/focused-state.html @@ -13,11 +13,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN - - - - @@ -135,12 +131,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN lightDOM.addEventListener('focus', function() { nFocusEvents += 1; }); - + MockInteractions.focus(input); expect(nFocusEvents).to.be.equal(0); }); - + }); diff --git a/dashboard-ui/bower_components/iron-behaviors/test/test-elements.html b/dashboard-ui/bower_components/iron-behaviors/test/test-elements.html index 2cd3ebd59c..8a7139a7bf 100644 --- a/dashboard-ui/bower_components/iron-behaviors/test/test-elements.html +++ b/dashboard-ui/bower_components/iron-behaviors/test/test-elements.html @@ -7,6 +7,7 @@ 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 --> + diff --git a/dashboard-ui/bower_components/iron-checked-element-behavior/.bower.json b/dashboard-ui/bower_components/iron-checked-element-behavior/.bower.json index 91392b163f..f67dfa0c25 100644 --- a/dashboard-ui/bower_components/iron-checked-element-behavior/.bower.json +++ b/dashboard-ui/bower_components/iron-checked-element-behavior/.bower.json @@ -1,6 +1,6 @@ { "name": "iron-checked-element-behavior", - "version": "1.0.2", + "version": "1.0.3", "description": "Implements an element that has a checked attribute and can be added to a form", "authors": "The Polymer Authors", "keywords": [ @@ -9,9 +9,7 @@ "iron", "behavior" ], - "main": [ - "iron-checked-element-behavior.html" - ], + "main": "iron-checked-element-behavior.html", "private": true, "repository": { "type": "git", @@ -33,11 +31,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": "975b9f22ebd89ef457491fcc44cb86b660fc42cd" + "tag": "v1.0.3", + "commit": "5a0520d20eb8883076ce64117f2726ba209ebc97" }, "_source": "git://github.com/PolymerElements/iron-checked-element-behavior.git", "_target": "^1.0.0", diff --git a/dashboard-ui/bower_components/iron-checked-element-behavior/bower.json b/dashboard-ui/bower_components/iron-checked-element-behavior/bower.json index fd78387e7a..b29aa540df 100644 --- a/dashboard-ui/bower_components/iron-checked-element-behavior/bower.json +++ b/dashboard-ui/bower_components/iron-checked-element-behavior/bower.json @@ -1,6 +1,6 @@ { "name": "iron-checked-element-behavior", - "version": "1.0.2", + "version": "1.0.3", "description": "Implements an element that has a checked attribute and can be added to a form", "authors": "The Polymer Authors", "keywords": [ @@ -9,9 +9,7 @@ "iron", "behavior" ], - "main": [ - "iron-checked-element-behavior.html" - ], + "main": "iron-checked-element-behavior.html", "private": true, "repository": { "type": "git", diff --git a/dashboard-ui/bower_components/iron-checked-element-behavior/iron-checked-element-behavior.html b/dashboard-ui/bower_components/iron-checked-element-behavior/iron-checked-element-behavior.html index 312db24afe..6e7adea3d6 100644 --- a/dashboard-ui/bower_components/iron-checked-element-behavior/iron-checked-element-behavior.html +++ b/dashboard-ui/bower_components/iron-checked-element-behavior/iron-checked-element-behavior.html @@ -56,7 +56,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN /* Overriden from Polymer.IronFormElementBehavior */ value: { type: String, - value: '' + value: 'on', + observer: '_valueChanged' } }, @@ -64,6 +65,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN '_requiredChanged(required)' ], + created: function() { + // Used by `iron-form` to handle the case that an element with this behavior + // doesn't have a role of 'checkbox' or 'radio', but should still only be + // included when the form is serialized if `this.checked === true`. + this._hasIronCheckedElementBehavior = true; + }, + /** * Returns false if the element is required and not checked, and true otherwise. * @return {boolean} true if `required` is false, or if `required` and `checked` are both true. @@ -84,15 +92,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN }, /** - * Update the element's value when checked. + * Fire `iron-changed` when the checked state changes. */ _checkedChanged: function() { this.active = this.checked; - // Unless the user has specified a value, a checked element has the - // default value "on" when checked. - if (this.value === '') - this.value = this.checked ? 'on' : ''; this.fire('iron-change'); + }, + + /** + * Reset value to 'on' if it is set to `undefined`. + */ + _valueChanged: function() { + if (this.value === undefined || this.value === null) { + this.value = 'on'; + } } }; diff --git a/dashboard-ui/bower_components/iron-checked-element-behavior/test/basic.html b/dashboard-ui/bower_components/iron-checked-element-behavior/test/basic.html index af0c5ee31e..4c13dd8cd3 100644 --- a/dashboard-ui/bower_components/iron-checked-element-behavior/test/basic.html +++ b/dashboard-ui/bower_components/iron-checked-element-behavior/test/basic.html @@ -84,9 +84,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN assert.isFalse(c.invalid); }); - test('has a default value of "on" when checked', function() { + test('has a default value of "on", always', function() { var c = fixture('basic'); - assert.isTrue(c.value === ''); + + assert.isTrue(c.value === 'on'); c.checked = true; assert.isTrue(c.value === 'on'); @@ -99,6 +100,32 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN c.checked = true; assert.isTrue(c.value === 'batman'); }); + + test('value returns "on" when no explicit value is specified', function() { + var c = fixture('basic'); + + assert.equal(c.value, 'on', 'returns "on"'); + }); + + test('value returns the value when an explicit value is set', function() { + var c = fixture('basic'); + + c.value = 'abc'; + assert.equal(c.value, 'abc', 'returns "abc"'); + + c.value = '123'; + assert.equal(c.value, '123', 'returns "123"'); + }); + + test('value returns "on" when value is set to undefined', function() { + var c = fixture('basic'); + + c.value = 'abc'; + assert.equal(c.value, 'abc', 'returns "abc"'); + + c.value = undefined; + assert.equal(c.value, 'on', 'returns "on"'); + }); }); suite('a11y', function() { diff --git a/dashboard-ui/bower_components/iron-flex-layout/.bower.json b/dashboard-ui/bower_components/iron-flex-layout/.bower.json index 49f7c42683..ffb51f3ad2 100644 --- a/dashboard-ui/bower_components/iron-flex-layout/.bower.json +++ b/dashboard-ui/bower_components/iron-flex-layout/.bower.json @@ -1,6 +1,6 @@ { "name": "iron-flex-layout", - "version": "1.0.5", + "version": "1.2.0", "description": "Provide flexbox-based layouts", "keywords": [ "web-components", @@ -18,7 +18,7 @@ "url": "git://github.com/PolymerElements/iron-flex-layout.git" }, "dependencies": { - "polymer": "Polymer/polymer#^1.0.0" + "polymer": "Polymer/polymer#^1.1.0" }, "devDependencies": { "paper-styles": "polymerelements/paper-styles#^1.0.0", @@ -28,11 +28,11 @@ "iron-component-page": "polymerelements/iron-component-page#^1.0.0" }, "homepage": "https://github.com/PolymerElements/iron-flex-layout", - "_release": "1.0.5", + "_release": "1.2.0", "_resolution": { "type": "version", - "tag": "v1.0.5", - "commit": "00daa8acc95fe53d7cbbe5f9059241c4648ff22e" + "tag": "v1.2.0", + "commit": "4bf53ba623140d0d2663a404e91ee45b96299118" }, "_source": "git://github.com/PolymerElements/iron-flex-layout.git", "_target": "^1.0.0", diff --git a/dashboard-ui/bower_components/iron-flex-layout/.travis.yml b/dashboard-ui/bower_components/iron-flex-layout/.travis.yml index b3f20a9656..14805df9e5 100644 --- a/dashboard-ui/bower_components/iron-flex-layout/.travis.yml +++ b/dashboard-ui/bower_components/iron-flex-layout/.travis.yml @@ -3,7 +3,7 @@ sudo: false matrix: include: - node_js: stable - script: xvfb-run wct + script: true || xvfb-run wct addons: firefox: latest apt: @@ -15,7 +15,7 @@ matrix: script: - | if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then - wct -s 'default' + true || wct -s 'default' fi before_script: - npm install web-component-tester diff --git a/dashboard-ui/bower_components/iron-flex-layout/bower.json b/dashboard-ui/bower_components/iron-flex-layout/bower.json index da26e31f24..c9737e3984 100644 --- a/dashboard-ui/bower_components/iron-flex-layout/bower.json +++ b/dashboard-ui/bower_components/iron-flex-layout/bower.json @@ -1,6 +1,6 @@ { "name": "iron-flex-layout", - "version": "1.0.5", + "version": "1.2.0", "description": "Provide flexbox-based layouts", "keywords": [ "web-components", @@ -18,7 +18,7 @@ "url": "git://github.com/PolymerElements/iron-flex-layout.git" }, "dependencies": { - "polymer": "Polymer/polymer#^1.0.0" + "polymer": "Polymer/polymer#^1.1.0" }, "devDependencies": { "paper-styles": "polymerelements/paper-styles#^1.0.0", diff --git a/dashboard-ui/bower_components/iron-flex-layout/classes/iron-shadow-flex-layout.html b/dashboard-ui/bower_components/iron-flex-layout/classes/iron-shadow-flex-layout.html index c42067af5e..fe55ec80a2 100644 --- a/dashboard-ui/bower_components/iron-flex-layout/classes/iron-shadow-flex-layout.html +++ b/dashboard-ui/bower_components/iron-flex-layout/classes/iron-shadow-flex-layout.html @@ -284,7 +284,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN html /deep/ .fixed-right { top: 0; right: 0; - botttom: 0; + bottom: 0; } html /deep/ .fixed-bottom { @@ -295,7 +295,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN html /deep/ .fixed-left { top: 0; - botttom: 0; + bottom: 0; left: 0; } diff --git a/dashboard-ui/bower_components/iron-flex-layout/demo/demo-snippet.html b/dashboard-ui/bower_components/iron-flex-layout/demo/demo-snippet.html index 70d8ab1d60..8042f27c3c 100644 --- a/dashboard-ui/bower_components/iron-flex-layout/demo/demo-snippet.html +++ b/dashboard-ui/bower_components/iron-flex-layout/demo/demo-snippet.html @@ -33,30 +33,31 @@ Quick element that can display the source of a code snippet and a rendered demo. --> -