From 91127df6f0e266ee9220f24d1265d900716cf18c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 7 Jul 2016 14:12:08 -0400 Subject: [PATCH 1/6] update components --- .../emby-webcomponents/.bower.json | 8 ++++---- .../actionsheet/actionsheet.css | 7 ++++++- .../actionsheet/actionsheet.js | 5 +++++ .../emby-webcomponents/alert/alert.js | 2 +- .../emby-webcomponents/backdrop/backdrop.js | 1 - .../collectioneditor/collectioneditor.js | 2 +- .../emby-webcomponents/input/api.js | 2 +- .../playlisteditor/playlisteditor.js | 2 +- .../emby-webcomponents/prompt/prompt.js | 2 +- .../recordingcreator.template.html | 2 +- .../recordingeditor.template.html | 2 +- .../refreshdialog/refreshdialog.js | 2 +- .../subtitleeditor.template.html | 2 +- .../emby-webcomponents/voice/voicedialog.js | 2 +- .../iron-menu-behavior/.bower.json | 8 ++++---- .../iron-menu-behavior/.travis.yml | 20 +++++++++---------- .../iron-menu-behavior/CONTRIBUTING.md | 2 +- .../iron-menu-behavior/bower.json | 2 +- .../iron-menu-behavior.html | 6 ++++-- .../test/iron-menu-behavior.html | 19 ++++++++++++++++++ .../bower_components/polymer/.bower.json | 2 +- 21 files changed, 65 insertions(+), 35 deletions(-) diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index 7d665c075..60837cbeb 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json +++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json @@ -15,12 +15,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.4.71", - "_release": "1.4.71", + "version": "1.4.73", + "_release": "1.4.73", "_resolution": { "type": "version", - "tag": "1.4.71", - "commit": "0613abc5976a0da9db22854809449e09517ae2b6" + "tag": "1.4.73", + "commit": "5e4922dc23251974102519fa892f452c8bc7f670" }, "_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_target": "^1.2.0", diff --git a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css index 1aeb5f5cf..c680ca1fb 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css +++ b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.css @@ -85,6 +85,11 @@ h2.actionSheetTitle { flex-grow: 0; } +.actionSheetText { + padding: 0 1em; + flex-grow: 0; +} + .actionSheet.extraSpacing { font-size: 108%; -} \ No newline at end of file +} diff --git a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.js b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.js index ac15e2ac4..3ff151b3d 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.js +++ b/dashboard-ui/bower_components/emby-webcomponents/actionsheet/actionsheet.js @@ -140,6 +140,11 @@ html += ''; } } + if (options.text) { + html += '

'; + html += options.text; + html += '

'; + } var scrollType = layoutManager.desktop ? 'smoothScrollY' : 'hiddenScrollY'; var style = (browser.noFlex || browser.firefox) ? 'max-height:400px;' : ''; diff --git a/dashboard-ui/bower_components/emby-webcomponents/alert/alert.js b/dashboard-ui/bower_components/emby-webcomponents/alert/alert.js index 6995d3e1a..2bb5d361b 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/alert/alert.js +++ b/dashboard-ui/bower_components/emby-webcomponents/alert/alert.js @@ -44,7 +44,7 @@ define(['dialogHelper', 'layoutManager', 'globalize', 'material-icons', 'css!./. html += '
'; if (backButton) { - html += getIcon('arrow_back', 'btnPromptExit', false); + html += getIcon('', 'btnPromptExit', false); } if (options.title) { diff --git a/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js b/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js index 17168c8f9..b1c216189 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js +++ b/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js @@ -77,7 +77,6 @@ function cancelAnimation() { var animation = currentAnimation; if (animation) { - console.log('Cancelling backdrop animation'); animation.cancel(); currentAnimation = null; } diff --git a/dashboard-ui/bower_components/emby-webcomponents/collectioneditor/collectioneditor.js b/dashboard-ui/bower_components/emby-webcomponents/collectioneditor/collectioneditor.js index 9fd2d8c24..11dc47eb7 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/collectioneditor/collectioneditor.js +++ b/dashboard-ui/bower_components/emby-webcomponents/collectioneditor/collectioneditor.js @@ -243,7 +243,7 @@ var title = items.length ? globalize.translate('sharedcomponents#AddToCollection') : globalize.translate('sharedcomponents#NewCollection'); html += '
'; - html += ''; + html += ''; html += '
'; html += title; html += '
'; diff --git a/dashboard-ui/bower_components/emby-webcomponents/input/api.js b/dashboard-ui/bower_components/emby-webcomponents/input/api.js index 5a27f078b..56586640a 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/input/api.js +++ b/dashboard-ui/bower_components/emby-webcomponents/input/api.js @@ -22,7 +22,7 @@ define(['connectionManager', 'playbackManager', 'events', 'inputManager', 'focus // Full list // https://github.com/MediaBrowser/MediaBrowser/blob/master/MediaBrowser.Model/Session/GeneralCommand.cs#L23 - console.log('Received command: ' + cmd.Name); + //console.log('Received command: ' + cmd.Name); switch (cmd.Name) { diff --git a/dashboard-ui/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js b/dashboard-ui/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js index a06c05351..85ab938c6 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js +++ b/dashboard-ui/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js @@ -224,7 +224,7 @@ var title = globalize.translate('sharedcomponents#AddToPlaylist'); html += '
'; - html += ''; + html += ''; html += '
'; html += title; html += '
'; diff --git a/dashboard-ui/bower_components/emby-webcomponents/prompt/prompt.js b/dashboard-ui/bower_components/emby-webcomponents/prompt/prompt.js index 333bc489b..968bbeca3 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/prompt/prompt.js +++ b/dashboard-ui/bower_components/emby-webcomponents/prompt/prompt.js @@ -43,7 +43,7 @@ define(['dialogHelper', 'layoutManager', 'globalize', 'material-icons', 'css!./s html += '
'; if (backButton) { - html += getIcon('arrow_back', 'btnPromptExit', false); + html += getIcon('', 'btnPromptExit', false); } if (options.title) { diff --git a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html index 0e31d4c02..b010d4f11 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html +++ b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html @@ -1,5 +1,5 @@ 
- +
${HeaderNewRecording}
diff --git a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html index 78639d6aa..a9e4ac3e9 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html +++ b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html @@ -1,5 +1,5 @@ 
- +
${Edit}
diff --git a/dashboard-ui/bower_components/emby-webcomponents/refreshdialog/refreshdialog.js b/dashboard-ui/bower_components/emby-webcomponents/refreshdialog/refreshdialog.js index 2e7eacaae..9ab658e8b 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/refreshdialog/refreshdialog.js +++ b/dashboard-ui/bower_components/emby-webcomponents/refreshdialog/refreshdialog.js @@ -115,7 +115,7 @@ var title = globalize.translate('sharedcomponents#RefreshMetadata'); html += '
'; - html += ''; + html += ''; html += '
'; html += title; html += '
'; diff --git a/dashboard-ui/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.template.html b/dashboard-ui/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.template.html index 694627304..ab92929af 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.template.html +++ b/dashboard-ui/bower_components/emby-webcomponents/subtitleeditor/subtitleeditor.template.html @@ -1,5 +1,5 @@ 
- +
${Subtitles}
diff --git a/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js b/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js index 8b6d03865..40909adb5 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js +++ b/dashboard-ui/bower_components/emby-webcomponents/voice/voicedialog.js @@ -113,7 +113,7 @@ define(['dialogHelper', './voicereceiver', './voiceprocessor', 'globalize', 'emb var html = ''; html += '
'; - html += ''; + html += ''; html += '
'; html += '
'; html += '
'; diff --git a/dashboard-ui/bower_components/iron-menu-behavior/.bower.json b/dashboard-ui/bower_components/iron-menu-behavior/.bower.json index 900e8eb3b..4692d767d 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.1.7", + "version": "1.1.8", "description": "Provides accessible menu behavior", "authors": "The Polymer Authors", "keywords": [ @@ -34,11 +34,11 @@ "web-component-tester": "^4.0.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "_release": "1.1.7", + "_release": "1.1.8", "_resolution": { "type": "version", - "tag": "v1.1.7", - "commit": "ea59e6ce5644d8f7a20c22f13f614ea60604a812" + "tag": "v1.1.8", + "commit": "3f6676b93a4592975efa235590b9d8236af6ea1d" }, "_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 a6517a39b..273c658fd 100644 --- a/dashboard-ui/bower_components/iron-menu-behavior/.travis.yml +++ b/dashboard-ui/bower_components/iron-menu-behavior/.travis.yml @@ -1,23 +1,23 @@ language: node_js sudo: required before_script: - - npm install -g bower polylint web-component-tester - - bower install - - polylint +- npm install -g bower polylint web-component-tester +- bower install +- polylint env: global: - - secure: QxZD8yzz7s3F6b7h87ztWYiEbD2TrQp1Z1mib5u1wL7EAwsrQVkFhIEo4cJPAsTGS98qgeZAITg0ifwp/jOKVC2QKoPnC1qjm4L0AjlhXBTRbqyS5G8jvfJ8M4DgkQXADh4e+lw9ba3h2AxceJELKTYaQVq/cpTrpPg0/RH7H4o= - - secure: i76J23Bpwj6qJ4ybCCsQpGCTT+5s1PA+x0Avjbl1JTS4OsJLDFfvVl0YIWZ5xMIKJtdPC/mGDoZ2LNrh9hz82DBqDnzBlSnNjFbjnU1Aqy5CUmRWzyAF5NOjJGotISZcDYDGZd6gjsOfN0r+rICyRUiOadeyPf0Nm+6HSVQMjfM= + - secure: CbYi/0VAtpLB+NDHdD/I9q2ldILrmyc3wxKdO5vEtMvRKYgsddQ/hXGovV3c6Hy9sAXD5sKtNi60BBG5E2XuydshjYAZiytfeNjFIvDu5627Xljjt90e/r1hg3tNHRRQihH73nPECfp/X+g+yBNCX3f0+2ExAh0DMs1DXt7Dl7Q= + - secure: kLFlOTh9IjctY7DIJ3KEw5OPrqHNTzoArdabfAtisBMWahuJptKFmYCp/t+zPSL27IVqJakaqPrwGrBUi+4h3wVWredNhfl2lCpMfQfBMcHC5kBVkf2xjJyDa5Y3bP7jPq6YnWYAqEl6pBWYiHU6yWBc6BEdJ6FsTWFbLFTnY7w= node_js: stable addons: - firefox: latest + firefox: '46.0' apt: sources: - - google-chrome + - google-chrome packages: - - google-chrome-stable + - google-chrome-stable sauce_connect: true script: - - xvfb-run wct - - "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi" +- xvfb-run wct +- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s 'default'; fi dist: trusty diff --git a/dashboard-ui/bower_components/iron-menu-behavior/CONTRIBUTING.md b/dashboard-ui/bower_components/iron-menu-behavior/CONTRIBUTING.md index f147978a3..093090d43 100644 --- a/dashboard-ui/bower_components/iron-menu-behavior/CONTRIBUTING.md +++ b/dashboard-ui/bower_components/iron-menu-behavior/CONTRIBUTING.md @@ -1,4 +1,3 @@ - + # Polymer Elements ## Guide for Contributors diff --git a/dashboard-ui/bower_components/iron-menu-behavior/bower.json b/dashboard-ui/bower_components/iron-menu-behavior/bower.json index 921662cc5..0cfc00925 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.1.7", + "version": "1.1.8", "description": "Provides accessible menu behavior", "authors": "The Polymer Authors", "keywords": [ 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 46c06c588..802098b60 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 @@ -139,11 +139,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN /** * Focuses the previous item (relative to the currently focused item) in the * menu, disabled items will be skipped. + * Loop until length + 1 to handle case of single item in menu. */ _focusPrevious: function() { var length = this.items.length; var curFocusIndex = Number(this.indexOf(this.focusedItem)); - for (var i = 1; i < length; i++) { + for (var i = 1; i < length + 1; i++) { var item = this.items[(curFocusIndex - i + length) % length]; if (!item.hasAttribute('disabled')) { this._setFocusedItem(item); @@ -155,11 +156,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN /** * Focuses the next item (relative to the currently focused item) in the * menu, disabled items will be skipped. + * Loop until length + 1 to handle case of single item in menu. */ _focusNext: function() { var length = this.items.length; var curFocusIndex = Number(this.indexOf(this.focusedItem)); - for (var i = 1; i < length; i++) { + for (var i = 1; i < length + 1; i++) { var item = this.items[(curFocusIndex + i) % length]; if (!item.hasAttribute('disabled')) { this._setFocusedItem(item); 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 e0e50ed04..f170d7204 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 @@ -36,6 +36,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN + + + +