2023-12-20 08:20:38 +01:00
< div class = "dynamic-form-section row" [ id ] = " section . id " >
< mat-accordion class = "col-12" >
2023-12-28 16:18:49 +01:00
< mat-expansion-panel class = "row expansion-panel toc-section-header" [ id ] = " path " [ ( expanded ) ] = " panelExpanded " >
< mat-expansion-panel-header >
2023-12-20 08:20:38 +01:00
< mat-panel-title >
2023-12-28 16:18:49 +01:00
< h6 class = 'panel-title' * ngIf = "section?.sections?.length > 0" > {{path}}.section {{section.title}}< / h6 >
< h6 class = 'panel-title' * ngIf = "section?.fieldSets?.length > 0" > {{path}} {{section.title}}< / h6 >
2023-12-20 08:20:38 +01:00
< / mat-panel-title >
2023-12-28 16:18:49 +01:00
< / mat-expansion-panel-header >
2023-12-20 08:20:38 +01:00
< mat-panel-description class = "col-12" >
< h6 class = 'panel-desc' * ngIf = "section.description" [ innerHTML ] = " section . description " > < / h6 >
2023-12-28 16:18:49 +01:00
< / mat-panel-description >
< div * ngFor = "let fieldSet of section.fieldSets; let i = index;" class = "col-12" [ id ] = " fieldSet . id " ( click ) = " onAskedToScroll ( fieldSet . id ) " >
<!-- <div class="row" *ngIf="((this.visibilityRulesService.isVisibleMap[fieldsetEntry.form.get('id').value] ?? true) && this.visibilityRulesService.scanIfChildsOfCompositeFieldHasVisibleItems(fieldsetEntry.form)) && !hiddenEntriesIds.includes(fieldsetEntry.id)"> -->
< div class = "row" >
2023-12-20 08:20:38 +01:00
< div class = "col-12" >
2023-12-28 16:18:49 +01:00
< div * ngIf = "!fieldSet?.multiplicity?.tableView" class = "row" >
<!-- <app - form - field - set class="align - self - center col" [propertiesFormGroup]="propertiesFormGroup" [fieldSet]="fieldSet" [visibilityRulesService]="visibilityRulesService" [isChild]="false" [showDelete]="(fieldsetEntry.form.get('multiplicityItems').length) > 0"></app - form - field - set> -->
2024-02-02 09:29:38 +01:00
< app-form-field-set * ngFor = "let fieldSetPropertiesControl of propertiesFormGroup.get('fieldSets')?.get(fieldSet.id)?.get('items')?.controls" class = "align-self-center col" [ propertiesFormGroup ] = " fieldSetPropertiesControl . get ( ' fields ' ) " [ fieldSet ] = " fieldSet " [ path ] = " path + ' . ' + ( i + 1 ) " [ visibilityRulesService ] = " visibilityRulesService " [ isChild ] = " false " > < / app-form-field-set >
2023-12-20 08:20:38 +01:00
< / div >
2023-12-28 16:18:49 +01:00
< ng-container * ngIf = "fieldSet?.multiplicity?.tableView" >
2023-12-20 08:20:38 +01:00
< div class = "row" >
< div class = "col-12" >
2023-12-28 16:18:49 +01:00
< app-form-composite-title class = "row" [ fieldSet ] = " fieldSet " > < / app-form-composite-title >
2023-12-20 08:20:38 +01:00
< / div >
< / div >
2023-12-28 16:18:49 +01:00
<!-- <table class="table table - bordered" style="table - layout: fixed">
2023-12-20 08:20:38 +01:00
< tr >
< ng-container * ngFor = "let fieldFormGroup of fieldsetEntry.form.get('fields')['controls']; let i = index;" >
2023-12-28 16:18:49 +01:00
< th * ngIf = "this.visibilityRulesService.isVisibleMap[fieldFormGroup.get('id').value] ?? true" class = "text-wrap" > {{fieldFormGroup.get('data').value.label}}< / th >
2023-12-20 08:20:38 +01:00
< / ng-container >
< th class = "actions" > < / th >
< / tr >
2023-12-28 16:18:49 +01:00
< tr app-form-field-set [ form ] = " fieldsetEntry . form " [ datasetProfileId ] = " datasetProfileId " [ visibilityRulesService ] = " visibilityRulesService " [ isChild ] = " false " [ showDelete ] = " ( fieldsetEntry . form . get ( ' multiplicityItems ' ) . length ) > 0" [tableRow]="true">< / tr >
2023-12-20 08:20:38 +01:00
< ng-container * ngIf = "fieldsetEntry.form && fieldsetEntry.form.get('multiplicity').value.tableView" >
2023-12-28 16:18:49 +01:00
< tr app-form-field-set * ngFor = "let multipleCompositeFieldFormGroup of fieldsetEntry.form.get('multiplicityItems')['controls']; let j = index" [ form ] = " multipleCompositeFieldFormGroup " [ datasetProfileId ] = " datasetProfileId " [ visibilityRulesService ] = " visibilityRulesService " [ isChild ] = " true " [ showDelete ] = " true " [ tableRow ] = " true " > < / tr >
2023-12-20 08:20:38 +01:00
< / ng-container >
< tr * ngIf = "(fieldsetEntry.form.get('multiplicity').value.max - 1) > (fieldsetEntry.form.get('multiplicityItems').length)" >
< td [ colSpan ] = " visibleControls ( fieldsetEntry . form . get ( ' fields ' ) [ ' controls ' ] ) . length + 1 " class = "text-center" >
< span class = "d-inline-flex align-items-center" [ ngClass ] = " fieldsetEntry . form . disabled ? ' ' : ' pointer ' " ( click ) = " addMultipleField ( i ) " >
< button mat-icon-button color = "primary" [ disabled ] = " fieldsetEntry . form . disabled " >
< mat-icon > add_circle< / mat-icon >
< / button >
< span class = "mt-1" * ngIf = "fieldsetEntry.form.get('multiplicity').value.placeholder" > {{fieldsetEntry.form.get('multiplicity').value.placeholder}}< / span >
< span class = "mt-1" * ngIf = "!fieldsetEntry.form.get('multiplicity').value.placeholder" > {{('DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.MULTIPLICITY-ADD-ONE-FIELD' + (fieldsetEntry.form.get('multiplicity').value.tableView?'-TABLEVIEW':'')) | translate}}< / span >
< / span >
< / td >
< / tr >
2023-12-28 16:18:49 +01:00
< / table > -->
2023-12-20 08:20:38 +01:00
< / ng-container >
< / div >
2023-12-28 16:18:49 +01:00
<!-- <div *ngIf="fieldsetEntry.form && !fieldsetEntry.form.get('multiplicity').value.tableView" class="col - 12">
2023-12-20 08:20:38 +01:00
< div class = "row" >
< div class = "col-12" * ngFor = "let multipleCompositeFieldFormGroup of fieldsetEntry.form.get('multiplicityItems')['controls']; let j = index" >
< div class = "row" >
2023-12-28 16:18:49 +01:00
< app-form-field-set class = " align-self-center col" [ form ] = " multipleCompositeFieldFormGroup " [ visibilityRulesService ] = " visibilityRulesService " [ datasetProfileId ] = " datasetProfileId " [ isChild ] = " true " [ showDelete ] = " true " > < / app-form-field-set >
2023-12-20 08:20:38 +01:00
< / div >
< / div >
2023-12-28 16:18:49 +01:00
< div * ngIf = "(fieldsetEntry.form.get('multiplicity').value.max - 1) > (fieldsetEntry.form.get('multiplicityItems').length)" class = "col-12 mt-1 ml-0 mr-0 addOneFieldButton" >
2023-12-20 08:20:38 +01:00
< span class = "d-inline-flex align-items-center" [ ngClass ] = " fieldsetEntry . form . disabled ? ' ' : ' pointer ' " ( click ) = " addMultipleField ( i ) " >
< button mat-icon-button color = "primary" [ disabled ] = " fieldsetEntry . form . disabled " >
< mat-icon > add_circle< / mat-icon >
< / button >
< span class = "mt-1" * ngIf = "fieldsetEntry.form.get('multiplicity').value.placeholder" > {{fieldsetEntry.form.get('multiplicity').value.placeholder}}< / span >
2023-12-28 16:18:49 +01:00
< span class = "mt-1" * ngIf = "!fieldsetEntry.form.get('multiplicity').value.placeholder" > {{('DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.MULTIPLICITY-ADD-ONE-FIELD' + (fieldsetEntry.form.get('multiplicity').value.tableView?'-TABLEVIEW':'')) | translate}}< / span >
2023-12-20 08:20:38 +01:00
< / span >
< / div >
< div * ngIf = "fieldsetEntry.form.get('hasCommentField').value" class = "col-12" >
2023-12-28 16:18:49 +01:00
< rich-text-editor-component [ parentFormGroup ] = " fieldsetEntry . form " [ controlName ] = " ' commentFieldValue ' " [ id ] = " ' editor1 ' " [ placeholder ] = " ' DATASET-PROFILE-EDITOR . STEPS . FORM . COMPOSITE-FIELD . FIELDS . COMMENT-PLACEHOLDER ' | translate " [ wrapperClasses ] = " ' mb-2 ' " [ editable ] = " ! fieldsetEntry . form . get ( ' commentFieldValue ' ) . disabled " >
2023-12-20 08:20:38 +01:00
< / rich-text-editor-component >
< / div >
< / div >
2023-12-28 16:18:49 +01:00
< / div > -->
2023-12-20 08:20:38 +01:00
< / div >
< / div >
2023-12-28 16:18:49 +01:00
< div * ngIf = "section?.sections?.length > 0" class = "col-12" >
< ng-container * ngFor = "let innerSection of section.sections; let j = index;" >
<!-- <div class="row" *ngIf="!hiddenEntriesIds.includes(sectionEntry.id)"> -->
< div class = "row" >
< app-form-section class = "col-12" [ section ] = " innerSection " [ path ] = " path + ' . ' + ( j + 1 ) " [ pathName ] = " pathName + ' . sections . ' + j " ( askedToScroll ) = " onAskedToScroll ( $ event ) " [ propertiesFormGroup ] = " propertiesFormGroup " [ visibilityRulesService ] = " visibilityRulesService " [ linkToScroll ] = " subsectionLinkToScroll " > < / app-form-section >
2023-12-20 08:20:38 +01:00
< / div >
< / ng-container >
< / div >
2023-12-28 16:18:49 +01:00
< / mat-expansion-panel >
< / mat-accordion >
< / div >