UI: Fixed responsive create/restore complex version
This commit is contained in:
parent
58e418578c
commit
a60ecd1372
@ -22,7 +22,8 @@
|
|||||||
<div *ngFor="let entityTypeFormGroup of entityTypesFormGroupArray(); trackBy: trackByEntityType;
|
<div *ngFor="let entityTypeFormGroup of entityTypesFormGroupArray(); trackBy: trackByEntityType;
|
||||||
let $index = index; last as isLast;"
|
let $index = index; last as isLast;"
|
||||||
fxLayout="row" fxLayoutAlign="start center" [ngStyle]="!isLast ? {paddingBottom: '8px'} : {}">
|
fxLayout="row" fxLayoutAlign="start center" [ngStyle]="!isLast ? {paddingBottom: '8px'} : {}">
|
||||||
<mat-expansion-panel class="entity-type-config" fxFlex [formGroup]="entityTypeFormGroup" [expanded]="entityTypesFormGroupExpanded(entityTypeFormGroup)">
|
<mat-expansion-panel class="entity-type-config" [ngClass]="{'load': loading}" fxFlex [formGroup]="entityTypeFormGroup"
|
||||||
|
[expanded]="entityTypesFormGroupExpanded(entityTypeFormGroup)" (opened)="loading = false">
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<div fxFlex fxLayout="row" fxLayoutAlign="start center">
|
<div fxFlex fxLayout="row" fxLayoutAlign="start center">
|
||||||
<mat-panel-title>
|
<mat-panel-title>
|
||||||
@ -40,7 +41,6 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</mat-expansion-panel-header>
|
</mat-expansion-panel-header>
|
||||||
<ng-template matExpansionPanelContent>
|
|
||||||
<div class="entity-type-config-content" fxLayout="column" fxLayoutGap="0.5em">
|
<div class="entity-type-config-content" fxLayout="column" fxLayoutGap="0.5em">
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="16px">
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="16px">
|
||||||
@ -90,7 +90,6 @@
|
|||||||
</tb-entity-list>
|
</tb-entity-list>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!entityTypesFormGroupArray().length">
|
<div *ngIf="!entityTypesFormGroupArray().length">
|
||||||
|
|||||||
@ -55,5 +55,9 @@
|
|||||||
.mat-expansion-panel-body {
|
.mat-expansion-panel-body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
&.load .mat-expansion-panel-content {
|
||||||
|
height: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -74,6 +74,8 @@ export class EntityTypesVersionCreateComponent extends PageComponent implements
|
|||||||
|
|
||||||
entityTypes = EntityType;
|
entityTypes = EntityType;
|
||||||
|
|
||||||
|
loading = true;
|
||||||
|
|
||||||
constructor(protected store: Store<AppState>,
|
constructor(protected store: Store<AppState>,
|
||||||
private translate: TranslateService,
|
private translate: TranslateService,
|
||||||
private fb: FormBuilder) {
|
private fb: FormBuilder) {
|
||||||
|
|||||||
@ -22,7 +22,8 @@
|
|||||||
<div *ngFor="let entityTypeFormGroup of entityTypesFormGroupArray(); trackBy: trackByEntityType;
|
<div *ngFor="let entityTypeFormGroup of entityTypesFormGroupArray(); trackBy: trackByEntityType;
|
||||||
let $index = index; last as isLast;"
|
let $index = index; last as isLast;"
|
||||||
fxLayout="row" fxLayoutAlign="start center" [ngStyle]="!isLast ? {paddingBottom: '8px'} : {}">
|
fxLayout="row" fxLayoutAlign="start center" [ngStyle]="!isLast ? {paddingBottom: '8px'} : {}">
|
||||||
<mat-expansion-panel class="entity-type-config" fxFlex [formGroup]="entityTypeFormGroup" [expanded]="entityTypesFormGroupExpanded(entityTypeFormGroup)">
|
<mat-expansion-panel class="entity-type-config" [ngClass]="{'load': loading}" fxFlex [formGroup]="entityTypeFormGroup"
|
||||||
|
[expanded]="entityTypesFormGroupExpanded(entityTypeFormGroup)" (opened)="loading = false">
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<div fxFlex fxLayout="row" fxLayoutAlign="start center">
|
<div fxFlex fxLayout="row" fxLayoutAlign="start center">
|
||||||
<mat-panel-title>
|
<mat-panel-title>
|
||||||
@ -40,7 +41,6 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</mat-expansion-panel-header>
|
</mat-expansion-panel-header>
|
||||||
<ng-template matExpansionPanelContent>
|
|
||||||
<div class="entity-type-config-content" fxLayout="column" fxLayoutGap="0.5em">
|
<div class="entity-type-config-content" fxLayout="column" fxLayoutGap="0.5em">
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="32px">
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap.gt-xs="32px">
|
||||||
@ -77,7 +77,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!entityTypesFormGroupArray().length">
|
<div *ngIf="!entityTypesFormGroupArray().length">
|
||||||
|
|||||||
@ -55,5 +55,9 @@
|
|||||||
.mat-expansion-panel-body {
|
.mat-expansion-panel-body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
&.load .mat-expansion-panel-content {
|
||||||
|
height: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,6 +68,8 @@ export class EntityTypesVersionLoadComponent extends PageComponent implements On
|
|||||||
|
|
||||||
entityTypes = EntityType;
|
entityTypes = EntityType;
|
||||||
|
|
||||||
|
loading = true;
|
||||||
|
|
||||||
constructor(protected store: Store<AppState>,
|
constructor(protected store: Store<AppState>,
|
||||||
private translate: TranslateService,
|
private translate: TranslateService,
|
||||||
private popoverService: TbPopoverService,
|
private popoverService: TbPopoverService,
|
||||||
|
|||||||
@ -248,7 +248,7 @@ export class EntityVersionsTableComponent extends PageComponent implements OnIni
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{maxHeight: '90vh', height: '100%', padding: '10px'},
|
{maxHeight: '90vh', height: '100%', padding: '10px'},
|
||||||
{width: '600px', minWidth: '100%', maxWidth: '100%'}, {}, false);
|
{}, {}, false);
|
||||||
complexCreateVersionPopover.tbComponentRef.instance.popoverComponent = complexCreateVersionPopover;
|
complexCreateVersionPopover.tbComponentRef.instance.popoverComponent = complexCreateVersionPopover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -321,7 +321,7 @@ export class EntityVersionsTableComponent extends PageComponent implements OnIni
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{maxHeight: '80vh', height: '100%', padding: '10px'},
|
{maxHeight: '80vh', height: '100%', padding: '10px'},
|
||||||
{width: '600px', minWidth: '100%', maxWidth: '100%'}, {}, false);
|
{}, {}, false);
|
||||||
restoreEntitiesVersionPopover.tbComponentRef.instance.popoverComponent = restoreEntitiesVersionPopover;
|
restoreEntitiesVersionPopover.tbComponentRef.instance.popoverComponent = restoreEntitiesVersionPopover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user