Skip to content

FilterNodeComponent

Defined in: filtering/tree/filter-node.component.ts:54

Recursive component for rendering and manipulating a single filter-tree node.

new FilterNodeComponent(): FilterNodeComponent

FilterNodeComponent

allDropListIds: InputSignal<string[]>

Defined in: filtering/tree/filter-node.component.ts:62


canClearAll: InputSignal<boolean>

Defined in: filtering/tree/filter-node.component.ts:76

Whether clear-all is available — only used by the root branch header.


canRedo: InputSignal<boolean>

Defined in: filtering/tree/filter-node.component.ts:74

Whether redo is available — only used by the root branch header.


canUndo: InputSignal<boolean>

Defined in: filtering/tree/filter-node.component.ts:72

Whether undo is available — only used by the root branch header.


clearAllClick: OutputEmitterRef<void>

Defined in: filtering/tree/filter-node.component.ts:88

Emitted when the root clear-all button is clicked.


conjunctionAriaLabel: Signal<string>

Defined in: filtering/tree/filter-node.component.ts:119


conjunctionLabel: Signal<string>

Defined in: filtering/tree/filter-node.component.ts:113


conjunctionToggle: OutputEmitterRef<string>

Defined in: filtering/tree/filter-node.component.ts:80


readonly dragState: FilterTreeDragStateService

Defined in: filtering/tree/filter-node.component.ts:94


dropListId: Signal<string>

Defined in: filtering/tree/filter-node.component.ts:123


isActiveBranch: Signal<boolean>

Defined in: filtering/tree/filter-node.component.ts:133

True only when THIS branch is the active drop target. Computed from the service’s single activeDropZone signal.


isBranch: Signal<boolean>

Defined in: filtering/tree/filter-node.component.ts:101


isDragging: WritableSignal<boolean>

Defined in: filtering/tree/filter-node.component.ts:124


isDropTarget: InputSignal<boolean>

Defined in: filtering/tree/filter-node.component.ts:69

True when this node is the active item-center drop target in its parent branch. Used to highlight the chip or branch header. Passed in by the parent’s

loop via isItemActive(i).


isLeaf: Signal<boolean>

Defined in: filtering/tree/filter-node.component.ts:100


isRoot: InputSignal<boolean>

Defined in: filtering/tree/filter-node.component.ts:60


isSelfDragging: Signal<boolean>

Defined in: filtering/tree/filter-node.component.ts:127

True when THIS node is the one currently being dragged.


leafLabel: Signal<string>

Defined in: filtering/tree/filter-node.component.ts:103


node: InputSignal<FilterNode>

Defined in: filtering/tree/filter-node.component.ts:59


nodeDelete: OutputEmitterRef<string>

Defined in: filtering/tree/filter-node.component.ts:82

Emitted when the user clicks the delete button on a node.


nodeDrop: OutputEmitterRef<{ dragId: string; position: DropPosition; }>

Defined in: filtering/tree/filter-node.component.ts:79

Final resolved drop — emitted after the root resolves the position.


redoClick: OutputEmitterRef<void>

Defined in: filtering/tree/filter-node.component.ts:86

Emitted when the root redo button is clicked.


root: InputSignal<FilterNode>

Defined in: filtering/tree/filter-node.component.ts:61


undoClick: OutputEmitterRef<void>

Defined in: filtering/tree/filter-node.component.ts:84

Emitted when the root undo button is clicked.

isGapActive(i): boolean

Defined in: filtering/tree/filter-node.component.ts:143

Is the gap at index i (before child i) currently active?

number

boolean


isItemActive(i): boolean

Defined in: filtering/tree/filter-node.component.ts:157

Is the item-center merge zone for child[i] currently active?

number

boolean


isTrailingGapActive(): boolean

Defined in: filtering/tree/filter-node.component.ts:150

Is the trailing gap (after the last child) currently active?

boolean


onChildConjunctionToggle(branchId): void

Defined in: filtering/tree/filter-node.component.ts:216

unknown

void


onChildDelete(nodeId): void

Defined in: filtering/tree/filter-node.component.ts:224

unknown

void


onChildDrop(event): void

Defined in: filtering/tree/filter-node.component.ts:212

unknown

void


onDeleteNode(): void

Defined in: filtering/tree/filter-node.component.ts:220

void


onDragEnded(): void

Defined in: filtering/tree/filter-node.component.ts:171

void


onDragMoved(event): void

Defined in: filtering/tree/filter-node.component.ts:176

Forward pointer position to the service on every drag-move tick.

CdkDragMove

void


onDragStarted(): void

Defined in: filtering/tree/filter-node.component.ts:167

void


onDrop(event): void

Defined in: filtering/tree/filter-node.component.ts:192

CDK fires this when an item is dropped into THIS branch’s drop list.

Resolves the drop position by running findDeepestBranchZone fresh at the drop coordinates — the same geometry used for hover highlighting — then emits nodeDrop with the fully resolved position. The root FilterTreeComponent applies the mutation.

CdkDragDrop<FilterNode[]>

void


onToggleConjunction(): void

Defined in: filtering/tree/filter-node.component.ts:208

void