FilterTreeComponent
Defined in: filtering/tree/filter-tree.component.ts:55
Implements
Section titled “Implements”OnInit
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FilterTreeComponent():
FilterTreeComponent
Returns
Section titled “Returns”FilterTreeComponent
Properties
Section titled “Properties”allDropListIds
Section titled “allDropListIds”allDropListIds:
Signal<string[]>
Defined in: filtering/tree/filter-tree.component.ts:107
Flat array of ALL cdkDropList IDs currently in the tree.
Passed to [cdkDropListConnectedTo] on every branch body so cross-branch
dragging works. Each branch contributes one ID: drop-list-<nodeId>.
canClearAll
Section titled “canClearAll”
readonlycanClearAll:Signal<boolean>
Defined in: filtering/tree/filter-tree.component.ts:90
True when the tree has at least one child (i.e. there are filters to clear).
canRedo
Section titled “canRedo”
readonlycanRedo:Signal<boolean>
Defined in: filtering/tree/filter-tree.component.ts:88
True when there’s at least one state to redo to.
canUndo
Section titled “canUndo”
readonlycanUndo:Signal<boolean>
Defined in: filtering/tree/filter-tree.component.ts:86
True when there’s at least one state to undo to.
initialTree
Section titled “initialTree”initialTree:
InputSignal<FilterNode|undefined>
Defined in: filtering/tree/filter-tree.component.ts:65
Optional initial tree. If not provided, an empty root branch is created. The component makes its own internal copy so callers don’t need to worry about mutations.
readonlyroot:WritableSignal<FilterNode>
Defined in: filtering/tree/filter-tree.component.ts:75
The authoritative tree state. All mutations update this signal.
treeChange
Section titled “treeChange”treeChange:
OutputEmitterRef<FilterNode>
Defined in: filtering/tree/filter-tree.component.ts:68
Emitted after every successful tree mutation (including undo/redo).
Methods
Section titled “Methods”applyExternalUpdate()
Section titled “applyExternalUpdate()”applyExternalUpdate(
newRoot):void
Defined in: filtering/tree/filter-tree.component.ts:200
Apply an external tree mutation through the history stack. Used by FilterEditorComponent when appending a new leaf.
Parameters
Section titled “Parameters”newRoot
Section titled “newRoot”Returns
Section titled “Returns”void
clearAll()
Section titled “clearAll()”clearAll():
void
Defined in: filtering/tree/filter-tree.component.ts:166
Returns
Section titled “Returns”void
ngOnInit()
Section titled “ngOnInit()”ngOnInit():
void
Defined in: filtering/tree/filter-tree.component.ts:117
A callback method that is invoked immediately after the default change detector has checked the directive’s data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”OnInit.ngOnInit
onConjunctionToggle()
Section titled “onConjunctionToggle()”onConjunctionToggle(
branchId):void
Defined in: filtering/tree/filter-tree.component.ts:140
Handle a conjunction toggle from any branch.
Parameters
Section titled “Parameters”branchId
Section titled “branchId”string
Returns
Section titled “Returns”void
onKeydown()
Section titled “onKeydown()”onKeydown(
event):void
Defined in: filtering/tree/filter-tree.component.ts:185
Parameters
Section titled “Parameters”KeyboardEvent
Returns
Section titled “Returns”void
onNodeDelete()
Section titled “onNodeDelete()”onNodeDelete(
nodeId):void
Defined in: filtering/tree/filter-tree.component.ts:146
Handle a node deletion from anywhere in the tree.
Parameters
Section titled “Parameters”nodeId
Section titled “nodeId”string
Returns
Section titled “Returns”void
onNodeDrop()
Section titled “onNodeDrop()”onNodeDrop(
event):void
Defined in: filtering/tree/filter-tree.component.ts:132
Handle a drop event from any node in the tree. resolveDropPosition runs inside FilterNodeComponent at drop time, so we receive a fully resolved DropPosition here.
Parameters
Section titled “Parameters”dragId
Section titled “dragId”string
position
Section titled “position”Returns
Section titled “Returns”void
redo()
Section titled “redo()”redo():
void
Defined in: filtering/tree/filter-tree.component.ts:172
Returns
Section titled “Returns”void
undo()
Section titled “undo()”undo():
void
Defined in: filtering/tree/filter-tree.component.ts:157
Returns
Section titled “Returns”void