diff --git a/src/lib/sketch/v3/FormCrossing.svelte b/src/lib/sketch/v3/FormCrossing.svelte new file mode 100644 index 000000000..e69de29bb diff --git a/src/lib/sketch/v3/FormV3.svelte b/src/lib/sketch/v3/FormV3.svelte new file mode 100644 index 000000000..a8eaf2d1b --- /dev/null +++ b/src/lib/sketch/v3/FormV3.svelte @@ -0,0 +1,103 @@ + + + + + + {#if props.length_meters} + autoFillName()} disabled={!$routeTool}> + Auto-fill + + {/if} + + + [ + scheme.scheme_reference, + schemeName(scheme), + ])} + bind:value={props.scheme_reference} +/> + +{#if props.v3} + + + {#if props.v3.intervention_type === "crossing"} + + {:else} + + + + {/if} +{/if} + + + +{#if props.length_meters} + Length: {prettyPrintMeters(props.length_meters)} +{/if} diff --git a/src/types.ts b/src/types.ts index bd13cceda..85dc3c66b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -122,6 +122,7 @@ export interface InterventionProps { // The schema is v1, unless a field here is present pipeline?: PipelineIntervention; v2?: V2Intervention; + v3?: V3Intervention; } export interface PipelineIntervention extends PipelineBudget, PipelineTiming { @@ -145,3 +146,16 @@ export interface V2Intervention { intended_uses: "cycling" | "walking_wheeling" | "all" | ""; work_type: "new" | "improvement" | "existing" | ""; } + +export interface V3Intervention { + intervention_type: + | "area" + | "route" + | "crossing" + | "modal filter" + | "junction treatment" + | "other" + | ""; + intended_uses: "cycling" | "walking_wheeling" | "all" | ""; + work_type: "new" | "improvement" | "existing" | ""; +} \ No newline at end of file
Length: {prettyPrintMeters(props.length_meters)}