This commit is contained in:
root
2023-08-31 15:30:17 +02:00
commit dea16b40a8
833 changed files with 142024 additions and 0 deletions

View File

@@ -0,0 +1 @@
.emby-checkbox-label{position:relative;vertical-align:middle;display:-webkit-inline-flex;display:inline-flex;box-sizing:border-box;width:100%;margin:0;padding:0;-webkit-align-items:center;align-items:center;outline:0!important}.checkboxFieldDescription{-webkit-padding-start:2.4em;padding-inline-start:2.4em}.checkboxContainer{margin-top:1.8em;margin-bottom:1.5em;display:-webkit-flex;display:flex;-webkit-flex-shrink:0;flex-shrink:0}.checkboxListContainer{margin-bottom:1.41em}.listItem .checkboxContainer{margin-bottom:0}.checkboxContainer-withDescription{-webkit-flex-direction:column;flex-direction:column}.emby-checkbox{position:absolute;width:1px;height:1px;margin:0;padding:0;-webkit-appearance:none;appearance:none;border:none;outline:0!important;width:100%;height:100%;z-index:-1;background:0 0!important}.emby-checkbox:not(:disabled){cursor:pointer}.checkboxLabel{position:relative;margin:0;display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:flex-start;align-items:flex-start;border-radius:.42em;-webkit-padding-end:.5em;padding-inline-end:.5em;z-index:1}.emby-checkbox-notext+.checkboxLabel{-webkit-padding-end:0;padding-inline-end:0}.emby-checkbox:not(:disabled)+.checkboxLabel{cursor:pointer}.checkboxList>.emby-checkbox-label{display:-webkit-flex;display:flex;margin:1em 0}.checkboxListLabel{margin-bottom:1rem}.checkboxLabel::before{content:"";display:inline-block;height:1.56em;width:1.56em;border:.16em solid;border-radius:.3em;position:static;-webkit-margin-end:.5em;margin-inline-end:.5em;margin-top:-.18em;-webkit-flex-shrink:0;flex-shrink:0}.emby-checkbox-notext+.checkboxLabel::before{-webkit-margin-end:0;margin-inline-end:0}.emby-checkbox[disabled]+.checkboxLabel::before{opacity:.5}.checkboxLabel::after{position:absolute;content:"";display:inline-block;height:.36em;width:1em;border-left:.18em solid;border-bottom:.18em solid;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);top:.32em;left:.33em;inset-inline-start:.33em;inset-inline-end:initial;color:#fff}.emby-checkbox-notext+.checkboxLabel::after{position:absolute;content:"";display:inline-block;height:.54em;width:1.18em;border-left:.18em solid;border-bottom:.18em solid;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);top:50%;left:50%;inset-inline-start:50%;inset-inline-end:initial;color:#fff;margin-top:-.4425em;-webkit-margin-start:-.59em;margin-inline-start:-.59em;box-sizing:border-box}.emby-checkbox+.checkboxLabel::after{display:none}.emby-checkbox:checked+.checkboxLabel::after{display:block}.emby-checkbox-focusoutline{display:none;position:absolute;top:-.94em;left:-.78em;inset-inline-start:-0.78em;inset-block-end:initial;width:3.4em;height:3.4em;border-radius:100em}.emby-checkbox-tv:focus+.checkboxLabel+.emby-checkbox-focusoutline{display:block}.emby-checkbox:focus-visible+.checkboxLabel+.emby-checkbox-focusoutline{display:block}

View File

@@ -0,0 +1 @@
define(["exports","./../../layoutmanager.js","./../../input/keyboard.js"],function(_exports,_layoutmanager,_keyboard){function onKeyDown(e){if("Enter"===_keyboard.default.normalizeKeyFromEvent(e))return e.preventDefault(),this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),!1}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["css!modules/emby-elements/emby-checkbox/emby-checkbox.css"]);var EmbyCheckbox=function(_HTMLInputElement){babelHelpers.inherits(EmbyCheckbox,_HTMLInputElement);var _super=_createSuper(EmbyCheckbox);function EmbyCheckbox(){var _this;babelHelpers.classCallCheck(this,EmbyCheckbox),_this=_super.call(this);return babelHelpers.possibleConstructorReturn(_this,_this)}return babelHelpers.createClass(EmbyCheckbox,[{key:"connectedCallback",value:function(){var labelElement;!this.hasAttribute("data-classes")&&(_layoutmanager.default.tv?this.classList.add("emby-checkbox","emby-checkbox-tv"):this.classList.add("emby-checkbox"),(labelElement=this.parentNode).classList.add("emby-checkbox-label"),labelElement=labelElement.querySelector("span"))&&(labelElement.classList.add("checkboxLabel"),labelElement.insertAdjacentHTML("afterend",'<div class="emby-checkbox-focusoutline"></div>')),-1!==this.tabIndex&&this.addEventListener("keydown",onKeyDown)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("keydown",onKeyDown)}}]),EmbyCheckbox}(babelHelpers.wrapNativeSuper(HTMLInputElement));customElements.define("emby-checkbox",EmbyCheckbox,{extends:"input"}),_exports.default=EmbyCheckbox});