Initial Commit

This commit is contained in:
francop committed 2026-06-11 11:50:50 -04:00
commit d4a69c41be
2748 files changed
+80489

No files matched your search

@@ -0,0 +1,3 @@
/*! For license information please see 2072.40f454d1e46c19a9.js.LICENSE.txt */
export const ids=["2072"];export const modules={65703:function(t,e,i){i.d(e,{K:function(){return n}});i(22139);var r=i(9065),a=(i(16060),i(78611)),o=i(91532),c=i(57243),s=i(50778),d=i(35359);class n extends c.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():c.dy``,i=this.hasMeta?this.renderMeta():c.dy``;return c.dy` ${this.renderRipple()} ${e} ${t} ${i}`}renderRipple(){return this.shouldRenderRipple?c.dy` <mwc-ripple .activated="${this.activated}"> </mwc-ripple>`:this.activated?c.dy`<div class="fake-activated-ripple"></div>`:""}renderGraphic(){const t={multi:this.multipleGraphics};return c.dy` <span class="mdc-deprecated-list-item__graphic material-icons ${(0,d.$)(t)}"> <slot name="graphic"></slot> </span>`}renderMeta(){return c.dy` <span class="mdc-deprecated-list-item__meta material-icons"> <slot name="meta"></slot> </span>`}renderText(){const t=this.twoline?this.renderTwoline():this.renderSingleLine();return c.dy` <span class="mdc-deprecated-list-item__text"> ${t} </span>`}renderSingleLine(){return c.dy`<slot></slot>`}renderTwoline(){return c.dy` <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,s.IO)("slot")],n.prototype,"slotElement",void 0),(0,r.gn)([(0,s.GC)("mwc-ripple")],n.prototype,"ripple",void 0),(0,r.gn)([(0,s.Cb)({type:String})],n.prototype,"value",void 0),(0,r.gn)([(0,s.Cb)({type:String,reflect:!0})],n.prototype,"group",void 0),(0,r.gn)([(0,s.Cb)({type:Number,reflect:!0})],n.prototype,"tabindex",void 0),(0,r.gn)([(0,s.Cb)({type:Boolean,reflect:!0}),(0,a.P)((function(t){t?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")}))],n.prototype,"disabled",void 0),(0,r.gn)([(0,s.Cb)({type:Boolean,reflect:!0})],n.prototype,"twoline",void 0),(0,r.gn)([(0,s.Cb)({type:Boolean,reflect:!0})],n.prototype,"activated",void 0),(0,r.gn)([(0,s.Cb)({type:String,reflect:!0})],n.prototype,"graphic",void 0),(0,r.gn)([(0,s.Cb)({type:Boolean})],n.prototype,"multipleGraphics",void 0),(0,r.gn)([(0,s.Cb)({type:Boolean})],n.prototype,"hasMeta",void 0),(0,r.gn)([(0,s.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","")}))],n.prototype,"noninteractive",void 0),(0,r.gn)([(0,s.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(t,"property")}))],n.prototype,"selected",void 0),(0,r.gn)([(0,s.SB)()],n.prototype,"shouldRenderRipple",void 0),(0,r.gn)([(0,s.SB)()],n.prototype,"_managingList",void 0)},46289:function(t,e,i){i.d(e,{W:function(){return r}});const r=i(57243).iv`:host{curs Line truncated
//# sourceMappingURL=2072.40f454d1e46c19a9.js.map