diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index 72287fb0f5..c175abbdf3 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.294", - "_release": "1.4.294", + "version": "1.4.295", + "_release": "1.4.295", "_resolution": { "type": "version", - "tag": "1.4.294", - "commit": "261889a750a63f93e456622c6882d18bb9248626" + "tag": "1.4.295", + "commit": "1cfe41bab16e66d13ef8a613b251ee3edccde3a8" }, "_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_target": "^1.2.1", diff --git a/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/card.css b/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/card.css index ae7d10668d..76333cd09a 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/card.css +++ b/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/card.css @@ -348,15 +348,21 @@ button { .cardOverlayButton { color: #fff !important; - background-color: rgba(0,0,0,.7) !important; + background-color: rgba(0,0,0,.8) !important; border-radius: 500px; position: absolute; bottom: 0; right: 0; margin: 0 .35em .5em 0; z-index: 1; + /*opacity: 0; + transition: opacity 0.5s ease-in; /* vendorless fallback */ */; } + /*.card:hover .cardOverlayButton { + opacity: 1; +}*/ + .cardOverlayButton:hover { background-color: rgba(0,0,0,.9) !important; transition: background-color .5s ease-out; @@ -625,10 +631,6 @@ button { width: 16.66666666666666667%; } -.layout-tv .personCard-scalable { - width: 14.285714285714285714285714285714%; -} - @media all and (min-width: 1600px) { diff --git a/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js b/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js index 46bd99a217..3465befe0e 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js +++ b/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js @@ -286,6 +286,10 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo className += ' ' + options.shape + 'Card'; } + if (options.cardCssClass) { + className += ' ' + options.cardCssClass; + } + var html = ''; var itemsInRow = 0; @@ -543,7 +547,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo tag: item.SeriesThumbImageTag }); - } else if (options.preferThumb && item.ParentThumbItemId && options.inheritThumb !== false) { + } else if (options.preferThumb && item.ParentThumbItemId && options.inheritThumb !== false && item.MediaType !== 'Photo') { imgUrl = apiClient.getScaledImageUrl(item.ParentThumbItemId, { type: "Thumb", @@ -707,7 +711,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo return 'defaultCardColor' + getDefaultColorIndex(str); } - function getCardTextLines(lines, cssClass, forceLines, isOuterFooter, cardLayout) { + function getCardTextLines(lines, cssClass, forceLines, isOuterFooter, cardLayout, addRightMargin) { var html = ''; @@ -723,7 +727,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo currentCssClass += ' cardText-secondary'; } - if (isOuterFooter && cardLayout) { + if (addRightMargin) { currentCssClass += ' cardText-rightmargin'; } @@ -754,16 +758,13 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo if (isOuterFooter && options.cardLayout && !layoutManager.tv) { - if (options.cardFooterAside === 'logo') { - - } - else if (options.cardFooterAside !== 'none') { + if (options.cardFooterAside !== 'none') { var moreIcon = appHost.moreIcon === 'dots-horiz' ? '' : ''; html += ''; } } - var cssClass = options.centerText && !options.cardLayout ? "cardText cardTextCentered" : "cardText"; + var cssClass = options.centerText ? "cardText cardTextCentered" : "cardText"; var lines = []; var parentTitleUnderneath = item.Type === 'MusicAlbum' || item.Type === 'Audio' || item.Type === 'MusicVideo'; @@ -980,13 +981,24 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo lines.push(item.ChannelName || ''); } } + + if (options.showPersonRoleOrType) { + if (item.Role) { + lines.push('as ' + item.Role); + } + else if (item.Type) { + lines.push(globalize.translate('core#' + item.Type)); + } else { + lines.push(''); + } + } } if ((showTitle || !imgUrl) && forceName && overlayText && lines.length === 1) { lines = []; } - html += getCardTextLines(lines, cssClass, !options.overlayText, isOuterFooter, options.cardLayout); + html += getCardTextLines(lines, cssClass, !options.overlayText, isOuterFooter, options.cardLayout, isOuterFooter && options.cardLayout && !options.centerText); if (progressHtml) { html += progressHtml; @@ -1166,7 +1178,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo if (coveredImage) { cardImageContainerClass += ' coveredImage'; - if (item.MediaType === 'Photo' || item.Type === 'PhotoAlbum' || item.Type === 'Folder' || item.ProgramInfo || item.Type === 'Program') { + if (item.MediaType === 'Photo' || item.Type === 'PhotoAlbum' || item.Type === 'Folder' || item.ProgramInfo || item.Type === 'Program' || item.Type === 'Recording') { cardImageContainerClass += ' coveredImage-noScale'; } } @@ -1364,7 +1376,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo var channelIdData = item.ChannelId ? (' data-channelid="' + item.ChannelId + '"') : ''; var contextData = options.context ? (' data-context="' + options.context + '"') : ''; - return '<' + tagName + ' data-index="' + index + '"' + timerAttributes + actionAttribute + ' data-isfolder="' + (item.IsFolder || false) + '" data-serverid="' + (item.ServerId) + '" data-id="' + (item.Id || item.ItemId) + '" data-type="' + item.Type + '"' + mediaTypeData + collectionTypeData + channelIdData + positionTicksData + collectionIdData + playlistIdData + contextData + ' data-prefix="' + prefix + '" class="' + className + '">' + cardImageContainerOpen + innerCardFooter + cardImageContainerClose + cardContentClose + overlayButtons + cardScalableClose + outerCardFooter + cardBoxClose + '' + tagName + '>'; + return '<' + tagName + ' data-index="' + index + '"' + timerAttributes + actionAttribute + ' data-isfolder="' + (item.IsFolder || false) + '" data-serverid="' + (item.ServerId || options.serverId) + '" data-id="' + (item.Id || item.ItemId) + '" data-type="' + item.Type + '"' + mediaTypeData + collectionTypeData + channelIdData + positionTicksData + collectionIdData + playlistIdData + contextData + ' data-prefix="' + prefix + '" class="' + className + '">' + cardImageContainerOpen + innerCardFooter + cardImageContainerClose + cardContentClose + overlayButtons + cardScalableClose + outerCardFooter + cardBoxClose + '' + tagName + '>'; } function buildCards(items, options) { diff --git a/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/peoplecardbuilder.js b/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/peoplecardbuilder.js index 24d75d8375..b699d20011 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/peoplecardbuilder.js +++ b/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/peoplecardbuilder.js @@ -1,119 +1,17 @@ -define(['imageLoader', 'itemShortcuts', 'connectionManager', 'layoutManager'], function (imageLoader, itemShortcuts, connectionManager, layoutManager) { +define(['cardBuilder'], function (cardBuilder) { 'use strict'; - function buildPeopleCardsHtml(people, options) { - - var className = 'card ' + (options.shape || 'portrait') + 'Card personCard'; - - if (options.block || options.rows) { - className += ' block'; - } - - var html = ''; - var itemsInRow = 0; - - var serverId = options.serverId; - var apiClient = connectionManager.getApiClient(serverId); - - for (var i = 0, length = people.length; i < length; i++) { - - if (options.rows && itemsInRow === 0) { - html += '