Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbaud-conorwright committed Apr 23, 2018
2 parents 35e789d + 10b2b3d commit 636c5dd
Show file tree
Hide file tree
Showing 57 changed files with 1,861 additions and 98 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 2.12.0 (2018-04-23)

- Added select field component. [#1629](https://github.com/blackbaud/skyux2/pull/1629) (Thanks @Blackbaud-JaminQuimby)
- Added shadow and border-radius CSS classes. [#1571](https://github.com/blackbaud/skyux2/pull/1571)
- Added support for Builder `1.13.0`. [#1627](https://github.com/blackbaud/skyux2/pull/1627)
- Adjusted button styles. [#1605](https://github.com/blackbaud/skyux2/pull/1605), [#1641](https://github.com/blackbaud/skyux2/pull/1641)
- Updated text expand component to automatically expand when the `maxLength` property is set. [#1615](https://github.com/blackbaud/skyux2/pull/1615) (Thanks @Blackbaud-MikitaYankouski)
- Refactored list secondary actions to use dropdown directly. [#1600](https://github.com/blackbaud/skyux2/pull/1600)
- Removed the internal `TestUtility` helper from components in favor of Builder's `SkyAppTestUtility`. [#1598](https://github.com/blackbaud/skyux2/pull/1598)
- Fixed dropdown not scrolling in IE11. [#1642](https://github.com/blackbaud/skyux2/pull/1642) (Thanks @blackbaud-conorwright)
- Fixed dropdown scroll behavior in a scrollable container. [#1634](https://github.com/blackbaud/skyux2/pull/1634)
- Fixed custom click events to fire on the dropdown tag. [#1640](https://github.com/blackbaud/skyux2/pull/1640)

# 2.11.0 (2018-03-30)

- Added ability to resize width of flyouts. [#1539](https://github.com/blackbaud/skyux2/pull/1539) (Thanks @Blackbaud-StacyCarlos)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blackbaud/skyux",
"version": "2.11.0",
"version": "2.12.0",
"description": "SKY UX built on Angular 2",
"author": "Blackbaud, Inc.",
"homepage": "https://github.com/blackbaud/skyux2",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions skyux-spa-visual-tests/src/app/select-field/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<select-field-visual></select-field-visual>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

<div id="screenshot-select-field-single-mode">
<sky-select-field
selectMode="single"
name="single"
[ngModel]="model.single"
[data]="data">
</sky-select-field>
</div>
<div id="screenshot-select-field-multiple-mode">
<sky-select-field
selectMode="multiple"
name="multiple"
[ngModel]="model.multiple"
[data]="data">
</sky-select-field>
</div>

<button
type="button"
id="select-field-populate-selected-btn"
(click)="populateSelected()">
Populate selected
</button>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import {
Component
} from '@angular/core';

import { BehaviorSubject } from 'rxjs/BehaviorSubject';

@Component({
selector: 'select-field-visual',
templateUrl: './select-field-visual.component.html'
})
export class SelectFieldVisualComponent {
public staticData = [
{ id: '1', category: 'Pome', label: 'Apple', description: 'Anne eats apples' },
{ id: '2', category: 'Berry', label: 'Banana', description: 'Ben eats bananas' },
{ id: '3', category: 'Pome', label: 'Pear', description: 'Patty eats pears' },
{ id: '4', category: 'Berry', label: 'Grape', description: 'George eats grapes' },
{ id: '5', category: 'Berry', label: 'Banana', description: 'Becky eats bananas' },
{ id: '6', category: 'Citrus', label: 'Lemon', description: 'Larry eats lemons' },
{ id: '7', category: 'Aggregate fruit', label: 'Strawberry', description: 'Sally eats strawberries' }
];

public data = new BehaviorSubject<any[]>(this.staticData);
public model: any = {};

public populateSelected() {
this.model.multiple = [
this.staticData[1],
this.staticData[2],
this.staticData[3]
];
this.model.single = this.staticData[3];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import { SkyVisualTest } from '../../../config/utils/visual-test-commands';
import { element, by } from 'protractor';

describe('Select field', () => {
it('should match previous multiple mode screenshot', () => {
return SkyVisualTest
.setupTest('select-field')
.then(() => {
return SkyVisualTest.compareScreenshot({
screenshotName: 'select-field-multiple',
selector: '#screenshot-select-field-multiple-mode'
});
});
});

it('should match previous single mode screenshot', () => {
return SkyVisualTest
.setupTest('select-field')
.then(() => {
return SkyVisualTest.compareScreenshot({
screenshotName: 'select-field-single',
selector: '#screenshot-select-field-single-mode'
});
});
});

it('should match previous multiple mode selected screenshot', () => {
return SkyVisualTest
.setupTest('select-field')
.then(() => {
element(by.css('#select-field-populate-selected-btn')).click();
return SkyVisualTest.compareScreenshot({
screenshotName: 'select-field-multiple-selected',
selector: '#screenshot-select-field-multiple-mode'
});
});
});

it('should match previous single mode selected screenshot', () => {
return SkyVisualTest
.setupTest('select-field')
.then(() => {
element(by.css('#select-field-populate-selected-btn')).click();
return SkyVisualTest.compareScreenshot({
screenshotName: 'select-field-single-selected',
selector: '#screenshot-select-field-single-mode'
});
});
});

it('should match previous single mode picker screenshot', () => {
return SkyVisualTest
.setupTest('select-field')
.then(() => {
element(by.css('#screenshot-select-field-single-mode .sky-input-group.sky-btn')).click();
SkyVisualTest.moveCursorOffScreen();
return SkyVisualTest.compareScreenshot({
screenshotName: 'select-field-single-picker',
selector: '.sky-modal',
checkAccessibility: false // changing to false because of a modal axe error
});
})
.then(() => {
element(by.css('.sky-modal-btn-close')).click();
});
});

it('should match previous multiple mode picker screenshot', () => {
return SkyVisualTest
.setupTest('select-field')
.then(() => {
element(by.css('#screenshot-select-field-multiple-mode .sky-btn.sky-btn-default')).click();
SkyVisualTest.moveCursorOffScreen();
return SkyVisualTest.compareScreenshot({
screenshotName: 'select-field-multiple-picker',
selector: '.sky-modal',
checkAccessibility: false // changing to false because of a modal axe error
});
})
.then(() => {
element(by.css('.sky-modal-btn-close')).click();
});
});
});
4 changes: 4 additions & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import { SkyRadioModule } from './modules/radio';
import { SkyRepeaterModule } from './modules/repeater';
import { SkySearchModule } from './modules/search';
import { SkySectionedFormModule } from './modules/sectioned-form';
import { SkySelectFieldModule } from './modules/select-field';
import { SkySortModule } from './modules/sort';
import { SkyTabsModule } from './modules/tabs';
import { SkyTextExpandModule } from './modules/text-expand';
Expand Down Expand Up @@ -116,6 +117,7 @@ import { SkyWaitModule } from './modules/wait';
SkyRepeaterModule,
SkySearchModule,
SkySectionedFormModule,
SkySelectFieldModule,
SkySortModule,
SkyTabsModule,
SkyTextExpandModule,
Expand Down Expand Up @@ -179,6 +181,8 @@ export * from './modules/radio';
export * from './modules/repeater';
export * from './modules/search';
export * from './modules/sectioned-form';
export * from './modules/select-field';
export * from './modules/select-field/types';
export * from './modules/sort';
export * from './modules/tabs';
export * from './modules/text-expand';
Expand Down
3 changes: 2 additions & 1 deletion src/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import {
SkyDemoAddressFormComponent,
SkyDemoInformationFormComponent,
SkyDemoPhoneFormComponent,
SkySelectFieldDemoComponent,
SkySortDemoComponent,
SkyTabsDemoComponent,
SkyTextExpandDemoComponent,
Expand Down Expand Up @@ -140,7 +141,7 @@ const components = [
SkyDemoAddressFormComponent,
SkyDemoInformationFormComponent,
SkyDemoPhoneFormComponent,

SkySelectFieldDemoComponent,
SkySortDemoComponent,
SkyTabsDemoComponent,
SkyTextExpandDemoComponent,
Expand Down
4 changes: 2 additions & 2 deletions src/demos/autocomplete/autocomplete-demo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h3 class="sky-subsection-heading">
</div>

<button
class="sky-btn sky-btn-primary"
class="sky-btn sky-btn-default"
type="submit">
Submit
</button>
Expand Down Expand Up @@ -174,7 +174,7 @@ <h2 class="sky-section-heading">
</div>

<button
class="sky-btn sky-btn-primary"
class="sky-btn sky-btn-default"
type="submit">
Submit
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/demos/colorpicker/colorpicker-demo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,6 @@ <h3>
type="button"
class="sky-btn sky-btn-default"
(click)="toggleResetButton()">
Toggle Reset Button
Toggle reset button
</button>
</p>
10 changes: 3 additions & 7 deletions src/demos/confirm/confirm-demo.component.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
<div style="margin-bottom: 20px;">
<button
type="button"
class="sky-btn sky-btn-primary"
class="sky-btn sky-btn-default"
(click)="openOKConfirm()">
<i class="fa fa-question-circle"></i>
OK confirm
</button>

<button
type="button"
class="sky-btn sky-btn-primary"
class="sky-btn sky-btn-default"
(click)="openYesCancelConfirm()">
<i class="fa fa-question-circle"></i>
Yes/cancel confirm
</button>

<button
type="button"
class="sky-btn sky-btn-primary"
class="sky-btn sky-btn-default"
(click)="openYesNoCancelConfirm()">
<i class="fa fa-question-circle"></i>
Yes/no/cancel confirm
</button>

<button
type="button"
class="sky-btn sky-btn-default"
(click)="openCustomConfirm()">
<i class="fa fa-cog"></i>
Custom confirm
</button>
</div>
Expand Down
21 changes: 21 additions & 0 deletions src/demos/demo.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import {
SkyRepeaterDemoComponent,
SkySearchDemoComponent,
SkySectionedFormDemoComponent,
SkySelectFieldDemoComponent,
SkySortDemoComponent,
SkyTabsDemoComponent,
SkyTextExpandDemoComponent,
Expand Down Expand Up @@ -882,6 +883,26 @@ export class SkyDemoService {
}
]
},
{
name: 'Select field',
component: SkySelectFieldDemoComponent,
files: [
{
name: 'select-field-demo.component.html',
fileContents: require('!!raw-loader!./select-field/select-field-demo.component.html')
},
{
name: 'select-field-demo.component.scss',
fileContents: require('!!raw-loader!./select-field/select-field-demo.component.scss')
},
{
name: 'select-field-demo.component.ts',
fileContents: require('!!raw-loader!./select-field/select-field-demo.component.ts'),
componentName: 'SkySelectFieldDemoComponent',
bootstrapSelector: 'sky-select-field-demo'
}
]
},
{
name: 'Sort',
component: SkySortDemoComponent,
Expand Down
1 change: 1 addition & 0 deletions src/demos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export * from './radio';
export * from './repeater';
export * from './search';
export * from './sectioned-form';
export * from './select-field';
export * from './sort';
export * from './tabs';
export * from './text-expand';
Expand Down
4 changes: 2 additions & 2 deletions src/demos/link-records/link-records-demo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h3>
</sky-link-records>

<button
class="sky-btn sky-btn-primary"
class="sky-btn sky-btn-default"
(click)="showResults()">
Show Results
</button>
Expand Down Expand Up @@ -89,7 +89,7 @@ <h3>
</ng-template>

<button
class="sky-btn sky-btn-primary"
class="sky-btn sky-btn-default"
(click)="showResults()">
Show Results
</button>
2 changes: 1 addition & 1 deletion src/demos/list/list-demo.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<button
style="margin-bottom: 5px;"
class="sky-btn sky-btn-primary"
class="sky-btn sky-btn-default"
(click)="changeData()">
Change data
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/demos/lookup/lookup-demo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</div>

<button
class="sky-btn sky-btn-primary"
class="sky-btn sky-btn-default"
type="submit">
Submit
</button>
Expand Down
12 changes: 6 additions & 6 deletions src/demos/modal/modal-demo.component.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('defaultModal')">
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('defaultModal')">
Open modal
</button>

<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('smallModal')">
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('smallModal')">
Open small modal
</button>

<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('largeModal')">
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('largeModal')">
Open large modal
</button>

<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('fullScreenModal')">
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('fullScreenModal')">
Open full-screen modal
</button>

<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('tiledModal')">
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('tiledModal')">
Open tiled modal
</button>

<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('withHelpHeader')">
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('withHelpHeader')">
Open modal with help header
</button>
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ <h3>Sectioned form — Index: {{ activeIndexDisplay }}</h3>
</div>

<h3>With a modal</h3>
<button type="button" class="sky-btn sky-btn-primary" (click)="openModal()">
<button type="button" class="sky-btn sky-btn-default" (click)="openModal()">
Open sectioned form
</button>
1 change: 1 addition & 0 deletions src/demos/select-field/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './select-field-demo.component';
Loading

0 comments on commit 636c5dd

Please sign in to comment.