@ -130,70 +130,57 @@
< / mat-form-field >
< / ng-template >
< ng-template [ ngSwitchCase ] = " aliasFilterType . relationsQuery " >
< section fxLayout = "column" id = "relationsQueryFilter ">
< label class = "tb-small" > {{ 'alias.root-entity' | translate }}< / label >
< section class = "tb-root-state-entity-switch" fxLayout = "row" fxLayoutAlign = "start center" style = "padding-left: 0;" >
< mat-slide-toggle class = "root-state-entity-switch"
formControlName="rootStateEntity">
< section class = "tb-form-panel no-border no-padding ">
< div class = "tb-form-panel stroked no-gap" >
< div class = "tb-form-panel-title" translate > alias.root-entity< / div >
< mat-slide-toggle class = "mat-slide margin" formControlName = "rootStateEntity" >
{{ 'alias.root-state-entity' | translate }}
< / mat-slide-toggle >
< label class = "tb-small root-state-entity-label" translate > alias.root-state-entity< / label >
< / section >
< div fxFlex fxLayout = "row" * ngIf = "!filterFormGroup.get('rootStateEntity').value" >
< tb-entity-select fxFlex
< div * ngIf = "filterFormGroup.get('rootStateEntity').value" class = "tb-form-panel no-border no-padding no-gap" >
< mat-form-field >
< mat-label translate > alias.state-entity-parameter-name< / mat-label >
< input matInput formControlName = "stateEntityParamName" >
< / mat-form-field >
< tb-entity-select useAliasEntityTypes = "true" formControlName = "defaultStateEntity" >
< / tb-entity-select >
< / div >
< tb-entity-select * ngIf = "!filterFormGroup.get('rootStateEntity').value"
required
useAliasEntityTypes="true"
formControlName="rootEntity">
< / tb-entity-select >
< / div >
< div fxFlex fxLayout = "column" fxLayout . gt-sm = "row" * ngIf = "filterFormGroup.get('rootStateEntity').value" >
< mat-form-field floatLabel = "always" class = "mat-block" style = "margin-top: 24px; padding-right: 8px;" >
< mat-label translate > alias.state-entity-parameter-name< / mat-label >
< input matInput formControlName = "stateEntityParamName"
placeholder="{{ 'alias.default-entity-parameter-name' | translate }}">
< / mat-form-field >
< div fxFlex fxLayout = "column" >
< label class = "tb-small" > {{ 'alias.default-state-entity' | translate }}< / label >
< tb-entity-select fxFlex
useAliasEntityTypes="true"
formControlName="defaultStateEntity">
< / tb-entity-select >
< div class = "tb-form-row no-border no-padding tb-standard-fields" >
< mat-form-field class = "flex" >
< mat-label translate > relation.direction< / mat-label >
< mat-select required formControlName = "direction" >
< mat-option * ngFor = "let type of directionTypes" [ value ] = " type " >
{{ directionTypeTranslations.get(directionTypeEnum[type]) | translate }}
< / mat-option >
< / mat-select >
< / mat-form-field >
< mat-form-field class = "flex" floatLabel = "always" >
< mat-label translate > alias.max-relation-level< / mat-label >
< input matInput
type="number"
min="1"
step="1"
placeholder="{{ 'alias.unlimited-level' | translate }}"
formControlName="maxLevel">
< / mat-form-field >
< / div >
< mat-slide-toggle * ngIf = "filterFormGroup.get('maxLevel').value > 1 || !filterFormGroup.get('maxLevel').value"
class="mat-slide" formControlName="fetchLastLevelOnly">
{{ 'alias.last-level-relation' | translate }}
< / mat-slide-toggle >
< / div >
< div fxFlex fxLayout = "row" >
< section class = "tb-root-state-entity-switch" fxLayout = "row" fxLayoutAlign = "start center" style = "padding-left: 0;" >
< mat-slide-toggle class = "root-state-entity-switch"
formControlName="fetchLastLevelOnly">
< / mat-slide-toggle >
< label class = "tb-small root-state-entity-label" translate > alias.last-level-relation< / label >
< / section >
< / div >
< div fxFlex fxLayoutGap = "8px" fxLayout = "row" fxLayout . xs = "column" >
< mat-form-field class = "mat-block" style = "min-width: 100px;" >
< mat-label translate > relation.direction< / mat-label >
< mat-select required formControlName = "direction" >
< mat-option * ngFor = "let type of directionTypes" [ value ] = " type " >
{{ directionTypeTranslations.get(directionTypeEnum[type]) | translate }}
< / mat-option >
< / mat-select >
< / mat-form-field >
< mat-form-field fxFlex floatLabel = "always" class = "mat-block" >
< mat-label translate > alias.max-relation-level< / mat-label >
< input matInput
type="number"
min="1"
step="1"
placeholder="{{ 'alias.unlimited-level' | translate }}"
formControlName="maxLevel">
< / mat-form-field >
< div class = "tb-form-panel stroked" >
< div class = "tb-form-panel-title" translate > relation.relation-filters< / div >
< tb-relation-filters
enableNotOption
[allowedEntityTypes]="allowedEntityTypes"
formControlName="filters">
< / tb-relation-filters >
< / div >
< mat-slide-toggle formControlName = "negate" * ngIf = "this.filterFormGroup.get('filters').value.length > 1" >
{{ 'relation.negate-all-relations' | translate }}
< / mat-slide-toggle >
< div class = "mat-caption" style = "padding-bottom: 10px; color: rgba(0,0,0,0.57);" translate > relation.relation-filters< / div >
< tb-relation-filters
[allowedEntityTypes]="allowedEntityTypes"
formControlName="filters">
< / tb-relation-filters >
< / section >
< / ng-template >
< ng-template [ ngSwitchCase ] = " entityFilterFormGroup . get ( ' type ' ) . value = == aliasFilterType . assetSearchQuery | |