import{r as e,c as a,a as t,h as l}from"./p-wX3eJOEL.js";import{i}from"./p-CtINY9El.js";import{d as s,t as r}from"./p-DNHOWgWh.js";const d=class{constructor(t){e(this,t),this.ifxTreeViewExpandAllChange=a(this,"ifxTreeViewExpandAllChange",7),this.ifxTreeViewDisableAllChange=a(this,"ifxTreeViewDisableAllChange",7)}get el(){return t(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=s();r("ifx-tree-view",await e)}}render(){return l("div",{key:"d5930a9e3d87902a0d03d7ce0912c1a3a4ae6172",class:"tree-view "+(this.disableAllItems?" tree-view--disabled":""),role:"tree","aria-label":this.ariaLabelText},this.label&&""!==this.label.trim()&&l("div",{key:"b504f190ecad24579c98a2e188e8162d43e2bf0c",class:"tree-view__label"},this.label),l("slot",{key:"9dd1005f627e2669c797087aa1047fbd7a560213",ref:this.handleSlotRef}))}static get watchers(){return{expandAllItems:[{handleExpandAllItemsChange:0}],disableAllItems:[{handleDisableAllItemsChange:0}]}}};d.style=':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}';export{d as ifx_tree_view}