All files / lib/wizard/wizard-form-step wizard-form-step.component.ts

100% Statements 47/47
100% Branches 2/2
100% Functions 1/1
100% Lines 47/47

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 47 481x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 1x  
/*******************************************************************************
 * Copyright bei
 * Entwicklungs- und Pflegeverbund für das gemeinsame Fachverfahren gefa
 *
 *******************************************************************************/
import { Component, EventEmitter, Input, Output } from '@angular/core';
 
import {
  DynamicHeadingLevelPassthroughService,
  DynamicHeadingLevelService,
} from '../../dynamic-heading/dynamic-heading-level.service';
 
/**
 * Wrapper element for the content of the form in a wizard.
 */
@Component({
  selector: 'gc-wizard-form-step',
  templateUrl: './wizard-form-step.component.html',
  styleUrls: ['./wizard-form-step.component.css'],
  providers: [DynamicHeadingLevelService],
  viewProviders: [
    {
      provide: DynamicHeadingLevelService,
      useClass: DynamicHeadingLevelPassthroughService,
    },
  ],
})
export class WizardFormStepComponent {
  /**
   * Step number that appears before the step label.
   */
  @Input()
  public number = 1;
 
  /**
   * Text that will be rendered as the step label.
   */
  @Input()
  public label = '';
 
  /**
   * Fires on the edit button press.
   */
  @Output()
  public readonly onEditButtonAction: EventEmitter<void> =
    new EventEmitter<void>();
}