ng-simple-file-tree
Advanced tools
Comparing version
{ | ||
"name": "ng-simple-file-tree", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
export type Child = { | ||
name: string; | ||
childrenKey?: string; | ||
children?: Child[]; | ||
icon?: string; | ||
}; |
import { Child } from "./child"; | ||
export type CreateTreeItem = { | ||
name: string; | ||
childrenKey?: string; | ||
children?: Child[]; | ||
@@ -5,0 +6,0 @@ icon?: string; |
@@ -0,1 +1,2 @@ | ||
import { Child } from "./child"; | ||
import { CreateTreeItem } from "./create-tree-item"; | ||
@@ -14,5 +15,15 @@ export declare class FileTreeItem { | ||
selectedChildIndex: number; | ||
originalValue: any; | ||
private readonly childrenKey?; | ||
hasChildren(): boolean; | ||
private createChildren; | ||
static fromJson({ name, children, icon, path }: Partial<CreateTreeItem> & Pick<CreateTreeItem, 'name'> & Record<string, unknown>): FileTreeItem; | ||
static fromJson(item: CreateTreeItem, childrenKey?: string): FileTreeItem; | ||
} | ||
export interface OptionalParameters { | ||
childrenKey?: string; | ||
children?: Child[]; | ||
icon?: string; | ||
path?: string; | ||
parent?: FileTreeItem; | ||
index?: number; | ||
} |
@@ -14,2 +14,3 @@ import { OnDestroy, OnInit } from '@angular/core'; | ||
options: FileTreeOptions; | ||
childrenKey?: string; | ||
protected itemSelected: Subject<FileTreeItem>; | ||
@@ -32,3 +33,3 @@ protected itemSubscription: Subscription; | ||
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>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<NgSimpleFileTree, "ng-simple-tree", never, { "treeData": { "alias": "data"; "required": false; }; "options": { "alias": "options"; "required": false; }; "childrenKey": { "alias": "childrenKey"; "required": false; }; }, { "itemSelected": "itemSelected"; }, never, never, false, never>; | ||
} |
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
176268
10.16%1060
13.61%