Newer
Older
[quick-tour-description]="quickTourData.description"
[quick-tour-order]="quickTourData.order"
#statusCardQT="quickTour">
<mat-card *ngIf="showFull; else showMin"
<mat-card-content>
<!-- reset -->
<div class="d-flex">
<span class="flex-grow-0 d-flex align-items-center">
Reset
</span>
<div class="flex-grow-1"></div>
<button
mat-icon-button
(click)="resetNavigation({position:true})"
matTooltip="Reset position">
<i class="iavic iavic-translation"></i>
</button>
<button
mat-icon-button
(click)="resetNavigation({rotation:true})"
matTooltip="Reset rotation">
<i class="iavic iavic-rotation"></i>
</button>
<button
mat-icon-button
(click)="resetNavigation({zoom:true})"
matTooltip="Reset zoom">
<i class="iavic iavic-scaling"></i>
</button>
<mat-divider [vertical]="true"></mat-divider>
<button mat-icon-button
[attr.aria-label]="HIDE_FULL_STATUS_PANEL_ARIA_LABEL"
(click)="statusCardQT.ngOnChanges(); showFull = false">
<i class="fas fa-angle-up"></i>
</button>
</div>
<!-- coord -->
<div class="d-flex">
<mat-form-field class="flex-grow-1">
<mat-label>
{{ (statusPanelRealSpace$ | async) ? 'Physical Coord' : 'Voxel Coord' }}
</mat-label>
<input type="text"
matInput
(keydown.enter)="textNavigateTo(navInput.value)"
(keydown.tab)="textNavigateTo(navInput.value)"
[value]="navVal$ | async"
#navInput="matInput">
<button mat-icon-button
iav-stop="click"
matSuffix
[attr.aria-label]="COPY_NAVIGATION_STRING"
(click)="copyString(navInput.value)">
<i class="fas fa-copy"></i>
</button>
<button mat-icon-button
iav-stop="click"
matSuffix
</mat-label>
<input type="text"
matInput
<!-- minimised status bar -->
<ng-template #showMin>
<div class="sxplr-custom-cmp text of-visible text-nowrap d-inline-flex align-items-center m-1 mt-3"
iav-media-query
#media="iavMediaQuery">
<span *ngIf="(media.mediaBreakPoint$ | async) < 3" class="sxplr-pl-2">
<button mat-icon-button
[sxplr-dialog-size]="null"
[sxplr-dialog]="pointTmpl">
<i class="fas fa-pen"></i>
</button>
<button mat-icon-button
[attr.aria-label]="SHOW_FULL_STATUS_PANEL_ARIA_LABEL"
(click)="statusCardQT.ngOnChanges(); showFull = true">
<ng-template #pointTmpl>
<h1 mat-dialog-title>
Navigation Coordinate
</h1>
<div mat-dialog-content>
<form [formGroup]="dialogForm">
<ng-template ngFor [ngForOf]="['x', 'y', 'z']" let-pos>
<mat-form-field>
<mat-label>{{ pos }} (mm)</mat-label>
<input type="text" matInput [formControlName]="pos">
</mat-form-field>
</ng-template>
</form>
</div>
<div mat-dialog-actions align="end">
<ng-template [ngIf]="dialogInputState$ | async" let-state>
<button mat-raised-button color="primary"
(click)="selectPoint(state.valueMm)"
[disabled]="!state.validated"
mat-dialog-close>
select point
</button>
<button mat-button color="primary"
(click)="navigateTo(state.valueNm)"
[disabled]="!state.validated"
mat-dialog-close>
navigate to point
</button>
<button mat-button color="primary"
[attr.aria-label]="COPY_NAVIGATION_STRING"
(click)="copyString(state.string)"
[disabled]="!state.validated"
mat-dialog-close>