diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json
index 0770229f2f..90aa70df15 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json
+++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json
@@ -14,12 +14,12 @@
},
"devDependencies": {},
"ignore": [],
- "version": "1.4.381",
- "_release": "1.4.381",
+ "version": "1.4.382",
+ "_release": "1.4.382",
"_resolution": {
"type": "version",
- "tag": "1.4.381",
- "commit": "2a3f7a75f989eb2c1086deac144f40f15baffefc"
+ "tag": "1.4.382",
+ "commit": "6d310465e6467b924653f526c91bcfb0b5f4920e"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.1",
diff --git a/dashboard-ui/bower_components/emby-webcomponents/datetime.js b/dashboard-ui/bower_components/emby-webcomponents/datetime.js
index 8ec07af932..6c9321862f 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/datetime.js
+++ b/dashboard-ui/bower_components/emby-webcomponents/datetime.js
@@ -110,30 +110,70 @@
return locale;
}
+ function getOptionList(options) {
+
+ var list = [];
+
+ for (var i in options) {
+ list.push({
+ name: i,
+ value: options[i]
+ });
+ }
+
+ return list;
+ }
+
function toLocaleString(date, options) {
+ options = options || {};
+
var currentLocale = getCurrentLocale();
- return currentLocale && toLocaleTimeStringSupportsLocales ?
- date.toLocaleString(currentLocale, options || {}) :
- date.toLocaleString();
+ if (currentLocale && toLocaleTimeStringSupportsLocales) {
+ return date.toLocaleString(currentLocale, options);
+ }
+
+ return date.toLocaleString();
}
function toLocaleDateString(date, options) {
+ options = options || {};
+
var currentLocale = getCurrentLocale();
- return currentLocale && toLocaleTimeStringSupportsLocales ?
- date.toLocaleDateString(currentLocale, options || {}) :
- date.toLocaleDateString();
+ if (currentLocale && toLocaleTimeStringSupportsLocales) {
+ return date.toLocaleDateString(currentLocale, options);
+ }
+
+ // This is essentially a hard-coded polyfill
+ var optionList = getOptionList(options);
+ if (optionList.length === 1 && optionList[0].name === 'weekday') {
+ var weekday = [];
+ weekday[0] = "Sun";
+ weekday[1] = "Mon";
+ weekday[2] = "Tue";
+ weekday[3] = "Wed";
+ weekday[4] = "Thu";
+ weekday[5] = "Fri";
+ weekday[6] = "Sat";
+ return weekday[date.getDay()];
+ }
+
+ return date.toLocaleDateString();
}
function toLocaleTimeString(date, options) {
+ options = options || {};
+
var currentLocale = getCurrentLocale();
- return currentLocale && toLocaleTimeStringSupportsLocales ?
- date.toLocaleTimeString(currentLocale, options || {}).toLowerCase() :
- date.toLocaleTimeString().toLowerCase();
+ if (currentLocale && toLocaleTimeStringSupportsLocales) {
+ return date.toLocaleTimeString(currentLocale, options);
+ }
+
+ return date.toLocaleTimeString();
}
function getDisplayTime(date) {
diff --git a/dashboard-ui/bower_components/emby-webcomponents/emby-tabs/emby-tabs.css b/dashboard-ui/bower_components/emby-webcomponents/emby-tabs/emby-tabs.css
index db3e6ff57b..e89f0a0f5d 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/emby-tabs/emby-tabs.css
+++ b/dashboard-ui/bower_components/emby-webcomponents/emby-tabs/emby-tabs.css
@@ -8,7 +8,7 @@
width: auto;
font-family: inherit;
font-size: inherit;
- color: #aaa !important;
+ color: #aaa;
display: inline-block;
vertical-align: middle;
flex-shrink: 0;
@@ -17,7 +17,7 @@
transition: none !important;
position: relative;
text-transform: uppercase;
- font-weight: bold !important;
+ font-weight: bold;
height: auto;
min-width: initial;
line-height: initial;
@@ -26,11 +26,11 @@
}
.emby-tab-button:focus {
- font-weight: bold !important;
+ font-weight: bold;
}
.emby-tab-button-active {
- color: #52B54B !important;
+ color: #52B54B;
border-color: #52B54B;
}
diff --git a/dashboard-ui/bower_components/emby-webcomponents/emby-tabs/emby-tabs.js b/dashboard-ui/bower_components/emby-webcomponents/emby-tabs/emby-tabs.js
index 6b6031b606..1962b08598 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/emby-tabs/emby-tabs.js
+++ b/dashboard-ui/bower_components/emby-webcomponents/emby-tabs/emby-tabs.js
@@ -212,6 +212,13 @@
initSelectionBar(this);
};
+ EmbyTabs.refresh = function () {
+
+ if (this.scroller) {
+ this.scroller.reload();
+ }
+ };
+
EmbyTabs.attachedCallback = function () {
initScroller(this);
diff --git a/dashboard-ui/bower_components/emby-webcomponents/guide/guide-settings.js b/dashboard-ui/bower_components/emby-webcomponents/guide/guide-settings.js
index a9453cee36..e95d750c9a 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/guide/guide-settings.js
+++ b/dashboard-ui/bower_components/emby-webcomponents/guide/guide-settings.js
@@ -1,6 +1,42 @@
define(['dialogHelper', 'globalize', 'userSettings', 'layoutManager', 'connectionManager', 'require', 'loading', 'scrollHelper', 'emby-checkbox', 'emby-radio', 'css!./../formdialog', 'material-icons'], function (dialogHelper, globalize, userSettings, layoutManager, connectionManager, require, loading, scrollHelper) {
'use strict';
+ function saveCategories(context, options) {
+
+ var categories = [];
+
+ var chkCategorys = context.querySelectorAll('.chkCategory');
+ for (var i = 0, length = chkCategorys.length; i < length; i++) {
+
+ var type = chkCategorys[i].getAttribute('data-type');
+
+ if (chkCategorys[i].checked) {
+ categories.push(type);
+ }
+ }
+
+ if (categories.length >= 4) {
+ categories.push('series');
+ }
+
+ // differentiate between none and all
+ categories.push('all');
+ options.categories = categories;
+ }
+
+ function loadCategories(context, options) {
+
+ var selectedCategories = options.categories || [];
+
+ var chkCategorys = context.querySelectorAll('.chkCategory');
+ for (var i = 0, length = chkCategorys.length; i < length; i++) {
+
+ var type = chkCategorys[i].getAttribute('data-type');
+
+ chkCategorys[i].checked = !selectedCategories.length || selectedCategories.indexOf(type) !== -1;
+ }
+ }
+
function save(context) {
var i, length;
@@ -65,7 +101,7 @@
}
}
- function showEditor() {
+ function showEditor(options) {
return new Promise(function (resolve, reject) {
@@ -106,6 +142,7 @@
}
save(dlg);
+ saveCategories(dlg, options);
if (settingsChanged) {
resolve();
@@ -123,6 +160,7 @@
}
load(dlg);
+ loadCategories(dlg, options);
dialogHelper.open(dlg);
});
});
diff --git a/dashboard-ui/bower_components/emby-webcomponents/guide/guide-settings.template.html b/dashboard-ui/bower_components/emby-webcomponents/guide/guide-settings.template.html
index 2fd24e7857..d3395992d4 100644
--- a/dashboard-ui/bower_components/emby-webcomponents/guide/guide-settings.template.html
+++ b/dashboard-ui/bower_components/emby-webcomponents/guide/guide-settings.template.html
@@ -40,8 +40,29 @@
+
+