import { h, } from "@stencil/core";
export class BreadcrumbItemLabel {
    icon;
    href;
    target = "_self";
    el;
    breadcrumbMenuIconWrapper;
    componentDidLoad() {
        const container = this.el.shadowRoot.querySelector(".breadcrumb-item-label-container");
        const menuWrapper = container?.querySelector(".menu-icon-wrapper");
        if (menuWrapper) {
            this.breadcrumbMenuIconWrapper.emit(menuWrapper);
        }
    }
    render() {
        return (h("a", { key: '6571ff2efff0c585a2932583d914df7684630db0', href: this.href, target: this.target, class: "breadcrumb-item-label-container", role: "link" }, h("ifx-icon", { key: '75aa1ea3bc21203154fcdd2b6bfa15189f16c065', icon: this.icon, "aria-hidden": "true" }), h("span", { key: '1163f1bc60267f26dc8b838058278ac2367c9ca8', class: "label-wrapper" }, h("slot", { key: '30d1672a6aa9a9380d8934663a215a3ef0014be4' })), h("span", { key: 'c131a318510e99b33086d8fd660a78a68a6f8a86', class: "menu-icon-wrapper", "aria-hiden": "true" }, h("ifx-icon", { key: '9f0dbe849a587e7d395388afbc782136969e6025', icon: "chevron-down-16" }))));
    }
    static get is() { return "ifx-breadcrumb-item-label"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["breadcrumb-item-label.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["breadcrumb-item-label.css"]
        };
    }
    static get properties() {
        return {
            "icon": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "icon"
            },
            "href": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "href"
            },
            "target": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "target",
                "defaultValue": "\"_self\""
            }
        };
    }
    static get events() {
        return [{
                "method": "breadcrumbMenuIconWrapper",
                "name": "breadcrumbMenuIconWrapper",
                "bubbles": true,
                "cancelable": true,
                "composed": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "complexType": {
                    "original": "HTMLElement",
                    "resolved": "HTMLElement",
                    "references": {
                        "HTMLElement": {
                            "location": "global",
                            "id": "global::HTMLElement"
                        }
                    }
                }
            }];
    }
    static get elementRef() { return "el"; }
}
//# sourceMappingURL=breadcrumb-item-label.js.map
