This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-colorpicker-rgb
- Loading branch information
Showing
117 changed files
with
1,555 additions
and
463 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
Binary file added
BIN
+610 Bytes
...al-tests/screenshots-baseline/filter-Button-Text-Small-chrome-400x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.5 KB
...-visual-tests/screenshots-baseline/filter-Button-Text-chrome-1000x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.6 KB
...shots-baseline/list-Column-Selector-Action-Deprecated-chrome-1000x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.2 KB
...screenshots-baseline/list-Column-Selector-Action-Small-chrome-400x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.9 KB
...ests/screenshots-baseline/list-Column-Selector-Action-chrome-1000x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.1 KB
...a-visual-tests/screenshots-baseline/list-Toolbar-Small-chrome-400x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.5 KB
skyux-spa-visual-tests/screenshots-baseline/list-Toolbar-chrome-1000x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+278 Bytes
(100%)
...ual-tests/screenshots-baseline/list_secondary_actions-chrome-1000x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+54 Bytes
(100%)
...visual-tests/screenshots-baseline/search-Small-Applied-chrome-480x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+20 Bytes
(100%)
.../screenshots-baseline/search-Small-Dismissable-Applied-chrome-480x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21 Bytes
(100%)
...al-tests/screenshots-baseline/search-Small-Dismissable-chrome-480x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+59 Bytes
(100%)
skyux-spa-visual-tests/screenshots-baseline/search-Small-chrome-480x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+619 Bytes
(100%)
...sts/screenshots-baseline/select-Field-Multiple-Picker-chrome-1000x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.78 KB
(100%)
...tests/screenshots-baseline/select-Field-Single-Picker-chrome-1000x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.35 KB
...-spa-visual-tests/screenshots-baseline/sort-Text-Small-chrome-400x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.56 KB
skyux-spa-visual-tests/screenshots-baseline/sort-Text-chrome-1000x800-dpr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion
11
skyux-spa-visual-tests/src/app/filter/filter-visual.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
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
1 change: 1 addition & 0 deletions
1
skyux-spa-visual-tests/src/app/list-column-selector-action/index.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 @@ | ||
<list-column-selector-action-visual></list-column-selector-action-visual> |
25 changes: 25 additions & 0 deletions
25
...sts/src/app/list-column-selector-action/list-column-selector-action-visual.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,25 @@ | ||
<div id="screenshot-list-column-selector-action"> | ||
<sky-list [data]="data"> | ||
<sky-list-toolbar> | ||
<sky-list-column-selector-action [gridView]="grid"></sky-list-column-selector-action> | ||
</sky-list-toolbar> | ||
<sky-list-view-grid fit="scroll"> | ||
<sky-grid-column field="column1" heading="Column1"></sky-grid-column> | ||
<sky-grid-column field="column2" heading="Column2"></sky-grid-column> | ||
</sky-list-view-grid> | ||
</sky-list> | ||
</div> | ||
|
||
<div id="screenshot-list-column-selector-action-deprecated"> | ||
<sky-list [data]="data"> | ||
<sky-list-toolbar> | ||
<sky-list-secondary-actions> | ||
<sky-list-column-selector-action [gridView]="grid"></sky-list-column-selector-action> | ||
</sky-list-secondary-actions> | ||
</sky-list-toolbar> | ||
<sky-list-view-grid fit="scroll" #grid> | ||
<sky-grid-column field="column1" heading="Column1"></sky-grid-column> | ||
<sky-grid-column field="column2" heading="Column2"></sky-grid-column> | ||
</sky-list-view-grid> | ||
</sky-list> | ||
</div> |
21 changes: 21 additions & 0 deletions
21
...tests/src/app/list-column-selector-action/list-column-selector-action-visual.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,21 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { Observable } from 'rxjs/Observable'; | ||
import 'rxjs/add/observable/of'; | ||
|
||
@Component({ | ||
selector: 'list-column-selector-action-visual', | ||
templateUrl: './list-column-selector-action-visual.component.html' | ||
}) | ||
export class ListColumnSelectorActionVisualComponent { | ||
|
||
public data: Observable<Array<any>> = Observable.of([ | ||
{ id: '1', column1: 101, column2: 'Apple', column3: 'Anne eats apples'}, | ||
{ id: '2', column1: 202, column2: 'Banana', column3: 'Ben eats bananas' }, | ||
{ id: '3', column1: 303, column2: 'Pear', column3: 'Patty eats pears' }, | ||
{ id: '4', column1: 404, column2: 'Grape', column3: 'George eats grapes' }, | ||
{ id: '5', column1: 505, column2: 'Banana', column3: 'Becky eats bananas' }, | ||
{ id: '6', column1: 606, column2: 'Lemon', column3: 'Larry eats lemons' }, | ||
{ id: '7', column1: 707, column2: 'Strawberry', column3: 'Sally eats strawberries' } | ||
]); | ||
} |
42 changes: 42 additions & 0 deletions
42
...sual-tests/src/app/list-column-selector-action/list-column-selector-action.visual-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,42 @@ | ||
import { SkyVisualTest } from '../../../config/utils/visual-test-commands'; | ||
import { element, by } from 'protractor'; | ||
|
||
describe('list-column-selector-action component', () => { | ||
|
||
it('should display toolbar with the column chooser', () => { | ||
return SkyVisualTest | ||
.setupTest('list-column-selector-action') | ||
.then(() => { | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'list-column-selector-action', | ||
selector: '#screenshot-list-column-selector-action' | ||
}); | ||
}); | ||
}); | ||
|
||
it('should display toolbar with the column chooser without text when a small screen', () => { | ||
return SkyVisualTest | ||
.setupTest('list-column-selector-action', 400) | ||
.then(() => { | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'list-column-selector-action-small', | ||
selector: '#screenshot-list-column-selector-action' | ||
}); | ||
}); | ||
}); | ||
|
||
it('should display toolbar with the column chooser in the deprecated manner', () => { | ||
return SkyVisualTest | ||
.setupTest('list-column-selector-action') | ||
.then(() => { | ||
return element(by.css('#screenshot-list-column-selector-action-deprecated .sky-list-secondary-actions .sky-dropdown-button')) | ||
.click() as any; | ||
}) | ||
.then(() => { | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'list-column-selector-action-deprecated', | ||
selector: '#screenshot-list-column-selector-action-deprecated' | ||
}); | ||
}); | ||
}); | ||
}); |
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 @@ | ||
<list-toolbar-visual></list-toolbar-visual> |
44 changes: 44 additions & 0 deletions
44
skyux-spa-visual-tests/src/app/list-toolbar/list-toolbar-visual.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,44 @@ | ||
<div id="screenshot-list-toolbar"> | ||
<sky-list [data]="data"> | ||
<sky-list-toolbar> | ||
<sky-list-secondary-actions> | ||
<sky-list-secondary-action> | ||
<button type="button"> | ||
Option | ||
</button> | ||
</sky-list-secondary-action> | ||
</sky-list-secondary-actions> | ||
<sky-list-column-selector-action [gridView]="grid"></sky-list-column-selector-action> | ||
<sky-list-toolbar-sort | ||
label="Custom" | ||
field="column1" | ||
type="string" | ||
[descending]="false"> | ||
</sky-list-toolbar-sort> | ||
<sky-list-filter-button> | ||
<sky-filter-button [showButtonText]="true"> | ||
</sky-filter-button> | ||
</sky-list-filter-button> | ||
<sky-list-toolbar-view-actions> | ||
<button | ||
class="sky-btn sky-btn-default" | ||
title="Sort descending" | ||
type="button" | ||
> | ||
<i class="fa fa-angle-double-down" aria-hidden="true"></i> | ||
</button> | ||
<button | ||
class="sky-btn sky-btn-default" | ||
title="Sort ascending" | ||
type="button" | ||
> | ||
<i class="fa fa-angle-double-up" aria-hidden="true"></i> | ||
</button> | ||
</sky-list-toolbar-view-actions> | ||
</sky-list-toolbar> | ||
<sky-list-view-grid fit="scroll" #grid> | ||
<sky-grid-column field="column1" heading="Column1"></sky-grid-column> | ||
<sky-grid-column field="column2" heading="Column2"></sky-grid-column> | ||
</sky-list-view-grid> | ||
</sky-list> | ||
</div> |
21 changes: 21 additions & 0 deletions
21
skyux-spa-visual-tests/src/app/list-toolbar/list-toolbar-visual.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,21 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { Observable } from 'rxjs/Observable'; | ||
import 'rxjs/add/observable/of'; | ||
|
||
@Component({ | ||
selector: 'list-toolbar-visual', | ||
templateUrl: './list-toolbar-visual.component.html' | ||
}) | ||
export class ListToolbarVisualComponent { | ||
|
||
public data: Observable<Array<any>> = Observable.of([ | ||
{ id: '1', column1: 101, column2: 'Apple', column3: 'Anne eats apples'}, | ||
{ id: '2', column1: 202, column2: 'Banana', column3: 'Ben eats bananas' }, | ||
{ id: '3', column1: 303, column2: 'Pear', column3: 'Patty eats pears' }, | ||
{ id: '4', column1: 404, column2: 'Grape', column3: 'George eats grapes' }, | ||
{ id: '5', column1: 505, column2: 'Banana', column3: 'Becky eats bananas' }, | ||
{ id: '6', column1: 606, column2: 'Lemon', column3: 'Larry eats lemons' }, | ||
{ id: '7', column1: 707, column2: 'Strawberry', column3: 'Sally eats strawberries' } | ||
]); | ||
} |
35 changes: 35 additions & 0 deletions
35
skyux-spa-visual-tests/src/app/list-toolbar/list-toolbar.visual-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,35 @@ | ||
import { SkyVisualTest } from '../../../config/utils/visual-test-commands'; | ||
import { element, by } from 'protractor'; | ||
|
||
describe('list-toolbar component', () => { | ||
|
||
it('should display toolbar with the column chooser', () => { | ||
return SkyVisualTest | ||
.setupTest('list-toolbar') | ||
.then(() => { | ||
return element(by.css('#screenshot-list-toolbar .sky-list-secondary-actions .sky-dropdown-button')) | ||
.click() as any; | ||
}) | ||
.then(() => { | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'list-toolbar', | ||
selector: '#screenshot-list-toolbar' | ||
}); | ||
}); | ||
}); | ||
|
||
it('should display toolbar correctly when a small screen', () => { | ||
return SkyVisualTest | ||
.setupTest('list-toolbar', 400) | ||
.then(() => { | ||
return element(by.css('#screenshot-list-toolbar .sky-list-secondary-actions .sky-dropdown-button')) | ||
.click() as any; | ||
}) | ||
.then(() => { | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'list-toolbar-small', | ||
selector: '#screenshot-list-toolbar' | ||
}); | ||
}); | ||
}); | ||
}); |
17 changes: 16 additions & 1 deletion
17
skyux-spa-visual-tests/src/app/sort/sort-visual.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
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
Oops, something went wrong.