diff --git a/dashboard-ui/bower_components/iron-menu-behavior/.bower.json b/dashboard-ui/bower_components/iron-menu-behavior/.bower.json index f4e0694262..3ab5b6c0fd 100644 --- a/dashboard-ui/bower_components/iron-menu-behavior/.bower.json +++ b/dashboard-ui/bower_components/iron-menu-behavior/.bower.json @@ -1,6 +1,6 @@ { "name": "iron-menu-behavior", - "version": "1.0.6", + "version": "1.0.7", "description": "Provides accessible menu behavior", "authors": "The Polymer Authors", "keywords": [ @@ -29,15 +29,16 @@ "devDependencies": { "paper-styles": "polymerelements/paper-styles#^1.0.2", "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0", "web-component-tester": "polymer/web-component-tester#^3.4.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "_release": "1.0.6", + "_release": "1.0.7", "_resolution": { "type": "version", - "tag": "v1.0.6", - "commit": "50f4e753b147ab397d81f64f4b2db962c43c4057" + "tag": "v1.0.7", + "commit": "e5ca054bbe1c24fbc43adb78217ccc50d9223601" }, "_source": "git://github.com/polymerelements/iron-menu-behavior.git", "_target": "^1.0.0", diff --git a/dashboard-ui/bower_components/iron-menu-behavior/.travis.yml b/dashboard-ui/bower_components/iron-menu-behavior/.travis.yml index 45ff15b15a..c7455761ed 100644 --- a/dashboard-ui/bower_components/iron-menu-behavior/.travis.yml +++ b/dashboard-ui/bower_components/iron-menu-behavior/.travis.yml @@ -11,7 +11,7 @@ env: - secure: i76J23Bpwj6qJ4ybCCsQpGCTT+5s1PA+x0Avjbl1JTS4OsJLDFfvVl0YIWZ5xMIKJtdPC/mGDoZ2LNrh9hz82DBqDnzBlSnNjFbjnU1Aqy5CUmRWzyAF5NOjJGotISZcDYDGZd6gjsOfN0r+rICyRUiOadeyPf0Nm+6HSVQMjfM= node_js: 4 addons: - firefox: '42.0' + firefox: latest apt: sources: - google-chrome diff --git a/dashboard-ui/bower_components/iron-menu-behavior/bower.json b/dashboard-ui/bower_components/iron-menu-behavior/bower.json index a250e54197..e3de70bfaa 100644 --- a/dashboard-ui/bower_components/iron-menu-behavior/bower.json +++ b/dashboard-ui/bower_components/iron-menu-behavior/bower.json @@ -1,6 +1,6 @@ { "name": "iron-menu-behavior", - "version": "1.0.6", + "version": "1.0.7", "description": "Provides accessible menu behavior", "authors": "The Polymer Authors", "keywords": [ @@ -29,6 +29,7 @@ "devDependencies": { "paper-styles": "polymerelements/paper-styles#^1.0.2", "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0", "web-component-tester": "polymer/web-component-tester#^3.4.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" diff --git a/dashboard-ui/bower_components/iron-menu-behavior/iron-menu-behavior.html b/dashboard-ui/bower_components/iron-menu-behavior/iron-menu-behavior.html index c83a4c7d2e..b970061147 100644 --- a/dashboard-ui/bower_components/iron-menu-behavior/iron-menu-behavior.html +++ b/dashboard-ui/bower_components/iron-menu-behavior/iron-menu-behavior.html @@ -125,6 +125,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN for (var i = 0, item; item = this.items[i]; i++) { var attr = this.attrForItemTitle || 'textContent'; var title = item[attr] || item.getAttribute(attr); + if (title && title.trim().charAt(0).toLowerCase() === String.fromCharCode(event.keyCode).toLowerCase()) { this._setFocusedItem(item); break; @@ -165,7 +166,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } else { item.removeAttribute('aria-selected'); } - Polymer.IronSelectableBehavior._applySelection.apply(this, arguments); }, @@ -213,18 +213,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN * @param {CustomEvent} event A key combination event. */ _onShiftTabDown: function(event) { - var oldTabIndex; + var oldTabIndex = this.getAttribute('tabindex'); Polymer.IronMenuBehaviorImpl._shiftTabPressed = true; - oldTabIndex = this.getAttribute('tabindex'); + this._setFocusedItem(null); this.setAttribute('tabindex', '-1'); this.async(function() { this.setAttribute('tabindex', oldTabIndex); Polymer.IronMenuBehaviorImpl._shiftTabPressed = false; - // NOTE(cdata): polymer/polymer#1305 + // NOTE(cdata): polymer/polymer#1305 }, 1); }, @@ -235,23 +235,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN */ _onFocus: function(event) { if (Polymer.IronMenuBehaviorImpl._shiftTabPressed) { + // do not focus the menu itself return; } - // do not focus the menu itself + this.blur(); + // clear the cached focus item - this._setFocusedItem(null); this._defaultFocusAsync = this.async(function() { // focus the selected item when the menu receives focus, or the first item // if no item is selected var selectedItem = this.multi ? (this.selectedItems && this.selectedItems[0]) : this.selectedItem; + + this._setFocusedItem(null); + if (selectedItem) { this._setFocusedItem(selectedItem); } else { this._setFocusedItem(this.items[0]); } - // async 100ms to wait for `select` to get called from `_itemActivate` - }, 100); + // async 1ms to wait for `select` to get called from `_itemActivate` + }, 1); }, /** @@ -289,12 +293,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN * @param {KeyboardEvent} event A keyboard event. */ _onKeydown: function(event) { - if (this.keyboardEventMatchesKeys(event, 'up down esc')) { - return; + if (!this.keyboardEventMatchesKeys(event, 'up down esc')) { + // all other keys focus the menu item starting with that character + this._focusWithKeyboardEvent(event); } + event.stopPropagation(); + }, - // all other keys focus the menu item starting with that character - this._focusWithKeyboardEvent(event); + // override _activateHandler + _activateHandler: function(event) { + Polymer.IronSelectableBehavior._activateHandler.call(this, event); + event.stopPropagation(); } }; diff --git a/dashboard-ui/bower_components/iron-menu-behavior/test/index.html b/dashboard-ui/bower_components/iron-menu-behavior/test/index.html index 4b1c82f6ce..851835ba64 100644 --- a/dashboard-ui/bower_components/iron-menu-behavior/test/index.html +++ b/dashboard-ui/bower_components/iron-menu-behavior/test/index.html @@ -1,5 +1,4 @@ - - - - +--> iron-menu-behavior tests @@ -23,13 +20,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN - - + + + diff --git a/dashboard-ui/bower_components/iron-menu-behavior/test/iron-menu-behavior.html b/dashboard-ui/bower_components/iron-menu-behavior/test/iron-menu-behavior.html index a28eef6cf6..92ffc44fe7 100644 --- a/dashboard-ui/bower_components/iron-menu-behavior/test/iron-menu-behavior.html +++ b/dashboard-ui/bower_components/iron-menu-behavior/test/iron-menu-behavior.html @@ -17,8 +17,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN + + @@ -44,6 +46,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN + + + + + 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-button/.bower.json b/dashboard-ui/bower_components/paper-button/.bower.json index be69d03e9c..e2f5b823b9 100644 --- a/dashboard-ui/bower_components/paper-button/.bower.json +++ b/dashboard-ui/bower_components/paper-button/.bower.json @@ -1,6 +1,6 @@ { "name": "paper-button", - "version": "1.0.8", + "version": "1.0.9", "description": "Material design button", "authors": [ "The Polymer Authors" @@ -37,11 +37,12 @@ "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", "paper-styles": "polymerelements/paper-styles#^1.0.0" }, - "_release": "1.0.8", + "ignore": [], + "_release": "1.0.9", "_resolution": { "type": "version", - "tag": "v1.0.8", - "commit": "08553a8c5e4d27fc6180bbcfb952f86b38b51345" + "tag": "v1.0.9", + "commit": "c30e913331feed4f7b911c0fbf6bb9535e56b4d1" }, "_source": "git://github.com/PolymerElements/paper-button.git", "_target": "~1.0.1", diff --git a/dashboard-ui/bower_components/paper-button/.travis.yml b/dashboard-ui/bower_components/paper-button/.travis.yml new file mode 100644 index 0000000000..77c5526690 --- /dev/null +++ b/dashboard-ui/bower_components/paper-button/.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: geFs7Ipj7/9knSKT2FEYAB7b/zbmgWFXCgZm7cEcrG71EX/HB1do3spANGOlRly77xaZtNNF1OGYBHIP36DSyMEHRYj6TYtTrPIr2ySeHvoOv0nzYakXdscxBvfI5HJrNiFpld80KoGl8vKfroLNpVLallgumX3diydypolvW1I= + - secure: IILEhg3m49exN5hpxbPP1JA/q+s4v/QpOMbDiXVRV4Uz1XwOPGLCyrAB0ENjwzMCyeOah1Z2MyQSUiPisLheHKvZifhviNqizWN//8EDkg1gkU0R6egGdotD5mBb3UpCD0CNZ8+D0FYwOpdCWCruwr7N+zDUN+6r5H07KP/VeUU= +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-button/CONTRIBUTING.md b/dashboard-ui/bower_components/paper-button/CONTRIBUTING.md new file mode 100644 index 0000000000..7b10141565 --- /dev/null +++ b/dashboard-ui/bower_components/paper-button/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-button/bower.json b/dashboard-ui/bower_components/paper-button/bower.json index 0f7f3ae609..4de49bbc68 100644 --- a/dashboard-ui/bower_components/paper-button/bower.json +++ b/dashboard-ui/bower_components/paper-button/bower.json @@ -1,6 +1,6 @@ { "name": "paper-button", - "version": "1.0.8", + "version": "1.0.9", "description": "Material design button", "authors": [ "The Polymer Authors" @@ -36,5 +36,6 @@ "iron-icons": "polymerelements/iron-icons#^1.0.0", "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", "paper-styles": "polymerelements/paper-styles#^1.0.0" - } + }, + "ignore": [] } diff --git a/dashboard-ui/bower_components/paper-button/index.html b/dashboard-ui/bower_components/paper-button/index.html index e871f17d98..487bb5c38a 100644 --- a/dashboard-ui/bower_components/paper-button/index.html +++ b/dashboard-ui/bower_components/paper-button/index.html @@ -2,11 +2,11 @@ diff --git a/dashboard-ui/bower_components/paper-button/paper-button.html b/dashboard-ui/bower_components/paper-button/paper-button.html index 2e4c4b202a..52ac7b9bc2 100644 --- a/dashboard-ui/bower_components/paper-button/paper-button.html +++ b/dashboard-ui/bower_components/paper-button/paper-button.html @@ -1,11 +1,11 @@ @@ -159,5 +159,14 @@ Custom property | Description | Default Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this); } } + /** + + Fired when the animation finishes. + This is useful if you want to wait until + the ripple animation finishes to perform some action. + + @event transitionend + @param {{node: Object}} detail Contains the animated node. + */ }); diff --git a/dashboard-ui/bower_components/paper-button/test/index.html b/dashboard-ui/bower_components/paper-button/test/index.html index 07ed03ccff..50048191aa 100644 --- a/dashboard-ui/bower_components/paper-button/test/index.html +++ b/dashboard-ui/bower_components/paper-button/test/index.html @@ -1,5 +1,4 @@ - - - - +--> paper-button tests @@ -18,8 +15,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN - - + + + diff --git a/dashboard-ui/components/tvguide/tvguide.js b/dashboard-ui/components/tvguide/tvguide.js index f79550f2a3..caefa99149 100644 --- a/dashboard-ui/components/tvguide/tvguide.js +++ b/dashboard-ui/components/tvguide/tvguide.js @@ -50,7 +50,7 @@ function reloadGuide(page) { - Dashboard.showModalLoadingMsg(); + Dashboard.showLoadingMsg(); channelQuery.UserId = Dashboard.getCurrentUserId(); @@ -84,7 +84,7 @@ renderGuide(page, date, channelsResult.Items, programsResult.Items); - Dashboard.hideModalLoadingMsg(); + Dashboard.hideLoadingMsg(); LibraryBrowser.setLastRefreshed(page); @@ -435,12 +435,12 @@ $('.guideRequiresUnlock', page).hide(); RegistrationServices.validateFeature('livetv').then(function () { - Dashboard.showModalLoadingMsg(); + Dashboard.showLoadingMsg(); reloadPageAfterValidation(page, 1000); }, function () { - Dashboard.showModalLoadingMsg(); + Dashboard.showLoadingMsg(); var limit = 5; $('.guideRequiresUnlock', page).show(); diff --git a/dashboard-ui/scripts/channelitems.js b/dashboard-ui/scripts/channelitems.js index 301a1ea6f3..a2ce4557fa 100644 --- a/dashboard-ui/scripts/channelitems.js +++ b/dashboard-ui/scripts/channelitems.js @@ -68,7 +68,7 @@ function reloadItems(page) { - Dashboard.showModalLoadingMsg(); + Dashboard.showLoadingMsg(); var channelId = getParameterByName('id'); var folderId = getParameterByName('folderId'); @@ -145,11 +145,11 @@ showSortMenu(page); }); - Dashboard.hideModalLoadingMsg(); + Dashboard.hideLoadingMsg(); }, function () { - Dashboard.hideModalLoadingMsg(); + Dashboard.hideLoadingMsg(); }); } diff --git a/dashboard-ui/scripts/mediacontroller.js b/dashboard-ui/scripts/mediacontroller.js index a942a02202..cc54203b9a 100644 --- a/dashboard-ui/scripts/mediacontroller.js +++ b/dashboard-ui/scripts/mediacontroller.js @@ -64,7 +64,7 @@ }); } - function showPlayerSelection() { + function showPlayerSelection(button) { var playerInfo = MediaController.getPlayerInfo(); @@ -73,7 +73,7 @@ return; } - Dashboard.showModalLoadingMsg(); + Dashboard.showLoadingMsg(); MediaController.getTargets().then(function (targets) { @@ -95,11 +95,12 @@ require(['actionsheet'], function () { - Dashboard.hideModalLoadingMsg(); + Dashboard.hideLoadingMsg(); ActionSheetElement.show({ title: Globalize.translate('HeaderSelectPlayer'), items: menuItems, + positionTo: button, callback: function (id) { var target = targets.filter(function (t) { @@ -1011,7 +1012,7 @@ function onCastButtonClicked() { - showPlayerSelection(); + showPlayerSelection(this); } document.addEventListener('headercreated', function () { diff --git a/dashboard-ui/scripts/mediaplayer-video.js b/dashboard-ui/scripts/mediaplayer-video.js index b0e9ecea64..9f90432f9f 100644 --- a/dashboard-ui/scripts/mediaplayer-video.js +++ b/dashboard-ui/scripts/mediaplayer-video.js @@ -990,7 +990,7 @@ var keyframes = [ { opacity: '1', offset: 0 }, { opacity: '0', offset: 1 }]; - var timing = { duration: 400, iterations: 1, easing: 'ease-out' }; + var timing = { duration: 600, iterations: 1, easing: 'ease-out' }; elem.animate(keyframes, timing).onfinish = onfinish; }); } diff --git a/dashboard-ui/vulcanize-out.html b/dashboard-ui/vulcanize-out.html index b07c8687a6..6843af98a2 100644 --- a/dashboard-ui/vulcanize-out.html +++ b/dashboard-ui/vulcanize-out.html @@ -8,7 +8,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 -->