import{proxyCustomElement as e,HTMLElement as t,createEvent as a,h as n,transformTag as i}from"@stencil/core/internal/client";import{d as o}from"./kanban-group.js";import{d as r}from"./kanban-item.js";import{d as s}from"./navigation-button.js";import{d as m}from"./summary-popover.js";const b=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.loadMore=a(this,"loadMore",7),this.interact=a(this,"interact",7),this.groups=[],this.handleLoadMore=e=>t=>{t.stopPropagation(),e.identifier===t.detail&&this.loadMore.emit(e)}}render(){return this.renderGroups()}renderGroups(){return this.groups.map((e=>n("limebb-kanban-group",{"aria-busy":e.loading?"true":"false","aria-live":"polite",platform:this.platform,context:this.context,identifier:e.identifier,heading:e.heading,help:e.help,totalCount:e.totalCount,summary:e.summary,loading:e.loading,items:e.items,class:e.type,onLoadMore:this.handleLoadMore(e)})))}static get style(){return":host(limebb-kanban){--limebb-kanban-col-gap:1rem;box-sizing:border-box;display:flex;align-items:stretch;column-gap:var(--limebb-kanban-col-gap);width:100%;height:100%;padding:0.5rem;padding-right:calc(var(--kanban-padding-right, 0rem) + 5rem);overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;scroll-padding:calc(var(--limebb-kanban-col-gap) + 0.5rem)}"}},[1,"limebb-kanban",{platform:[16],context:[16],groups:[16]}]),l=b,c=function(){"undefined"!=typeof customElements&&["limebb-kanban","limebb-kanban-group","limebb-kanban-item","limebb-navigation-button","limebb-summary-popover"].forEach((e=>{switch(e){case"limebb-kanban":customElements.get(i(e))||customElements.define(i(e),b);break;case"limebb-kanban-group":customElements.get(i(e))||o();break;case"limebb-kanban-item":customElements.get(i(e))||r();break;case"limebb-navigation-button":customElements.get(i(e))||s();break;case"limebb-summary-popover":customElements.get(i(e))||m()}}))};export{l as LimebbKanban,c as defineCustomElement}