File tree Expand file tree Collapse file tree
frontend/src/app/annotate/annotation-parse-results/parse-tree-table Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Component , input } from '@angular/core' ;
2- import { SubscriptAngleBracketsPipe } from './subscript-angle-brackets.pipe' ;
2+ import { SubscriptPipe } from '@/pipes/subscript-pipe' ;
3+ import { SelectiveUpperCasePipe } from '@/pipes/selective-upper-case.pipe' ;
4+ import { TreeType } from '../annotation-parse-results.component' ;
35
46export interface TreeNodeDisplay {
57 type : 'node' | 'leaf' | 'var' ;
6- content : string ;
8+ content ? : string ;
79 rule ?: string ;
810 children : TreeNodeDisplay [ ] ;
911 // For leaf nodes
@@ -22,10 +24,11 @@ export interface TreeNodeDisplay {
2224@Component ( {
2325 selector : 'la-tree-node' ,
2426 standalone : true ,
25- imports : [ SubscriptAngleBracketsPipe ] ,
27+ imports : [ SubscriptPipe , SelectiveUpperCasePipe ] ,
2628 templateUrl : './tree-node.component.html' ,
2729 styleUrl : './tree-node.component.scss'
2830} )
2931export class TreeNodeComponent {
3032 public readonly node = input . required < TreeNodeDisplay > ( ) ;
33+ public readonly treeType = input . required < TreeType > ( ) ;
3134}
You can’t perform that action at this time.
0 commit comments