import{p as e,H as a,c as l,h as t,t as s}from"./p-CHfEnK-2.js";import{i,d as n,t as d}from"./p-94ZtGp9D.js";const r=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.ifxTreeViewExpandAllChange=l(this,"ifxTreeViewExpandAllChange",7),this.ifxTreeViewDisableAllChange=l(this,"ifxTreeViewDisableAllChange",7)}get el(){return this}label;disableAllItems=!1;expandAllItems=!1;ariaLabelText;ifxTreeViewExpandAllChange;ifxTreeViewDisableAllChange;handleExpandAllItemsChange(e){this.ifxTreeViewExpandAllChange.emit(e)}handleDisableAllItemsChange(e){this.ifxTreeViewDisableAllChange.emit(e)}handleSlotRef=e=>{e&&(this.disableAllItems?e.setAttribute("data-disable-all-items","true"):e.removeAttribute("data-disable-all-items"),this.expandAllItems?e.setAttribute("data-expand-all-items","true"):e.removeAttribute("data-expand-all-items"))};async componentDidLoad(){if(!i(this.el)){const e=n();d("ifx-tree-view",await e)}}render(){return t("div",{key:"d5930a9e3d87902a0d03d7ce0912c1a3a4ae6172",class:"tree-view "+(this.disableAllItems?" tree-view--disabled":""),role:"tree","aria-label":this.ariaLabelText},this.label&&""!==this.label.trim()&&t("div",{key:"b504f190ecad24579c98a2e188e8162d43e2bf0c",class:"tree-view__label"},this.label),t("slot",{key:"9dd1005f627e2669c797087aa1047fbd7a560213",ref:this.handleSlotRef}))}static get watchers(){return{expandAllItems:[{handleExpandAllItemsChange:0}],disableAllItems:[{handleDisableAllItemsChange:0}]}}static get style(){return':host{display:block}.tree-view{font-family:var(--ifx-font-family, sans-serif);font-size:14px;color:var(--ifx-color-text, #1a1a1a);display:flex;flex-wrap:wrap;flex-direction:column;overflow-x:auto;overflow-y:hidden}.tree-view__label{font:600 1.125rem/1.625rem "Source Sans 3";margin-bottom:8px}'}},[769,"ifx-tree-view",{label:[1],disableAllItems:[4,"disable-all-items"],expandAllItems:[4,"expand-all-items"],ariaLabelText:[1,"aria-label-text"]},void 0,{expandAllItems:[{handleExpandAllItemsChange:0}],disableAllItems:[{handleDisableAllItemsChange:0}]}]),o=r,h=function(){"undefined"!=typeof customElements&&["ifx-tree-view"].forEach((e=>{"ifx-tree-view"===e&&(customElements.get(s(e))||customElements.define(s(e),r))}))};export{o as IfxTreeView,h as defineCustomElement}