UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

17 lines 21.4 kB
/*! For license information please see 97278.cba03295fa7af48a.js.LICENSE.txt */ export const __rspack_esm_id=97278;export const __rspack_esm_ids=[97278];export const __webpack_modules__={2846(e,t,i){i.d(t,{G:()=>d,J:()=>n});var s=i(62826),a=i(58168),l=i(82553),r=i(5124),o=i(22441);i(54276);const n=[l.R,r.AH`:host{--ha-icon-display:block;--md-sys-color-primary:var(--primary-text-color);--md-sys-color-secondary:var(--secondary-text-color);--md-sys-color-surface:var(--card-background-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--secondary-text-color)}md-item{overflow:var(--md-item-overflow,hidden);align-items:var(--md-item-align-items,center);gap:var(--ha-md-list-item-gap,16px)}`];class d extends a.n{renderRipple(){return"text"===this.type?r.s6:r.qy`<ha-ripple part="ripple" for="item" ?disabled="${this.disabled&&"link"!==this.type}"></ha-ripple>`}}d.styles=n,d=(0,s.Cg)([(0,o.EM)("ha-md-list-item")],d)},17308(e,t,i){var s=i(62826),a=i(49838),l=i(11245),r=i(5124),o=i(22441);class n extends a.B{}n.styles=[l.R,r.AH`:host{--md-sys-color-surface:var(--card-background-color)}`],n=(0,s.Cg)([(0,o.EM)("ha-md-list")],n)},40910(e,t,i){i.d(t,{Af:()=>y,FU:()=>r,Fk:()=>h,QR:()=>v,Yr:()=>n,b7:()=>l,mj:()=>p,tl:()=>g,uo:()=>o,xi:()=>m,yR:()=>u,zL:()=>s});i(74423);const s=["pin_code","password"],a=["general","disposable"],l=e=>e.supported_credential_types?s.filter(t=>t in e.supported_credential_types):[],r=e=>{const t=e.supported_user_types??[];return a.filter(e=>t.includes(e))},o=e=>l(e).length>0&&r(e).length>0,n=(e,t,i)=>{if(!e)return"required";const s=i?.min_length??4,a=i?.max_length??10;return e.length<s||e.length>a?"length":"pin_code"!==t||/^\d+$/.test(e)?"":"pin_digits_only"},d=(e,t,i)=>{const s=t?.[i];if(void 0===s)throw new Error(e.localize("ui.panel.config.zwave_js.credentials.errors.empty_response"));return s},c=async(e,t,i,s={})=>{const a=await e.callService("zwave_js",t,s,{entity_id:i},!1,!0);return d(e,a.response,i)},h=(e,t)=>c(e,"get_credential_capabilities",t),p=(e,t)=>c(e,"get_users",t),m=async(e,t,i)=>{const s=await e.callService("zwave_js","set_user",i,{entity_id:t},!1,!0);return d(e,s.response,t)},u=(e,t,i)=>e.callService("zwave_js","delete_user",{user_id:i},{entity_id:t},!1),y=(e,t)=>e.callService("zwave_js","delete_all_users",{},{entity_id:t},!1),g=async(e,t,i)=>{const s=await e.callService("zwave_js","set_credential",i,{entity_id:t},!1,!0);return d(e,s.response,t)},v=(e,t,i)=>e.callService("zwave_js","delete_credential",i,{entity_id:t},!1)},69645(e,t,i){i.a(e,async function(e,s){try{i.r(t);i(18111),i(22489),i(20116),i(61701);var a=i(62826),l=i(5124),r=i(22441),o=i(57237),n=i(1087),d=i(38962),c=i(18350),h=(i(93444),i(29823)),p=(i(70947),i(26300)),m=(i(17308),i(2846),i(65829)),u=(i(67094),i(72554)),y=i(40910),g=i(65063),v=i(14503),f=i(1998),_=e([d,c,h,p,m,u]);[d,c,h,p,m,u]=_.then?(await _)():_;const b="M11 10V12H9V14H7V12H5.8C5.4 13.2 4.3 14 3 14C1.3 14 0 12.7 0 11S1.3 8 3 8C4.3 8 5.4 8.8 5.8 10H11M3 10C2.4 10 2 10.4 2 11S2.4 12 3 12 4 11.6 4 11 3.6 10 3 10M16 14C18.7 14 24 15.3 24 18V20H8V18C8 15.3 13.3 14 16 14M16 12C13.8 12 12 10.2 12 8S13.8 4 16 4 20 5.8 20 8 18.2 12 16 12Z",x="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",w="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",z="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";class $ extends l.WF{async showDialog(e){this._entityId=e.entity_id,this._loading=!0,this._open=!0,await this._fetchData()}async _fetchData(){if(this._entityId)try{if(this._capabilities=await(0,y.Fk)(this.hass,this._entityId),this._capabilities.supports_user_management){const e=await(0,y.mj)(this.hass,this._entityId);this._users=e.users}}catch(e){this.closeDialog(),(0,g.showAlertDialog)(this,{title:this.hass.localize("ui.panel.config.zwave_js.credentials.errors.load_failed"),text:e.message})}finally{this._loading=!1}}render(){if(!this._entityId)return l.s6;const e=this._users.filter(e=>e.active),t=!this._loading&&void 0!==this._capabilities&&this._capabilities.supports_user_management&&(0,y.uo)(this._capabilities),i=!this._loading&&this._capabilities?.supports_user_management&&e.length>0;return l.qy` <ha-dialog .hass="${this.hass}" .open="${this._open}" header-title="${this.hass.localize("ui.panel.config.zwave_js.credentials.dialog_title")}" @closed="${this._dialogClosed}"> ${i?l.qy`<ha-dropdown slot="headerActionItems" @closed="${o.d}" @wa-select="${this._handleMenuAction}" placement="bottom-end"> <ha-icon-button slot="trigger" .label="${this.hass.localize("ui.common.menu")}" .path="${w}" ?disabled="${this._busy}"></ha-icon-button> <ha-dropdown-item value="delete_all" variant="danger"> ${this.hass.localize("ui.panel.config.zwave_js.credentials.users.delete_all")} </ha-dropdown-item> </ha-dropdown>`:l.s6} ${this._loading?l.qy`<div class="center"> <ha-spinner></ha-spinner> </div>`:this._capabilities&&!this._capabilities.supports_user_management?l.qy`<div class="content"> <ha-alert alert-type="warning"> ${this.hass.localize("ui.panel.config.zwave_js.credentials.errors.no_user_management")} </ha-alert> </div>`:l.qy`<div class="content"> ${this._renderUsers(e)} </div>`} ${t?l.qy`<ha-dialog-footer slot="footer"> <ha-button slot="primaryAction" @click="${this._addUser}" ?disabled="${this._busy}"> <ha-svg-icon slot="start" .path="${z}"></ha-svg-icon> ${this.hass.localize("ui.panel.config.zwave_js.credentials.users.add")} </ha-button> </ha-dialog-footer>`:l.s6} </ha-dialog> `}_handleMenuAction(e){"delete_all"===e.detail.item.value&&this._deleteAllUsers()}_renderUsers(e){const t=!this._capabilities?.supported_credential_types||0===Object.keys(this._capabilities.supported_credential_types).length,i=!this._capabilities||0===(0,y.FU)(this._capabilities).length;return l.qy` <div class="users-content"> ${t?l.qy`<ha-alert alert-type="warning"> ${this.hass.localize("ui.panel.config.zwave_js.credentials.errors.no_compatible_credential_types")} </ha-alert>`:i?l.qy`<ha-alert alert-type="warning"> ${this.hass.localize("ui.panel.config.zwave_js.credentials.errors.no_compatible_user_types")} </ha-alert>`:l.s6} ${0===e.length?l.qy`<p class="empty"> ${this.hass.localize("ui.panel.config.zwave_js.credentials.users.no_users")} </p>`:l.qy` <ha-md-list> ${e.map(e=>l.qy` <ha-md-list-item type="button" data-user-id="${e.user_id}" @click="${this._handleUserClick}"> <div slot="start" class="icon-background"> <ha-svg-icon .path="${b}"></ha-svg-icon> </div> <div slot="headline"> ${e.user_name||this.hass.localize("ui.panel.config.zwave_js.credentials.users.unnamed_user",{index:e.user_id})} </div> <div slot="supporting-text"> <span> ${this.hass.localize(`ui.panel.config.zwave_js.credentials.users.user_types.${e.user_type}.label`)||e.user_type} </span> <span class="credential-count"> ${this.hass.localize("ui.panel.config.zwave_js.credentials.users.credential_count",{count:e.credentials.length})} </span> </div> <ha-icon-button slot="end" .path="${x}" .label="${this.hass.localize("ui.panel.config.zwave_js.credentials.users.delete")}" data-user-id="${e.user_id}" ?disabled="${this._busy}" @click="${this._handleDeleteUserClick}"></ha-icon-button> </ha-md-list-item> `)} </ha-md-list> `} </div> `}_userFromEvent(e){const t=Number(e.currentTarget.dataset.userId??"");return this._users.find(e=>e.user_id===t)}_handleUserClick(e){if(this._busy)return;const t=this._userFromEvent(e);t&&this._editUser(t)}_handleDeleteUserClick(e){e.preventDefault(),e.stopPropagation();const t=this._userFromEvent(e);t&&this._deleteUser(t)}_addUser(){(0,f.D)(this,{entity_id:this._entityId,capabilities:this._capabilities,onSaved:()=>this._fetchData()})}_editUser(e){(0,f.D)(this,{entity_id:this._entityId,capabilities:this._capabilities,user:e,onSaved:()=>this._fetchData()})}async _deleteUser(e){if(await(0,g.dk)(this,{title:this.hass.localize("ui.panel.config.zwave_js.credentials.users.delete"),text:this.hass.localize("ui.panel.config.zwave_js.credentials.confirm_delete_user",{name:e.user_name||this.hass.localize("ui.panel.config.zwave_js.credentials.users.unnamed_user",{index:e.user_id})}),confirmText:this.hass.localize("ui.common.delete"),destructive:!0})){this._busy=!0;try{await(0,y.yR)(this.hass,this._entityId,e.user_id)}catch(e){(0,g.showAlertDialog)(this,{title:this.hass.localize("ui.panel.config.zwave_js.credentials.errors.save_failed"),text:e.message})}try{await this._fetchData()}finally{this._busy=!1}}}async _deleteAllUsers(){if(await(0,g.dk)(this,{title:this.hass.localize("ui.panel.config.zwave_js.credentials.users.delete_all"),text:this.hass.localize("ui.panel.config.zwave_js.credentials.confirm_delete_all_users"),confirmText:this.hass.localize("ui.common.delete"),destructive:!0})){this._busy=!0;try{await(0,y.Af)(this.hass,this._entityId)}catch(e){(0,g.showAlertDialog)(this,{title:this.hass.localize("ui.panel.config.zwave_js.credentials.errors.save_failed"),text:e.message})}try{await this._fetchData()}finally{this._busy=!1}}}closeDialog(){this._open=!1}_dialogClosed(){this._entityId=void 0,this._capabilities=void 0,this._users=[],this._loading=!0,this._busy=!1,(0,n.r)(this,"dialog-closed",{dialog:this.localName})}static get styles(){return[v.nA,l.AH`ha-dialog{--dialog-content-padding:0}.center{display:flex;align-items:center;justify-content:center;padding:var(--ha-space-6)}.content>ha-alert{margin:var(--ha-space-4)}.empty{text-align:center;color:var(--secondary-text-color);padding:var(--ha-space-6)}.icon-background{border-radius:var(--ha-border-radius-circle);background-color:var(--primary-color);color:#fff;display:flex;width:40px;height:40px;align-items:center;justify-content:center}.credential-count{margin-inline-start:var(--ha-space-2)}`]}constructor(...e){super(...e),this._users=[],this._loading=!0,this._busy=!1,this._open=!1}}(0,a.Cg)([(0,r.MZ)({attribute:!1})],$.prototype,"hass",void 0),(0,a.Cg)([(0,r.wk)()],$.prototype,"_entityId",void 0),(0,a.Cg)([(0,r.wk)()],$.prototype,"_capabilities",void 0),(0,a.Cg)([(0,r.wk)()],$.prototype,"_users",void 0),(0,a.Cg)([(0,r.wk)()],$.prototype,"_loading",void 0),(0,a.Cg)([(0,r.wk)()],$.prototype,"_busy",void 0),(0,a.Cg)([(0,r.wk)()],$.prototype,"_open",void 0),$=(0,a.Cg)([(0,r.EM)("dialog-zwave_js-credential-manage")],$),s()}catch(e){s(e)}})},1998(e,t,i){i.d(t,{D:()=>l});var s=i(1087);const a=()=>Promise.all([i.e(81034),i.e(49575)]).then(i.bind(i,54618)),l=(e,t)=>{(0,s.r)(e,"show-dialog",{dialogTag:"dialog-zwave_js-credential-user-edit",dialogImport:a,dialogParams:t})}},11245(e,t,i){i.d(t,{R:()=>s});const s=i(5124).AH`:host{background:var(--md-list-container-color,var(--md-sys-color-surface,#fef7ff));color:unset;display:flex;flex-direction:column;outline:0;padding:8px 0;position:relative}`},49838(e,t,i){i.d(t,{B:()=>n});i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var s=i(62826),a=i(5124),l=i(22441),r=i(25423);const o=new Set(Object.values(r.U));class n extends a.WF{get items(){return this.listController.items}render(){return a.qy` <slot @deactivate-items="${this.listController.onDeactivateItems}" @request-activation="${this.listController.onRequestActivation}" @slotchange="${this.listController.onSlotchange}"> </slot> `}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}constructor(){super(),this.listController=new r.Z({isItem:e=>e.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>"rtl"===getComputedStyle(this).direction,deactivateItem:e=>{e.tabIndex=-1},activateItem:e=>{e.tabIndex=0},isNavigableKey:e=>o.has(e),isActivatable:e=>!e.disabled&&"text"!==e.type}),this.internals=this.attachInternals(),a.S$||(this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown))}}(0,s.Cg)([(0,l.KN)({flatten:!0})],n.prototype,"slotItems",void 0)},82553(e,t,i){i.d(t,{R:()=>s});const s=i(5124).AH`:host{display:flex;-webkit-tap-highlight-color:transparent;--md-ripple-hover-color:var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity:var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color:var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity:var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape:8px}a,button,li{background:0 0;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:0;-webkit-tap-highlight-color:transparent;width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, .3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color,var(--md-sys-color-on-surface,#1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight,var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400)));min-height:var(--md-list-item-one-line-container-height,56px);padding-top:var(--md-list-item-top-space,12px);padding-bottom:var(--md-list-item-bottom-space,12px);padding-inline-start:var(--md-list-item-leading-space,16px);padding-inline-end:var(--md-list-item-trailing-space,16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height,72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, .875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight,var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color,var(--md-sys-color-on-surface-variant,#49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, .6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight,var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color,var(--md-sys-color-on-surface-variant,#49454f))}@media(forced-colors:active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}`},58168(e,t,i){i.d(t,{n:()=>y});var s=i(62826),a=(i(75275),i(22441)),l=i(5124);class r extends l.WF{render(){return l.qy` <slot name="container"></slot> <slot class="non-text" name="start"></slot> <div class="text"> <slot name="overline" @slotchange="${this.handleTextSlotChange}"></slot> <slot class="default-slot" @slotchange="${this.handleTextSlotChange}"></slot> <slot name="headline" @slotchange="${this.handleTextSlotChange}"></slot> <slot name="supporting-text" @slotchange="${this.handleTextSlotChange}"></slot> </div> <slot class="non-text" name="trailing-supporting-text"></slot> <slot class="non-text" name="end"></slot> `}handleTextSlotChange(){let e=!1,t=0;for(const i of this.textSlots)if(o(i)&&(t+=1),t>1){e=!0;break}this.multiline=e}constructor(){super(...arguments),this.multiline=!1}}function o(e){for(const t of e.assignedNodes({flatten:!0})){const e=t.nodeType===Node.ELEMENT_NODE,i=t.nodeType===Node.TEXT_NODE&&t.textContent?.match(/\S/);if(e||i)return!0}return!1}(0,s.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],r.prototype,"multiline",void 0),(0,s.Cg)([(0,a.YG)(".text slot")],r.prototype,"textSlots",void 0);const n=l.AH`:host{color:var(--md-sys-color-on-surface,#1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, .875rem);font-weight:var(--md-sys-typescale-body-medium-weight,var(--md-ref-typeface-weight-regular,400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant,#49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, .6875rem);font-weight:var(--md-sys-typescale-label-small-weight,var(--md-ref-typeface-weight-medium,500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}`;let d=class extends r{};d.styles=[n],d=(0,s.Cg)([(0,a.EM)("md-item")],d);i(71970);var c=i(6412),h=i(7872),p=i(1024),m=i(27525);const u=(0,p.n)(l.WF);class y extends u{get isDisabled(){return this.disabled&&"link"!==this.type}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem(l.qy` <md-item> <div slot="container"> ${this.renderRipple()} ${this.renderFocusRing()} </div> <slot name="start" slot="start"></slot> <slot name="end" slot="end"></slot> ${this.renderBody()} </md-item> `)}renderListItem(e){const t="link"===this.type;let i;switch(this.type){case"link":i=h.eu`a`;break;case"button":i=h.eu`button`;break;default:i=h.eu`li`}const s="text"!==this.type,a=t&&this.target?this.target:l.s6;return h.qy` <${i} id="item" tabindex="${this.isDisabled||!s?-1:0}" ?disabled=${this.isDisabled} role="listitem" aria-selected=${this.ariaSelected||l.s6} aria-checked=${this.ariaChecked||l.s6} aria-expanded=${this.ariaExpanded||l.s6} aria-haspopup=${this.ariaHasPopup||l.s6} class="list-item ${(0,c.H)(this.getRenderClasses())}" href=${this.href||l.s6} target=${a} @focus=${this.onFocus} >${e}</${i}> `}renderRipple(){return"text"===this.type?l.s6:l.qy` <md-ripple part="ripple" for="item" ?disabled="${this.isDisabled}"></md-ripple>`}renderFocusRing(){return"text"===this.type?l.s6:l.qy` <md-focus-ring @visibility-changed="${this.onFocusRingVisibilityChanged}" part="focus-ring" for="item" inward></md-focus-ring>`}onFocusRingVisibilityChanged(e){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return l.qy` <slot></slot> <slot name="overline" slot="overline"></slot> <slot name="headline" slot="headline"></slot> <slot name="supporting-text" slot="supporting-text"></slot> <slot name="trailing-supporting-text" slot="trailing-supporting-text"></slot> `}onFocus(){-1===this.tabIndex&&this.dispatchEvent((0,m.cG)())}focus(){this.listItemRoot?.focus()}click(){this.listItemRoot?this.listItemRoot.click():super.click()}constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}}y.shadowRootOptions={...l.WF.shadowRootOptions,delegatesFocus:!0},(0,s.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],y.prototype,"disabled",void 0),(0,s.Cg)([(0,a.MZ)({reflect:!0})],y.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:Boolean,attribute:"md-list-item",reflect:!0})],y.prototype,"isListItem",void 0),(0,s.Cg)([(0,a.MZ)()],y.prototype,"href",void 0),(0,s.Cg)([(0,a.MZ)()],y.prototype,"target",void 0),(0,s.Cg)([(0,a.P)(".list-item")],y.prototype,"listItemRoot",void 0)}};