diff --git a/docs/dependencies.html b/docs/dependencies.html index a018a0f3..c146e7a1 100644 --- a/docs/dependencies.html +++ b/docs/dependencies.html @@ -48,35 +48,35 @@ diff --git a/docs/directives/L10nDateDirective.html b/docs/directives/L10nDateDirective.html index cd8760d6..f6d30e9a 100644 --- a/docs/directives/L10nDateDirective.html +++ b/docs/directives/L10nDateDirective.html @@ -277,9 +277,14 @@

Inputs

- Type : string + Type : string | undefined + + + + Default value : undefined + @@ -457,7 +462,7 @@

@Input() public options: any; - @Input() public timezone: string; + @Input() public timezone: string | undefined = undefined; constructor( protected el: ElementRef, diff --git a/docs/directives/L10nNumberDirective.html b/docs/directives/L10nNumberDirective.html index 17ec8ce4..c7003b58 100644 --- a/docs/directives/L10nNumberDirective.html +++ b/docs/directives/L10nNumberDirective.html @@ -235,9 +235,14 @@

Inputs

- Type : string + Type : string | undefined + + + + Default value : undefined + @@ -457,7 +462,7 @@

@Input() public options: any; - @Input() public currency: string; + @Input() public currency: string | undefined = undefined; constructor( protected el: ElementRef, diff --git a/docs/directives/L10nTimeAgoDirective.html b/docs/directives/L10nTimeAgoDirective.html index 99c021d1..16788329 100644 --- a/docs/directives/L10nTimeAgoDirective.html +++ b/docs/directives/L10nTimeAgoDirective.html @@ -277,7 +277,7 @@

Inputs

- Type : Unit + Type : any @@ -456,7 +456,7 @@

this.options = options; } - @Input() public unit: Unit; + @Input() public unit: any; @Input() public options: any; diff --git a/docs/directives/L10nValidateDateDirective.html b/docs/directives/L10nValidateDateDirective.html index a81072e0..c6c9d20c 100644 --- a/docs/directives/L10nValidateDateDirective.html +++ b/docs/directives/L10nValidateDateDirective.html @@ -265,9 +265,14 @@

Inputs

- Type : string + Type : string | undefined + + + + Default value : undefined + @@ -286,9 +291,14 @@

Inputs

- Type : Date + Type : Date | undefined + + + + Default value : undefined + @@ -307,9 +317,14 @@

Inputs

- Type : Date + Type : Date | undefined + + + + Default value : undefined + @@ -523,9 +538,14 @@

- Type : ValidatorFn + Type : ValidatorFn | null + + + + Default value : null + @@ -661,12 +681,12 @@

@Input() public options: any; - @Input() public minDate: Date; - @Input() public maxDate: Date; + @Input() public minDate: Date | undefined = undefined; + @Input() public maxDate: Date | undefined = undefined; - @Input() public language: string; + @Input() public language: string | undefined = undefined; - protected validator: ValidatorFn; + protected validator: ValidatorFn | null = null; constructor(protected validation: L10nValidation) { } @@ -679,7 +699,7 @@

} public validate(c: AbstractControl): ValidationErrors | null { - return this.validator(c); + return this.validator ? this.validator(c) : null; } } diff --git a/docs/directives/L10nValidateNumberDirective.html b/docs/directives/L10nValidateNumberDirective.html index 87f98325..d4642eb5 100644 --- a/docs/directives/L10nValidateNumberDirective.html +++ b/docs/directives/L10nValidateNumberDirective.html @@ -265,9 +265,14 @@

Inputs

- Type : string + Type : string | undefined + + + + Default value : undefined + @@ -286,9 +291,14 @@

Inputs

- Type : number + Type : number | undefined + + + + Default value : undefined + @@ -307,9 +317,14 @@

Inputs

- Type : number + Type : number | undefined + + + + Default value : undefined + @@ -523,9 +538,14 @@

- Type : ValidatorFn + Type : ValidatorFn | null + + + + Default value : null + @@ -661,12 +681,12 @@

@Input() public options: any; - @Input() public minValue: number; - @Input() public maxValue: number; + @Input() public minValue: number | undefined = undefined; + @Input() public maxValue: number | undefined = undefined; - @Input() public language: string; + @Input() public language: string | undefined = undefined; - protected validator: ValidatorFn; + protected validator: ValidatorFn | null = null; constructor(protected validation: L10nValidation) { } @@ -679,7 +699,7 @@

} public validate(c: AbstractControl): ValidationErrors | null { - return this.validator(c); + return this.validator ? this.validator(c) : null; } } diff --git a/docs/index.html b/docs/index.html index 8d4179a2..915cf74e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,7 +31,7 @@

Angular l10n

-

Build Status npm version npm npm

+

Node.js CI npm version npm npm

An Angular library to translate texts, dates and numbers

@@ -401,6 +401,11 @@

Server Side Rendering

Previous versions