From 465ea29e6b003da04f89437874fe7188bcc0e7d2 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 21 Nov 2015 12:02:16 -0500 Subject: [PATCH] update components --- .../iron-a11y-keys-behavior/.bower.json | 6 +- .../iron-behaviors/.bower.json | 6 +- .../iron-selector/.bower.json | 4 +- .../paper-behaviors/.bower.json | 17 +- .../paper-behaviors/.travis.yml | 22 ++ .../paper-behaviors/CONTRIBUTING.md | 72 +++++ .../paper-behaviors/bower.json | 9 +- .../paper-behaviors/index.html | 8 +- .../paper-ripple-behavior.html | 18 +- .../paper-behaviors/test/index.html | 19 +- .../test/paper-ripple-behavior.html | 257 +++++++++++++++++- .../paper-behaviors/test/shadowed-ripple.html | 55 ++++ .../bower_components/paper-input/.bower.json | 6 +- .../bower_components/requirejs/.bower.json | 8 +- .../bower_components/requirejs/bower.json | 2 +- .../bower_components/requirejs/require.js | 13 +- dashboard-ui/vulcanize-out.html | 18 +- 17 files changed, 477 insertions(+), 63 deletions(-) create mode 100644 dashboard-ui/bower_components/paper-behaviors/.travis.yml create mode 100644 dashboard-ui/bower_components/paper-behaviors/CONTRIBUTING.md create mode 100644 dashboard-ui/bower_components/paper-behaviors/test/shadowed-ripple.html 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 2173705a45..a68849899d 100644 --- a/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json +++ b/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json @@ -30,14 +30,14 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, "ignore": [], - "homepage": "https://github.com/polymerelements/iron-a11y-keys-behavior", + "homepage": "https://github.com/PolymerElements/iron-a11y-keys-behavior", "_release": "1.0.9", "_resolution": { "type": "version", "tag": "v1.0.9", "commit": "63dd1ce94223ae6a226e653ef5a458a66c950e79" }, - "_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-behaviors/.bower.json b/dashboard-ui/bower_components/iron-behaviors/.bower.json index b5f528b092..5d74fa6525 100644 --- a/dashboard-ui/bower_components/iron-behaviors/.bower.json +++ b/dashboard-ui/bower_components/iron-behaviors/.bower.json @@ -29,14 +29,14 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, "ignore": [], - "homepage": "https://github.com/PolymerElements/iron-behaviors", + "homepage": "https://github.com/polymerelements/iron-behaviors", "_release": "1.0.11", "_resolution": { "type": "version", "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-selector/.bower.json b/dashboard-ui/bower_components/iron-selector/.bower.json index 52d44c1907..ebb18c5b7b 100644 --- a/dashboard-ui/bower_components/iron-selector/.bower.json +++ b/dashboard-ui/bower_components/iron-selector/.bower.json @@ -36,7 +36,7 @@ "tag": "v1.0.8", "commit": "e9a66727f3da0446f04956d4e4f1dcd51cdec2ff" }, - "_source": "git://github.com/PolymerElements/iron-selector.git", + "_source": "git://github.com/polymerelements/iron-selector.git", "_target": "^1.0.0", - "_originalSource": "PolymerElements/iron-selector" + "_originalSource": "polymerelements/iron-selector" } \ 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 7387dbf119..713d584e4f 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.9", + "version": "1.0.10", "description": "Common behaviors across the paper elements", "authors": [ "The Polymer Authors" @@ -27,7 +27,7 @@ "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" + "polymer": "Polymer/polymer#^1.2.1" }, "devDependencies": { "iron-component-page": "polymerelements/iron-component-page#^1.0.0", @@ -35,16 +35,17 @@ "paper-material": "PolymerElements/paper-material#^1.0.0", "paper-ripple": "PolymerElements/paper-ripple#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0", - "web-component-tester": "*", + "web-component-tester": "^3.4.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "_release": "1.0.9", + "ignore": [], + "_release": "1.0.10", "_resolution": { "type": "version", - "tag": "v1.0.9", - "commit": "d9c0398cbaf3881bef3533b5b2b6127fc4d0960c" + "tag": "v1.0.10", + "commit": "4b244a542af2c6c271498dfb98b00ed284df1d6a" }, - "_source": "git://github.com/polymerelements/paper-behaviors.git", + "_source": "git://github.com/PolymerElements/paper-behaviors.git", "_target": "^1.0.0", - "_originalSource": "polymerelements/paper-behaviors" + "_originalSource": "PolymerElements/paper-behaviors" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/paper-behaviors/.travis.yml b/dashboard-ui/bower_components/paper-behaviors/.travis.yml new file mode 100644 index 0000000000..118a44d8db --- /dev/null +++ b/dashboard-ui/bower_components/paper-behaviors/.travis.yml @@ -0,0 +1,22 @@ +language: node_js +sudo: false +before_script: + - npm install web-component-tester + - npm install bower + - 'export PATH=$PWD/node_modules/.bin:$PATH' + - bower install +env: + global: + - secure: Mni8srJPpo7GAk5wCLTiqqVqAJxxKMpGuxYxooqIAuc050n26KkHfDWLPY69taFY9WYjU3pzVEwrYX3HqSbib1CTlcfeATGs1+q2rXKZKmBAnKKPi12CEEXOcbMoVgzVQs7rzr8MQF9LR2TLtBuMQEoAimebA7uQcYGXcSWKJR4= + - secure: LYF3qBtJ6zZcf9dsSJ9t/My4Cne5ieI6RkHFj/0MBcy0vMbUazTH38vuy+FILYlrzbaxkVs36lPQFBXH83Ue3TxjdfjeNvK8YiuEcFjE5lQi2u7+x54eSV3myp2SIdtBLGE7rqmY0zj/Oeg91fV22OdfSHhJxuV/RxFFZIuZtHY= +node_js: 4 +addons: + firefox: latest + apt: + sources: + - google-chrome + packages: + - google-chrome-stable +script: + - xvfb-run wct + - "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi" diff --git a/dashboard-ui/bower_components/paper-behaviors/CONTRIBUTING.md b/dashboard-ui/bower_components/paper-behaviors/CONTRIBUTING.md new file mode 100644 index 0000000000..7b10141565 --- /dev/null +++ b/dashboard-ui/bower_components/paper-behaviors/CONTRIBUTING.md @@ -0,0 +1,72 @@ + + +# Polymer Elements +## Guide for Contributors + +Polymer Elements are built in the open, and the Polymer authors eagerly encourage any and all forms of community contribution. When contributing, please follow these guidelines: + +### Filing Issues + +**If you are filing an issue to request a feature**, please provide a clear description of the feature. It can be helpful to describe answers to the following questions: + + 1. **Who will use the feature?** _“As someone filling out a form…”_ + 2. **When will they use the feature?** _“When I enter an invalid value…”_ + 3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_ + +**If you are filing an issue to report a bug**, please provide: + + 1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug: + + ```markdown + The `paper-foo` element causes the page to turn pink when clicked. + + ## Expected outcome + + The page stays the same color. + + ## Actual outcome + + The page turns pink. + + ## Steps to reproduce + + 1. Put a `paper-foo` element in the page. + 2. Open the page in a web browser. + 3. Click the `paper-foo` element. + ``` + + 2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [http://jsbin.com/cagaye](http://jsbin.com/cagaye/edit?html,output). + + 3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers. + +### Submitting Pull Requests + +**Before creating a pull request**, please ensure that an issue exists for the corresponding change in the pull request that you intend to make. **If an issue does not exist, please create one per the guidelines above**. The goal is to discuss the design and necessity of the proposed change with Polymer authors and community before diving into a pull request. + +When submitting pull requests, please provide: + + 1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues using the following syntax: + + ```markdown + (For a single issue) + Fixes #20 + + (For multiple issues) + Fixes #32, #40 + ``` + + 2. **A succinct description of the design** used to fix any related issues. For example: + + ```markdown + This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked. + ``` + + 3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered. + +If a proposed change contains multiple commits, please [squash commits](https://www.google.com/url?q=http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request) to as few as is necessary to succinctly express the change. A Polymer author can help you squash commits, so don’t be afraid to ask us if you need help with that! diff --git a/dashboard-ui/bower_components/paper-behaviors/bower.json b/dashboard-ui/bower_components/paper-behaviors/bower.json index 8446398723..a3e0e8be2e 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.9", + "version": "1.0.10", "description": "Common behaviors across the paper elements", "authors": [ "The Polymer Authors" @@ -27,7 +27,7 @@ "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" + "polymer": "Polymer/polymer#^1.2.1" }, "devDependencies": { "iron-component-page": "polymerelements/iron-component-page#^1.0.0", @@ -35,7 +35,8 @@ "paper-material": "PolymerElements/paper-material#^1.0.0", "paper-ripple": "PolymerElements/paper-ripple#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0", - "web-component-tester": "*", + "web-component-tester": "^3.4.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" - } + }, + "ignore": [] } diff --git a/dashboard-ui/bower_components/paper-behaviors/index.html b/dashboard-ui/bower_components/paper-behaviors/index.html index 3e003cb3be..37184eaa0d 100644 --- a/dashboard-ui/bower_components/paper-behaviors/index.html +++ b/dashboard-ui/bower_components/paper-behaviors/index.html @@ -2,11 +2,11 @@ diff --git a/dashboard-ui/bower_components/paper-behaviors/paper-ripple-behavior.html b/dashboard-ui/bower_components/paper-behaviors/paper-ripple-behavior.html index a6cd362c5e..1d63b75e89 100644 --- a/dashboard-ui/bower_components/paper-behaviors/paper-ripple-behavior.html +++ b/dashboard-ui/bower_components/paper-behaviors/paper-ripple-behavior.html @@ -66,10 +66,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN /** * Ensures this element contains a ripple effect. For startup efficiency * the ripple effect is dynamically on demand when needed. - * @param {!Event=} opt_triggeringEvent (optional) event that triggered the + * @param {!Event=} optTriggeringEvent (optional) event that triggered the * ripple. */ - ensureRipple: function(opt_triggeringEvent) { + ensureRipple: function(optTriggeringEvent) { if (!this.hasRipple()) { this._ripple = this._createRipple(); this._ripple.noink = this.noink; @@ -77,12 +77,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN if (rippleContainer) { Polymer.dom(rippleContainer).appendChild(this._ripple); } - var domContainer = rippleContainer === this.shadyRoot ? this : - rippleContainer; - if (opt_triggeringEvent) { - var target = opt_triggeringEvent.target; - if (domContainer.contains(/** @type {Node} */(target))) { - this._ripple.uiDownAction(opt_triggeringEvent); + if (optTriggeringEvent) { + // Check if the event happened inside of the ripple container + // Fall back to host instead of the root because distributed text + // nodes are not valid event targets + var domContainer = Polymer.dom(this._rippleContainer || this); + var target = Polymer.dom(optTriggeringEvent).rootTarget; + if (domContainer.deepContains( /** @type {Node} */(target))) { + this._ripple.uiDownAction(optTriggeringEvent); } } } diff --git a/dashboard-ui/bower_components/paper-behaviors/test/index.html b/dashboard-ui/bower_components/paper-behaviors/test/index.html index 3173824d2a..693054c07e 100644 --- a/dashboard-ui/bower_components/paper-behaviors/test/index.html +++ b/dashboard-ui/bower_components/paper-behaviors/test/index.html @@ -1,5 +1,4 @@ - - - - - +--> @@ -21,8 +17,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN 'paper-button-behavior.html', 'paper-radio-button-behavior.html', 'paper-checked-element-behavior.html', - 'paper-ripple-behavior.html' + 'paper-ripple-behavior.html', + 'paper-button-behavior.html?dom=shadow', + 'paper-radio-button-behavior.html?dom=shadow', + 'paper-checked-element-behavior.html?dom=shadow', + 'paper-ripple-behavior.html?dom=shadow' ]); - - + + + diff --git a/dashboard-ui/bower_components/paper-behaviors/test/paper-ripple-behavior.html b/dashboard-ui/bower_components/paper-behaviors/test/paper-ripple-behavior.html index dcccc44ab5..9139dc8edd 100644 --- a/dashboard-ui/bower_components/paper-behaviors/test/paper-ripple-behavior.html +++ b/dashboard-ui/bower_components/paper-behaviors/test/paper-ripple-behavior.html @@ -15,13 +15,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN - - + @@ -48,6 +47,26 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN + + + + + + + + + + + + diff --git a/dashboard-ui/bower_components/paper-behaviors/test/shadowed-ripple.html b/dashboard-ui/bower_components/paper-behaviors/test/shadowed-ripple.html new file mode 100644 index 0000000000..1ebad13e09 --- /dev/null +++ b/dashboard-ui/bower_components/paper-behaviors/test/shadowed-ripple.html @@ -0,0 +1,55 @@ + + + + + + + + + diff --git a/dashboard-ui/bower_components/paper-input/.bower.json b/dashboard-ui/bower_components/paper-input/.bower.json index d0ff753f59..91b2f2300d 100644 --- a/dashboard-ui/bower_components/paper-input/.bower.json +++ b/dashboard-ui/bower_components/paper-input/.bower.json @@ -50,7 +50,7 @@ "tag": "v1.1.1", "commit": "1bbce220b027dc030b294163f7da6f3e9052ab13" }, - "_source": "git://github.com/PolymerElements/paper-input.git", - "_target": "^1.0.0", - "_originalSource": "PolymerElements/paper-input" + "_source": "git://github.com/polymerelements/paper-input.git", + "_target": "^1.0.9", + "_originalSource": "polymerelements/paper-input" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/requirejs/.bower.json b/dashboard-ui/bower_components/requirejs/.bower.json index 82bf926c9d..2219991032 100644 --- a/dashboard-ui/bower_components/requirejs/.bower.json +++ b/dashboard-ui/bower_components/requirejs/.bower.json @@ -1,6 +1,6 @@ { "name": "requirejs", - "version": "2.1.21", + "version": "2.1.22", "ignore": [], "homepage": "http://requirejs.org", "authors": [ @@ -15,11 +15,11 @@ "BSD-3-Clause", "MIT" ], - "_release": "2.1.21", + "_release": "2.1.22", "_resolution": { "type": "version", - "tag": "2.1.21", - "commit": "3c1c4d7d6fd882e58828ab561d2a80f744167cd9" + "tag": "2.1.22", + "commit": "9cd0b99417eac61e890d11c5119f2e45e752c999" }, "_source": "git://github.com/jrburke/requirejs-bower.git", "_target": "~2.1.19", diff --git a/dashboard-ui/bower_components/requirejs/bower.json b/dashboard-ui/bower_components/requirejs/bower.json index 88af670ffa..98ba978b13 100644 --- a/dashboard-ui/bower_components/requirejs/bower.json +++ b/dashboard-ui/bower_components/requirejs/bower.json @@ -1,6 +1,6 @@ { "name": "requirejs", - "version": "2.1.21", + "version": "2.1.22", "ignore": [], "homepage": "http://requirejs.org", "authors": [ diff --git a/dashboard-ui/bower_components/requirejs/require.js b/dashboard-ui/bower_components/requirejs/require.js index d69cc22971..e33c7dded7 100644 --- a/dashboard-ui/bower_components/requirejs/require.js +++ b/dashboard-ui/bower_components/requirejs/require.js @@ -1,5 +1,5 @@ /** vim: et:ts=4:sw=4:sts=4 - * @license RequireJS 2.1.21 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved. + * @license RequireJS 2.1.22 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ @@ -12,7 +12,7 @@ var requirejs, require, define; (function (global) { var req, s, head, baseElement, dataMain, src, interactiveScript, currentlyAddingScript, mainScript, subPath, - version = '2.1.21', + version = '2.1.22', commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg, cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g, jsSuffixRegExp = /\.js$/, @@ -916,7 +916,11 @@ var requirejs, require, define; defined[id] = exports; if (req.onResourceLoad) { - req.onResourceLoad(context, this.map, this.depMaps); + var resLoadMaps = []; + each(this.depMaps, function (depMap) { + resLoadMaps.push(depMap.normalizedMap || depMap); + }); + req.onResourceLoad(context, this.map, resLoadMaps); } } @@ -975,6 +979,7 @@ var requirejs, require, define; this.map.parentMap); on(normalizedMap, 'defined', bind(this, function (value) { + this.map.normalizedMap = normalizedMap; this.init([], function () { return value; }, null, { enabled: true, ignore: true @@ -1711,7 +1716,7 @@ var requirejs, require, define; * Callback for script errors. */ onScriptError: function (evt) { - data = getScriptData(evt); + var data = getScriptData(evt); if (!hasPathFallback(data.id)) { var parents = []; eachProp(registry, function(value, key) { diff --git a/dashboard-ui/vulcanize-out.html b/dashboard-ui/vulcanize-out.html index b5dd26d9a0..371df60034 100644 --- a/dashboard-ui/vulcanize-out.html +++ b/dashboard-ui/vulcanize-out.html @@ -8132,10 +8132,10 @@ this.fire('dom-change'); /** * Ensures this element contains a ripple effect. For startup efficiency * the ripple effect is dynamically on demand when needed. - * @param {!Event=} opt_triggeringEvent (optional) event that triggered the + * @param {!Event=} optTriggeringEvent (optional) event that triggered the * ripple. */ - ensureRipple: function(opt_triggeringEvent) { + ensureRipple: function(optTriggeringEvent) { if (!this.hasRipple()) { this._ripple = this._createRipple(); this._ripple.noink = this.noink; @@ -8143,12 +8143,14 @@ this.fire('dom-change'); if (rippleContainer) { Polymer.dom(rippleContainer).appendChild(this._ripple); } - var domContainer = rippleContainer === this.shadyRoot ? this : - rippleContainer; - if (opt_triggeringEvent) { - var target = opt_triggeringEvent.target; - if (domContainer.contains(/** @type {Node} */(target))) { - this._ripple.uiDownAction(opt_triggeringEvent); + if (optTriggeringEvent) { + // Check if the event happened inside of the ripple container + // Fall back to host instead of the root because distributed text + // nodes are not valid event targets + var domContainer = Polymer.dom(this._rippleContainer || this); + var target = Polymer.dom(optTriggeringEvent).rootTarget; + if (domContainer.deepContains( /** @type {Node} */(target))) { + this._ripple.uiDownAction(optTriggeringEvent); } } }