@planning-inspectorate/dynamic-forms 3.7.1 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,14 +16,13 @@ resources:
16
16
  type: github
17
17
  endpoint: Planning-Inspectorate
18
18
  name: Planning-Inspectorate/common-pipeline-templates
19
- ref: refs/tags/release/3.23.0
19
+ ref: refs/tags/release/3.25.2
20
20
 
21
21
  extends:
22
22
  template: stages/wrapper_ci.yml@templates
23
23
  parameters:
24
24
  gitFetchDepth: 0
25
25
  skipAzureAuth: true
26
- skipGitTagging: true
27
26
  validationJobs:
28
27
  - name: Run Linting & Tests
29
28
  steps:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planning-inspectorate/dynamic-forms",
3
- "version": "3.7.1",
3
+ "version": "3.8.1",
4
4
  "description": "This package is for building GDS forms using a configuration-based approach.",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -9,6 +9,9 @@
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/Planning-Inspectorate/dynamic-forms.git"
11
11
  },
12
+ "engines": {
13
+ "node": ">=22.18.0"
14
+ },
12
15
  "scripts": {
13
16
  "commitlint": "commitlint --from=$(git rev-parse $(git cherry origin/main | head -n 1 | cut -c 3-)^1)",
14
17
  "lint": "npx eslint .",
@@ -27,7 +30,7 @@
27
30
  "nunjucks": "^3.2.4"
28
31
  },
29
32
  "imports": {
30
- "#question-types": "./src/questions/question-types.d.ts",
33
+ "#question-types": "./src/questions/question-types.ts",
31
34
  "#test/*": "./test/*",
32
35
  "#base-validator": "./src/validator/base-validator.js",
33
36
  "#journey": "./src/journey/journey.js",
@@ -9,7 +9,7 @@ export default class DateTimeQuestion extends Question {
9
9
  static PM = 'pm';
10
10
 
11
11
  /**
12
- * @param {import('@planning-inspectorate/dynamic-forms/src/questions/question-types.js').QuestionParameters} params
12
+ * @param {import('#question-types').QuestionParameters} params
13
13
  * @param {string} [params.dateFormat]
14
14
  * @param {string} [params.timeFormat]
15
15
  */
@@ -18,7 +18,7 @@ export default class RadioQuestion extends OptionsQuestion {
18
18
  * @param {Array.<import('#base-validator').BaseValidator>} [params.validators]
19
19
  * @param {boolean} [params.editable]
20
20
  * @param {Object<string, any>} [params.viewData]
21
- * @param {import('../../questions/question-types.js').ActionLink} [params.actionLink]
21
+ * @param {import('#question-types').ActionLink} [params.actionLink]
22
22
  */
23
23
  constructor({
24
24
  title,
@@ -65,7 +65,7 @@ export default class UnitOptionEntryQuestion extends Question {
65
65
  * @param {import('#journey').Journey} journey - the journey we are in
66
66
  * @param {Record<string, unknown>} [customViewData] additional data to send to view
67
67
  * @param {Record<string, unknown>} [payload]
68
- * @param {import('#src/questions/question-types.d.ts').PrepQuestionForRenderingOptions} options
68
+ * @param {import('#question-types').PrepQuestionForRenderingOptions} options
69
69
  * @returns {import('#question').QuestionViewModel & {
70
70
  * question: import('#question').QuestionViewModel['question'] & {
71
71
  * options:UnitOption[]
package/src/index.js CHANGED
@@ -46,6 +46,9 @@ export { createQuestions } from './questions/create-questions.js';
46
46
  export * from './questions/options-question.js';
47
47
  export { questionClasses } from './questions/questions.js';
48
48
 
49
+ export * from './questions/question-props.ts';
50
+ export * from './questions/question-types.ts';
51
+
49
52
  // Section
50
53
  export { Section } from './section.js';
51
54
 
@@ -63,7 +63,7 @@ export default class OptionsQuestion extends Question {
63
63
  * @param {import('#journey').Journey} journey - the journey we are in
64
64
  * @param {Record<string, unknown>} [customViewData] additional data to send to view
65
65
  * @param {Record<string, unknown>} [payload]
66
- * @param {import('#src/questions/question-types.d.ts').PrepQuestionForRenderingOptions} options
66
+ * @param {import('#question-types').PrepQuestionForRenderingOptions} options
67
67
  * @returns {import('./question').QuestionViewModel} QuestionViewModel
68
68
  */
69
69
  prepQuestionForRendering(section, journey, customViewData, payload, options) {
@@ -1,5 +1,4 @@
1
- import { DocType } from '@pins/common/src/document-types';
2
- import { QuestionParameters } from '#question-types';
1
+ import type { QuestionParameters } from '#question-types';
3
2
 
4
3
  type QuestionTypes =
5
4
  | 'boolean'
@@ -19,7 +18,7 @@ type QuestionTypes =
19
18
  | 'text-entry-redact'
20
19
  | 'unit-option';
21
20
 
22
- type CommonQuestionProps = QuestionParameters & {
21
+ type CommonQuestionProps = Omit<QuestionParameters, 'viewFolder'> & {
23
22
  type: QuestionTypes;
24
23
  };
25
24
 
@@ -117,11 +116,6 @@ type MultiFieldInputQuestionProps = CommonQuestionProps & {
117
116
  formatType?: 'contactDetails' | 'standard';
118
117
  };
119
118
 
120
- type MultiFileUploadQuestionProps = CommonQuestionProps & {
121
- type: 'multi-file-upload';
122
- documentType: DocType;
123
- };
124
-
125
119
  type NumberEntryQuestionProps = CommonQuestionProps & {
126
120
  type: 'number';
127
121
  suffix?: string;
@@ -1,7 +1,7 @@
1
- import { RouteParams } from '#src/journey/journey-types.d.ts';
2
- import ManageListQuestion from '#src/components/manage-list/question.js';
3
- import BaseValidator from '../validator/base-validator.js';
4
- import { JourneyResponse } from '../journey/journey-response.js';
1
+ import type { RouteParams } from '#src/journey/journey-types.d.ts';
2
+ import type ManageListQuestion from '#src/components/manage-list/question.js';
3
+ import type BaseValidator from '../validator/base-validator.js';
4
+ import type { JourneyResponse } from '../journey/journey-response.js';
5
5
 
6
6
  export interface QuestionParameters {
7
7
  title: string;
@@ -210,7 +210,7 @@ export class Question {
210
210
  * @param {Journey} journey - the journey we are in
211
211
  * @param {Record<string, unknown>} [customViewData] additional data to send to view
212
212
  * @param {unknown} [payload]
213
- * @param {import('./question-types.d.ts').PrepQuestionForRenderingOptions} [options] - required to support manage list question
213
+ * @param {import('#question-types').PrepQuestionForRenderingOptions} [options] - required to support manage list question
214
214
  * @returns {QuestionViewModel}
215
215
  */
216
216
  prepQuestionForRendering(section, journey, customViewData, payload, options) {
@@ -278,7 +278,7 @@ export class Question {
278
278
  * Get the answers object from the journey response, which may be nested in an array for manage list questions
279
279
  *
280
280
  * @param {JourneyResponse} response
281
- * @param {import('./question-types.d.ts').PrepQuestionForRenderingOptions} [options]
281
+ * @param {import('#question-types').PrepQuestionForRenderingOptions} [options]
282
282
  * @returns {Record<string, any>}
283
283
  */
284
284
  answerObjectFromJourneyResponse(response, { params, manageListQuestion } = {}) {
package/tsconfig.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "target": "esnext",
21
21
  "skipLibCheck": true,
22
22
  "paths": {
23
- "#question-types": ["./src/questions/question-types.d.ts"],
23
+ "#question-types": ["./src/questions/question-types.ts"],
24
24
  "#src/*": ["./src/*"],
25
25
  "#test/*": ["./test/*"],
26
26
  "#question": ["./src/questions/question.js"],
@@ -2,11 +2,11 @@ export default class DateTimeQuestion extends Question {
2
2
  static AM: string;
3
3
  static PM: string;
4
4
  /**
5
- * @param {import('@planning-inspectorate/dynamic-forms/src/questions/question-types.js').QuestionParameters} params
5
+ * @param {import('#question-types').QuestionParameters} params
6
6
  * @param {string} [params.dateFormat]
7
7
  * @param {string} [params.timeFormat]
8
8
  */
9
- constructor({ dateFormat, timeFormat, ...params }: any);
9
+ constructor({ dateFormat, timeFormat, ...params }: import("#question-types").QuestionParameters);
10
10
  dateFormat: any;
11
11
  timeFormat: any;
12
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/question.js"],"names":[],"mappings":"AAMA;IACC,kBAAiB;IACjB,kBAAiB;IAEjB;;;;OAIG;IACH,wDAOC;IAFA,gBAA4B;IAC5B,gBAA4B;IAG7B;;;;;OAKG,CACH,yCAHW,eAAe,GACb,OAAO,CAAE,MAAM,CAAC,CAqB5B;IAED;;MAqCC;;CAoCD;yBA5HwB,6BAA6B"}
1
+ {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/question.js"],"names":[],"mappings":"AAMA;IACC,kBAAiB;IACjB,kBAAiB;IAEjB;;;;OAIG;IACH,mDAJW,OAAO,iBAAiB,EAAE,kBAAkB,EAWtD;IAFA,gBAA4B;IAC5B,gBAA4B;IAG7B;;;;;OAKG,CACH,yCAHW,eAAe,GACb,OAAO,CAAE,MAAM,CAAC,CAqB5B;IAED;;MAqCC;;CAoCD;yBA5HwB,6BAA6B"}
@@ -16,7 +16,7 @@ export default class RadioQuestion extends OptionsQuestion {
16
16
  * @param {Array.<import('#base-validator').BaseValidator>} [params.validators]
17
17
  * @param {boolean} [params.editable]
18
18
  * @param {Object<string, any>} [params.viewData]
19
- * @param {import('../../questions/question-types.js').ActionLink} [params.actionLink]
19
+ * @param {import('#question-types').ActionLink} [params.actionLink]
20
20
  */
21
21
  constructor({ title, question, fieldName, viewFolder, url, hint, pageTitle, description, label, html, legend, options, validators, actionLink, editable, viewData }: {
22
22
  title: string;
@@ -36,7 +36,7 @@ export default class RadioQuestion extends OptionsQuestion {
36
36
  viewData?: {
37
37
  [x: string]: any;
38
38
  } | undefined;
39
- actionLink?: import("../../questions/question-types.js").ActionLink | undefined;
39
+ actionLink?: import("#question-types").ActionLink | undefined;
40
40
  });
41
41
  label: string | undefined;
42
42
  legend: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/question.js"],"names":[],"mappings":"AAEA;IACC;;;;;;;;;;;;;;;;;;OAkBG;IACH,qKAjBG;QAAuB,KAAK,EAApB,MAAM;QACS,QAAQ,EAAvB,MAAM;QACS,SAAS,EAAxB,MAAM;QACU,UAAU;QACV,GAAG;QACH,IAAI;QACJ,SAAS;QACT,WAAW;QACX,KAAK;QACL,IAAI;QACJ,MAAM;QAC+C,OAAO,EAA5E,KAAK,CAAE,OAAO,qCAAqC,EAAE,MAAM,CAAC;QACH,UAAU;QAClD,QAAQ;QACI,QAAQ;;;QAC2B,UAAU;KAAC,EAuCrF;IAFA,0BAAkB;IAClB,2BAAoB;IAWrB;;;;;;OAMG;IACH,wDAJW,OAAO,UADP,MAAM,GAGJ,KAAK,CAAE,MAAM,CAAC,CAgB1B;CACD;4BA3F2B,qCAAqC"}
1
+ {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/question.js"],"names":[],"mappings":"AAEA;IACC;;;;;;;;;;;;;;;;;;OAkBG;IACH,qKAjBG;QAAuB,KAAK,EAApB,MAAM;QACS,QAAQ,EAAvB,MAAM;QACS,SAAS,EAAxB,MAAM;QACU,UAAU;QACV,GAAG;QACH,IAAI;QACJ,SAAS;QACT,WAAW;QACX,KAAK;QACL,IAAI;QACJ,MAAM;QAC+C,OAAO,EAA5E,KAAK,CAAE,OAAO,qCAAqC,EAAE,MAAM,CAAC;QACH,UAAU;QAClD,QAAQ;QACI,QAAQ;;;QACS,UAAU;KAAC,EAuCnE;IAFA,0BAAkB;IAClB,2BAAoB;IAWrB;;;;;;OAMG;IACH,wDAJW,OAAO,UADP,MAAM,GAGJ,KAAK,CAAE,MAAM,CAAC,CAgB1B;CACD;4BA3F2B,qCAAqC"}
@@ -34,14 +34,14 @@ export default class UnitOptionEntryQuestion extends Question {
34
34
  * @param {import('#journey').Journey} journey - the journey we are in
35
35
  * @param {Record<string, unknown>} [customViewData] additional data to send to view
36
36
  * @param {Record<string, unknown>} [payload]
37
- * @param {import('#src/questions/question-types.d.ts').PrepQuestionForRenderingOptions} options
37
+ * @param {import('#question-types').PrepQuestionForRenderingOptions} options
38
38
  * @returns {import('#question').QuestionViewModel & {
39
39
  * question: import('#question').QuestionViewModel['question'] & {
40
40
  * options:UnitOption[]
41
41
  * }
42
42
  * }}
43
43
  */
44
- prepQuestionForRendering(section: any, journey: import("#journey").Journey, customViewData?: Record<string, unknown>, payload?: Record<string, unknown>, options: import("#src/questions/question-types.d.ts").PrepQuestionForRenderingOptions): import("#question").QuestionViewModel & {
44
+ prepQuestionForRendering(section: any, journey: import("#journey").Journey, customViewData?: Record<string, unknown>, payload?: Record<string, unknown>, options: import("#question-types").PrepQuestionForRenderingOptions): import("#question").QuestionViewModel & {
45
45
  question: import("#question").QuestionViewModel["question"] & {
46
46
  options: UnitOption[];
47
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/unit-option-entry/question.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;IACC,gCAAgC;IAChC,SADW,KAAK,CAAC,UAAU,CAAC,CACpB;IAqBP,0BAAgD;IAEhD,WAAkB;IAClB,yBAA+C;IAGhD;;;;;;;;;;;;OAYG;IACH,gDAVW,OAAO,UAAU,EAAE,OAAO,mBAC1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WACvB,OAAO,oCAAoC,EAAE,+BAA+B,GAC1E,OAAO,WAAW,EAAE,iBAAiB,GAAG;QAChD,QAAQ,EAAE,OAAO,WAAW,EAAE,iBAAiB,CAAC,UAAU,CAAC,GAAG;YAC5D,OAAO,EAAC,UAAU,EAAE,CAAA;SACrB,CAAA;KACF,CAmDH;IAED;;;;;OAKG,CACH,yCAHW,eAAe,GACb,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAgCzD;CAoBD;;;;;;;;;yBAvKY;IACR,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAA;CACH;yBA5BsB,6BAA6B"}
1
+ {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/unit-option-entry/question.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;IACC,gCAAgC;IAChC,SADW,KAAK,CAAC,UAAU,CAAC,CACpB;IAqBP,0BAAgD;IAEhD,WAAkB;IAClB,yBAA+C;IAGhD;;;;;;;;;;;;OAYG;IACH,gDAVW,OAAO,UAAU,EAAE,OAAO,mBAC1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WACvB,OAAO,iBAAiB,EAAE,+BAA+B,GACvD,OAAO,WAAW,EAAE,iBAAiB,GAAG;QAChD,QAAQ,EAAE,OAAO,WAAW,EAAE,iBAAiB,CAAC,UAAU,CAAC,GAAG;YAC5D,OAAO,EAAC,UAAU,EAAE,CAAA;SACrB,CAAA;KACF,CAmDH;IAED;;;;;OAKG,CACH,yCAHW,eAAe,GACb,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAgCzD;CAoBD;;;;;;;;;yBAvKY;IACR,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAA;CACH;yBA5BsB,6BAA6B"}
@@ -23,6 +23,8 @@ export * from "./lib/utils.js";
23
23
  export * from "./middleware/build-get-journey.js";
24
24
  export * from "./middleware/redirect-to-unanswered-question.js";
25
25
  export * from "./questions/options-question.js";
26
+ export * from "./questions/question-props.ts";
27
+ export * from "./questions/question-types.ts";
26
28
  export * from "./validator/address-validator.js";
27
29
  export * from "./validator/base-validator.js";
28
30
  export * from "./validator/conditional-required-validator.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAC4B,kCAAkC;0BACpC,+BAA+B;2BAC9B,gCAAgC;4BAC/B,iCAAiC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAC4B,kCAAkC;0BACpC,+BAA+B;2BAC9B,gCAAgC;4BAC/B,iCAAiC"}
@@ -39,10 +39,10 @@ export default class OptionsQuestion extends Question {
39
39
  * @param {import('#journey').Journey} journey - the journey we are in
40
40
  * @param {Record<string, unknown>} [customViewData] additional data to send to view
41
41
  * @param {Record<string, unknown>} [payload]
42
- * @param {import('#src/questions/question-types.d.ts').PrepQuestionForRenderingOptions} options
42
+ * @param {import('#question-types').PrepQuestionForRenderingOptions} options
43
43
  * @returns {import('./question').QuestionViewModel} QuestionViewModel
44
44
  */
45
- prepQuestionForRendering(section: import("#section").Section, journey: import("#journey").Journey, customViewData?: Record<string, unknown>, payload?: Record<string, unknown>, options: import("#src/questions/question-types.d.ts").PrepQuestionForRenderingOptions): any;
45
+ prepQuestionForRendering(section: import("#section").Section, journey: import("#journey").Journey, customViewData?: Record<string, unknown>, payload?: Record<string, unknown>, options: import("#question-types").PrepQuestionForRenderingOptions): any;
46
46
  }
47
47
  export type Option = {
48
48
  text: string;
@@ -1 +1 @@
1
- {"version":3,"file":"options-question.d.ts","sourceRoot":"","sources":["../../../src/questions/options-question.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;GAEG;AAEH;IAIC;;;OAGG;IACH,oBAHW,OAAO,iBAAiB,EAAE,kBAAkB,EAgBtD;IApBD,4BAA4B;IAC5B,SADW,KAAK,CAAC,MAAM,CAAC,CAChB;IAkBP,yBAA+C;IAGhD;;;;;;;;OAQG;IACH,kCAPW,OAAO,UAAU,EAAE,OAAO,WAC1B,OAAO,UAAU,EAAE,OAAO,mBAC1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WACvB,OAAO,oCAAoC,EAAE,+BAA+B,OAmDtF;CAmCD;qBA9IY;IACR,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,CAAC,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,OAAO,CAAC;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAA;KAClB,CAAC;IACA,eAAe,CAAC,EAAE;QAChB,IAAI,EAAE,MAAM,CAAC;KAChB,CAAA;CACH;+BAIU,GAAsC,GAAG;IAAE,QAAQ,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CAAE;yBAhChE,eAAe"}
1
+ {"version":3,"file":"options-question.d.ts","sourceRoot":"","sources":["../../../src/questions/options-question.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;GAEG;AAEH;IAIC;;;OAGG;IACH,oBAHW,OAAO,iBAAiB,EAAE,kBAAkB,EAgBtD;IApBD,4BAA4B;IAC5B,SADW,KAAK,CAAC,MAAM,CAAC,CAChB;IAkBP,yBAA+C;IAGhD;;;;;;;;OAQG;IACH,kCAPW,OAAO,UAAU,EAAE,OAAO,WAC1B,OAAO,UAAU,EAAE,OAAO,mBAC1B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WACvB,OAAO,iBAAiB,EAAE,+BAA+B,OAmDnE;CAmCD;qBA9IY;IACR,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,CAAC,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,OAAO,CAAC;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAA;KAClB,CAAC;IACA,eAAe,CAAC,EAAE;QAChB,IAAI,EAAE,MAAM,CAAC;KAChB,CAAA;CACH;+BAIU,GAAsC,GAAG;IAAE,QAAQ,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CAAE;yBAhChE,eAAe"}
@@ -0,0 +1,113 @@
1
+ import type { QuestionParameters } from '#question-types';
2
+ type QuestionTypes = 'boolean' | 'checkbox' | 'date' | 'date-period' | 'date-time' | 'email' | 'manage-list' | 'multi-field-input' | 'number' | 'radio' | 'select' | 'single-line-input' | 'site-address' | 'text-entry' | 'text-entry-redact' | 'unit-option';
3
+ type CommonQuestionProps = Omit<QuestionParameters, 'viewFolder'> & {
4
+ type: QuestionTypes;
5
+ };
6
+ type Option = {
7
+ text: string;
8
+ value: string;
9
+ hint?: object;
10
+ checked?: boolean | undefined;
11
+ attributes?: Record<string, string>;
12
+ behaviour?: 'exclusive';
13
+ conditional?: {
14
+ question: string;
15
+ type: string;
16
+ fieldName: string;
17
+ inputClasses?: string;
18
+ html?: string;
19
+ value?: unknown;
20
+ label?: string;
21
+ hint?: string;
22
+ };
23
+ conditionalText?: {
24
+ html: string;
25
+ };
26
+ } | {
27
+ divider?: string;
28
+ };
29
+ interface InputField {
30
+ fieldName: string;
31
+ label: string;
32
+ formatJoinString?: string;
33
+ hint?: string;
34
+ }
35
+ interface UnitOption {
36
+ text: string;
37
+ value: string;
38
+ hint?: object;
39
+ checked?: boolean | undefined;
40
+ attributes?: Record<string, string>;
41
+ behaviour?: 'exclusive';
42
+ conditional: {
43
+ fieldName: string;
44
+ suffix: string;
45
+ value?: unknown;
46
+ label?: string;
47
+ hint?: string;
48
+ conversionFactor?: number;
49
+ };
50
+ }
51
+ type BooleanQuestionProps = CommonQuestionProps & {
52
+ type: 'boolean';
53
+ options?: Option[];
54
+ interfaceType?: 'checkbox' | 'radio';
55
+ };
56
+ type CheckboxQuestionProps = CommonQuestionProps & {
57
+ type: 'checkbox';
58
+ options: Option[];
59
+ };
60
+ type DateQuestionProps = CommonQuestionProps & {
61
+ type: 'date';
62
+ };
63
+ type DatePeriodQuestionProps = CommonQuestionProps & {
64
+ type: 'date-period';
65
+ };
66
+ type DateTimeQuestionProps = CommonQuestionProps & {
67
+ type: 'date-time';
68
+ };
69
+ type ManageListQuestionProps = CommonQuestionProps & {
70
+ type: 'manage-list';
71
+ };
72
+ type EmailQuestionProps = CommonQuestionProps & {
73
+ type: 'email';
74
+ };
75
+ type MultiFieldInputQuestionProps = CommonQuestionProps & {
76
+ type: 'multi-field-input';
77
+ inputAttributes?: Record<string, string>;
78
+ inputFields: InputField[];
79
+ formatType?: 'contactDetails' | 'standard';
80
+ };
81
+ type NumberEntryQuestionProps = CommonQuestionProps & {
82
+ type: 'number';
83
+ suffix?: string;
84
+ };
85
+ type RadioQuestionProps = CommonQuestionProps & {
86
+ type: 'radio';
87
+ options: Option[];
88
+ };
89
+ type SelectQuestionProps = CommonQuestionProps & {
90
+ type: 'select';
91
+ options: Option[];
92
+ };
93
+ type SingleLineInputQuestionProps = CommonQuestionProps & {
94
+ type: 'single-line-input';
95
+ inputAttributes?: Record<string, string>;
96
+ };
97
+ type SiteAddressQuestionProps = CommonQuestionProps & {
98
+ type: 'site-address';
99
+ };
100
+ type TextEntryQuestionProps = CommonQuestionProps & {
101
+ type: 'text-entry';
102
+ };
103
+ type TextEntryRedactQuestionProps = CommonQuestionProps & {
104
+ type: 'text-entry-redact';
105
+ };
106
+ type UnitOptionEntryQuestionProps = CommonQuestionProps & {
107
+ type: 'unit-option';
108
+ conditionalFieldName: string;
109
+ options: UnitOption[];
110
+ };
111
+ export type QuestionProps = BooleanQuestionProps | CheckboxQuestionProps | DateQuestionProps | DatePeriodQuestionProps | DateTimeQuestionProps | ManageListQuestionProps | EmailQuestionProps | MultiFieldInputQuestionProps | NumberEntryQuestionProps | RadioQuestionProps | SelectQuestionProps | SingleLineInputQuestionProps | SiteAddressQuestionProps | TextEntryQuestionProps | TextEntryRedactQuestionProps | UnitOptionEntryQuestionProps;
112
+ export {};
113
+ //# sourceMappingURL=question-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-props.d.ts","sourceRoot":"","sources":["../../../src/questions/question-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kB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,GAClB,4BAA4B,GAC5B,wBAAwB,GACxB,kBAAkB,GAClB,mBAAmB,GACnB,4BAA4B,GAC5B,wBAAwB,GACxB,sBAAsB,GACtB,4BAA4B,GAC5B,4BAA4B,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { RouteParams } from '#src/journey/journey-types.d.ts';
2
+ import type ManageListQuestion from '#src/components/manage-list/question.js';
3
+ import type BaseValidator from '../validator/base-validator.js';
4
+ import type { JourneyResponse } from '../journey/journey-response.js';
5
+ export interface QuestionParameters {
6
+ title: string;
7
+ question: string;
8
+ viewFolder: string;
9
+ fieldName: string;
10
+ url?: string;
11
+ pageTitle?: string;
12
+ description?: string;
13
+ validators?: BaseValidator[];
14
+ html?: string;
15
+ hint?: string;
16
+ interfaceType?: string;
17
+ shouldDisplay?: (response: JourneyResponse) => boolean;
18
+ autocomplete?: string;
19
+ editable?: boolean;
20
+ actionLink?: ActionLink;
21
+ viewData?: Record<string, any>;
22
+ }
23
+ export interface ActionLink {
24
+ text: string;
25
+ href: string;
26
+ }
27
+ export interface QuestionViewModel {
28
+ question: {
29
+ value: string | number | Record<string, any>;
30
+ question: string;
31
+ fieldName: string;
32
+ pageTitle: string;
33
+ description?: string;
34
+ html?: string;
35
+ };
36
+ layoutTemplate: string;
37
+ pageCaption: string;
38
+ continueButtonText: string;
39
+ backLink: string;
40
+ showBackToListLink: string;
41
+ listLink: string;
42
+ journeyTitle: string;
43
+ [k: string]: any;
44
+ }
45
+ export interface PrepQuestionForRenderingOptions {
46
+ params: RouteParams;
47
+ manageListQuestion?: ManageListQuestion;
48
+ }
49
+ //# sourceMappingURL=question-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-types.d.ts","sourceRoot":"","sources":["../../../src/questions/question-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,kBAAkB,MAAM,yCAAyC,CAAC;AAC9E,OAAO,KAAK,aAA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,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CACjB;AAED,MAAM,WAAW,+BAA+B;IAC/C,MAAM,EAAE,WAAW,CAAC;IACpB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACxC"}
@@ -132,10 +132,10 @@ export class Question {
132
132
  * @param {Journey} journey - the journey we are in
133
133
  * @param {Record<string, unknown>} [customViewData] additional data to send to view
134
134
  * @param {unknown} [payload]
135
- * @param {import('./question-types.d.ts').PrepQuestionForRenderingOptions} [options] - required to support manage list question
135
+ * @param {import('#question-types').PrepQuestionForRenderingOptions} [options] - required to support manage list question
136
136
  * @returns {QuestionViewModel}
137
137
  */
138
- prepQuestionForRendering(section: Section, journey: Journey, customViewData?: Record<string, unknown>, payload?: unknown, options?: import("./question-types.d.ts").PrepQuestionForRenderingOptions): QuestionViewModel;
138
+ prepQuestionForRendering(section: Section, journey: Journey, customViewData?: Record<string, unknown>, payload?: unknown, options?: import("#question-types").PrepQuestionForRenderingOptions): QuestionViewModel;
139
139
  /**
140
140
  * The answer to this question for use in the viewModel
141
141
  *
@@ -156,10 +156,10 @@ export class Question {
156
156
  * Get the answers object from the journey response, which may be nested in an array for manage list questions
157
157
  *
158
158
  * @param {JourneyResponse} response
159
- * @param {import('./question-types.d.ts').PrepQuestionForRenderingOptions} [options]
159
+ * @param {import('#question-types').PrepQuestionForRenderingOptions} [options]
160
160
  * @returns {Record<string, any>}
161
161
  */
162
- answerObjectFromJourneyResponse(response: JourneyResponse, { params, manageListQuestion }?: import("./question-types.d.ts").PrepQuestionForRenderingOptions): Record<string, any>;
162
+ answerObjectFromJourneyResponse(response: JourneyResponse, { params, manageListQuestion }?: import("#question-types").PrepQuestionForRenderingOptions): Record<string, any>;
163
163
  /**
164
164
  * renders the question
165
165
  * @param {import('express').Response} res - the express response
@@ -1 +1 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../src/questions/question.js"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH;IAqDC;;;OAGG;IACH,yLAHW,OAAO,iBAAiB,EAAE,kBAAkB,oBAC5C,MAAM,CAAC,MAAM,WAAW,EAsDlC;IA5GD,6EAA6E;IAC7E,WADW,MAAM,CACP;IACV,sDAAsD;IACtD,OADW,MAAM,CACX;IACN,+DAA+D;IAC/D,UADW,MAAM,CACR;IACT,mFAAmF;IACnF,aADW,MAAM,GAAC,SAAS,CACf;IACZ,iDAAiD;IACjD,YADW,MAAM,CACN;IACX,qHAAqH;IACrH,WADW,MAAM,CACP;IACV,6FAA6F;IAC7F,UADW,OAAO,CACF;IAChB,iGAAiG;IACjG,YADW,KAAK,CAAE,MAAa,CAAC,CAChB;IAChB,2DAA2D;IAC3D,MADW,MAAM,GAAC,SAAS,CACtB;IACL,sEAAsE;IACtE,oBADW,OAAO,CACQ;IAC1B,oDAAoD;IACpD,KADW,MAAM,GAAC,SAAS,CACvB;IACJ,qDAAqD;IACrD,MADW,MAAM,GAAC,SAAS,CACtB;IACL,sDAAsD;IACtD,eADW,MAAM,GAAC,SAAS,CACb;IACd,wDAAwD;IACxD,YADW,UAAU,GAAC,SAAS,CACpB;IAEX,iFAAiF;IACjF,gBADW,MAAM,CACc;IAC/B,4CAA4C;IAC5C,oBADW,MAAM,CACe;IAChC,uDAAuD;IACvD,kBADW,MAAM,CACW;IAC5B,uDAAuD;IACvD,kBADW,MAAM,CACW;IAC5B,oDAAoD;IACpD,eADW,MAAM,CACK;IAEtB;;;OAGG;IACH,qBAFa,OAAO,CAEO;IAE3B;;;MAGE;IA0CD,iCAAgC;IAChC,kBAAwB;IAExB,8BAAwB;IAgBzB;;;;;;OAMG;IACH,4BAFa,OAAO,CAInB;IAWD,iCANa,OAAO,EAWnB;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GAAG,MAAM,CAAC;QACvB,MAAM,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,kBAAkB,EAAE,MAAM,CAAC;SAC5B,CAAC;KACH,CAAC,CAaJ;IAED;;;;;;OAMG;IACH,2CAJW,OAAO,UADP,MAAM,GAGJ,UAAU,GAAC,UAAU,EAAE,GAAC,SAAS,CAqB7C;IAED;;;OAGG;IACH,eAHW,OAAO,GACL,OAAO,CAInB;IAED;;OAEG;IACH,cAFa,OAAO,CASnB;IACD;;;OAGG;IACH,4BAHW,MAAM,GACJ,OAAO,CAMnB;IAED;;;;OAIG;IACH,4BAJW,eAAe,cACf,MAAM,GACJ,OAAO,CAInB;;CACD;;WA/ca,MAAM;cACN,MAAM;eACN,MAAM;eACN,MAAM;;;;gCAMP,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;gCAdH,qBAAqB;6BAFxB,UAAU;6BAFV,UAAU;qCACF,mBAAmB;gCAExB,kBAAkB"}
1
+ {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../src/questions/question.js"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH;IAqDC;;;OAGG;IACH,yLAHW,OAAO,iBAAiB,EAAE,kBAAkB,oBAC5C,MAAM,CAAC,MAAM,WAAW,EAsDlC;IA5GD,6EAA6E;IAC7E,WADW,MAAM,CACP;IACV,sDAAsD;IACtD,OADW,MAAM,CACX;IACN,+DAA+D;IAC/D,UADW,MAAM,CACR;IACT,mFAAmF;IACnF,aADW,MAAM,GAAC,SAAS,CACf;IACZ,iDAAiD;IACjD,YADW,MAAM,CACN;IACX,qHAAqH;IACrH,WADW,MAAM,CACP;IACV,6FAA6F;IAC7F,UADW,OAAO,CACF;IAChB,iGAAiG;IACjG,YADW,KAAK,CAAE,MAAa,CAAC,CAChB;IAChB,2DAA2D;IAC3D,MADW,MAAM,GAAC,S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