Collapse column preview
This commit is contained in:
parent
05bde93f49
commit
fcdea16497
@ -99,13 +99,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="center">
|
<div class="center" [class.collapsed]="!previewExpanded">
|
||||||
<div class="csv-part-header">
|
<div class="csv-part-header">
|
||||||
<div class="all-caps-label">
|
<div class="all-caps-label">
|
||||||
{{ 'file-attributes-csv-import.csv-column' | translate }}
|
{{ 'file-attributes-csv-import.csv-column' + (previewExpanded ? '' : '-preview') | translate }}
|
||||||
</div>
|
</div>
|
||||||
|
<redaction-circle-button
|
||||||
|
[icon]="previewExpanded ? 'red:expand' : 'red:collapse'"
|
||||||
|
(click)="previewExpanded = !previewExpanded"
|
||||||
|
></redaction-circle-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="csv-part-content">
|
<div class="csv-part-content" [class.hidden]="!previewExpanded">
|
||||||
<div class="no-hovered-column" *ngIf="!hoveredColumn" translate="file-attributes-csv-import.no-hovered-column"></div>
|
<div class="no-hovered-column" *ngIf="!hoveredColumn" translate="file-attributes-csv-import.no-hovered-column"></div>
|
||||||
<ng-container *ngFor="let row of parseResult?.data || []">
|
<ng-container *ngFor="let row of parseResult?.data || []">
|
||||||
<div *ngIf="row[hoveredColumn]">
|
<div *ngIf="row[hoveredColumn]">
|
||||||
|
|||||||
@ -170,10 +170,34 @@
|
|||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
background: $grey-2;
|
background: $grey-2;
|
||||||
border-right: 1px solid $separator;
|
border-right: 1px solid $separator;
|
||||||
|
|
||||||
|
&:not(.collapsed) redaction-circle-button {
|
||||||
|
margin-right: -8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.collapsed {
|
||||||
|
width: 50px;
|
||||||
|
min-width: 50px;
|
||||||
|
|
||||||
|
> .csv-part-header {
|
||||||
|
height: 100%;
|
||||||
|
border-bottom: none;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding-top: 8px;
|
||||||
|
|
||||||
|
> .all-caps-label {
|
||||||
|
transform: rotate(90deg) translateX(50%);
|
||||||
|
white-space: nowrap;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .content-container {
|
> .content-container {
|
||||||
width: calc(100% - 527px);
|
width: 100%;
|
||||||
|
|
||||||
redaction-table-col-name::ng-deep {
|
redaction-table-col-name::ng-deep {
|
||||||
> div {
|
> div {
|
||||||
@ -211,7 +235,7 @@
|
|||||||
height: calc(100% - 80px);
|
height: calc(100% - 80px);
|
||||||
|
|
||||||
::ng-deep.cdk-virtual-scroll-content-wrapper {
|
::ng-deep.cdk-virtual-scroll-content-wrapper {
|
||||||
grid-template-columns: auto 2fr 150px auto auto auto 11px;
|
grid-template-columns: 30px minmax(0, 20vw) 150px auto auto auto 11px;
|
||||||
|
|
||||||
.table-item {
|
.table-item {
|
||||||
> div {
|
> div {
|
||||||
@ -253,7 +277,7 @@
|
|||||||
|
|
||||||
&.has-scrollbar:hover {
|
&.has-scrollbar:hover {
|
||||||
::ng-deep.cdk-virtual-scroll-content-wrapper {
|
::ng-deep.cdk-virtual-scroll-content-wrapper {
|
||||||
grid-template-columns: auto 2fr 150px auto auto auto;
|
grid-template-columns: 30px minmax(0, 20vw) 150px auto auto auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,6 +39,7 @@ export class FileAttributesCsvImportDialogComponent implements OnInit {
|
|||||||
public isSearchOpen = false;
|
public isSearchOpen = false;
|
||||||
public searchForm: FormGroup;
|
public searchForm: FormGroup;
|
||||||
public filteredFields: Field[];
|
public filteredFields: Field[];
|
||||||
|
public previewExpanded = true;
|
||||||
|
|
||||||
@ViewChild(CdkVirtualScrollViewport, { static: false }) cdkVirtualScrollViewport: CdkVirtualScrollViewport;
|
@ViewChild(CdkVirtualScrollViewport, { static: false }) cdkVirtualScrollViewport: CdkVirtualScrollViewport;
|
||||||
|
|
||||||
|
|||||||
@ -1159,6 +1159,7 @@
|
|||||||
"available": "{{value}} available",
|
"available": "{{value}} available",
|
||||||
"selected": "{{value}} selected",
|
"selected": "{{value}} selected",
|
||||||
"csv-column": "CSV Column",
|
"csv-column": "CSV Column",
|
||||||
|
"csv-column-preview": "CSV Column Preview",
|
||||||
"no-hovered-column": "Preview CSV column by hovering the entry.",
|
"no-hovered-column": "Preview CSV column by hovering the entry.",
|
||||||
"search": {
|
"search": {
|
||||||
"placeholder": "Search by column name..."
|
"placeholder": "Search by column name..."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user