Skip to content

Commit

Permalink
CI - Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and Netgrif DevOps committed Dec 5, 2022
1 parent e171ec2 commit 741ed3c
Show file tree
Hide file tree
Showing 694 changed files with 4,232 additions and 4,141 deletions.
100 changes: 55 additions & 45 deletions docs/compodoc/components-core/changelog.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,16 @@ <h3 id="inputs">
<i>Default value : </i><code>600</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Inherited from <code><a href="../classes/EnumerationField.html" target="_self" >EnumerationField</a></code>
</div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/dynamic-enumeration-field.ts:13</a></div>
<div class="io-line">Defined in <code><a href="../classes/EnumerationField.html#source" target="_self" >EnumerationField:13</a></code>
</div>
</td>
</tr>

Expand Down
153 changes: 98 additions & 55 deletions docs/compodoc/components-core/classes/EnumerationField.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ <h6><b>Properties</b></h6>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<span class="modifier">Protected</span>
<a href="#REQUEST_DEBOUNCE_TIME" >REQUEST_DEBOUNCE_TIME</a>
</li>
<li>
<span class="modifier">Protected</span>
<a href="#_blockSubscription" >_blockSubscription</a>
Expand Down Expand Up @@ -144,6 +148,10 @@ <h6><b>Methods</b></h6>
<span class="modifier">Protected</span>
<a href="#resolveFormControlValidators" >resolveFormControlValidators</a>
</li>
<li>
<span class="modifier">Public</span>
<a href="#valueChanges" >valueChanges</a>
</li>
<li>
<span class="modifier">Protected</span>
<a href="#_determineFormControlValidity" >_determineFormControlValidity</a>
Expand Down Expand Up @@ -216,10 +224,6 @@ <h6><b>Methods</b></h6>
<span class="modifier">Protected</span>
<a href="#updateFormControlState" >updateFormControlState</a>
</li>
<li>
<span class="modifier">Public</span>
<a href="#valueChanges" >valueChanges</a>
</li>
<li>
<span class="modifier">Protected</span>
<a href="#valueEquality" >valueEquality</a>
Expand Down Expand Up @@ -268,7 +272,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/enumeration-field.ts:19</a></div>
<div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/enumeration-field.ts:22</a></div>
</td>
</tr>

Expand Down Expand Up @@ -442,6 +446,38 @@ <h3 id="constructor">Constructor</h3>
<h3 id="inputs">
Properties
</h3>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="REQUEST_DEBOUNCE_TIME"></a>
<span class="name">
<span class="modifier">Protected</span>
<span ><b>REQUEST_DEBOUNCE_TIME</b></span>
<a href="#REQUEST_DEBOUNCE_TIME"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</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>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>600</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/enumeration-field.ts:22</a></div>
</td>
</tr>


</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
Expand Down Expand Up @@ -844,7 +880,7 @@ <h3 id="methods">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <code><a href="../classess/DataField.html#source" target="_self" >DataField:40</a></code>
<div class="io-line">Defined in <code><a href="../classess/DataField.html#source" target="_self" >DataField:47</a></code>
</div>
</td>
</tr>
Expand All @@ -861,6 +897,51 @@ <h3 id="methods">
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="valueChanges"></a>
<span class="name">
<span class="modifier">Public</span>
<span ><b>valueChanges</b></span>
<a href="#valueChanges"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<span class="modifier-icon icon ion-ios-reset"></span>
<code>valueChanges()</code>
</td>
</tr>


<tr>
<td class="col-md-4">
<div class="io-line">Inherited from <code><a href="../classess/DataField.html" target="_self" >DataField</a></code>
</div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <code><a href="../classess/DataField.html#source" target="_self" >DataField:43</a></code>
</div>
</td>
</tr>


<tr>
<td class="col-md-4">

<div class="io-description">
<b>Returns : </b> <code>Observable&lt;string&gt;</code>

</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
Expand Down Expand Up @@ -2021,51 +2102,6 @@ <h3 id="methods">
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="valueChanges"></a>
<span class="name">
<span class="modifier">Public</span>
<span ><b>valueChanges</b></span>
<a href="#valueChanges"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<span class="modifier-icon icon ion-ios-reset"></span>
<code>valueChanges()</code>
</td>
</tr>


<tr>
<td class="col-md-4">
<div class="io-line">Inherited from <code><a href="../classess/DataField.html" target="_self" >DataField</a></code>
</div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <code><a href="../classess/DataField.html#source" target="_self" >DataField:318</a></code>
</div>
</td>
</tr>


<tr>
<td class="col-md-4">

<div class="io-description">
<b>Returns : </b> <code>Observable&lt;T&gt;</code>

</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
Expand Down Expand Up @@ -2272,7 +2308,7 @@ <h3 id="accessors">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/enumeration-field.ts:32</a></div>
<div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/enumeration-field.ts:35</a></div>
</td>
</tr>

Expand All @@ -2283,7 +2319,7 @@ <h3 id="accessors">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/enumeration-field.ts:28</a></div>
<div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/enumeration-field.ts:31</a></div>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -2341,7 +2377,7 @@ <h3 id="accessors">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/enumeration-field.ts:36</a></div>
<div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">projects/netgrif-components-core/src/lib/data-fields/enumeration-field/models/enumeration-field.ts:39</a></div>
</td>
</tr>

Expand All @@ -2359,6 +2395,8 @@ <h3 id="accessors">
import {FieldTypeResource} from &#x27;../../../task-content/model/field-type-resource&#x27;;
import {Component} from &#x27;../../models/component&#x27;;
import {Validation} from &#x27;../../models/validation&#x27;;
import {Observable} from &quot;rxjs&quot;;
import {debounceTime} from &quot;rxjs/operators&quot;;

export interface EnumerationFieldValue {
key: string;
Expand All @@ -2371,6 +2409,7 @@ <h3 id="accessors">
}

export class EnumerationField extends DataField&lt;string&gt; {
protected REQUEST_DEBOUNCE_TIME &#x3D; 600;

constructor(stringId: string, title: string, value: string,
protected _choices: Array&lt;EnumerationFieldValue&gt;, behavior: Behavior, placeholder?: string, description?: string,
Expand All @@ -2380,7 +2419,7 @@ <h3 id="accessors">
}

set choices(choices: Array&lt;EnumerationFieldValue&gt;) {
this._choices &#x3D; choices;
this._choices &#x3D; choices;
}

get choices(): Array&lt;EnumerationFieldValue&gt; {
Expand All @@ -2391,6 +2430,10 @@ <h3 id="accessors">
return this._fieldType;
}

public valueChanges(): Observable&lt;string&gt; {
return this._value.pipe(debounceTime(this.REQUEST_DEBOUNCE_TIME));
}

protected resolveFormControlValidators(): Array&lt;ValidatorFn&gt; {
const result &#x3D; [];

Expand Down
31 changes: 19 additions & 12 deletions docs/compodoc/components-core/classes/TaskConst.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="10" class="link-to-prism">projects/netgrif-components-core/src/lib/view/task-view/abstract-single-task-view.component.ts:10</a></div>
<div class="io-line">Defined in <a href="" data-line="9" class="link-to-prism">projects/netgrif-components-core/src/lib/view/task-view/abstract-single-task-view.component.ts:9</a></div>
</td>
</tr>

Expand All @@ -152,10 +152,9 @@ <h3 id="inputs">
<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, Input, OnDestroy } from &#x27;@angular/core&#x27;;
import { AbstractViewWithHeadersComponent } from &#x27;../abstract/view-with-headers&#x27;;
import { Observable, Subject, Subscription } from &#x27;rxjs&#x27;;
import { Observable, ReplaySubject, Subscription } from &#x27;rxjs&#x27;;
import { TaskPanelData } from &#x27;../../panel/task-panel-list/task-panel-data/task-panel-data&#x27;;
import { TaskViewService } from &#x27;./service/task-view.service&#x27;;
import { map, takeUntil } from &#x27;rxjs/operators&#x27;;
import { ActivatedRoute } from &#x27;@angular/router&#x27;;

export class TaskConst {
Expand All @@ -170,22 +169,25 @@ <h3 id="inputs">

@Input() initiallyExpanded: boolean &#x3D; true;
@Input() preventCollapse: boolean &#x3D; true;
public task$: Observable&lt;TaskPanelData&gt;;
public taskPanelData: ReplaySubject&lt;TaskPanelData&gt;;
public loading$: Observable&lt;boolean&gt;;
private transitionId: string;
private subRoute: Subscription;
protected unsubscribe$: Subject&lt;void&gt;;
private subRoute: Subscription | undefined;
protected subPanelData: Subscription;

protected constructor(protected taskViewService: TaskViewService,
activatedRoute: ActivatedRoute) {
super(taskViewService, activatedRoute);
this.unsubscribe$ &#x3D; new Subject&lt;void&gt;();
this.taskPanelData &#x3D; new ReplaySubject&lt;TaskPanelData&gt;(1);
this.subRoute &#x3D; this._activatedRoute.paramMap.subscribe(paramMap &#x3D;&gt; {
if (!!(paramMap?.[&#x27;params&#x27;]?.[TaskConst.TRANSITION_ID])) {
this.transitionId &#x3D; paramMap[&#x27;params&#x27;][TaskConst.TRANSITION_ID];
this.task$ &#x3D; this.taskViewService.tasks$.pipe(map&lt;Array&lt;TaskPanelData&gt;, TaskPanelData&gt;(tasks &#x3D;&gt; {
return this.resolveTransitionTask(tasks);
}), takeUntil(this.unsubscribe$));
this.subPanelData.unsubscribe();
this.subPanelData &#x3D; this.taskViewService.tasks$.subscribe(tasks &#x3D;&gt; {
if (!!tasks &amp;&amp; tasks.length &gt; 0) {
this.taskPanelData.next(this.resolveTransitionTask(tasks));
}
});
}
});
this.loading$ &#x3D; this.taskViewService.loading$;
Expand All @@ -194,8 +196,13 @@ <h3 id="inputs">
ngOnDestroy() {
super.ngOnDestroy();
this.subRoute.unsubscribe();
this.unsubscribe$.next();
this.unsubscribe$.complete();
if (!!this.subPanelData) {
this.subPanelData.unsubscribe();
}
}

get task$(): Observable&lt;TaskPanelData&gt; {
return this.taskPanelData.asObservable();
}

private resolveTransitionTask(tasks: Array&lt;TaskPanelData&gt;): TaskPanelData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ <h3 id="inputs">
this.fieldType &#x3D; this.TEXT_TYPE;
this.transformedValue &#x3D; this.transformCurrency(this.numberField.value?.toString());
this.numberField.valueChanges().subscribe(value &#x3D;&gt; {
if (value !&#x3D;&#x3D; undefined) {
if (value !&#x3D;&#x3D; undefined &amp;&amp; value !&#x3D;&#x3D; null) {
if (this.fieldType &#x3D;&#x3D;&#x3D; this.TEXT_TYPE) {
this.transformedValue &#x3D; this.transformCurrency(value.toString()) + this.WHITESPACE;
}
Expand Down
Loading

0 comments on commit 741ed3c

Please sign in to comment.