Skip to content

[NAE-1617] Refactor authority #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 148 commits into
base: release/6.4.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
273cef8
[NAE-1674] Uri page size
machacjozef Jul 27, 2022
a687b24
[NAE-1678] User impersonation
timbez Sep 12, 2022
077c425
Merge branch 'master' into NAE-1678
timbez Sep 12, 2022
9b83ec4
[NAE-1678] User impersonation
timbez Sep 12, 2022
418eedb
[NAE-1678] User impersonation
timbez Sep 13, 2022
c9e736c
Merge branch 'master' into NAE-1678
timbez Sep 15, 2022
6683ca3
[NAE-1678] User impersonation
timbez Sep 16, 2022
01e4d2e
[NAE-1678] User impersonation
timbez Sep 18, 2022
74d0108
[NAE-1678] User impersonation
timbez Sep 18, 2022
307bfd7
[NAE-1678] User impersonation
timbez Sep 19, 2022
2edb358
[NAE-1678] User impersonation
timbez Sep 20, 2022
dd16f28
Release 6.3.0-rc.1
machacjozef Sep 21, 2022
ce8b000
[NAE-1678] User impersonation
timbez Sep 21, 2022
68c347d
Merge remote-tracking branch 'origin/release/6.3.0' into NAE-1678
timbez Sep 21, 2022
38d6fdf
[NAE-1678] User impersonation
timbez Sep 21, 2022
7c8c326
[NAE-1678] User impersonation
timbez Sep 21, 2022
f229a5f
[NAE-1678] User impersonation
timbez Sep 21, 2022
2f140ad
[NAE-1678] User impersonation
timbez Sep 23, 2022
d95de90
[NAE-1678] User impersonation
timbez Sep 23, 2022
b83f72e
[NAE-1678] User impersonation
timbez Sep 26, 2022
537f78f
[NAE-1678] User impersonation
timbez Sep 26, 2022
4d7e7bd
[NAE-1678] User impersonation
timbez Sep 27, 2022
24160b0
[NAE-1678] User impersonation
timbez Sep 28, 2022
b3a32ea
Merge remote-tracking branch 'origin/master' into release/6.3.0
machacjozef Sep 29, 2022
759be90
[NAE-1678] User impersonation
timbez Sep 29, 2022
4de10d2
Merge remote-tracking branch 'origin/release/6.3.0' into NAE-1678
timbez Sep 29, 2022
2c054b7
[NAE-1678] User impersonation
timbez Sep 29, 2022
4ffd177
[NAE-1678] User impersonation
timbez Oct 1, 2022
a4c38a4
Merge pull request #113 from netgrif/NAE-1678
machacjozef Oct 1, 2022
1bf6d6b
Release 6.3.0-RC.1
machacjozef Oct 1, 2022
e3e1faa
Merge remote-tracking branch 'origin/master' into release/6.3.0
machacjozef Oct 6, 2022
0ab0397
Merge remote-tracking branch 'origin/release/6.2.4' into release/6.3.0
machacjozef Oct 12, 2022
7e7ac62
Merge remote-tracking branch 'origin/master' into release/6.3.0
machacjozef Oct 12, 2022
a1f3629
[NAE-1752] MatPrefix for currency field overrides prefix for dateField
renczesstefan Oct 13, 2022
9cf918d
[NAE-1752] MatPrefix for currency field overrides prefix for dateField
renczesstefan Oct 13, 2022
86a1090
[NAE-1754] Currency field not displaying symbol
renczesstefan Oct 14, 2022
6c31093
[NAE-1758] Task on single task view is not rendering
renczesstefan Oct 17, 2022
47107d4
Revert "[NAE-1758] Task on single task view is not rendering"
renczesstefan Oct 17, 2022
44784b6
[NAE-1758] Task on single task view is not rendering
renczesstefan Oct 17, 2022
06d3264
[NAE-1760] Enumeration autocomplete constantly sending value
machacjozef Oct 18, 2022
16e8510
[NAE-1762] Public view URL encoding
renczesstefan Oct 20, 2022
47b9320
Merge pull request #146 from netgrif/NAE-1762
machacjozef Oct 20, 2022
e5ef00a
Release 6.2.3-rc.2
machacjozef Oct 20, 2022
ac3d54d
[NAE-1760] Enumeration autocomplete constantly sending value
machacjozef Oct 24, 2022
5437edd
[NAE-1763] FileField value sa nepropaguje na frontend po set data evente
renczesstefan Oct 28, 2022
17a2f96
[NAE-1758] Task on single task view is not rendering
renczesstefan Oct 31, 2022
c1c4f75
Merge pull request #143 from netgrif/NAE-1752
machacjozef Oct 31, 2022
546b579
Merge branch 'release/6.2.5' into NAE-1754
machacjozef Oct 31, 2022
4df5c09
Merge branch 'release/6.2.5' into NAE-1760
machacjozef Oct 31, 2022
5db4f20
Merge branch 'release/6.2.5' into NAE-1763
machacjozef Oct 31, 2022
3a8ad31
Merge pull request #144 from netgrif/NAE-1754
machacjozef Oct 31, 2022
d504e10
Merge branch 'release/6.2.5' into NAE-1763
machacjozef Oct 31, 2022
5746a2c
[NAE-1766] Options on multichoice autocomplete do not refresh in a sp…
machacjozef Nov 2, 2022
3145470
Revert "[NAE-1766] Options on multichoice autocomplete do not refresh…
machacjozef Nov 2, 2022
40b5f93
Merge remote-tracking branch 'origin/release/6.2.5' into release/6.2.5
machacjozef Nov 2, 2022
f4990da
[NAE-1766] Options on multichoice autocomplete do not refresh in a sp…
machacjozef Nov 2, 2022
5fa8a5f
[NAE-1766] Options on multichoice autocomplete do not refresh in a sp…
machacjozef Nov 11, 2022
3d732dc
[NAE-1766] Options on multichoice autocomplete do not refresh in a sp…
machacjozef Nov 11, 2022
f2ca1da
[NAE-1766] Options on multichoice autocomplete do not refresh in a sp…
machacjozef Nov 11, 2022
28eeaf5
[NAE-1759] Update documentation of public views, PDF generator and us…
renczesstefan Nov 15, 2022
194b8cf
Merge branch 'release/6.2.5' into NAE-1760
machacjozef Nov 15, 2022
5608f94
Merge branch 'release/6.2.5' into NAE-1758
machacjozef Nov 15, 2022
37faef9
- corrected according to PR
renczesstefan Nov 16, 2022
2440249
[NAE-1766] Options on multichoice autocomplete do not refresh in a sp…
machacjozef Nov 16, 2022
d043700
[NAE-1766] Options on multichoice autocomplete do not refresh in a sp…
machacjozef Nov 16, 2022
1a4397d
- corrected according to PR
renczesstefan Nov 16, 2022
24525db
- corrected according to PR
renczesstefan Nov 16, 2022
1d371c1
- corrected according to PR
renczesstefan Nov 21, 2022
3fbf6f0
Merge branch 'release/6.2.5' into NAE-1763
machacjozef Nov 21, 2022
942c201
Merge pull request #149 from netgrif/NAE-1766
machacjozef Nov 21, 2022
68082e1
Merge branch 'release/6.2.5' into NAE-1763
machacjozef Nov 21, 2022
206fbdd
Merge pull request #148 from netgrif/NAE-1763
machacjozef Nov 21, 2022
eb0fd9a
Merge branch 'release/6.2.5' into NAE-1760
machacjozef Nov 21, 2022
11a1efc
Merge branch 'release/6.2.5' into NAE-1758
machacjozef Nov 21, 2022
b990c70
Merge pull request #147 from netgrif/NAE-1760
machacjozef Nov 21, 2022
c844596
Merge branch 'release/6.2.5' into NAE-1758
machacjozef Nov 21, 2022
b330ad6
Merge pull request #145 from netgrif/NAE-1758
machacjozef Nov 21, 2022
4cf43e8
Release 6.2.5
machacjozef Nov 21, 2022
8889023
[NAE-1674] Uri node cases pagination
tuplle Nov 22, 2022
3f17770
Merge remote-tracking branch 'origin/release/6.3.0' into NAE-1674
tuplle Nov 22, 2022
4a5a872
[NAE-1795] Breadcrumbs based on the menu, not on the currently displa…
tuplle Nov 25, 2022
bc13c42
Merge remote-tracking branch 'origin/NAE-1674' into NAE-1795
tuplle Nov 25, 2022
0f6e016
[NAE-1795] Breadcrumbs based on the menu, not on the currently displa…
tuplle Nov 25, 2022
3bd5d51
[NAE-1674] Uri node cases pagination
tuplle Nov 29, 2022
2fd5819
Merge remote-tracking branch 'origin/NAE-1674' into NAE-1795
tuplle Nov 29, 2022
bbc4dea
[NAE-1795] Breadcrumbs based on the menu, not on the currently displa…
tuplle Nov 29, 2022
81ffaff
[NAE-1790] Validation message on the date field is not displaying cor…
Kovy95 Dec 2, 2022
dbb905a
Merge pull request #150 from netgrif/release/6.2.5
machacjozef Dec 5, 2022
1860efe
Release 6.2.5
machacjozef Dec 5, 2022
e171ec2
Merge pull request #155 from netgrif/dev
machacjozef Dec 5, 2022
741ed3c
CI - Update documentation
github-actions[bot] Dec 5, 2022
ffe7b13
[NAE-1797] I18N fieldy sa pri asynchronnom renderovani renderuju posl…
renczesstefan Dec 6, 2022
eeedb0e
Merge remote-tracking branch 'origin/master' into release/6.3.0
machacjozef Dec 6, 2022
2093882
Merge branch 'release/6.3.0' into NAE-1759
machacjozef Dec 6, 2022
ceb2a44
Merge branch 'release/6.3.0' into NAE-1674
machacjozef Dec 6, 2022
6aca1b2
Merge branch 'release/6.3.0' into NAE-1795
machacjozef Dec 6, 2022
b34c201
Merge branch 'release/6.3.0' into NAE-1790
machacjozef Dec 6, 2022
d78383e
Merge branch 'release/6.3.0' into NAE-1797
machacjozef Dec 6, 2022
22590a6
[NAE-1799] Multilevel process identifier handling in 6.2.x for public…
renczesstefan Dec 12, 2022
afe2b99
Merge branch 'release/6.2.6' into NAE-1799
machacjozef Dec 12, 2022
bc98b95
[NAE-1800] Operations on date fields in advanced search are not rende…
machacjozef Dec 12, 2022
ea1ab28
Merge pull request #157 from netgrif/NAE-1799
machacjozef Dec 12, 2022
cd30d5a
Merge branch 'release/6.2.6' into NAE-1800
machacjozef Dec 12, 2022
ee36a01
Merge pull request #158 from netgrif/NAE-1800
machacjozef Dec 12, 2022
d9904f7
Release 6.2.6
machacjozef Dec 12, 2022
96eb8e3
Merge pull request #159 from netgrif/release/6.2.6
machacjozef Dec 12, 2022
c522776
Merge pull request #160 from netgrif/dev
machacjozef Dec 12, 2022
d4f4101
CI - Update documentation
github-actions[bot] Dec 12, 2022
47979f2
Merge remote-tracking branch 'origin/master' into release/6.3.0
machacjozef Dec 12, 2022
4abfa94
Merge branch 'release/6.3.0' into NAE-1674
machacjozef Dec 13, 2022
ac4950e
Merge branch 'release/6.3.0' into NAE-1795
machacjozef Dec 13, 2022
be9c7f1
Merge branch 'release/6.3.0' into NAE-1790
machacjozef Dec 13, 2022
9b65825
Merge branch 'release/6.3.0' into NAE-1797
machacjozef Dec 13, 2022
a2bc09f
[NAE-1790] Validation message on the date field is not displaying cor…
Kovy95 Dec 14, 2022
f50f881
Merge remote-tracking branch 'origin/NAE-1790' into NAE-1790
Kovy95 Dec 14, 2022
3523f0c
[NAE-1803] UserListComponent validations bug
renczesstefan Dec 16, 2022
59f9b21
[NAE-1797] I18N field at asynchronous rendering
renczesstefan Dec 16, 2022
1e0c57d
[NAE-1797] I18N field at asynchronous rendering
renczesstefan Dec 16, 2022
0390f7f
[NAE-1674] Uri node cases pagination
tuplle Dec 16, 2022
88af863
Merge pull request #152 from netgrif/NAE-1674
tuplle Dec 19, 2022
fe48399
[NAE-1803] UserListField validation error
renczesstefan Dec 19, 2022
29f0520
Merge remote-tracking branch 'origin/release/6.3.0' into NAE-1795
tuplle Dec 19, 2022
536290e
Merge pull request #161 from netgrif/NAE-1803
machacjozef Dec 19, 2022
85f00e8
Merge pull request #162 from netgrif/release/6.2.7
machacjozef Dec 19, 2022
5707b58
Release 6.2.7
machacjozef Dec 19, 2022
69e9c20
Release 6.2.7
machacjozef Dec 19, 2022
7ce67a9
Merge pull request #163 from netgrif/dev
machacjozef Dec 19, 2022
bd9e2de
Merge pull request #153 from netgrif/NAE-1795
tuplle Dec 19, 2022
143b78e
Merge branch 'release/6.3.0' into NAE-1797
tuplle Dec 19, 2022
678eb49
Merge branch 'release/6.3.0' into NAE-1790
tuplle Dec 19, 2022
a7d3cd1
Merge branch 'release/6.3.0' into NAE-1759
tuplle Dec 19, 2022
08b226f
CI - Update documentation
github-actions[bot] Dec 19, 2022
cbc3a04
Merge pull request #156 from netgrif/NAE-1797
tuplle Dec 19, 2022
658b0f1
Merge branch 'release/6.3.0' into NAE-1790
tuplle Dec 19, 2022
d034528
Merge pull request #154 from netgrif/NAE-1790
tuplle Dec 19, 2022
7a810b7
Merge branch 'release/6.3.0' into NAE-1759
tuplle Dec 19, 2022
99d9119
Release 6.2.7
renczesstefan Dec 19, 2022
4da0794
CI - Update documentation
github-actions[bot] Dec 19, 2022
123837c
Merge pull request #151 from netgrif/NAE-1759
tuplle Dec 19, 2022
2225446
Merge remote-tracking branch 'origin/master' into release/6.3.0
machacjozef Dec 19, 2022
8494a5d
Release 6.3.0-RC.3
machacjozef Dec 19, 2022
d1b526b
Release 6.3.0-RC.3
machacjozef Dec 19, 2022
ae20d97
Release 6.3.0-RC.3
machacjozef Dec 19, 2022
26402a5
Release 6.3.0-RC.3
machacjozef Dec 19, 2022
1aa8658
Release 6.3.0-RC.3
machacjozef Dec 19, 2022
031b5ce
Release 6.3.0-RC.3
machacjozef Dec 19, 2022
0c8a9c5
Release 6.3.0
renczesstefan Dec 20, 2022
4eb8c29
[NAE-1617] Refactor authority
renczesstefan Jan 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 43 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,49 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

Full Changelog: [https://github.com/netgrif/components/commits/v6.2.4](https://github.com/netgrif/components/commits/v6.2.4)
Full Changelog: [https://github.com/netgrif/components/commits/v6.3.0](https://github.com/netgrif/components/commits/v6.3.0)

## [6.3.0](https://github.com/netgrif/components/releases/tag/v6.3.0) (2022-10-20)

### Fixed

- [NAE-1790] Validation message on the date field is not displaying correctly
- [NAE-1795] Breadcrumbs based on the menu, not on the currently displayed view
- [NAE-1797] I18N field at asynchronous rendering

### Changed

- [NAE-1674] Uri node cases pagination
- [NAE-1759] Update documentation of public views, PDF generator and user list
- [NAE-1762] Public view URL encoding

### Added

- [NAE-1678] User impersonation

## [6.2.7](https://github.com/netgrif/components/releases/tag/v6.2.7) (2022-12-19)

### Fixed

- [NAE-1803] UserListComponent validations bug

## [6.2.6](https://github.com/netgrif/components/releases/tag/v6.2.6) (2022-12-12)

### Fixed

- [NAE-1799] Multilevel process identifier handling in 6.2.x for public view
- [NAE-1800] Operations on date fields in advanced search are not rendered correctly

## [6.2.5](https://github.com/netgrif/components/releases/tag/v6.2.5) (2022-12-05)

### Fixed

- [NAE-1752] MatPrefix for currency field overrides prefix for dateField
- [NAE-1754] Currency field not displaying symbol
- [NAE-1758] Task on single task view is not rendering
- [NAE-1760] Enumeration autocomplete constantly sending value
- [NAE-1763] FileField value is not promoted to the frontend after "set data event"
- [NAE-1766] Options on multichoice autocomplete do not refresh in a specific situation

## [6.2.4](https://github.com/netgrif/components/releases/tag/v6.2.4) (2022-10-12)

Expand Down
111 changes: 66 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
34 changes: 21 additions & 13 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,32 +169,41 @@ <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 | undefined;

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 &#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$;
}

ngOnDestroy() {
super.ngOnDestroy();
this.subRoute.unsubscribe();
this.unsubscribe$.next();
this.unsubscribe$.complete();
if (!!this.subRoute) {
this.subRoute.unsubscribe();
}
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
Loading