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 Jul 18, 2023
1 parent 281180c commit 123b7a0
Show file tree
Hide file tree
Showing 767 changed files with 4,560 additions and 4,103 deletions.
168 changes: 89 additions & 79 deletions docs/compodoc/components-core/changelog.html

Large diffs are not rendered by default.

71 changes: 62 additions & 9 deletions docs/compodoc/components-core/classes/SideMenuControl.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ <h6><b>Methods</b></h6>
<span class="modifier">Public</span>
<a href="#close" >close</a>
</li>
<li>
<span class="modifier">Public</span>
<a href="#isOpened" >isOpened</a>
</li>
<li>
<span class="modifier">Public</span>
<a href="#publish" >publish</a>
Expand Down Expand Up @@ -148,7 +152,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="9" class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:9</a></div>
<div class="io-line">Defined in <a href="" data-line="10" class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:10</a></div>
</td>
</tr>

Expand Down Expand Up @@ -272,7 +276,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:16</a></div>
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:17</a></div>
</td>
</tr>

Expand Down Expand Up @@ -300,7 +304,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:15</a></div>
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:16</a></div>
</td>
</tr>

Expand Down Expand Up @@ -336,8 +340,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="35"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:35</a></div>
<div class="io-line">Defined in <a href="" data-line="44"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:44</a></div>
</td>
</tr>

Expand Down Expand Up @@ -384,6 +388,45 @@ <h3 id="methods">
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="isOpened"></a>
<span class="name">
<span class="modifier">Public</span>
<span ><b>isOpened</b></span>
<a href="#isOpened"><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>isOpened()</code>
</td>
</tr>


<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="35"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:35</a></div>
</td>
</tr>


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

<div class="io-description">
<b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>

</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
Expand All @@ -406,8 +449,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="31"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:31</a></div>
<div class="io-line">Defined in <a href="" data-line="39"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:39</a></div>
</td>
</tr>

Expand Down Expand Up @@ -480,7 +523,7 @@ <h3 id="accessors">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:27</a></div>
<div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/models/side-menu-control.ts:31</a></div>
</td>
</tr>

Expand All @@ -491,7 +534,7 @@ <h3 id="accessors">


<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {Observable, of, Subject} from &#x27;rxjs&#x27;;
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {BehaviorSubject, Observable, of, Subject} from &#x27;rxjs&#x27;;
import {SideMenuEvent} from &#x27;./side-menu-event&#x27;;
import {SideMenuInjectionData} from &#x27;./side-menu-injection-data&#x27;;
import {tap} from &#x27;rxjs/operators&#x27;;
Expand All @@ -500,6 +543,7 @@ <h3 id="accessors">
export class SideMenuControl {

private _event$: Subject&lt;SideMenuEvent&gt;;
private _isOpened: BehaviorSubject&lt;boolean&gt;;

constructor(bindingsFunction: (event$: Subject&lt;SideMenuEvent&gt;) &#x3D;&gt; void &#x3D; () &#x3D;&gt; {},
sideMenuOpenedStateChange: Observable&lt;boolean&gt; &#x3D; of(true),
Expand All @@ -508,11 +552,14 @@ <h3 id="accessors">
public isVersionVisible?: boolean,
public allVersionEnabled?: boolean) {
this._event$ &#x3D; new Subject&lt;SideMenuEvent&gt;();
this._isOpened &#x3D; new BehaviorSubject&lt;boolean&gt;(false);
bindingsFunction(this._event$);
sideMenuOpenedStateChange.subscribe((opened) &#x3D;&gt; {
this._isOpened.next(opened);
if (!opened) {
this._event$.next({opened, message: &#x27;Side menu closed unexpectedly&#x27;});
this._event$.complete();
this._isOpened.complete();
}
});
}
Expand All @@ -521,7 +568,12 @@ <h3 id="accessors">
return this._injectionData;
}

public isOpened(): boolean {
return this._isOpened.getValue();
}

public publish(event: SideMenuEvent): void {
this._isOpened.next(event.opened);
this._event$.next(event);
}

Expand All @@ -530,6 +582,7 @@ <h3 id="accessors">
event.message &#x3D; &#x27;Side menu is closing&#x27;;
}
this._event$.next({...event, opened: false});
this._isOpened.next(event.opened);
return this.sideMenuCloseFunction().pipe(
tap((closed) &#x3D;&gt; {
if (closed &#x3D;&#x3D;&#x3D; &#x27;close&#x27;) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="195"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:195</a></div>
<div class="io-line">Defined in <a href="" data-line="202"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:202</a></div>
</td>
</tr>

Expand Down Expand Up @@ -483,8 +483,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="289"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:289</a></div>
<div class="io-line">Defined in <a href="" data-line="296"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:296</a></div>
</td>
</tr>

Expand Down Expand Up @@ -553,8 +553,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="202"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:202</a></div>
<div class="io-line">Defined in <a href="" data-line="209"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:209</a></div>
</td>
</tr>

Expand Down Expand Up @@ -697,8 +697,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="276"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:276</a></div>
<div class="io-line">Defined in <a href="" data-line="283"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:283</a></div>
</td>
</tr>

Expand Down Expand Up @@ -734,8 +734,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="280"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:280</a></div>
<div class="io-line">Defined in <a href="" data-line="287"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:287</a></div>
</td>
</tr>

Expand Down Expand Up @@ -771,8 +771,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="209"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:209</a></div>
<div class="io-line">Defined in <a href="" data-line="216"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:216</a></div>
</td>
</tr>

Expand Down Expand Up @@ -845,8 +845,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="284"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:284</a></div>
<div class="io-line">Defined in <a href="" data-line="291"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:291</a></div>
</td>
</tr>

Expand Down Expand Up @@ -983,8 +983,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="226"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:226</a></div>
<div class="io-line">Defined in <a href="" data-line="233"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:233</a></div>
</td>
</tr>

Expand Down Expand Up @@ -1020,8 +1020,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="296"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:296</a></div>
<div class="io-line">Defined in <a href="" data-line="303"
class="link-to-prism">projects/netgrif-components-core/src/lib/side-menu/content-components/new-case/abstract-new-case.component.ts:303</a></div>
</td>
</tr>

Expand Down Expand Up @@ -1541,7 +1541,7 @@ <h3 id="accessors">
import {CreateCaseEventOutcome} from &#x27;../../../event/model/event-outcomes/case-outcomes/create-case-event-outcome&#x27;;
import {EventOutcomeMessageResource} from &#x27;../../../resources/interface/message-resource&#x27;;
import {MatOption} from &#x27;@angular/material/core&#x27;;
import { LoadingEmitter } from &#x27;../../../utility/loading-emitter&#x27;;
import {LoadingEmitter} from &#x27;../../../utility/loading-emitter&#x27;;

interface Form {
value: string;
Expand Down Expand Up @@ -1668,9 +1668,14 @@ <h3 id="accessors">
}

public createNewCase(): void {
if(this.loadingSubmit.value){
return
if (this.loadingSubmit.value) {
return
}

if (!this._sideMenuControl.isOpened()) {
return
}

if (this.titleFormControl.valid || !this.isCaseTitleRequired()) {
const newCase &#x3D; {
title: this.titleFormControl.value &#x3D;&#x3D;&#x3D; &#x27;&#x27; ? null : this.titleFormControl.value,
Expand Down Expand Up @@ -1703,6 +1708,8 @@ <h3 id="accessors">
: response.error
});
}
this.titleFormControl.markAsUntouched();
this.titleFormControl.setValue(null);
},
error &#x3D;&gt; {
this.loadingSubmit.off();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="69"
class="link-to-prism">projects/netgrif-components-core/src/lib/view/workflow-view/abstract-workflow-view.component.ts:69</a></div>
<div class="io-line">Defined in <a href="" data-line="66"
class="link-to-prism">projects/netgrif-components-core/src/lib/view/workflow-view/abstract-workflow-view.component.ts:66</a></div>
</td>
</tr>

Expand Down Expand Up @@ -545,8 +545,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="62"
class="link-to-prism">projects/netgrif-components-core/src/lib/view/workflow-view/abstract-workflow-view.component.ts:62</a></div>
<div class="io-line">Defined in <a href="" data-line="59"
class="link-to-prism">projects/netgrif-components-core/src/lib/view/workflow-view/abstract-workflow-view.component.ts:59</a></div>
</td>
</tr>

Expand Down Expand Up @@ -621,8 +621,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="58"
class="link-to-prism">projects/netgrif-components-core/src/lib/view/workflow-view/abstract-workflow-view.component.ts:58</a></div>
<div class="io-line">Defined in <a href="" data-line="55"
class="link-to-prism">projects/netgrif-components-core/src/lib/view/workflow-view/abstract-workflow-view.component.ts:55</a></div>
</td>
</tr>

Expand Down Expand Up @@ -1176,13 +1176,10 @@ <h3 id="inputs">

public importSidemenuNet(component) {
this._sideMenuService.open(component).onClose.subscribe(event &#x3D;&gt; {
if (event.data?.net !&#x3D;&#x3D; undefined) {
this._workflowViewService.reload();
if (event.data?.net) {
this._processService.updateNet(new Net(event.data.net));
}
} else {
this._log.debug(&#x27;&#x27;);
// TODO reloads every time side panel is closed, but should only if event contains some net
this._workflowViewService.reload();
if (event.data?.net) {
this._processService.updateNet(new Net(event.data.net));
}
});
}
Expand Down
Loading

0 comments on commit 123b7a0

Please sign in to comment.