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.
Merging master branch, Release 2.0.0-beta.2 (#826)
* AppSettings and config files docs. * appSettings and config files docs. * Doc tweaks. * Code sample cleanup * Max height transition (#804) * update builder version for skyux documentation * pass string to expandmode * Update container for component search * Use class instead of inline styles * work on text expand firefox bug * continue work on firefox transitions * Adjust text expand animation for firefox * Update tests for new text expand animation * Fix tslint errors * Update master plunker to point to beta release (#812) * List paging first page (#814) * Only set page number on search when paging exists * Add tests for search paging bug * Updates for beta.32 (#815) * Adding Autonumeric Pipe/Module (#792) * Adding Autonumeric * Fixed Test * Changed name from SkyAutonumeric to SkyNumeric * Changing formatting * Changes per comments, OptionsObject used * Updated wording * Email validation (#810) * created email validation ts * email validation scss * email validation code and test start * email validator testing files * last lint error fixed * component page summary * error message/red halo doesn't show until lost focus * Changes from Patrick * Changes from Patrick (took care of errors) * added form control for demo input box consistency * Fixed lint errors * Added sky-form-control to demo/removed onInit from module code * Lint errors * Add note about serving in Windows 10 with IE11 or Edge. (#820) * Add note about serving in Windows 10 with IE11 or Edge. * Rework note based on feedback from Bobby. * Updates for beta.33 (#825) * Fixed linting errors * Update package.json * Dont run skyux build for now * Updated travis script * Readded build * Moved remove commands * Updated version of builder * Updated changelog and version
- Loading branch information
1 parent
963c999
commit 25d137f
Showing
28 changed files
with
875 additions
and
26 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
12 changes: 12 additions & 0 deletions
12
src/app/components/email-validation/email-validation-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,12 @@ | ||
<div style="max-width: 50%"> | ||
<input | ||
[(ngModel)]="emailValidator" | ||
class="sky-form-control" | ||
skyEmailValidation | ||
#email="ngModel"/> | ||
<div class="sky-error-label" *ngIf="email.errors && email.errors.skyEmail && (email.dirty && email.touched)"> | ||
<div [hidden]="!email.errors.skyEmail.invalid"> | ||
Please enter valid email with format [email protected] | ||
</div> | ||
</div> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
src/app/components/email-validation/email-validation-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,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sky-email-validation-demo', | ||
templateUrl: './email-validation-demo.component.html' | ||
}) | ||
export class SkyEmailValidationDemoComponent { | ||
public emailValidator: string; | ||
} |
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 @@ | ||
<sky-demo-page title="Email Validation"> | ||
<sky-demo-page-summary> | ||
The email validation module allows the user to validate email format. | ||
</sky-demo-page-summary> | ||
|
||
<sky-demo-page-properties sectionHeading="Email validation input directive properties"> | ||
<sky-demo-page-property propertyName="skyEmailValidation"> | ||
When this attribute is placed on an input element, the input with validation properties is created. The error message will display if the input is not in the correct format. This directive will use <code>NgModel</code> for binding data. | ||
</sky-demo-page-property> | ||
</sky-demo-page-properties> | ||
|
||
<sky-demo-page-example> | ||
<sky-email-validation-demo></sky-email-validation-demo> | ||
<sky-demo-page-code demoName="Email Validation"></sky-demo-page-code> | ||
</sky-demo-page-example> | ||
|
||
</sky-demo-page> |
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,56 @@ | ||
<sky-demo-page title="Numeric"> | ||
<sky-demo-page-summary> | ||
The numeric pipe formats numbers to a shortened value if it is 1000 or more to a rounded number plus an abbreviation character. K for thousands, M for millions, B for billions and T for trillion. It will also format the shortened number as a currency as an option, with proper localization including currency symbol placement. | ||
<br/><br/> | ||
Pipe Usage: number_expression | skyNumeric[:NumericOptions] ]] | ||
<br/> | ||
Note: When creating the NumericOptions object in the template, You MUST have the space between the end of the options object bracket and the closing brackets for the pipe or it won't work. See HTML code file below for examples. | ||
<br/><br/> | ||
It can also be imported as SkyNumericService and the formatNumber method called. It uses a new NumericOptions class, which contains the three properties. Create a new instance of the class with its parameters set and pass it in as the NumericOptions parameter. | ||
<br/> | ||
Method Usage: this.skyNumeric.formatNumber(value, NumericOptions) | ||
</sky-demo-page-summary> | ||
|
||
<sky-demo-page-properties> | ||
<sky-demo-page-property | ||
propertyName="value" | ||
> | ||
Number. This is the number_expression to be shortened. | ||
</sky-demo-page-property> | ||
<sky-demo-page-property | ||
propertyName="Numeric Options" | ||
isOptional="true" | ||
> | ||
NumericOptions object. This object contains arguments for the following options: | ||
</sky-demo-page-property> | ||
<div style="margin-left: 40px"> | ||
<sky-demo-page-property | ||
propertyName="digits" | ||
defaultValue="1" | ||
isOptional="true" | ||
> | ||
Number. Specifies the maximum number of digits after the decimal separator. | ||
</sky-demo-page-property> | ||
<sky-demo-page-property | ||
propertyName="format" | ||
defaultValue="number" | ||
isOptional="true" | ||
> | ||
String. Specifies if it should be formatted as currency. Options are 'currency' or 'number'. | ||
</sky-demo-page-property> | ||
<sky-demo-page-property | ||
propertyName="iso" | ||
defaultValue="USD" | ||
isOptional="true" | ||
> | ||
String. Specifies the ISO4217 currency code to be used for currency formatting. | ||
</sky-demo-page-property> | ||
</div> | ||
</sky-demo-page-properties> | ||
|
||
<sky-demo-page-example> | ||
<sky-numeric-demo></sky-numeric-demo> | ||
<sky-demo-page-code demoName="Numeric"></sky-demo-page-code> | ||
</sky-demo-page-example> | ||
|
||
</sky-demo-page> |
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,167 @@ | ||
<sky-definition-list labelWidth="200px"> | ||
<sky-definition-list-heading> | ||
This is a sample of numeric formatting. | ||
</sky-definition-list-heading> | ||
<sky-definition-list-content> | ||
<p> | ||
<sky-definition-list-label> | ||
1 with zero digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1 | skyNumeric:{digits: 0} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1000 with zero digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1000 | skyNumeric:{digits: 0} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1000 with one digit: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1000 | skyNumeric}} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1100 with zero digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1100 | skyNumeric:{digits: 0} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1100 with one digit: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1100 | skyNumeric}} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1500 with zero digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1500 | skyNumeric:{digits: 0} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1500 with one digit: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1500 | skyNumeric}} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1000000 with any digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1000000 | skyNumeric:{digits: 0} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1000000000 with any digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1000000000 | skyNumeric:{digits: 0} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1000000000000 with any digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1000000000000 | skyNumeric:{digits: 0} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1234000 with 2 digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1234000 | skyNumeric:{digits: 2} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1235000000 with 2 digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1235000000 | skyNumeric:{digits: 2} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1.45 with 1 digit: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1.45 | skyNumeric}} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1234567 with 1 digit: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1234567 | skyNumeric}} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
15.50 as US dollar currency with 2 digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{15.50 | skyNumeric:{digits: 2, format: 'currency', iso: 'USD'} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
-15.50 as US dollar currency with 2 digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{-15.50 | skyNumeric:{digits: 2, format: 'currency', iso: 'USD'} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1234567 as Euro currency with 2 digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1234567 | skyNumeric:{digits: 2, format: 'currency', iso: 'EUR'} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1450 as UK Pound currency with 2 digits: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1450 | skyNumeric:{digits: 2, format: 'currency', iso: 'GBP'} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1750 as Hong Kong Dollar currency with 1 digit: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1750 | skyNumeric:{digits: 1, format: 'currency', iso: 'HKD'} }} | ||
</sky-definition-list-value> | ||
</p> | ||
<p> | ||
<sky-definition-list-label> | ||
1234567 as Japanese Yen currency with 3 digit: | ||
</sky-definition-list-label> | ||
<sky-definition-list-value> | ||
{{1234567 | skyNumeric:{digits: 3, format: 'currency', iso: 'JPY'} }} | ||
</sky-definition-list-value> | ||
</p> | ||
</sky-definition-list-content> | ||
</sky-definition-list> |
Oops, something went wrong.