🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

ng-simple-file-tree

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-simple-file-tree - npm Package Compare versions

Comparing version

to
0.1.11

ng-simple-file-tree-0.1.11.tgz

2

package.json
{
"name": "ng-simple-file-tree",
"version": "0.1.10",
"version": "0.1.11",
"private": false,

@@ -5,0 +5,0 @@ "peerDependencies": {

import { Child } from "./child";
export type CreateTreeItem = {
name: string;
childrenKey?: string;
children?: Child[];

@@ -5,0 +6,0 @@ icon?: string;

@@ -0,4 +1,6 @@

import { CreateTreeItem } from "./create-tree-item";
export interface FileTreeOptions {
highlightOpenFolders: boolean;
folderBehaviourOnClick: 'select' | 'expand' | 'both';
autoOpenCondition?: (item: CreateTreeItem) => boolean;
expandAllFolders?: boolean;

@@ -5,0 +7,0 @@ hierarchyLines?: {

@@ -1,7 +0,8 @@

import { OnDestroy, OnInit } from '@angular/core';
import { OnDestroy, OnInit, QueryList } from '@angular/core';
import { FileTreeOptions } from "./models/file-tree-options";
import { FileTreeItem } from "./models/file-tree-item";
import { FileTreeItem, OptionalParameters } from "./models/file-tree-item";
import { CreateTreeItem } from "./models/create-tree-item";
import { Subject, Subscription } from "rxjs";
import { SelectItemService } from "../select-item.service";
import { TreeItemComponent } from "./tree-item/tree-item.component";
import * as i0 from "@angular/core";

@@ -17,2 +18,3 @@ export declare class NgSimpleFileTree implements OnInit, OnDestroy {

protected items: FileTreeItem[];
elements: QueryList<TreeItemComponent>;
constructor(itemService: SelectItemService);

@@ -32,3 +34,3 @@ ngOnInit(): void;

getSelected(): FileTreeItem;
addItem(item: CreateTreeItem): void;
addItem(item: CreateTreeItem, optional?: OptionalParameters): string;
removeItem(path: string): void;

@@ -35,0 +37,0 @@ clearItems(): void;

@@ -1,2 +0,2 @@

import { OnInit } from '@angular/core';
import { OnInit, ElementRef } from '@angular/core';
import { FileTreeItem } from "../models/file-tree-item";

@@ -12,2 +12,4 @@ import { SelectItemService } from "../../select-item.service";

index: number;
element: ElementRef<HTMLElement>;
childElement: TreeItemComponent;
justClicked: boolean;

@@ -14,0 +16,0 @@ constructor(selectItemService: SelectItemService, optionsService: OptionsService);

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