update components

This commit is contained in:
Luke Pulverenti 2016-05-28 15:32:57 -04:00
parent 5792dbcb1e
commit 778d3e8683
7 changed files with 26 additions and 22 deletions

View File

@ -16,12 +16,12 @@
}, },
"devDependencies": {}, "devDependencies": {},
"ignore": [], "ignore": [],
"version": "1.3.93", "version": "1.3.94",
"_release": "1.3.93", "_release": "1.3.94",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "1.3.93", "tag": "1.3.94",
"commit": "e471f95b705f30e5e07437f1adb28ca9f957b6e3" "commit": "4c485c81f1611cd184ca31455de0535105a6e123"
}, },
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0", "_target": "^1.2.0",

View File

@ -28,13 +28,6 @@
EmbyInputPrototype.createdCallback = function () { EmbyInputPrototype.createdCallback = function () {
var parent = this.parentNode;
if (!parent.classList.contains('inputContainer')) {
var div = this.ownerDocument.createElement('div');
div.classList.add('inputContainer');
parent.replaceChild(div, this);
div.appendChild(this);
}
if (!this.id) { if (!this.id) {
this.id = 'input' + new Date().getTime(); this.id = 'input' + new Date().getTime();
} }
@ -51,16 +44,17 @@
if (this.getAttribute('data-embyinput') != 'true') { if (this.getAttribute('data-embyinput') != 'true') {
this.setAttribute('data-embyinput', 'true'); this.setAttribute('data-embyinput', 'true');
var parentNode = this.parentNode;
var label = this.ownerDocument.createElement('label'); var label = this.ownerDocument.createElement('label');
label.innerHTML = this.getAttribute('label') || ''; label.innerHTML = this.getAttribute('label') || '';
label.classList.add('inputLabel'); label.classList.add('inputLabel');
label.classList.add('inputLabelUnfocused'); label.classList.add('inputLabelUnfocused');
label.htmlFor = this.id; label.htmlFor = this.id;
this.parentNode.insertBefore(label, this); parentNode.insertBefore(label, this);
var div = document.createElement('div'); var div = document.createElement('div');
div.classList.add('emby-input-selectionbar'); div.classList.add('emby-input-selectionbar');
this.parentNode.insertBefore(div, this.nextSibling); parentNode.insertBefore(div, this.nextSibling);
} }
}; };

View File

@ -147,7 +147,9 @@
html += '<div class="newPlaylistInfo">'; html += '<div class="newPlaylistInfo">';
html += '<div class="inputContainer">';
html += '<input is="emby-input" type="text" id="txtNewPlaylistName" required="required" label="' + globalize.translate('sharedcomponents#LabelName') + '" />'; html += '<input is="emby-input" type="text" id="txtNewPlaylistName" required="required" label="' + globalize.translate('sharedcomponents#LabelName') + '" />';
html += '</div>';
html += '<br />'; html += '<br />';

View File

@ -56,9 +56,13 @@
<br /> <br />
</div> </div>
<br/> <br/>
<div class="inputContainer">
<input is="emby-input" type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}" /> <input is="emby-input" type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}" />
</div>
<br /> <br />
<div class="inputContainer">
<input is="emby-input" type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}" /> <input is="emby-input" type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}" />
</div>
</emby-collapsible> </emby-collapsible>
<br /> <br />
</div> </div>

View File

@ -25,9 +25,13 @@
<form> <form>
<br /> <br />
<div class="inputContainer">
<input is="emby-input" type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}" /> <input is="emby-input" type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}" />
</div>
<br /> <br />
<div class="inputContainer">
<input is="emby-input" type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}" /> <input is="emby-input" type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}" />
</div>
<br /> <br />
<paper-button raised class="btnSubmit block" autofocus><iron-icon icon="mediainfo:fiber-manual-record"></iron-icon><span>${Save}</span></paper-button> <paper-button raised class="btnSubmit block" autofocus><iron-icon icon="mediainfo:fiber-manual-record"></iron-icon><span>${Save}</span></paper-button>
</form> </form>

View File

@ -26,14 +26,14 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}, },
"main": "iron-meta.html", "main": "iron-meta.html",
"homepage": "https://github.com/PolymerElements/iron-meta", "homepage": "https://github.com/polymerelements/iron-meta",
"_release": "1.1.1", "_release": "1.1.1",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.1.1", "tag": "v1.1.1",
"commit": "e171ee234b482219c9514e6f9551df48ef48bd9f" "commit": "e171ee234b482219c9514e6f9551df48ef48bd9f"
}, },
"_source": "git://github.com/PolymerElements/iron-meta.git", "_source": "git://github.com/polymerelements/iron-meta.git",
"_target": "^1.0.0", "_target": "^1.0.0",
"_originalSource": "PolymerElements/iron-meta" "_originalSource": "polymerelements/iron-meta"
} }

View File

@ -34,6 +34,6 @@
"commit": "11c987b2eb3c73b388a79fc8aaea8ca01624f514" "commit": "11c987b2eb3c73b388a79fc8aaea8ca01624f514"
}, },
"_source": "git://github.com/Polymer/polymer.git", "_source": "git://github.com/Polymer/polymer.git",
"_target": "^1.1.0", "_target": "^1.0.0",
"_originalSource": "Polymer/polymer" "_originalSource": "Polymer/polymer"
} }