All files / lib/internal/ext-search-label-container ext-search-label-container.directive.ts

78.26% Statements 36/46
100% Branches 14/14
85.71% Functions 12/14
78.26% Lines 36/46

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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 471x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x           1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x           1x  
import { Directive, TemplateRef } from '@angular/core';
 
interface ContentTemplateContext {
  $implicit: boolean;
}
 
/**
 * Marks a template to be rendered as start-slot content within the `gc-extended-search-label-container`
 */
@Directive({
  selector:
    'ng-template[data-gc-start-slot], ng-template[data-gc-fieldset-content]',
})
export class StartSlotContentDirective {
  constructor(public readonly template: TemplateRef<ContentTemplateContext>) {}
 
  /**
   * @ignore
   */
  static ngTemplateContextGuard(
    _dir: StartSlotContentDirective,
    ctx: unknown,
  ): ctx is ContentTemplateContext {
    return true;
  }
}
 
/**
 * Marks a template to be rendered as end-slot content within the `gc-extended-search-label-container`
 */
@Directive({
  selector: 'ng-template[data-gc-end-slot]',
})
export class EndSlotContentDirective {
  constructor(public readonly template: TemplateRef<ContentTemplateContext>) {}
 
  /**
   * @ignore
   */
  static ngTemplateContextGuard(
    _dir: EndSlotContentDirective,
    ctx: unknown,
  ): ctx is ContentTemplateContext {
    return true;
  }
}