Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
robisim74 committed May 21, 2021
1 parent 2114ad2 commit e50ec7a
Show file tree
Hide file tree
Showing 13 changed files with 164 additions and 109 deletions.
34 changes: 17 additions & 17 deletions docs/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,35 +48,35 @@
</ol>
<ul class="dependencies-list">
<li>
<b>@angular/animations</b> : 11.0.2</li>
<b>@angular/animations</b> : 12.0.0</li>
<li>
<b>@angular/common</b> : 11.0.2</li>
<b>@angular/common</b> : 12.0.0</li>
<li>
<b>@angular/compiler</b> : 11.0.2</li>
<b>@angular/compiler</b> : 12.0.0</li>
<li>
<b>@angular/core</b> : 11.0.2</li>
<b>@angular/core</b> : 12.0.0</li>
<li>
<b>@angular/forms</b> : 11.0.2</li>
<b>@angular/forms</b> : 12.0.0</li>
<li>
<b>@angular/platform-browser</b> : 11.0.2</li>
<b>@angular/platform-browser</b> : 12.0.0</li>
<li>
<b>@angular/platform-browser-dynamic</b> : 11.0.2</li>
<b>@angular/platform-browser-dynamic</b> : 12.0.0</li>
<li>
<b>@angular/platform-server</b> : 11.0.2</li>
<b>@angular/platform-server</b> : 12.0.0</li>
<li>
<b>@angular/router</b> : 11.0.2</li>
<b>@angular/router</b> : 12.0.0</li>
<li>
<b>@formatjs/intl-displaynames</b> : ^4.0.1</li>
<b>@formatjs/intl-displaynames</b> : ^5.1.0</li>
<li>
<b>@formatjs/intl-getcanonicallocales</b> : ^1.5.2</li>
<b>@formatjs/intl-getcanonicallocales</b> : ^1.6.0</li>
<li>
<b>@formatjs/intl-locale</b> : ^2.4.8</li>
<b>@formatjs/intl-locale</b> : ^2.4.26</li>
<li>
<b>@formatjs/intl-pluralrules</b> : ^4.0.0</li>
<b>@formatjs/intl-pluralrules</b> : ^4.0.20</li>
<li>
<b>@formatjs/intl-relativetimeformat</b> : ^8.0.0</li>
<b>@formatjs/intl-relativetimeformat</b> : ^9.1.0</li>
<li>
<b>@nguniversal/express-engine</b> : 11.0.0</li>
<b>@nguniversal/express-engine</b> : 12.0.0</li>
<li>
<b>express</b> : ^4.17.1</li>
<li>
Expand All @@ -86,9 +86,9 @@
<li>
<b>rxjs</b> : ^6.5.4</li>
<li>
<b>tslib</b> : ^2.0.0</li>
<b>tslib</b> : ^2.2.0</li>
<li>
<b>zone.js</b> : 0.10.3</li>
<b>zone.js</b> : ~0.11.4</li>
</ul>


Expand Down
9 changes: 7 additions & 2 deletions docs/directives/L10nDateDirective.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,14 @@ <h3 id="inputs">Inputs</h3>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
<i>Type : </i> <code>string | undefined</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>undefined</code>
</td>
</tr>
<tr>
<td class="col-md-2" colspan="2">
Expand Down Expand Up @@ -457,7 +462,7 @@ <h3 id="accessors">

@Input() public options: any;

@Input() public timezone: string;
@Input() public timezone: string | undefined &#x3D; undefined;

constructor(
protected el: ElementRef,
Expand Down
9 changes: 7 additions & 2 deletions docs/directives/L10nNumberDirective.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,14 @@ <h3 id="inputs">Inputs</h3>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
<i>Type : </i> <code>string | undefined</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>undefined</code>
</td>
</tr>
<tr>
<td class="col-md-2" colspan="2">
Expand Down Expand Up @@ -457,7 +462,7 @@ <h3 id="accessors">

@Input() public options: any;

@Input() public currency: string;
@Input() public currency: string | undefined &#x3D; undefined;

constructor(
protected el: ElementRef,
Expand Down
4 changes: 2 additions & 2 deletions docs/directives/L10nTimeAgoDirective.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ <h3 id="inputs">Inputs</h3>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="../miscellaneous/typealiases.html#Unit" target="_self" >Unit</a></code>
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>

</td>
</tr>
Expand Down Expand Up @@ -456,7 +456,7 @@ <h3 id="accessors">
this.options &#x3D; options;
}

@Input() public unit: Unit;
@Input() public unit: any;

@Input() public options: any;

Expand Down
38 changes: 29 additions & 9 deletions docs/directives/L10nValidateDateDirective.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,14 @@ <h3 id="inputs">Inputs</h3>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
<i>Type : </i> <code>string | undefined</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>undefined</code>
</td>
</tr>
<tr>
<td class="col-md-2" colspan="2">
Expand All @@ -286,9 +291,14 @@ <h3 id="inputs">Inputs</h3>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" target="_blank" >Date</a></code>
<i>Type : </i> <code>Date | undefined</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>undefined</code>
</td>
</tr>
<tr>
<td class="col-md-2" colspan="2">
Expand All @@ -307,9 +317,14 @@ <h3 id="inputs">Inputs</h3>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" target="_blank" >Date</a></code>
<i>Type : </i> <code>Date | undefined</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>undefined</code>
</td>
</tr>
<tr>
<td class="col-md-2" colspan="2">
Expand Down Expand Up @@ -523,9 +538,14 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://angular.io/api/forms/ValidatorFn" target="_blank" >ValidatorFn</a></code>
<i>Type : </i> <code>ValidatorFn | null</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>null</code>
</td>
</tr>
<tr>
<td class="col-md-4">
Expand Down Expand Up @@ -661,12 +681,12 @@ <h3 id="accessors">

@Input() public options: any;

@Input() public minDate: Date;
@Input() public maxDate: Date;
@Input() public minDate: Date | undefined &#x3D; undefined;
@Input() public maxDate: Date | undefined &#x3D; undefined;

@Input() public language: string;
@Input() public language: string | undefined &#x3D; undefined;

protected validator: ValidatorFn;
protected validator: ValidatorFn | null &#x3D; null;

constructor(protected validation: L10nValidation) { }

Expand All @@ -679,7 +699,7 @@ <h3 id="accessors">
}

public validate(c: AbstractControl): ValidationErrors | null {
return this.validator(c);
return this.validator ? this.validator(c) : null;
}

}
Expand Down
38 changes: 29 additions & 9 deletions docs/directives/L10nValidateNumberDirective.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,14 @@ <h3 id="inputs">Inputs</h3>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
<i>Type : </i> <code>string | undefined</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>undefined</code>
</td>
</tr>
<tr>
<td class="col-md-2" colspan="2">
Expand All @@ -286,9 +291,14 @@ <h3 id="inputs">Inputs</h3>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
<i>Type : </i> <code>number | undefined</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>undefined</code>
</td>
</tr>
<tr>
<td class="col-md-2" colspan="2">
Expand All @@ -307,9 +317,14 @@ <h3 id="inputs">Inputs</h3>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
<i>Type : </i> <code>number | undefined</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>undefined</code>
</td>
</tr>
<tr>
<td class="col-md-2" colspan="2">
Expand Down Expand Up @@ -523,9 +538,14 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://angular.io/api/forms/ValidatorFn" target="_blank" >ValidatorFn</a></code>
<i>Type : </i> <code>ValidatorFn | null</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>null</code>
</td>
</tr>
<tr>
<td class="col-md-4">
Expand Down Expand Up @@ -661,12 +681,12 @@ <h3 id="accessors">

@Input() public options: any;

@Input() public minValue: number;
@Input() public maxValue: number;
@Input() public minValue: number | undefined &#x3D; undefined;
@Input() public maxValue: number | undefined &#x3D; undefined;

@Input() public language: string;
@Input() public language: string | undefined &#x3D; undefined;

protected validator: ValidatorFn;
protected validator: ValidatorFn | null &#x3D; null;

constructor(protected validation: L10nValidation) { }

Expand All @@ -679,7 +699,7 @@ <h3 id="accessors">
}

public validate(c: AbstractControl): ValidationErrors | null {
return this.validator(c);
return this.validator ? this.validator(c) : null;
}

}
Expand Down
7 changes: 6 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="content-data">

<h1 id="angular-l10n">Angular l10n</h1>
<p><a href="https://travis-ci.org/robisim74/angular-l10n"><img src="https://travis-ci.org/robisim74/angular-l10n.svg?branch=master" alt="Build Status" class="img-responsive"></a> <a href="https://badge.fury.io/js/angular-l10n"><img src="https://badge.fury.io/js/angular-l10n.svg" alt="npm version" class="img-responsive"></a> <a href="https://www.npmjs.com/package/angular-l10n"><img src="https://img.shields.io/npm/dm/angular-l10n.svg" alt="npm" class="img-responsive"></a> <a href="https://www.npmjs.com/package/angular-l10n"><img src="https://img.shields.io/npm/l/angular-l10n.svg" alt="npm" class="img-responsive"></a></p>
<p><img src="https://github.com/robisim74/angular-l10n/workflows/Node.js%20CI/badge.svg" alt="Node.js CI" class="img-responsive"> <a href="https://badge.fury.io/js/angular-l10n"><img src="https://badge.fury.io/js/angular-l10n.svg" alt="npm version" class="img-responsive"></a> <a href="https://www.npmjs.com/package/angular-l10n"><img src="https://img.shields.io/npm/dm/angular-l10n.svg" alt="npm" class="img-responsive"></a> <a href="https://www.npmjs.com/package/angular-l10n"><img src="https://img.shields.io/npm/l/angular-l10n.svg" alt="npm" class="img-responsive"></a></p>
<blockquote>
<p>An Angular library to translate texts, dates and numbers</p>
</blockquote>
Expand Down Expand Up @@ -401,6 +401,11 @@ <h2 id="server-side-rendering">Server Side Rendering</h2>
</ul>
<h2 id="previous-versions">Previous versions</h2>
<ul>
<li><p><strong>Angular v11 (Angular l10n v11.1.0)</strong></p>
<ul>
<li><a href="https://github.com/robisim74/angular-l10n/tree/angular_v11">Branch</a></li>
</ul>
</li>
<li><p><strong>Angular v10 (Angular l10n v10.1.2)</strong></p>
<ul>
<li><a href="https://github.com/robisim74/angular-l10n/tree/angular_v10">Branch</a></li>
Expand Down
2 changes: 1 addition & 1 deletion docs/injectables/L10nTranslationService.html
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ <h3 id="inputs">
*/
public getLanguageDirection(language &#x3D; this.locale.language): &#x27;ltr&#x27; | &#x27;rtl&#x27; | undefined {
const schema &#x3D; getSchema(this.config.schema, language, this.config.format);
if (schema) return schema.dir;
return schema ? schema.dir : undefined;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions docs/js/search/search_index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/modules/L10nIntlModule.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@
<title>cluster_L10nIntlModule</title>
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-268 2214,-268 2214,-70 8,-70"/>
</g>
<g id="clust17" class="cluster">
<title>cluster_L10nIntlModule_exports</title>
<polygon fill="none" stroke="black" points="82,-208 82,-260 2143,-260 2143,-208 82,-208"/>
</g>
<g id="clust2" class="cluster">
<title>cluster_L10nIntlModule_declarations</title>
<polygon fill="none" stroke="black" points="188,-78 188,-130 2206,-130 2206,-78 188,-78"/>
</g>
<g id="clust17" class="cluster">
<title>cluster_L10nIntlModule_exports</title>
<polygon fill="none" stroke="black" points="82,-208 82,-260 2143,-260 2143,-208 82,-208"/>
</g>
<g id="clust19" class="cluster">
<title>cluster_L10nIntlModule_providers</title>
<polygon fill="none" stroke="black" points="16,-78 16,-130 180,-130 180,-78 16,-78"/>
Expand Down
8 changes: 4 additions & 4 deletions docs/modules/L10nIntlModule/dependencies.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e50ec7a

Please sign in to comment.