Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 33 additions & 14 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
box-shadow: 0 0 5px #bdbdbd;
background-color: #eee;
color: #212121;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
z-index: 999;
}

Expand Down Expand Up @@ -72,7 +72,7 @@ tree-internal .over-drop-target {

tree-internal .tree {
box-sizing: border-box;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

tree-internal .tree li {
Expand Down Expand Up @@ -171,6 +171,10 @@ tree-internal ul.rootless {
padding: 0;
}

tree-internal ul.hidden {
display: none;
}

tree-internal div.rootless {
display: none !important;
}
Expand All @@ -187,16 +191,31 @@ tree-internal .loading-children:after {
}

@keyframes loading-children {
0% { color: #f3e5f5; }
12.5% { color: #e1bee7; }
25% { color: #ce93d8; }
37.5% { color: #ba68c8; }
50% { color: #ab47bc; }
62.5% { color: #9c27b0; }
75% { color: #8e24aa; }
87.5% { color: #7b1fa2; }
100% { color: #6a1b9a; }
0% {
color: #f3e5f5;
}
12.5% {
color: #e1bee7;
}
25% {
color: #ce93d8;
}
37.5% {
color: #ba68c8;
}
50% {
color: #ab47bc;
}
62.5% {
color: #9c27b0;
}
75% {
color: #8e24aa;
}
87.5% {
color: #7b1fa2;
}
100% {
color: #6a1b9a;
}
}



2 changes: 1 addition & 1 deletion src/tree-internal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { get, isNil } from './utils/fn.utils';
@Component({
selector: 'tree-internal',
template: `
<ul class="tree" *ngIf="tree" [ngClass]="{rootless: isRootHidden()}">
<ul class="tree" *ngIf="tree" [ngClass]="{rootless: isRootHidden(), hidden: tree.hidden}">
<li>
<div class="value-container"
[ngClass]="{rootless: isRootHidden()}"
Expand Down
3 changes: 2 additions & 1 deletion src/tree.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ export class TreeModelSettings {
isCollapsedOnInit: false,
checked: false,
keepNodesInDOM: false,
selectionAllowed: true
selectionAllowed: true,
hidden: false
});
}
}
Expand Down