-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds the `t`, `df`, `nf`, and `rt` binding behavior. The e2e tests are addd for all. THe integration tests sare added only for `t` binding behavior. For the rest, the test will be added in future commits.
- Loading branch information
Showing
19 changed files
with
225 additions
and
45 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
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,11 @@ | ||
import { bindingBehavior, IScope, LifecycleFlags } from '@aurelia/runtime'; | ||
import { BindingWithBehavior, createIntlFormatValueConverterExpression } from '../utils'; | ||
import { dateFormatValueConverterName } from './date-format-value-converter'; | ||
|
||
@bindingBehavior(dateFormatValueConverterName) | ||
export class DateFormatBindingBehavior { | ||
|
||
public bind(flags: LifecycleFlags, scope: IScope, binding: BindingWithBehavior) { | ||
createIntlFormatValueConverterExpression(dateFormatValueConverterName, binding); | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './date-format-binding-behavior'; | ||
export * from './date-format-value-converter'; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './number-format-binding-behavior'; | ||
export * from './number-format-value-converter'; |
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,11 @@ | ||
import { bindingBehavior, IScope, LifecycleFlags } from '@aurelia/runtime'; | ||
import { BindingWithBehavior, createIntlFormatValueConverterExpression } from '../utils'; | ||
import { numberFormatValueConverterName } from './number-format-value-converter'; | ||
|
||
@bindingBehavior(numberFormatValueConverterName) | ||
export class NumberFormatBindingBehavior { | ||
|
||
public bind(flags: LifecycleFlags, scope: IScope, binding: BindingWithBehavior) { | ||
createIntlFormatValueConverterExpression(numberFormatValueConverterName, binding); | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './relative-time-binding-behavior'; | ||
export * from './relative-time-value-converter'; |
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,11 @@ | ||
import { bindingBehavior, IScope, LifecycleFlags } from '@aurelia/runtime'; | ||
import { BindingWithBehavior, createIntlFormatValueConverterExpression } from '../utils'; | ||
import { relativeTimeValueConverterName } from './relative-time-value-converter'; | ||
|
||
@bindingBehavior(relativeTimeValueConverterName) | ||
export class RelativeTimeBindingBehavior { | ||
|
||
public bind(flags: LifecycleFlags, scope: IScope, binding: BindingWithBehavior) { | ||
createIntlFormatValueConverterExpression(relativeTimeValueConverterName, binding); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './translation-renderer'; | ||
export * from './translation-parameters-renderer'; | ||
export * from './translation-binding'; | ||
export * from './translation-binding-behavior'; | ||
export * from './translation-parameters-renderer'; | ||
export * from './translation-renderer'; | ||
export * from './translation-value-converter'; |
Oops, something went wrong.