File tree 3 files changed +31
-5
lines changed
3 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ng2-fab-speed-dial" ,
3
- "version" : " 1.0.0" ,
3
+ "version" : " 1.0.0-beta.5 " ,
4
4
"author" : " Rahul Kumar" ,
5
5
"description" : " Fab speed dial in for Angular 4+" ,
6
6
"license" : " MIT" ,
7
7
"scripts" : {
8
- "transpile" : " ngc" ,
8
+ "transpile" : " ngc -p tsconfig.json " ,
9
9
"package" : " rollup -c" ,
10
10
"minify" : " uglifyjs dist/bundles/fabSpeedDial.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/fabSpeedDial.umd.min.js" ,
11
11
"build" : " npm run transpile && npm run package && npm run minify"
Original file line number Diff line number Diff line change @@ -29,8 +29,31 @@ export class FabToggleDirective {}
29
29
30
30
@Component ( {
31
31
selector : 'fab-speed-dial' ,
32
- templateUrl : './fabSpeedDial.component.html' ,
33
- styleUrls : [ './fabSpeedDial.component.scss' ]
32
+ template : `
33
+ <div class="fab-menu">
34
+ <ng-content></ng-content>
35
+ </div>
36
+ ` ,
37
+ styles : [ `
38
+ .fab-menu {
39
+ position: relative;
40
+ display: inline-block;
41
+ }
42
+
43
+ .fab-menu ::ng-deep .fab-button {
44
+ position: absolute;
45
+ top: 0;
46
+ left: 0;
47
+ right: 0;
48
+ bottom: 0;
49
+ transition-timing-function: ease-out;
50
+ transition-property: transform;
51
+ }
52
+
53
+ .fab-menu ::ng-deep .fab-toggle {
54
+ z-index: 2;
55
+ }
56
+ ` ]
34
57
} )
35
58
36
59
export class FabSpeedDialComponent implements AfterContentInit {
Original file line number Diff line number Diff line change 4
4
"declaration" : true ,
5
5
"stripInternal" : true ,
6
6
"experimentalDecorators" : true ,
7
+ "emitDecoratorMetadata" : true ,
7
8
"strictNullChecks" : true ,
8
9
"noImplicitAny" : true ,
9
10
"module" : " es2015" ,
27
28
" src/index.ts"
28
29
],
29
30
"angularCompilerOptions" : {
30
- "strictMetadataEmit" : true
31
+ "strictMetadataEmit" : true ,
32
+ "skipTemplateCodegen" : true ,
33
+ "annotateForClosureCompiler" : true
31
34
}
32
35
}
You can’t perform that action at this time.
0 commit comments