-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tooltip): initial commit for Tooltip (#66)
- Loading branch information
Showing
23 changed files
with
328 additions
and
9 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
8 changes: 8 additions & 0 deletions
8
src/app/docs/components/tooltip-demo/basic-tooltip/basic-tooltip.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<button ly-button | ||
appearance="icon" | ||
lyTooltip="Delete" | ||
#_tooltip="lyTooltip"> | ||
<ly-icon>delete_forever</ly-icon> | ||
</button> | ||
<br /> | ||
<button ly-button (click)="_tooltip.toggle()">toggle</button> |
25 changes: 25 additions & 0 deletions
25
src/app/docs/components/tooltip-demo/basic-tooltip/basic-tooltip.component.spec.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { BasicTooltipComponent } from './basic-tooltip.component'; | ||
|
||
describe('BasicTooltipComponent', () => { | ||
let component: BasicTooltipComponent; | ||
let fixture: ComponentFixture<BasicTooltipComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ BasicTooltipComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(BasicTooltipComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
7 changes: 7 additions & 0 deletions
7
src/app/docs/components/tooltip-demo/basic-tooltip/basic-tooltip.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'aui-basic-tooltip', | ||
templateUrl: './basic-tooltip.component.html' | ||
}) | ||
export class BasicTooltipComponent { } |
13 changes: 13 additions & 0 deletions
13
src/app/docs/components/tooltip-demo/basic-tooltip/basic-tooltip.module.spec.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { BasicTooltipModule } from './basic-tooltip.module'; | ||
|
||
describe('BasicTooltipModule', () => { | ||
let basicTooltipModule: BasicTooltipModule; | ||
|
||
beforeEach(() => { | ||
basicTooltipModule = new BasicTooltipModule(); | ||
}); | ||
|
||
it('should create an instance', () => { | ||
expect(basicTooltipModule).toBeTruthy(); | ||
}); | ||
}); |
19 changes: 19 additions & 0 deletions
19
src/app/docs/components/tooltip-demo/basic-tooltip/basic-tooltip.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { LyTooltipModule } from '@alyle/ui/tooltip'; | ||
import { LyButtonModule } from '@alyle/ui/button'; | ||
import { LyIconModule } from '@alyle/ui/icon'; | ||
|
||
import { BasicTooltipComponent } from './basic-tooltip.component'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
LyTooltipModule, | ||
LyButtonModule, | ||
LyIconModule | ||
], | ||
exports: [BasicTooltipComponent], | ||
declarations: [BasicTooltipComponent] | ||
}) | ||
export class BasicTooltipModule { } |
4 changes: 4 additions & 0 deletions
4
src/app/docs/components/tooltip-demo/tooltip-demo.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<h2 [lyTyp]="'display1'" gutter>Basic Tooltip</h2> | ||
<demo-view path="docs/components/tooltip-demo/basic-tooltip"> | ||
<aui-basic-tooltip></aui-basic-tooltip> | ||
</demo-view> |
25 changes: 25 additions & 0 deletions
25
src/app/docs/components/tooltip-demo/tooltip-demo.component.spec.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { TooltipDemoComponent } from './tooltip-demo.component'; | ||
|
||
describe('TooltipDemoComponent', () => { | ||
let component: TooltipDemoComponent; | ||
let fixture: ComponentFixture<TooltipDemoComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ TooltipDemoComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TooltipDemoComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
14 changes: 14 additions & 0 deletions
14
src/app/docs/components/tooltip-demo/tooltip-demo.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'aui-tooltip-demo', | ||
templateUrl: './tooltip-demo.component.html' | ||
}) | ||
export class TooltipDemoComponent implements OnInit { | ||
|
||
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
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,5 @@ | ||
import { StyleContainer } from '../theme2.service'; | ||
|
||
export interface TooltipVariables { | ||
root: StyleContainer; | ||
} |
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 @@ | ||
export * from './public_api'; |
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,2 @@ | ||
export * from './tooltip'; | ||
export * from './tooltip.module'; |
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 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { LyTooltip } from './tooltip'; | ||
|
||
@NgModule({ | ||
declarations: [LyTooltip], | ||
exports: [LyTooltip] | ||
}) | ||
export class LyTooltipModule { } |
Oops, something went wrong.