import { EventEmitter } from "../../stencil-public-runtime"; import { IcSizes, IcThemeMode } from "../../utils/types"; import "../../../../web-components/src/components/ic-typography/ic-typography"; /** * @slot label - Content is set as the tree item label. * @slot icon - Content is placed to the left of the label. * @slot router-item - Handle routing by nesting your routes in this slot. */ export declare class TreeItem { private treeItemElement; private treeItemTag; private routerSlot; private hostMutationObserver; private TOOLTIP; private TREE_ITEM_LABEL_CLASS_SELECTOR; private TREE_ITEM_CONTENT_CLASS_SELECTOR; el: HTMLIcTreeItemElement; childTreeItems: HTMLIcTreeItemElement[]; /** * If `true`, the tree item appears in the disabled state. */ disabled: boolean; watchDisabledHandler(): void; /** * If `true`, the tree item appears in the expanded state. */ expanded: boolean; watchExpandedHandler(): void; /** * @internal Determines if the parent tree item has been expanded. */ hasParentExpanded: boolean; /** * The URL that the tree item link points to. If set, the tree item will render as an "a" tag, otherwise it will render as a div. */ href?: string | undefined; /** * The human language of the linked URL. */ hreflang?: string; /** * @internal If `true`, the tree item is a parent of other tree items. */ isParent: boolean; /** * The label of the tree item. */ label: string; /** * @internal Holds the previous truncation state before the screen switches to a small viewport, so it can be reset when screen size changes again. */ previousTruncateTreeItem?: boolean; /** * How much of the referrer to send when following the link. */ referrerpolicy?: ReferrerPolicy; /** * The relationship of the linked URL as space-separated link types. */ rel?: string; /** * If `true`, the tree item appears in the selected state. */ selected: boolean; watchSelectedHandler(): void; /** * @internal Determines the size of the tree item. */ size?: IcSizes; /** * The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe). */ target?: string; /** * Sets the tree item id. Must be unique. */ treeItemId?: string; /** * Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. */ theme?: IcThemeMode; /** * If `true`, the tree item label will be truncated instead of text wrapping. */ truncateTreeItem?: boolean; /** * Emitted when tree item is selected. */ icTreeItemSelected: EventEmitter<{ id: string; }>; /** * Emitted when tree item is expanded. */ icTreeItemExpanded: EventEmitter<{ isExpanded: boolean; id: string; }>; disconnectedCallback(): void; componentWillLoad(): void; componentDidLoad(): void; componentDidRender(): void; componentDidUpdate(): void; handleKeyDown(ev: KeyboardEvent): void; /** * Sets focus on the native `input`. */ setFocus(): Promise; private handleTreeItemClicked; /** * @internal Updates the aria-label of the tree item. */ updateAriaLabel(): Promise; private setTreeItemPadding; private truncateTreeItemLabel; private removeTreeItemTruncation; private hasRouterSlot; private handleDisplayTooltip; private setChildTreeItems; private hostMutationCallback; render(): any; }