Initial Commit
This commit is contained in:
commit
d4a69c41be
2748 files changed
+80489
No files matched your search
@@ -0,0 +1,3 @@
|
||||
/*! For license information please see 1850.818cfda5d59ca4ce.js.LICENSE.txt */
|
||||
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["1850"],{65703:function(t,e,i){i.d(e,{K:function(){return b}});i(71695),i(81804),i(22139),i(47021);var r=i(9065),a=(i(16060),i(78611)),o=i(91532),s=i(57243),c=i(50778),d=i(35359);let n,l,p,h,m,g,_,v,u,f,y=t=>t;class b extends s.oi{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new o.A((()=>(this.shouldRenderRipple=!0,this.ripple))),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:t=>{const e=t.type;this.onDown("mousedown"===e?"mouseup":"touchend",t)}}]}get text(){const t=this.textContent;return t?t.trim():""}render(){const t=this.renderText(),e=this.graphic?this.renderGraphic():(0,s.dy)(n||(n=y``)),i=this.hasMeta?this.renderMeta():(0,s.dy)(l||(l=y``));return(0,s.dy)(p||(p=y` ${0} ${0} ${0} ${0}`),this.renderRipple(),e,t,i)}renderRipple(){return this.shouldRenderRipple?(0,s.dy)(h||(h=y` <mwc-ripple .activated="${0}"> </mwc-ripple>`),this.activated):this.activated?(0,s.dy)(m||(m=y`<div class="fake-activated-ripple"></div>`)):""}renderGraphic(){const t={multi:this.multipleGraphics};return(0,s.dy)(g||(g=y` <span class="mdc-deprecated-list-item__graphic material-icons ${0}"> <slot name="graphic"></slot> </span>`),(0,d.$)(t))}renderMeta(){return(0,s.dy)(_||(_=y` <span class="mdc-deprecated-list-item__meta material-icons"> <slot name="meta"></slot> </span>`))}renderText(){const t=this.twoline?this.renderTwoline():this.renderSingleLine();return(0,s.dy)(v||(v=y` <span class="mdc-deprecated-list-item__text"> ${0} </span>`),t)}renderSingleLine(){return(0,s.dy)(u||(u=y`<slot></slot>`))}renderTwoline(){return(0,s.dy)(f||(f=y` <span class="mdc-deprecated-list-item__primary-text"> <slot></slot> </span> <span class="mdc-deprecated-list-item__secondary-text"> <slot name="secondary"></slot> </span> `))}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(t,e){const i=()=>{window.removeEventListener(t,i),this.rippleHandlers.endPress()};window.addEventListener(t,i),this.rippleHandlers.startPress(e)}fireRequestSelected(t,e){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:e,selected:t}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const t of this.listeners)for(const e of t.eventNames)t.target.addEventListener(e,t.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const t of this.listeners)for(const e of t.eventNames)t.target.removeEventListener(e,t.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const t=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(t)}}(0,r.gn)([(0,c.IO)("slot")],b.prototype,"slotElement",void 0),(0,r.gn)([(0,c.GC)("mwc-ripple")],b.prototype,"ripple",void 0),(0,r.gn)([(0,c.Cb)({type:String})],b.prototype,"value",void 0),(0,r.gn)([(0,c.Cb)({type:String,reflect:!0})],b.prototype,"group",void 0),(0,r.gn)([(0,c.Cb)({type:Number,reflect:!0})],b.prototype,"tabindex",void 0),(0,r.gn)([(0,c.Cb)({type:Boolean,reflect:!0}),(0,a.P)((function(t){t?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],b.prototype,"disabled",void 0),(0,r.gn)([(0,c.Cb)({type:Boolean,reflect:!0})],b.prototype,"twoline",void 0),(0,r.gn)([(0,c.Cb)({type:Boolean,reflect:!0})],b.prototype,"activated",void 0),(0,r.gn)([(0,c.Cb)({type:String,reflect:!0})],b.prototype,"graphic",void 0),(0,r.gn)([(0,c.Cb)({type:Boolean})],b.prototype,"multipleGraphics",void 0),(0,r.gn)([(0,c.Cb)({type:Boolean})],b.prototype,"hasMeta",void 0),(0,r.gn)([(0,c.Cb)({type:Boolean,reflect:!0}),(0,a.P)((function(t){t?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")}))],b.prototype,"noninteractive",void 0),(0,r.gn)([(0,c.Cb)({type:Boolean,reflect:!0}),(0,a.P)((function(t){const e=this.getAttribute("role"),i="gridcell"===e||"option"===e||"row"===e||"tab"===e;i&&t?this.setAttribute("aria-selected","true"):i&&this.setAttribute("aria-selected","false"),this._firstChanged?this._firstChanged=!1:this._skipPropRequest||this.fireRequestSelected(Line truncated
|
||||
//# sourceMappingURL=1850.818cfda5d59ca4ce.js.map
|
||||
Reference in new issue
Block a user