2023-11-24 17:42:23 +01:00
|
|
|
|
import { Component, Input, OnInit} from '@angular/core';
|
|
|
|
|
import { Rule } from '@app/core/model/dataset-profile-definition/rule';
|
2023-12-20 08:20:38 +01:00
|
|
|
|
import { VisibilityRulesService } from '@app/ui/description/editor/description-form/visibility-rules/visibility-rules.service';
|
2023-11-24 17:42:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-final-preview-component',
|
|
|
|
|
templateUrl: './final-preview.component.html',
|
|
|
|
|
styleUrls: ['./final-preview.component.scss'],
|
|
|
|
|
providers:[VisibilityRulesService]
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export class FinalPreviewComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Input() formGroup = null;
|
|
|
|
|
@Input() visibilityRules:Rule[] = [];
|
|
|
|
|
constructor(private visibilityRulesService: VisibilityRulesService){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void {
|
|
|
|
|
this.visibilityRulesService.buildVisibilityRules(this.visibilityRules, this.formGroup);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|