Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 9fffc34

Browse files
authored
Merge pull request #21 from qjon/develop
v3.0.2
2 parents edd1a7f + f66581d commit 9fffc34

12 files changed

+22
-16
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ At the end do not forget to add this effects to your app.
260260

261261
## Changes
262262

263+
### v3.0.2
264+
* small fixes with interfaces
265+
* fix export CSS styles
266+
263267
### v3.0.1
264268
* change the way of injecting NodeService provider
265269
* save in store: tree root nodes list, tree configuration and selected node

config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rign/angular2-tree",
3-
"version": "3.0.0",
3+
"version": "3.0.2",
44
"license": "MIT",
55
"angular-cli": {},
66
"scripts": {

demo/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</head>
1111
<body>
1212
<div class="container">
13-
<h1>Angular2 - Tree v3.0.1</h1>
13+
<h1>Angular2 - Tree v3.0.2</h1>
1414

1515
<app-root>Loading...</app-root>
1616
</div>

e2e/app.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('e2e App', () => {
1717

1818
it('should display welcome message', () => {
1919
page.navigateTo();
20-
expect(page.getTitle()).toEqual('Angular2 - Tree v3.0.1');
20+
expect(page.getTitle()).toEqual('Angular2 - Tree v3.0.2');
2121
});
2222

2323
describe('add node', () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rign/angular2-tree",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"license": "MIT",
55
"angular-cli": {},
66
"scripts": {

src/item/item.component.less

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +0,0 @@
1-
.drop-allowed {
2-
.tree-item-name {
3-
background-color: rgba(255, 0, 0, 0.3);
4-
}
5-
}

src/parents-list/parents-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ul class="parents-list">
1+
<ul class="ri-tree-parents-list">
22
<li class="fa fa-home" (click)="selectNode(null, false)"></li>
33
<li *ngFor="let node of parents$ | async; last as isLast" (click)="selectNode(node, isLast)">{{node.name}}
44
</li>

src/parents-list/parents-list.component.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.parents-list {
1+
.ri-tree-parents-list {
22
list-style-type: none;
33
margin: 0;
44
padding: 0;

src/store/ITreeState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface ITreeActionPayload {
2929
id?: string | null;
3030
node?: IOuterNode;
3131
nodes?: IOuterNode[];
32-
oldNode?: IOuterNode;
32+
oldNode?: any;
3333
source?: IOuterNode;
3434
target?: IOuterNode;
3535
sourceOfDroppedData?: string;

src/styles.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
@import 'tree.component.less';
1+
@import './tree.component.less';
2+
@import './parents-list/parents-list.component.less';

src/tree.component.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
.tree-item {
3333
padding: 2px 0;
3434

35+
&.drop-allowed {
36+
.tree-item-name {
37+
background-color: rgba(255, 0, 0, 0.3);
38+
}
39+
}
40+
3541
&.tree-item-selected {
3642
> .tree-item-name {
3743
padding: 0 1px;

src/tree.module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {treeReducer} from './store/treeReducer';
2020
import {TreeModelGeneratorService} from './service/treeModelGenerator.service';
2121
import {TreeActionsDispatcherService} from './store/treeActionsDispatcher.service';
2222
import {ParentsListComponent} from './parents-list/parents-list.component';
23-
import {NODE_SERVICE, NodeService} from './service/node.service';
23+
import {INodeService, NODE_SERVICE, NodeService} from './service/node.service';
2424

2525
@NgModule({
2626
imports: [
@@ -60,7 +60,7 @@ import {NODE_SERVICE, NodeService} from './service/node.service';
6060
})
6161
export class TreeModule {
6262

63-
public static forRoot(nodeService: Type<NodeService>): ModuleWithProviders {
63+
public static forRoot(nodeService: Type<INodeService>): ModuleWithProviders {
6464
return {
6565
ngModule: TreeModule,
6666
providers: [
@@ -75,7 +75,7 @@ export class TreeModule {
7575
}
7676
}
7777

78-
public static forFeature(nodeService: Type<NodeService>): ModuleWithProviders {
78+
public static forFeature(nodeService: Type<INodeService>): ModuleWithProviders {
7979
return {
8080
ngModule: TreeModule,
8181
providers: [

0 commit comments

Comments
 (0)