All files / src/app/features/jobs/forms/inputs profile-input.component.ts

77.77% Statements 14/18
0% Branches 0/4
60% Functions 3/5
100% Lines 11/11

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 2614x 14x 14x 14x 14x 14x 14x                   14x   10x 10x       10x    
import { Component } from "@angular/core";
import { ReactiveFormsModule } from "@angular/forms";
import { MatFormField, MatHint, MatLabel } from "@angular/material/form-field";
import { MatInput } from "@angular/material/input";
import { StatusIconComponent } from "@app/layout/shared/status-icon/status-icon.component";
import { EditorComponent, TINYMCE_SCRIPT_SRC } from "@tinymce/tinymce-angular";
import { BaseInputComponent } from "./baseinput.component";
 
@Component({
  selector: 'app-job-profile-input',
  imports: [ReactiveFormsModule, MatFormField, MatInput, MatLabel, MatHint, EditorComponent, StatusIconComponent],
  providers: [
    { provide: TINYMCE_SCRIPT_SRC, useValue: 'tinymce/tinymce.min.js' }
  ],
  templateUrl: './profile-input.component.html'
})
export class ProfileInputComponent extends BaseInputComponent {
    override configure(): void {
        console.log('configure profile with initial', this.initialValue);
        this.form.addControl('profile', this.fb.control(this.initialValue, []));
    }
 
    constructor() {
        super('profile');
    }
}