import * as _qualcomm_ui_angular_core_machine from '@qualcomm-ui/angular-core/machine'; import { BaseApiContextService, ApiContextDirective } from '@qualcomm-ui/angular-core/machine'; import * as i0 from '@angular/core'; import { TemplateRef, Injector, OnInit } from '@angular/core'; import * as _qualcomm_ui_core_tree from '@qualcomm-ui/core/tree'; import { NodeProps, NodeState } from '@qualcomm-ui/core/tree'; import * as _qualcomm_ui_qds_core_tree from '@qualcomm-ui/qds-core/tree'; import { QdsTreeApi, QdsTreeApiProps, QdsTreeSize } from '@qualcomm-ui/qds-core/tree'; import { TreeNode } from '@qualcomm-ui/utils/collection'; import * as _qualcomm_ui_core_collapsible from '@qualcomm-ui/core/collapsible'; import { CoreTreeBranchContentDirective, CoreTreeBranchIndentGuideDirective, CoreTreeBranchNodeDirective, CoreTreeBranchTriggerDirective, CoreTreeBranchDirective, CoreTreeLabelDirective, CoreTreeLeafNodeDirective, CoreTreeNodeActionDirective, CoreTreeNodeCheckboxDirective, CoreTreeNodeIconDirective, CoreTreeNodeIndicatorDirective, CoreTreeNodeTextDirective, TreeNodePropsContextService, TreeNodeStateContextService, CoreTreeRootDirective } from '@qualcomm-ui/angular-core/tree'; import { LucideIconOrString } from '@qualcomm-ui/angular-core/lucide'; import * as _qualcomm_ui_core_presence from '@qualcomm-ui/core/presence'; import { CollapsibleContextService } from '@qualcomm-ui/angular-core/collapsible'; import * as _qualcomm_ui_qds_core_inline_icon_button from '@qualcomm-ui/qds-core/inline-icon-button'; import { QdsInlineIconButtonSize } from '@qualcomm-ui/qds-core/inline-icon-button'; import { SignalifyInput } from '@qualcomm-ui/angular-core/signals'; import * as i18 from '@qualcomm-ui/angular/icon'; import * as i20 from '@angular/common'; import * as i21 from '@qualcomm-ui/angular/checkmark'; declare class QdsTreeContextService extends BaseApiContextService { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const QDS_TREE_CONTEXT: i0.InjectionToken<() => QdsTreeApi>; declare const useQdsTreeContext: (opts?: _qualcomm_ui_angular_core_machine.UseContextOpts | undefined) => Optional extends true ? (() => QdsTreeApi) | null : () => QdsTreeApi; declare const provideQdsTreeContext: () => i0.Provider[]; interface TreeNodeTemplateContext { $implicit: NodeProps; } declare class TreeBranchContentDirective extends CoreTreeBranchContentDirective { /** * HTML {@link https://www.w3schools.com/html/html_id.asp id attribute}. If * omitted, a unique identifier will be generated for accessibility.) */ readonly id: i0.InputSignal; protected readonly hostId: i0.Signal; protected qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; protected collapsibleContext: () => _qualcomm_ui_core_collapsible.CollapsibleApi; protected readonly trackBindings: ((opts?: _qualcomm_ui_angular_core_machine.TrackBindingsConfig) => void) & { extendWith: (computedProps: () => _qualcomm_ui_angular_core_machine.Dict) => void; setDisabled: (disabled: boolean) => void; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TreeBranchIndentGuideDirective extends CoreTreeBranchIndentGuideDirective { protected qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TreeBranchNodeDirective extends CoreTreeBranchNodeDirective { protected qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Structural directive that defines the template used to render leaf nodes in a * tree. Apply this to an `ng-template` to customize how branch nodes (nodes with * children) are displayed. Note that this template will only customize the content * of the node. The parent `` component renders the branch children * internally. * * @example * ```html * *
* {{ node.item.label }} *
*
* ``` */ declare class TreeBranchTemplateDirective { /** * The root node of the tree. Used for type narrowing of the template guard. * {@link https://angular.dev/guide/directives/structural-directives#type-narrowing-with-template-guards Learn more} */ readonly rootNode: i0.InputSignal; template: TemplateRef; static ngTemplateContextGuard(dir: TreeBranchTemplateDirective, ctx: unknown): ctx is TreeNodeTemplateContext; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, "ng-template[q-tree-branch-template]", never, { "rootNode": { "alias": "rootNode"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>; } declare class TreeBranchTriggerDirective extends CoreTreeBranchTriggerDirective { /** * @default ChevronRight */ readonly icon: i0.InputSignal; protected qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TreeBranchDirective extends CoreTreeBranchDirective { protected qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; protected readonly collapsibleApi: CollapsibleContextService; protected readonly document: Document; protected readonly injector: Injector; protected readonly nodeState: () => _qualcomm_ui_core_tree.NodeState; protected readonly renderStrategyProps: () => _qualcomm_ui_core_presence.RenderStrategyApi; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TreeLabelDirective extends CoreTreeLabelDirective { protected qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TreeLeafNodeDirective extends CoreTreeLeafNodeDirective { protected qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Structural directive that defines the template used to render leaf nodes in a * tree. Apply this to an `ng-template` to customize how leaf nodes (nodes without * children) are displayed. * * @example * ```html * *
* {{ node.item.label }} *
*
* ``` */ declare class TreeLeafTemplateDirective { /** * The root node of the tree. Used for type narrowing of the template guard. * {@link https://angular.dev/guide/directives/structural-directives#type-narrowing-with-template-guards Learn more} */ readonly rootNode: i0.InputSignal; template: TemplateRef; static ngTemplateContextGuard(dir: TreeLeafTemplateDirective, ctx: unknown): ctx is TreeNodeTemplateContext; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, "ng-template[q-tree-leaf-template]", never, { "rootNode": { "alias": "rootNode"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>; } declare class TreeNodeActionDirective extends CoreTreeNodeActionDirective { /** * Lucide icon to display inside the button. */ readonly icon: i0.InputSignal; /** * The size of the button and its icon. * * @default 'md' */ readonly size: i0.InputSignal; protected readonly inlineIconButtonApi: i0.Signal<_qualcomm_ui_qds_core_inline_icon_button.QdsInlineIconButtonApi>; protected readonly qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TreeNodeCheckboxDirective extends CoreTreeNodeCheckboxDirective { protected readonly nodeState: () => _qualcomm_ui_core_tree.NodeState; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TreeNodeContextDirective extends ApiContextDirective> { /** * The root node of the tree. Used for type narrowing of the template guard. * {@link https://angular.dev/guide/directives/structural-directives#type-narrowing-with-template-guards Learn more} */ readonly rootNode: i0.InputSignal; constructor(); static ngTemplateContextGuard(dir: TreeNodeContextDirective, ctx: unknown): ctx is { $implicit: NodeState; }; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, "[treeNodeContext]", never, { "rootNode": { "alias": "rootNode"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>; } declare class TreeNodeIconDirective extends CoreTreeNodeIconDirective { readonly icon: i0.InputSignal; protected readonly qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TreeNodeIndicatorDirective extends CoreTreeNodeIndicatorDirective { protected readonly qdsContext: () => _qualcomm_ui_qds_core_tree.QdsTreeApi; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TreeNodeTextDirective extends CoreTreeNodeTextDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TreeNodesComponent implements SignalifyInput>, OnInit { /** * The index path of the tree node */ readonly indexPath: i0.InputSignal; /** * The tree node * * @inheritDoc */ readonly node: i0.InputSignal; readonly renderBranch: i0.InputSignal> | undefined>; readonly renderLeaf: i0.InputSignal> | undefined>; readonly treeBranchContentChild: i0.Signal | undefined>; readonly treeLeafContentChild: i0.Signal | undefined>; readonly branchTemplate: i0.Signal | undefined>; readonly leafTemplate: i0.Signal>; protected treeContext: () => _qualcomm_ui_core_tree.TreeApi; readonly injector: Injector; readonly templateContext: i0.Signal>; readonly childNodes: i0.Signal; protected readonly treeNodePropsContextService: TreeNodePropsContextService; protected treeNodeStateContextService: TreeNodeStateContextService; ngOnInit(): void; getChildIndexPath(index: number): number[]; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "q-tree-nodes", never, { "indexPath": { "alias": "indexPath"; "required": true; "isSignal": true; }; "node": { "alias": "node"; "required": true; "isSignal": true; }; "renderBranch": { "alias": "renderBranch"; "required": false; "isSignal": true; }; "renderLeaf": { "alias": "renderLeaf"; "required": false; "isSignal": true; }; }, {}, ["treeBranchContentChild", "treeLeafContentChild"], never, false, never>; } declare class TreeRootDirective extends CoreTreeRootDirective implements SignalifyInput, OnInit { /** * The size of the tree and its elements. Governs properties like font size, * item padding, and icon sizes. * * @default 'md' */ readonly size: i0.InputSignal; protected readonly qdsTreeService: QdsTreeContextService; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TreeModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { QDS_TREE_CONTEXT, QdsTreeContextService, TreeBranchContentDirective, TreeBranchDirective, TreeBranchIndentGuideDirective, TreeBranchNodeDirective, TreeBranchTemplateDirective, TreeBranchTriggerDirective, TreeLabelDirective, TreeLeafNodeDirective, TreeLeafTemplateDirective, TreeModule, TreeNodeActionDirective, TreeNodeCheckboxDirective, TreeNodeContextDirective, TreeNodeIconDirective, TreeNodeIndicatorDirective, TreeNodeTextDirective, TreeNodesComponent, TreeRootDirective, provideQdsTreeContext, useQdsTreeContext }; export type { TreeNodeTemplateContext }; //# sourceMappingURL=qualcomm-ui-angular-tree.d.ts.map