import{r as e,c as a,a as l,h as t}from"./p-Cby2wKoI.js";import{i}from"./p-CtINY9El.js";import{d as s,t as r}from"./p-DNHOWgWh.js";const d=()=>`: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}`;const n=class{constructor(l){e(this,l);this.ifxTreeViewExpandAllChange=a(this,"ifxTreeViewExpandAllChange",7);this.ifxTreeViewDisableAllChange=a(this,"ifxTreeViewDisableAllChange",7)}get el(){return l(this)}label;disableAllItems=false;expandAllItems=false;ariaLabel;ifxTreeViewExpandAllChange;ifxTreeViewDisableAllChange;handleExpandAllItemsChange(e){this.ifxTreeViewExpandAllChange.emit(e)}handleDisableAllItemsChange(e){this.ifxTreeViewDisableAllChange.emit(e)}handleSlotRef=e=>{if(e){if(this.disableAllItems){e.setAttribute("data-disable-all-items","true")}else{e.removeAttribute("data-disable-all-items")}if(this.expandAllItems){e.setAttribute("data-expand-all-items","true")}else{e.removeAttribute("data-expand-all-items")}}};async componentDidLoad(){if(!i(this.el)){const e=s();r("ifx-tree-view",await e)}}render(){return t("div",{key:"3785ae5864bb9299362cdd0310172d47cc9e8056",class:`tree-view ${this.disableAllItems?" tree-view--disabled":""}`,role:"tree","aria-label":this.ariaLabel},this.label&&this.label.trim()!==""&&t("div",{key:"4fd358ae37cf561d60dd16e54acf315ab0c104c4",class:"tree-view__label"},this.label),t("slot",{key:"05e1f4f6d2d3cfb1c3e5d6f7843330d00a94219a",ref:this.handleSlotRef}))}static get watchers(){return{expandAllItems:[{handleExpandAllItemsChange:0}],disableAllItems:[{handleDisableAllItemsChange:0}]}}};n.style=d();export{n as ifx_tree_view};
//# sourceMappingURL=p-7f241b8c.entry.js.map