-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from mobi/v1.2.1
V1.2.1
- Loading branch information
Showing
31 changed files
with
240 additions
and
100 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
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
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
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
22 changes: 18 additions & 4 deletions
22
projects/go-lib/src/lib/components/go-icon-button/go-icon-button.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,18 +1,32 @@ | ||
import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
import { | ||
Component, | ||
EventEmitter, | ||
Input, | ||
OnChanges, | ||
Output | ||
} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'go-icon-button', | ||
templateUrl: './go-icon-button.component.html', | ||
styleUrls: ['./go-icon-button.component.scss'] | ||
}) | ||
export class GoIconButtonComponent { | ||
export class GoIconButtonComponent implements OnChanges { | ||
|
||
iconClass: string = ''; | ||
|
||
@Input() buttonDisabled: boolean; | ||
@Input() buttonIcon: string; | ||
@Input() buttonSize: string = 'small'; | ||
@Input() buttonTitle: string; | ||
|
||
@Output() handleClick = new EventEmitter(); | ||
@Output() handleClick: EventEmitter<void> = new EventEmitter(); | ||
|
||
ngOnChanges(): void { | ||
this.iconClass = 'go-icon--' + this.buttonSize; | ||
} | ||
|
||
public clicked(): void { | ||
clicked(): void { | ||
this.handleClick.emit(); | ||
} | ||
} |
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
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
16 changes: 14 additions & 2 deletions
16
projects/go-lib/src/lib/components/go-loader/go-loader.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
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
12 changes: 4 additions & 8 deletions
12
projects/go-lib/src/lib/components/go-off-canvas/go-off-canvas.module.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
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
37 changes: 27 additions & 10 deletions
37
projects/go-lib/src/lib/components/go-side-nav/go-nav-item/go-nav-item.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,17 +1,34 @@ | ||
<div class="go-nav-item" | ||
[attr.title]="navItem.description"> | ||
<a class="go-nav-item__link" | ||
*ngIf="!navItem.isExternalLink" | ||
[routerLinkActive]="['go-nav-item__link--active']" | ||
[routerLink]="[navItem.route]" | ||
[routerLinkActiveOptions]="{exact:true}"> | ||
<go-icon [icon]="navItem.routeIcon" | ||
iconClass="go-nav-group__icon" | ||
*ngIf="navItem.routeIcon"> | ||
[routerLink]="[navItem.route]"> | ||
<ng-container *ngTemplateOutlet="navItemInner"></ng-container> | ||
</a> | ||
|
||
<a class="go-nav-item__link" | ||
*ngIf="navItem.isExternalLink" | ||
[href]="navItem.route" | ||
[target]="navItem.externalLinkTarget ? navItem.externalLinkTarget : '_blank'" | ||
rel="noreferrer"> | ||
<ng-container *ngTemplateOutlet="navItemInner"></ng-container> | ||
<go-icon *ngIf="!navItem.externalLinkTarget || navItem.externalLinkTarget === '_blank'" | ||
icon="launch" | ||
iconClass="go-nav-group__icon"> | ||
</go-icon> | ||
<span [ngClass]="{ 'go-nav-item__title--with-icon': navItem.routeIcon }" | ||
class="go-nav-item__title" | ||
*ngIf="navService.navOpen"> | ||
{{navItem.routeTitle}} | ||
</span> | ||
</a> | ||
</div> | ||
|
||
<ng-template #navItemInner> | ||
<go-icon [icon]="navItem.routeIcon" | ||
iconClass="go-nav-group__icon" | ||
*ngIf="navItem.routeIcon"> | ||
</go-icon> | ||
<span [ngClass]="{ 'go-nav-item__title--with-icon': navItem.routeIcon }" | ||
class="go-nav-item__title" | ||
*ngIf="navService.navOpen"> | ||
{{navItem.routeTitle}} | ||
</span> | ||
</ng-template> | ||
|
Oops, something went wrong.