Skip to content

Commit

Permalink
Merge pull request #845 from mobi/dev
Browse files Browse the repository at this point in the history
v1.13.2
  • Loading branch information
grahamhency authored Oct 13, 2021
2 parents 26e1ba6 + d0d6765 commit e9492c2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Goponents

###### Currently `v1.13.1`
###### Currently `v1.13.2`

This project houses a set of UI components for Angular 7+ and designed around the 'Go' design system.

Expand Down
2 changes: 1 addition & 1 deletion projects/go-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tangoe/goponents",
"version": "1.13.1",
"version": "1.13.2",
"repository": {
"type": "git",
"url": "git+https://github.com/mobi/goponents.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
*ngIf="multiple && items?.length"
ng-header-tmp>
<button
type="button"
(click)="onSelectAll()"
class="go-select__select-all-button"
[ngClass]="{ 'go-select__select-all-button--dark' : theme === 'dark' }"
*ngIf="showSelectAll && control.value?.length < items?.length">
Select All
</button>
<button
type="button"
(click)="onRemoveAll()"
class="go-select__select-all-button"
[ngClass]="{ 'go-select__select-all-button--dark' : theme === 'dark' }"
Expand Down
7 changes: 4 additions & 3 deletions projects/go-lib/src/lib/services/form.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ export class GoFormService {
* Each method returns a string generated by args passed by the Validator.
*/
ngValidators: { [k: string]: (...args: any) => string } = {
email: (obj: ValidationErrors): string => !obj.email ? `Must be a valid email adress.` : '',
email: (obj: ValidationErrors): string => !obj.email ? `Must be a valid email address.` : '',
max: (obj: ValidationErrors): string => `Must be less than ${obj.max}, entered ${obj.actual}`,
maxlength: (obj: ValidationErrors): string => `Must not exceed ${obj.requiredLength} characters, entered ${obj.actualLength}`,
min: (obj: ValidationErrors): string => `Must be greater than ${obj.min}, entered ${obj.actual}`,
minlength: (obj: ValidationErrors): string => `Must contain at least ${obj.requiredLength} characters, entered ${obj.actualLength}`,
required: (): string => 'Required',
requiredtrue: (): string => 'Required'
required: (): string => 'This is a required field',
requiredtrue: (): string => 'This is a required field',
pattern: () => 'Invalid Input'
};

/**
Expand Down

0 comments on commit e9492c2

Please sign in to comment.