| commit | c6711f4a1f1eb8bb3eb5f26945ebb38eee74b3f9 | [log] [tgz] |
|---|---|---|
| author | dtheinert <dietmar.theinert@pta.de> | Tue Oct 06 15:36:07 2020 +0200 |
| committer | dtheinert <dietmar.theinert@pta.de> | Tue Oct 06 15:36:07 2020 +0200 |
| tree | fd3da875c20a79b7599666b0d6cc4a308c44266b | |
| parent | 461d76d97943e86abf36a71c592a493601df2c4d [diff] |
[SI-3044] - add new custom filter for fuzzy filtering of substrings and concatinated column values Signed-off-by: dtheinert <dietmar.theinert@pta.de>
This project was generated with Angular CLI version 8.3.19.
Run npm run start-integration for a dev server. Navigate to http://entopkon:8880/portalFE/#/login. Try to login with known credentials and open the ‘SIT Localhost’ app. The app will automatically reload if you change any of the source files.
Run npm run build-main-app to build the project. The build artifacts will be stored in the dist/ directory.
Run mpm run test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
This directive is used to hide or show html elemnts depending on defined dependencies (isVisible = true) Additionally it sets the state of depending field to avoid ngrx-forms validation errors.
Example
<button [visibleByDependentField]="formState.value.branch === Globals.BUSINESS_RULE_FIELDS.branch.telecommunication"> </button>
This validator fills the validation(visualization) gap of ngrx-forms for disabled/dependent fields
It ist important that .ngrx-forms-invalid-directive class is added to global style.scss
This directive disables the entire form depending on user rights. It automatically select form[ngrxFormState] and checks user rights
This directive shows/hides html elements depending on user rights.
Example
<button *visibleByRight="[RolesEnum.PUBLISHER]" type="button" class="btn btn-link navbar-btn"> <fa name="users"></fa> </button>