All files / app/component/query query.component.html

71.42% Statements 30/42
44.44% Branches 4/9
25% Functions 2/8
93.75% Lines 15/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2910x 4x           3x 8x   4x     4x   1x 2x 3x 6x 4x   2x   3x   1x 1x    
@if (editing || !query) {
  <input #editor
         class="query-editor"
         type="text"
         autocorrect="off"
         autocapitalize="none"
         i18n-placeholder
         placeholder="Tag Query"
         [value]="query"
         [attr.data-jasper-clipboard-replace]="replaceOnClipboardPaste ? 'true' : null"
         (blur)="blur(editor.value)"
         (jasper-clipboard-query-paste)="replaceOnClipboardPaste = false"
         (keydown)="$event.key === 'Enter' && search(editor.value) || true">
  <button type="button" class="query-search-button" (click)="search(editor.value)">��️</button>
} @else {
  <div #div class="breadcrumbs query-breadcrumbs" (click)="$event.target === div && edit(false)">
    @for (breadcrumb of breadcrumbs; track breadcrumb) {
      <span class="crumb">
        @if (breadcrumb.tag) {
          <a class="tag" [routerLink]="['../', breadcrumb.tag]" queryParamsHandling="merge"><span (click)="click($event, breadcrumb)">{{ breadcrumb.text }}</span></a>
        } @else {
          <span class="op" (click)="edit([breadcrumb, breadcrumb])">{{ breadcrumb.text }}</span>
        }
      </span>
    }
  </div>
  <button type="button" class="query-edit-button" (click)="edit(true)">✏️</button>
}