-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Community Infrastructure Levy (CIL) schemas (#4084)
- Loading branch information
1 parent
8607b97
commit d87637e
Showing
4 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
editor.planx.uk/src/@planx/components/List/schemas/CIL/ExistingCIL.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { Schema } from "@planx/components/shared/Schema/model"; | ||
import { TextInputType } from "@planx/components/TextInput/model"; | ||
|
||
export const ExistingBuildingsCIL: Schema = { | ||
type: "Existing building or part of building", | ||
fields: [ | ||
{ | ||
type: "text", | ||
data: { | ||
title: "Describe the existing building or part", | ||
fn: "descriptionExisting", | ||
type: TextInputType.Short, | ||
}, | ||
}, | ||
{ | ||
type: "number", | ||
data: { | ||
title: "How much of its floorspace will be retained?", | ||
units: "m²", | ||
fn: "area.retained", | ||
allowNegatives: false, | ||
}, | ||
}, | ||
{ | ||
type: "text", | ||
data: { | ||
title: "What will the retained floorspace be used for?", | ||
description: "This can be identical to its current use.", | ||
fn: "descriptionProposed", | ||
type: TextInputType.Short, | ||
}, | ||
}, | ||
{ | ||
type: "number", | ||
data: { | ||
title: "How much of its floorspace will be lost?", | ||
units: "m²", | ||
fn: "area.loss", | ||
allowNegatives: false, | ||
}, | ||
}, | ||
{ | ||
type: "question", | ||
data: { | ||
title: | ||
"Has the building or part been lawfully occupied for 6 continuous months in the past 36 months?", | ||
fn: "continuousOccupation", | ||
options: [ | ||
{ id: "true", data: { text: "Yes", val: "true" } }, | ||
{ id: "false", data: { text: "No", val: "false" } }, | ||
], | ||
}, | ||
}, | ||
{ | ||
type: "text", | ||
data: { | ||
title: "When was it last occupied for its lawful use?", | ||
description: "Please enter a date or whether it is still in use.", | ||
fn: "lastOccupation", | ||
type: TextInputType.Short, | ||
}, | ||
}, | ||
], | ||
min: 1, | ||
} as const; |
27 changes: 27 additions & 0 deletions
27
editor.planx.uk/src/@planx/components/List/schemas/CIL/MezzanineCIL.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Schema } from "@planx/components/shared/Schema/model"; | ||
import { TextInputType } from "@planx/components/TextInput/model"; | ||
|
||
export const MezzanineCIL: Schema = { | ||
type: "New mezzanine floor", | ||
fields: [ | ||
{ | ||
type: "text", | ||
data: { | ||
title: "Describe the use of the mezzanine", | ||
fn: "description", | ||
type: TextInputType.Short, | ||
}, | ||
}, | ||
{ | ||
type: "number", | ||
data: { | ||
title: | ||
"What will be the Gross Internal Floor Area (GIA) of the mezzanine?", | ||
units: "m²", | ||
fn: "area", | ||
allowNegatives: false, | ||
}, | ||
}, | ||
], | ||
min: 1, | ||
} as const; |
44 changes: 44 additions & 0 deletions
44
editor.planx.uk/src/@planx/components/List/schemas/CIL/UnoccupiedCIL.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Schema } from "@planx/components/shared/Schema/model"; | ||
import { TextInputType } from "@planx/components/TextInput/model"; | ||
|
||
export const UnoccupiedBuildingsCIL: Schema = { | ||
type: "Building not meant for occupation or temporarily permitted", | ||
fields: [ | ||
{ | ||
type: "text", | ||
data: { | ||
title: "Describe the existing building", | ||
fn: "descriptionExisting", | ||
type: TextInputType.Short, | ||
}, | ||
}, | ||
{ | ||
type: "number", | ||
data: { | ||
title: "How much of its floorspace will be retained?", | ||
units: "m²", | ||
fn: "area.retained", | ||
allowNegatives: false, | ||
}, | ||
}, | ||
{ | ||
type: "text", | ||
data: { | ||
title: "What will the retained floorspace be used for?", | ||
description: "This can be identical to its current use.", | ||
fn: "descriptionProposed", | ||
type: TextInputType.Short, | ||
}, | ||
}, | ||
{ | ||
type: "number", | ||
data: { | ||
title: "How much of its floorspace will be lost?", | ||
units: "m²", | ||
fn: "area.loss", | ||
allowNegatives: false, | ||
}, | ||
}, | ||
], | ||
min: 1, | ||
} as const; |