-
Notifications
You must be signed in to change notification settings - Fork 1
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 #198 from TAMULib/sprint11-staging
Sprint11 staging
- Loading branch information
Showing
17 changed files
with
429 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<wvr-alert-element | ||
[alertType]="alertType" | ||
[alertClass]="alertClass" | ||
[closable]="closable" | ||
[closeTimer]="closeTimer"> | ||
<ng-content select="wvr-text, wvr-text-element" ngProjectAs="wvr-text"></ng-content> | ||
<ng-content select="tl-custom-alert" ngProjectAs="wvr-custom-alert"></ng-content> | ||
</wvr-alert-element> |
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
@import "../shared/styles/tl-encapsulated.scss"; | ||
@import "../shared/styles/tl-branded-btn.scss"; | ||
|
||
:host { | ||
|
||
wvr-alert-element { | ||
::ng-deep { | ||
.alert { | ||
border-radius: 0; | ||
} | ||
|
||
.btn.btn-danger.close:hover, | ||
.btn.btn-dark.close:hover, | ||
.btn.btn-info.close:hover, | ||
.btn.btn-light.close:hover, | ||
.btn.btn-primary.close:hover, | ||
.btn.btn-secondary.close:hover, | ||
.btn.btn-success.close:hover, | ||
.btn.btn-warning.close:hover { | ||
color: var(--tl-black); | ||
text-decoration: none; | ||
background: transparent; | ||
opacity: .75; | ||
} | ||
|
||
.btn.btn-danger.close:focus, | ||
.btn.btn-dark.close:focus, | ||
.btn.btn-info.close:focus, | ||
.btn.btn-light.close:focus, | ||
.btn.btn-primary.close:focus, | ||
.btn.btn-secondary.close:focus, | ||
.btn.btn-success.close:focus, | ||
.btn.btn-warning.close:focus { | ||
opacity: .75; | ||
color: var(--tl-black); | ||
background: transparent; | ||
// border: 0.12rem solid var(--tl-black); | ||
top: -2px; | ||
} | ||
|
||
.btn.btn-danger.close:focus, | ||
.btn.btn-dark.close:focus, | ||
.btn.btn-info.close:focus, | ||
.btn.btn-light.close:focus, | ||
.btn.btn-primary.close:focus, | ||
.btn.btn-secondary.close:focus, | ||
.btn.btn-success.close:focus, | ||
.btn.btn-warning.close:focus { | ||
box-shadow: none; | ||
} | ||
|
||
.btn.btn-danger.close:active, | ||
.btn.btn-danger.close.active, | ||
.btn.btn-dark.close:active, | ||
.btn.btn-dark.close.active, | ||
.btn.btn-info.close:active, | ||
.btn.btn-info.close.active, | ||
.btn.btn-light.close:active, | ||
.btn.btn-light.close.active, | ||
.btn.btn-primary.close:active, | ||
.btn.btn-primary.close.active, | ||
.btn.btn-secondary.close:active, | ||
.btn.btn-secondary.close.active, | ||
.btn.btn-success.close:active, | ||
.btn.btn-success.close.active, | ||
.btn.btn-warning.close:active, | ||
.btn.btn-warning.close.active { | ||
color: var(--tl-black); | ||
background: transparent; | ||
} | ||
|
||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
import { TlAlertComponent } from './tl-alert.component'; | ||
|
||
describe('TlAlertComponent', () => { | ||
let component: TlAlertComponent; | ||
let fixture: ComponentFixture<TlAlertComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [BrowserAnimationsModule], | ||
declarations: [ TlAlertComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TlAlertComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
|
||
it('should customize alertClass', () => { | ||
expect(component.alertClass) | ||
.toBeUndefined(); | ||
component.alertClass = 'success'; | ||
fixture.detectChanges(); | ||
expect(component.alertClass) | ||
.toEqual('success'); | ||
}); | ||
|
||
it('should customize alertType', () => { | ||
expect(component.alertType) | ||
.toBeUndefined(); | ||
component.alertType = 'custom'; | ||
fixture.detectChanges(); | ||
expect(component.alertType) | ||
.toEqual('custom'); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Component, Injector, Input } from '@angular/core'; | ||
import { TamuAbstractBaseComponent } from '../shared/tl-abstract-base.component'; | ||
|
||
@Component({ | ||
selector: 'tl-alert-element', | ||
templateUrl: './tl-alert.component.html', | ||
styleUrls: ['./tl-alert.component.scss'] | ||
}) | ||
export class TlAlertComponent extends TamuAbstractBaseComponent { | ||
|
||
/** Used to override the alert class. */ | ||
@Input() alertClass: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark'; | ||
|
||
/** Used to override the type of alert. */ | ||
@Input() alertType: 'basic' | 'self-closing' | 'custom'; | ||
|
||
/** Used to override if close button has to be present for an alert. */ | ||
@Input() closable: 'true' | 'false' = 'true'; | ||
|
||
@Input() closeTimer; | ||
|
||
// tslint:disable-next-line:unnecessary-constructor | ||
constructor(injector: Injector) { | ||
super(injector); | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<wvr-tab-element [tabText]="tabText"> | ||
<ng-content></ng-content> | ||
</wvr-tab-element> |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@import "../../shared/styles/tl-encapsulated.scss"; | ||
@import "../../shared/styles/tl-branded-btn.scss"; | ||
|
||
:host { | ||
|
||
::ng-deep { | ||
|
||
.nav-item { | ||
display: inline-block; | ||
.nav-link { | ||
border: 1px solid var(--tl-grey); | ||
border-top: 5px solid var(--tl-grey); | ||
border-radius: 0px 0px 0 0; | ||
color: #5a534d; | ||
} | ||
.nav-link:hover, | ||
.nav-link.active { | ||
color: #000000; | ||
background-color: #fff; | ||
border-top: 5px solid var(--tl-primary); | ||
} | ||
.nav-link:hover { | ||
border-bottom: 1px solid var(--tl-grey); | ||
} | ||
} | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
|
||
import { TlTabComponent } from './tl-tab.component'; | ||
|
||
describe('TlTabComponent', () => { | ||
let component: TlTabComponent; | ||
let fixture: ComponentFixture<TlTabComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [BrowserAnimationsModule], | ||
declarations: [ TlTabComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TlTabComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component) | ||
.toBeTruthy(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Component, Injector, Input } from '@angular/core'; | ||
import { TamuAbstractBaseComponent } from '../../shared/tl-abstract-base.component'; | ||
|
||
@Component({ | ||
selector: 'tl-tab', | ||
templateUrl: './tl-tab.component.html', | ||
styleUrls: ['./tl-tab.component.scss'] | ||
}) | ||
export class TlTabComponent extends TamuAbstractBaseComponent { | ||
|
||
@Input() tabText = `Tab ${this.id}`; | ||
|
||
// tslint:disable-next-line:unnecessary-constructor | ||
constructor(injector: Injector) { | ||
super(injector); | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<wvr-tabs-element> | ||
<ng-content select="tl-tab, tl-tab-element" ngProjectAs="wvr-tab"></ng-content> | ||
</wvr-tabs-element> |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
|
||
import { TlTabsComponent } from './tl-tabs.component'; | ||
|
||
describe('TlTabsComponent', () => { | ||
let component: TlTabsComponent; | ||
let fixture: ComponentFixture<TlTabsComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [BrowserAnimationsModule], | ||
declarations: [ TlTabsComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TlTabsComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component) | ||
.toBeTruthy(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component, Injector, OnInit } from '@angular/core'; | ||
import { __extends } from 'tslib'; | ||
import { TamuAbstractBaseComponent } from '../shared/tl-abstract-base.component'; | ||
|
||
@Component({ | ||
selector: 'tl-tabs-element', | ||
templateUrl: './tl-tabs.component.html', | ||
styleUrls: ['./tl-tabs.component.scss'] | ||
}) | ||
export class TlTabsComponent extends TamuAbstractBaseComponent { | ||
|
||
// tslint:disable-next-line:unnecessary-constructor | ||
constructor(injector: Injector) { | ||
super(injector); | ||
} | ||
|
||
} |
Oops, something went wrong.