File tree Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change
1
+ <a name =" 8.0.4 " ></a >
2
+ # 8.0.4 (2018-22-12)
3
+ * Fixed non triState checkboxes
4
+ * Fixed checkboxes example to switch expander and checkbox
5
+
1
6
<a name =" 8.0.3 " ></a >
2
7
# 8.0.3 (2018-20-12)
3
8
* Fixed Warning on state bind
Original file line number Diff line number Diff line change 1
1
/* You can add global styles to this file, and also import other style files */
2
2
@import '~angular-tree-component/dist/angular-tree-component.css' ;
3
+ .reverse tree-node-expander {
4
+ order : 0 ;
5
+ }
6
+ .reverse tree-node-checkbox {
7
+ order : 1 ;
8
+ }
9
+ .reverse .node-content-wrapper {
10
+ order : 2 ;
11
+ }
12
+ .root1Class { color : blue }
13
+ .root2Class { color : red }
Original file line number Diff line number Diff line change @@ -16,14 +16,12 @@ export class TreeNode implements ITreeNode {
16
16
@computed get isActive ( ) { return this . treeModel . isActive ( this ) ; } ;
17
17
@computed get isFocused ( ) { return this . treeModel . isNodeFocused ( this ) ; } ;
18
18
@computed get isSelected ( ) {
19
- if ( this . treeModel . options . useTriState ) {
20
- if ( this . isLeaf || ! this . children ) {
21
- return this . treeModel . isSelected ( this ) ;
22
- } else {
23
- return some ( this . children , ( node : TreeNode ) => node . isSelected ) ;
24
- }
19
+ if ( this . isLeaf || ! this . children ) {
20
+ return this . treeModel . isSelected ( this ) ;
25
21
} else {
26
- return this . treeModel . isSelected ( this ) ;
22
+ const method = this . treeModel . options . useTriState ? some : every ;
23
+
24
+ return method ( this . children , ( node : TreeNode ) => node . isSelected ) ;
27
25
}
28
26
} ;
29
27
@computed get isAllSelected ( ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular-tree-component" ,
3
- "version" : " 8.0.3 " ,
3
+ "version" : " 8.0.4 " ,
4
4
"description" : " A simple yet powerful tree component for Angular2" ,
5
5
"author" : " Adam Klein <adam@500tech.com>" ,
6
6
"homepage" : " https://github.com/500tech/angular-tree-component" ,
You can’t perform that action at this time.
0 commit comments