Skip to content

Commit 53dddc5

Browse files
committed
Catchup with Upstream master
2 parents 771dd0e + 3d0aed8 commit 53dddc5

16 files changed

+7275
-5409
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ node_modules
33
bower_components
44
coverage
55
treecontrol.iml
6-
6+
.DS_Store
7+
Chromium 49.0.2623 (Ubuntu)
78

Gruntfile.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function(grunt) {
3030
background: true,
3131
options: {
3232
files: [
33-
'bower_components/jquery/jquery.js',
33+
'bower_components/jquery/dist/jquery.js',
3434
'demo/angular.1.3.12.js',
3535
'demo/angular-mocks.1.3.12.js',
3636
'angular-tree-control.js',
@@ -64,8 +64,7 @@ module.exports = function(grunt) {
6464
},
6565
release: {
6666
options: {
67-
file: 'bower.json',
68-
npm: false
67+
additionalFiles: ['bower.json']
6968
}
7069
}
7170
});

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Angular Tree Control
22
================
33

4+
[![npm version](https://badge.fury.io/js/angular-tree-control.svg)](https://badge.fury.io/js/angular-tree-control)
45
[![Bower version](https://badge.fury.io/bo/angular-tree-control.svg)](http://badge.fury.io/bo/angular-tree-control)
5-
[![Build Status](https://travis-ci.org/wix/angular-tree-control.png)](https://travis-ci.org/wix/angular-tree-control)
6-
[![Coverage Status](https://coveralls.io/repos/wix/angular-tree-control/badge.png)](https://coveralls.io/r/wix/angular-tree-control)
6+
[![Build Status](https://travis-ci.org/wix/angular-tree-control.svg)](https://travis-ci.org/wix/angular-tree-control)
7+
[![Coverage Status](https://coveralls.io/repos/wix/angular-tree-control/badge.svg)](https://coveralls.io/r/wix/angular-tree-control)
78

89
Pure [AngularJS](http://www.angularjs.org) based tree control component.
910

@@ -13,7 +14,7 @@ To get started, check out [wix.github.io/angular-tree-control](http://wix.github
1314

1415
## Why yet another tree control
1516

16-
We have tried a number of tree controls built for angular and experience a of issues with each. As a result we decided
17+
We have tried a number of tree controls built for angular and experience a lot of issues with each. As a result we decided
1718
to build a new tree control with the following design guidelines
1819

1920
- Isolated scope - the tree control should not pollute the scope it is rendered at

angular-tree-control.js

Lines changed: 160 additions & 95 deletions
Large diffs are not rendered by default.

bower.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "angular-tree-control",
3-
"version": "0.2.12",
3+
"version": "0.2.28",
4+
"author": "Yoav Abrahami",
5+
"contributors": [
6+
"Benjamin Orozco <benoror@gmail.com>"
7+
],
48
"main": [
59
"./angular-tree-control.js",
610
"./css/tree-control.css"
@@ -12,11 +16,11 @@
1216
"karma.conf.js"
1317
],
1418
"dependencies": {
15-
"angular": "~1.3.x"
19+
"angular": "~1.4.4"
1620
},
1721
"devDependencies": {
18-
"angular-mocks": "~1.3.x",
19-
"jquery": "~2.0.3",
22+
"angular-mocks": "~1.4.4",
23+
"jquery": "~2.2.2",
2024
"bootstrap": "~3.1.1",
2125
"angular-bootstrap": "~0.11.0",
2226
"google-code-prettify": "1.0.1"

css/tree-control-attribute.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,51 @@
107107
[treecontrol].tree-dark {
108108
color: #ddd;
109109
}
110+
111+
[treecontrol].tree-boot {
112+
color: #428bca;
113+
font-family: inherit;
114+
font-size: inherit;
115+
}
116+
117+
[treecontrol].tree-boot > ul > li {
118+
padding: 0;
119+
}
120+
121+
[treecontrol].tree-boot li > .tree-label {
122+
display: block;
123+
padding: 3px 0;
124+
border-radius: 4px;
125+
}
126+
127+
[treecontrol].tree-boot i.tree-branch-head,
128+
[treecontrol].tree-boot i.tree-leaf-head {
129+
float: left;
130+
height: 16px;
131+
margin: 5px;
132+
}
133+
134+
[treecontrol].tree-boot li.tree-expanded i.tree-branch-head {
135+
padding: 1px 10px;
136+
background: url("../images/folder.png") no-repeat;
137+
}
138+
139+
[treecontrol].tree-boot li.tree-collapsed i.tree-branch-head {
140+
padding: 1px 10px;
141+
background: url("../images/folder-closed.png") no-repeat;
142+
}
143+
144+
[treecontrol].tree-boot li.tree-leaf i.tree-leaf-head {
145+
padding: 1px 10px;
146+
background: url("../images/file.png") no-repeat;
147+
}
148+
149+
[treecontrol].tree-boot .tree-label.tree-selected,
150+
[treecontrol].tree-boot .tree-label.tree-selected:hover {
151+
color: #fff;
152+
background-color: #428bca;
153+
}
154+
155+
[treecontrol].tree-boot .tree-label:hover {
156+
background-color: #eee;
157+
}

css/tree-control.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,51 @@ treecontrol.tree-dark li .tree-unselectable {
120120
treecontrol.tree-dark {
121121
color: #ddd;
122122
}
123+
124+
treecontrol.tree-boot {
125+
color: #428bca;
126+
font-family: inherit;
127+
font-size: inherit;
128+
}
129+
130+
treecontrol.tree-boot > ul > li {
131+
padding: 0;
132+
}
133+
134+
treecontrol.tree-boot li > .tree-label {
135+
display: block;
136+
padding: 3px 0;
137+
border-radius: 4px;
138+
}
139+
140+
treecontrol.tree-boot i.tree-branch-head,
141+
treecontrol.tree-boot i.tree-leaf-head {
142+
float: left;
143+
height: 16px;
144+
margin: 5px;
145+
}
146+
147+
treecontrol.tree-boot li.tree-expanded i.tree-branch-head {
148+
padding: 1px 10px;
149+
background: url("../images/folder.png") no-repeat;
150+
}
151+
152+
treecontrol.tree-boot li.tree-collapsed i.tree-branch-head {
153+
padding: 1px 10px;
154+
background: url("../images/folder-closed.png") no-repeat;
155+
}
156+
157+
treecontrol.tree-boot li.tree-leaf i.tree-leaf-head {
158+
padding: 1px 10px;
159+
background: url("../images/file.png") no-repeat;
160+
}
161+
162+
treecontrol.tree-boot .tree-label.tree-selected,
163+
treecontrol.tree-boot .tree-label.tree-selected:hover {
164+
color: #fff;
165+
background-color: #428bca;
166+
}
167+
168+
treecontrol.tree-boot .tree-label:hover {
169+
background-color: #eee;
170+
}

0 commit comments

Comments
 (0)