Skip to content

Commit b638806

Browse files
author
azornada-resilient
committed
feat(angular2-expandable-list): fisrt unstable release
1 parent 6345478 commit b638806

17 files changed

+66830
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
*.log

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Andrea SonnY
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

demo/app.component.ts

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app',
5+
template: `
6+
<expandable-list>
7+
<expandable-list-item *ngFor="let item of items">
8+
<span title>{{ item.title }}</span>
9+
<a item *ngFor="let i of item.items"
10+
[href]="i.link">
11+
{{ i.title }}
12+
</a>
13+
</expandable-list-item>
14+
15+
<expandable-list-item disabled>
16+
<span title>Manual</span>
17+
<span secondary>disabled</span>
18+
</expandable-list-item>
19+
20+
<expandable-list-item>
21+
<span title>Manual</span>
22+
<span secondary>enabled</span>
23+
<a href="http://www.goo.gl">Something else</a>
24+
<a item href="http://www.goo.gl">Google</a>
25+
<a item href="http://www.goo.gl">Google</a>
26+
<a item href="http://www.goo.gl">Google</a>
27+
28+
<expandable-list-divider item></expandable-list-divider>
29+
30+
<a item href="http://www.goo.gl">Google</a>
31+
</expandable-list-item>
32+
</expandable-list>
33+
`
34+
})
35+
export class AppComponent {
36+
items: any;
37+
38+
39+
constructor() {
40+
this.items = [
41+
{
42+
title: 'Spices',
43+
items: [
44+
{
45+
title: 'salt',
46+
link: 'https://en.wikipedia.org/wiki/Salt'
47+
},
48+
{
49+
title: 'Black pepper',
50+
link: 'https://en.wikipedia.org/wiki/Black_pepper'
51+
},
52+
]
53+
},
54+
{
55+
title: 'Cats',
56+
items: [
57+
{
58+
title: 'Siberian',
59+
link: 'https://en.wikipedia.org/wiki/Siberian_cat'
60+
},
61+
{
62+
title: 'Maine Coon',
63+
link: 'https://en.wikipedia.org/wiki/Maine_Coon'
64+
},
65+
{
66+
title: 'American Bobtail',
67+
link: 'https://en.wikipedia.org/wiki/American_Bobtail'
68+
},
69+
{
70+
title: 'British Longhair',
71+
link: 'https://en.wikipedia.org/wiki/British_Longhair'
72+
},
73+
]
74+
},
75+
];
76+
}
77+
}

demo/app.module.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { NgModule } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
import { AppComponent } from './app.component';
4+
import { ExpandableListModule } from '../src/expandable-list.module';
5+
6+
@NgModule({
7+
imports: [
8+
BrowserModule,
9+
ExpandableListModule
10+
],
11+
declarations: [ AppComponent ],
12+
bootstrap: [ AppComponent ]
13+
})
14+
export class AppModule { }

demo/app.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import 'core-js/es7/reflect';
2+
import 'zone.js/dist/zone';
3+
4+
//main entry point
5+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
6+
import { AppModule } from './app.module';
7+
8+
platformBrowserDynamic().bootstrapModule(AppModule);

demo/bundle.js

Lines changed: 66256 additions & 0 deletions
Large diffs are not rendered by default.

demo/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<!--
3+
angular2-expandable-list
4+
Copyright 2016-2017, @andreasonny83, All rights reserved.
5+
-->
6+
<html>
7+
<head>
8+
<meta charset="utf-8">
9+
<meta name="viewport" content="width=device-width, initial-scale=1">
10+
<title>angular2-expandable-list demo app</title>
11+
</head>
12+
<body>
13+
<app class="app">
14+
Loading...
15+
</app>
16+
17+
<script src="bundle.js"></script>
18+
</body>
19+
</html>

demo/main.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/tsconfig.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "commonjs",
5+
"moduleResolution": "node",
6+
"sourceMap": true,
7+
"emitDecoratorMetadata": true,
8+
"experimentalDecorators": true,
9+
"lib": [ "es2015", "dom" ],
10+
"noImplicitAny": true,
11+
"suppressImplicitAnyIndexErrors": true
12+
},
13+
"awesomeTypescriptLoaderOptions": {
14+
"forkChecker": true,
15+
"useWebpackText": true
16+
},
17+
"compileOnSave": false,
18+
"buildOnSave": false,
19+
"atom": {
20+
"rewriteTsconfig": false
21+
}
22+
}

0 commit comments

Comments
 (0)