-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a0e831
commit cdfd020
Showing
14 changed files
with
28 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
import { Component, OnInit, Input } from '@angular/core'; | ||
import { ActionItemComponent } from '../action-item/'; | ||
import { Component, Input } from '@angular/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'ActionBar', | ||
templateUrl: 'action-bar.component.html', | ||
styleUrls: ['action-bar.component.css'], | ||
directives: [ActionItemComponent] | ||
styleUrls: ['action-bar.component.css'] | ||
}) | ||
export class ActionBarComponent implements OnInit { | ||
export class ActionBarComponent { | ||
@Input() title: string; | ||
|
||
constructor() {} | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<div> | ||
<ng-content></ng-content> | ||
</div> | ||
<ng-content></ng-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
:host { | ||
display:inline-block; | ||
|
||
div { | ||
padding:12px; | ||
} | ||
padding:12px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
import { Component, OnInit, Input, ElementRef } from '@angular/core'; | ||
import { ButtonComponent } from '../button/'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'ActionItem', | ||
templateUrl: 'action-item.component.html', | ||
styleUrls: ['action-item.component.css'], | ||
directives: [ButtonComponent] | ||
styleUrls: ['action-item.component.css'] | ||
}) | ||
export class ActionItemComponent implements OnInit { | ||
@Input('ios.position') position: string; | ||
public positionClass: string; | ||
@Input('ios.position') iosPosition: string; | ||
@Input('android.position') androidPosition: string; | ||
|
||
constructor(private el: ElementRef) {} | ||
|
||
ngOnInit() { | ||
if (this.position === 'right') { | ||
if (this.iosPosition === 'right' || this.androidPosition === 'popup') { | ||
let cls = 'btn-right'; | ||
let currentClassName = this.el.nativeElement.className; | ||
this.el.nativeElement.className = currentClassName ? [currentClassName, cls].join(' ') : cls; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
import { Component, Input, ElementRef, OnInit } from '@angular/core'; | ||
import { Component, Input, ElementRef } from '@angular/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'Button', | ||
templateUrl: 'button.component.html', | ||
styleUrls: ['button.component.css'] | ||
}) | ||
export class ButtonComponent implements OnInit { | ||
export class ButtonComponent { | ||
@Input() text: string; | ||
|
||
constructor(private el: ElementRef) { } | ||
|
||
ngOnInit() { | ||
constructor(private el: ElementRef) { | ||
this.el.nativeElement.setAttribute('type', 'submit'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<img [src]="imgSrc"/> | ||
<img [src]="imgSrc"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div>{{text}}</div> | ||
{{text}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
import { Component, OnInit, Input } from '@angular/core'; | ||
import { Component, Input } from '@angular/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'Label', | ||
templateUrl: 'label.component.html', | ||
styleUrls: ['label.component.css'] | ||
}) | ||
export class LabelComponent implements OnInit { | ||
export class LabelComponent { | ||
@Input() text: string; | ||
|
||
constructor() {} | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
4 changes: 1 addition & 3 deletions
4
src/app/components/layout-containers/stack-layout/stack-layout.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<div class="stack-layout"> | ||
<ng-content></ng-content> | ||
</div> | ||
<ng-content class="stack-layout"></ng-content> |
4 changes: 2 additions & 2 deletions
4
src/app/components/layout-containers/stack-layout/stack-layout.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.stack-layout { | ||
padding:20px; | ||
:host { | ||
display:block; | ||
} |
16 changes: 3 additions & 13 deletions
16
src/app/components/layout-containers/stack-layout/stack-layout.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { LabelComponent } from '../../label'; | ||
import { ImageComponent } from '../../image'; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'StackLayout', | ||
templateUrl: 'stack-layout.component.html', | ||
styleUrls: ['stack-layout.component.css'], | ||
directives: [LabelComponent, ImageComponent] | ||
styleUrls: ['stack-layout.component.css'] | ||
}) | ||
export class StackLayoutComponent implements OnInit { | ||
|
||
constructor() {} | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} | ||
export class StackLayoutComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<DetachedContainer> | ||
<Placeholder #loader></Placeholder> | ||
</DetachedContainer> | ||
<Placeholder #loader></Placeholder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters