ng-simple-file-tree
Advanced tools
Comparing version
{ | ||
"name": "ng-simple-file-tree", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
@@ -5,3 +5,2 @@ import { CreateTreeItem } from "./create-tree-item"; | ||
path: string; | ||
hasChildren: boolean; | ||
private constructor(); | ||
@@ -16,4 +15,5 @@ extension?: string; | ||
selectedChildIndex: number; | ||
hasChildren(): boolean; | ||
private createChildren; | ||
static fromJson({ name, children, icon, path }: Partial<CreateTreeItem> & Pick<CreateTreeItem, 'name'> & Record<string, unknown>): FileTreeItem; | ||
} |
@@ -12,7 +12,7 @@ import { OnDestroy, OnInit } from '@angular/core'; | ||
private itemService; | ||
treeData: (Partial<CreateTreeItem> & Pick<CreateTreeItem, 'name'> & Record<string, unknown>)[]; | ||
treeData: CreateTreeItem[]; | ||
options: FileTreeOptions; | ||
itemSelected: Subject<FileTreeItem>; | ||
itemSubscription: Subscription; | ||
items: FileTreeItem[]; | ||
protected itemSelected: Subject<FileTreeItem>; | ||
protected itemSubscription: Subscription; | ||
protected items: FileTreeItem[]; | ||
constructor(optionsService: OptionsService, itemService: SelectItemService); | ||
@@ -23,5 +23,12 @@ ngOnInit(): void; | ||
private subscribeToItemService; | ||
getItems(): FileTreeItem[]; | ||
getSelected(): FileTreeItem; | ||
addItem(item: CreateTreeItem): void; | ||
clearItems(): void; | ||
expandAll(): void; | ||
collapseAll(): void; | ||
private setExpandedForAll; | ||
private setExpandedForChildren; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NgSimpleFileTree, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<NgSimpleFileTree, "ng-simple-tree", never, { "treeData": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "itemSelected": "itemSelected"; }, never, never, false, never>; | ||
} |
@@ -7,5 +7,7 @@ import { Observable } from "rxjs"; | ||
itemSelectedObservable: Observable<FileTreeItem>; | ||
private lastValue; | ||
nextItem(value: FileTreeItem): void; | ||
getLastSelected(): FileTreeItem; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<SelectItemService, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<SelectItemService>; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
160009
5.86%933
10.02%