Skip to content
Snippets Groups Projects
Commit 8b0a684e authored by Mathias Chouet's avatar Mathias Chouet
Browse files

Work on GUI for Prebarrage

parent 43ac184a
No related branches found
No related tags found
1 merge request!96WIP: Resolve "Simplifier les composants de résultats"
......@@ -24,6 +24,7 @@ import { TopFormulaireElementIterator } from "../form-iterator/top-element-itera
import { CalculatorResults } from "../../results/calculator-results";
import { ServiceFactory } from "../../services/service-factory";
import { PabTable } from "../elements/pab-table";
import { PbSchema } from '../elements/pb-schema';
/**
* classe de base pour tous les formulaires
......@@ -222,6 +223,13 @@ export abstract class FormulaireDefinition extends FormulaireNode implements Obs
this.kids.push(tab);
}
private parse_pb_schema(json: {}) {
const sch: PbSchema = new PbSchema(this);
sch.parseConfig(json);
this.kids.push(sch);
}
/**
* 1ère passe d'analyse de la configuration
*/
......@@ -279,6 +287,10 @@ export abstract class FormulaireDefinition extends FormulaireNode implements Obs
this.parse_pab_table(conf);
break;
case "pb_schema": // not generic at all
this.parse_pb_schema(conf);
break;
default:
throw new Error(`type d'objet de module de calcul ${type} non pris en charge`);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment