import { MdsTreeItemEventDetail } from './meta/event-detail'; import { TreeActions, TreeAppearance, TreeIcon } from "../../type/tree"; import { ButtonIconPositionType } from "../../type/button"; import { EventEmitter } from '../../stencil-public-runtime'; import { TypographyTruncateType } from "../../type/text"; /** * @slot - Add `mds-tree-item` element/s. * @slot action - Add `mds-button`, `mds-icon` or other types component and HTML element/s. * @part actions-container - Selects the wrapper of the container of the actions. * @part actions-list - Selects the container of the actions. * @parent mds-tree mds-tree-item */ export declare class MdsTreeItem { private childrenElement; private toggleChildrenTimer; private cssToggleChildrenDuration; hasActions: boolean; hasChildren: boolean; currentToggleIcon: string; await: boolean; private resolvedActions?; private readonly host; private readonly t; /** * Show actions on the tree item on hover or by default. */ readonly actions?: TreeActions; /** * Loads the children on demand: a click on the closed item shows a spinner and emits * `mdsTreeItemExpand` instead of opening it; call `expand()` once the children are in place */ readonly async?: boolean; /** * Specifies the tree branch depth. Internal: used by CSS to remove branch lines on first-level elements. */ readonly depth?: number; /** * Specifies the label of the tree item */ readonly label: string; /** * Specifies the icon of the element */ toggle?: TreeIcon; /** * Reflects the parent tree toggle icon position (set by mds-tree); drives the * toggle-icon layout without :host-context */ togglePosition?: ButtonIconPositionType; /** * Reflects the parent tree appearance (set by mds-tree); drives the depth/none * layout without :host-context */ appearance?: TreeAppearance; /** * Specifies if the tree is expanded. */ expanded?: boolean; /** * Truncate the text of the element on one single line. */ truncate?: TypographyTruncateType; /** * The icon displayed in the button */ readonly icon?: string; /** * Emits when the user opens an `async` item, to load its children: opening any other item emits * nothing */ expandEvent: EventEmitter; /** * Emits when the item closes, once its children have finished hiding */ collapsedEvent: EventEmitter; handleIconChange(): void; handleExpandedChange(newValue: boolean): void; private checkChildrenTransitionEnd; private updateToggleIcon; private onClick; private idle; private updateToggle; private updateCssCustomProperty; /** * Expands the tree item, revealing its children. */ expand(): Promise; /** * Resolves the effective actions mode: the item's own value wins, otherwise it * inherits the nearest ancestor (tree-item or tree) that sets one. Replaces the * :host-context own-vs-ancestor cascade with a value reflected on the host. */ private resolveActions; handleActionsChange(): void; /** * `internal` Re-resolves the effective actions; called by mds-tree when its own * actions changes so items that inherit it stay in sync. */ refreshActions(): Promise; private expandedState; private onActionSlotChange; componentWillLoad(): void; private updateHasChildren; componentDidLoad(): void; disconnectedCallback(): void; render(): any; }