@planning-inspectorate/dynamic-forms 3.15.5 → 3.16.0

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.
Files changed (252) hide show
  1. package/.gitattributes +3 -0
  2. package/.prettierrc +1 -0
  3. package/README.md +11 -3
  4. package/package.json +6 -4
  5. package/{types/src → src}/components/address/question.d.ts +14 -2
  6. package/src/components/address/question.d.ts.map +1 -0
  7. package/src/components/address/question.js +1 -2
  8. package/{types/src → src}/components/boolean/question.d.ts +2 -2
  9. package/src/components/boolean/question.d.ts.map +1 -0
  10. package/src/components/boolean/question.js +1 -1
  11. package/src/components/checkbox/question.d.ts +29 -0
  12. package/src/components/checkbox/question.d.ts.map +1 -0
  13. package/src/components/checkbox/question.js +1 -5
  14. package/{types/src → src}/components/date/question.d.ts +10 -2
  15. package/src/components/date/question.d.ts.map +1 -0
  16. package/src/components/date/question.js +1 -2
  17. package/{types/src → src}/components/date-period/question.d.ts +16 -4
  18. package/src/components/date-period/question.d.ts.map +1 -0
  19. package/src/components/date-period/question.js +1 -2
  20. package/{types/src → src}/components/date-time/question.d.ts +10 -2
  21. package/src/components/date-time/question.d.ts.map +1 -0
  22. package/src/components/date-time/question.js +1 -2
  23. package/src/components/email/question.d.ts +23 -0
  24. package/src/components/email/question.d.ts.map +1 -0
  25. package/src/components/email/question.js +1 -9
  26. package/src/components/manage-list/manage-list-actions.d.ts.map +1 -0
  27. package/src/components/manage-list/manage-list-section.d.ts.map +1 -0
  28. package/{types/src → src}/components/manage-list/question.d.ts +10 -3
  29. package/src/components/manage-list/question.d.ts.map +1 -0
  30. package/src/components/manage-list/question.js +4 -1
  31. package/{types/src → src}/components/manage-list/utils.d.ts +3 -3
  32. package/src/components/manage-list/utils.d.ts.map +1 -0
  33. package/src/components/manage-list/utils.js +2 -2
  34. package/src/components/multi-field-input/question.d.ts +52 -0
  35. package/src/components/multi-field-input/question.d.ts.map +1 -0
  36. package/src/components/multi-field-input/question.js +5 -13
  37. package/{types/src → src}/components/number-entry/question.d.ts +7 -3
  38. package/src/components/number-entry/question.d.ts.map +1 -0
  39. package/src/components/number-entry/question.js +2 -2
  40. package/src/components/radio/question.d.ts +19 -0
  41. package/src/components/radio/question.d.ts.map +1 -0
  42. package/src/components/radio/question.js +1 -5
  43. package/{types/src → src}/components/select/question.d.ts +7 -3
  44. package/src/components/select/question.d.ts.map +1 -0
  45. package/src/components/select/question.js +2 -2
  46. package/src/components/single-line-input/question.d.ts +20 -0
  47. package/src/components/single-line-input/question.d.ts.map +1 -0
  48. package/src/components/single-line-input/question.js +1 -1
  49. package/{types/src → src}/components/text-entry/question.d.ts +7 -3
  50. package/src/components/text-entry/question.d.ts.map +1 -0
  51. package/src/components/text-entry/question.js +1 -1
  52. package/{types/src → src}/components/text-entry-redact/question.d.ts +12 -9
  53. package/src/components/text-entry-redact/question.d.ts.map +1 -0
  54. package/src/components/text-entry-redact/question.js +4 -1
  55. package/{types/src → src}/components/unit-option-entry/question.d.ts +12 -8
  56. package/src/components/unit-option-entry/question.d.ts.map +1 -0
  57. package/src/components/unit-option-entry/question.js +5 -6
  58. package/src/components/utils/component-types.d.ts.map +1 -0
  59. package/src/components/utils/persisted-number-answer.d.ts.map +1 -0
  60. package/src/components/utils/question-has-answer.d.ts.map +1 -0
  61. package/src/components/utils/question-utils.d.ts.map +1 -0
  62. package/{types/src → src}/controller.d.ts +2 -7
  63. package/src/controller.d.ts.map +1 -0
  64. package/src/controller.js +3 -10
  65. package/{types/src → src}/index.d.ts +4 -3
  66. package/src/index.d.ts.map +1 -0
  67. package/src/index.js +6 -4
  68. package/src/journey/journey-response.d.ts +28 -0
  69. package/src/journey/journey-response.d.ts.map +1 -0
  70. package/src/journey/journey-response.js +4 -8
  71. package/{types/src → src}/journey/journey.d.ts +8 -8
  72. package/src/journey/journey.d.ts.map +1 -0
  73. package/src/journey/journey.js +6 -6
  74. package/src/lib/address-utils.d.ts.map +1 -0
  75. package/src/lib/address.d.ts.map +1 -0
  76. package/src/lib/date-utils.d.ts.map +1 -0
  77. package/src/lib/session-answer-store.d.ts.map +1 -0
  78. package/src/lib/utils.d.ts.map +1 -0
  79. package/src/lib/uuid.d.ts.map +1 -0
  80. package/src/middleware/build-get-journey.d.ts.map +1 -0
  81. package/src/middleware/redirect-to-unanswered-question.d.ts +12 -0
  82. package/src/middleware/redirect-to-unanswered-question.d.ts.map +1 -0
  83. package/src/middleware/redirect-to-unanswered-question.js +1 -1
  84. package/src/questions/create-questions.d.ts +18 -0
  85. package/src/questions/create-questions.d.ts.map +1 -0
  86. package/src/questions/create-questions.js +5 -4
  87. package/{types/src → src}/questions/options-question.d.ts +7 -7
  88. package/src/questions/options-question.d.ts.map +1 -0
  89. package/src/questions/options-question.js +4 -4
  90. package/{types/src → src}/questions/question.d.ts +33 -79
  91. package/src/questions/question.d.ts.map +1 -0
  92. package/src/questions/question.js +19 -51
  93. package/src/questions/questions.d.ts +3 -0
  94. package/src/questions/questions.d.ts.map +1 -0
  95. package/src/questions/questions.js +1 -1
  96. package/{types/src → src}/section.d.ts +16 -15
  97. package/src/section.d.ts.map +1 -0
  98. package/src/section.js +12 -14
  99. package/src/validator/address-validator.d.ts.map +1 -0
  100. package/src/validator/base-validator.d.ts.map +1 -0
  101. package/src/validator/conditional-required-validator.d.ts.map +1 -0
  102. package/src/validator/confirmation-checkbox-validator.d.ts.map +1 -0
  103. package/src/validator/coordinates-validator.d.ts.map +1 -0
  104. package/src/validator/cross-question-validator.d.ts.map +1 -0
  105. package/src/validator/date-period-validator.d.ts.map +1 -0
  106. package/src/validator/date-time-validator.d.ts.map +1 -0
  107. package/src/validator/date-validator.d.ts.map +1 -0
  108. package/src/validator/document-upload-validator.d.ts.map +1 -0
  109. package/src/validator/email-validator.d.ts.map +1 -0
  110. package/{types/src → src}/validator/multi-field-input-validator.d.ts +3 -3
  111. package/src/validator/multi-field-input-validator.d.ts.map +1 -0
  112. package/src/validator/multi-field-input-validator.js +3 -3
  113. package/{types/src → src}/validator/numeric-validator.d.ts +2 -2
  114. package/src/validator/numeric-validator.d.ts.map +1 -0
  115. package/src/validator/numeric-validator.js +2 -2
  116. package/src/validator/required-validator.d.ts.map +1 -0
  117. package/src/validator/same-answer-validator.d.ts.map +1 -0
  118. package/{types/src → src}/validator/string-validator.d.ts +3 -3
  119. package/src/validator/string-validator.d.ts.map +1 -0
  120. package/src/validator/string-validator.js +3 -3
  121. package/src/validator/unit-option-entry-validator.d.ts.map +1 -0
  122. package/src/validator/valid-option-validator.d.ts.map +1 -0
  123. package/src/validator/validation-error-handler.d.ts.map +1 -0
  124. package/src/validator/validator.d.ts.map +1 -0
  125. package/test/questions.js +1 -1
  126. package/test/secondary-actions.test.js +1 -1
  127. package/tsconfig.json +11 -4
  128. package/{src/questions → typedefs}/question-props.d.ts +28 -26
  129. package/{src/questions → typedefs}/question-types.d.ts +44 -16
  130. package/{src → typedefs}/section-types.d.ts +1 -1
  131. package/typedefs/section-types.js +1 -0
  132. package/move-types.js +0 -12
  133. package/src/components/identifier/index.njk +0 -62
  134. package/src/components/identifier/question.js +0 -33
  135. package/src/components/identifier/question.test.js +0 -46
  136. package/types/commitlint.config.d.ts +0 -7
  137. package/types/commitlint.config.d.ts.map +0 -1
  138. package/types/eslint.config.d.ts +0 -97
  139. package/types/eslint.config.d.ts.map +0 -1
  140. package/types/move-types.d.ts +0 -2
  141. package/types/move-types.d.ts.map +0 -1
  142. package/types/src/components/address/question.d.ts.map +0 -1
  143. package/types/src/components/boolean/question.d.ts.map +0 -1
  144. package/types/src/components/checkbox/question.d.ts +0 -33
  145. package/types/src/components/checkbox/question.d.ts.map +0 -1
  146. package/types/src/components/date/question.d.ts.map +0 -1
  147. package/types/src/components/date-period/question.d.ts.map +0 -1
  148. package/types/src/components/date-time/question.d.ts.map +0 -1
  149. package/types/src/components/email/question.d.ts +0 -35
  150. package/types/src/components/email/question.d.ts.map +0 -1
  151. package/types/src/components/identifier/question.d.ts +0 -16
  152. package/types/src/components/identifier/question.d.ts.map +0 -1
  153. package/types/src/components/manage-list/manage-list-actions.d.ts.map +0 -1
  154. package/types/src/components/manage-list/manage-list-section.d.ts.map +0 -1
  155. package/types/src/components/manage-list/question.d.ts.map +0 -1
  156. package/types/src/components/manage-list/utils.d.ts.map +0 -1
  157. package/types/src/components/multi-field-input/question.d.ts +0 -64
  158. package/types/src/components/multi-field-input/question.d.ts.map +0 -1
  159. package/types/src/components/number-entry/question.d.ts.map +0 -1
  160. package/types/src/components/radio/question.d.ts +0 -23
  161. package/types/src/components/radio/question.d.ts.map +0 -1
  162. package/types/src/components/select/question.d.ts.map +0 -1
  163. package/types/src/components/single-line-input/question.d.ts +0 -16
  164. package/types/src/components/single-line-input/question.d.ts.map +0 -1
  165. package/types/src/components/text-entry/question.d.ts.map +0 -1
  166. package/types/src/components/text-entry-redact/question.d.ts.map +0 -1
  167. package/types/src/components/unit-option-entry/question.d.ts.map +0 -1
  168. package/types/src/components/utils/component-types.d.ts.map +0 -1
  169. package/types/src/components/utils/persisted-number-answer.d.ts.map +0 -1
  170. package/types/src/components/utils/question-has-answer.d.ts.map +0 -1
  171. package/types/src/components/utils/question-utils.d.ts.map +0 -1
  172. package/types/src/controller.d.ts.map +0 -1
  173. package/types/src/index.d.ts.map +0 -1
  174. package/types/src/journey/journey-response.d.ts +0 -32
  175. package/types/src/journey/journey-response.d.ts.map +0 -1
  176. package/types/src/journey/journey-types.d.ts +0 -28
  177. package/types/src/journey/journey-types.d.ts.map +0 -1
  178. package/types/src/journey/journey.d.ts.map +0 -1
  179. package/types/src/lib/address-utils.d.ts.map +0 -1
  180. package/types/src/lib/address.d.ts.map +0 -1
  181. package/types/src/lib/date-utils.d.ts.map +0 -1
  182. package/types/src/lib/session-answer-store.d.ts.map +0 -1
  183. package/types/src/lib/utils.d.ts.map +0 -1
  184. package/types/src/lib/uuid.d.ts.map +0 -1
  185. package/types/src/middleware/build-get-journey.d.ts.map +0 -1
  186. package/types/src/middleware/redirect-to-unanswered-question.d.ts +0 -12
  187. package/types/src/middleware/redirect-to-unanswered-question.d.ts.map +0 -1
  188. package/types/src/questions/create-questions.d.ts +0 -19
  189. package/types/src/questions/create-questions.d.ts.map +0 -1
  190. package/types/src/questions/options-question.d.ts.map +0 -1
  191. package/types/src/questions/question-props.d.ts +0 -295
  192. package/types/src/questions/question-props.d.ts.map +0 -1
  193. package/types/src/questions/question-types.d.ts +0 -86
  194. package/types/src/questions/question-types.d.ts.map +0 -1
  195. package/types/src/questions/question.d.ts.map +0 -1
  196. package/types/src/questions/questions.d.ts +0 -3
  197. package/types/src/questions/questions.d.ts.map +0 -1
  198. package/types/src/section.d.ts.map +0 -1
  199. package/types/src/validator/address-validator.d.ts.map +0 -1
  200. package/types/src/validator/base-validator.d.ts.map +0 -1
  201. package/types/src/validator/conditional-required-validator.d.ts.map +0 -1
  202. package/types/src/validator/confirmation-checkbox-validator.d.ts.map +0 -1
  203. package/types/src/validator/coordinates-validator.d.ts.map +0 -1
  204. package/types/src/validator/cross-question-validator.d.ts.map +0 -1
  205. package/types/src/validator/date-period-validator.d.ts.map +0 -1
  206. package/types/src/validator/date-time-validator.d.ts.map +0 -1
  207. package/types/src/validator/date-validator.d.ts.map +0 -1
  208. package/types/src/validator/document-upload-validator.d.ts.map +0 -1
  209. package/types/src/validator/email-validator.d.ts.map +0 -1
  210. package/types/src/validator/multi-field-input-validator.d.ts.map +0 -1
  211. package/types/src/validator/numeric-validator.d.ts.map +0 -1
  212. package/types/src/validator/required-validator.d.ts.map +0 -1
  213. package/types/src/validator/same-answer-validator.d.ts.map +0 -1
  214. package/types/src/validator/string-validator.d.ts.map +0 -1
  215. package/types/src/validator/unit-option-entry-validator.d.ts.map +0 -1
  216. package/types/src/validator/valid-option-validator.d.ts.map +0 -1
  217. package/types/src/validator/validation-error-handler.d.ts.map +0 -1
  218. package/types/src/validator/validator.d.ts.map +0 -1
  219. /package/{types/src → src}/components/manage-list/manage-list-actions.d.ts +0 -0
  220. /package/{types/src → src}/components/manage-list/manage-list-section.d.ts +0 -0
  221. /package/{types/src → src}/components/utils/component-types.d.ts +0 -0
  222. /package/{types/src → src}/components/utils/persisted-number-answer.d.ts +0 -0
  223. /package/{types/src → src}/components/utils/question-has-answer.d.ts +0 -0
  224. /package/{types/src → src}/components/utils/question-utils.d.ts +0 -0
  225. /package/{types/src → src}/lib/address-utils.d.ts +0 -0
  226. /package/{types/src → src}/lib/address.d.ts +0 -0
  227. /package/{types/src → src}/lib/date-utils.d.ts +0 -0
  228. /package/{types/src → src}/lib/session-answer-store.d.ts +0 -0
  229. /package/{types/src → src}/lib/utils.d.ts +0 -0
  230. /package/{types/src → src}/lib/uuid.d.ts +0 -0
  231. /package/{types/src → src}/middleware/build-get-journey.d.ts +0 -0
  232. /package/{types/src → src}/validator/address-validator.d.ts +0 -0
  233. /package/{types/src → src}/validator/base-validator.d.ts +0 -0
  234. /package/{types/src → src}/validator/conditional-required-validator.d.ts +0 -0
  235. /package/{types/src → src}/validator/confirmation-checkbox-validator.d.ts +0 -0
  236. /package/{types/src → src}/validator/coordinates-validator.d.ts +0 -0
  237. /package/{types/src → src}/validator/cross-question-validator.d.ts +0 -0
  238. /package/{types/src → src}/validator/date-period-validator.d.ts +0 -0
  239. /package/{types/src → src}/validator/date-time-validator.d.ts +0 -0
  240. /package/{types/src → src}/validator/date-validator.d.ts +0 -0
  241. /package/{types/src → src}/validator/document-upload-validator.d.ts +0 -0
  242. /package/{types/src → src}/validator/email-validator.d.ts +0 -0
  243. /package/{types/src → src}/validator/required-validator.d.ts +0 -0
  244. /package/{types/src → src}/validator/same-answer-validator.d.ts +0 -0
  245. /package/{types/src → src}/validator/unit-option-entry-validator.d.ts +0 -0
  246. /package/{types/src → src}/validator/valid-option-validator.d.ts +0 -0
  247. /package/{types/src → src}/validator/validation-error-handler.d.ts +0 -0
  248. /package/{types/src → src}/validator/validator.d.ts +0 -0
  249. /package/{src/journey → typedefs}/journey-types.d.ts +0 -0
  250. /package/{src/journey → typedefs}/journey-types.js +0 -0
  251. /package/{src/questions → typedefs}/question-props.js +0 -0
  252. /package/{src/questions → typedefs}/question-types.js +0 -0
@@ -1,62 +0,0 @@
1
- {% extends layoutTemplate %}
2
-
3
- {% from "govuk/components/input/macro.njk" import govukInput %}
4
- {% from "govuk/components/label/macro.njk" import govukLabel %}
5
-
6
- {% block dynQuestionContent %}
7
- <div class="govuk-grid-row">
8
- <div class="govuk-grid-column-two-thirds">
9
- <form action="" method="post" novalidate>
10
- {% if _csrf %}<input type="hidden" name="_csrf" value="{{ _csrf }}">{% endif %}
11
- {% if question.label %}
12
- <h1 class="govuk-heading-l">
13
- {{ question.question }}
14
- </h1>
15
-
16
- {% if question.html %}
17
- {% include question.html ignore missing %}
18
- {% endif %}
19
-
20
- {{ govukInput({
21
- label: {
22
- text: question.label
23
- },
24
- id: question.fieldName,
25
- name: question.fieldName,
26
- value: question.value,
27
- hint: { text: question.hint },
28
- errorMessage: errors[question.fieldName] and {
29
- text: errors[question.fieldName].msg
30
- },
31
- classes: question.inputClasses
32
- }) }}
33
- {% else %}
34
- {{ govukLabel({
35
- text: question.question,
36
- isPageHeading: true,
37
- classes: 'govuk-label--l',
38
- for: question.fieldName
39
- }) }}
40
-
41
- {% if question.html %}
42
- {% include question.html ignore missing %}
43
- {% endif %}
44
-
45
- {{ govukInput({
46
- id: question.fieldName,
47
- name: question.fieldName,
48
- value: payload and payload[question.fieldName],
49
- hint: { text: question.hint },
50
- errorMessage: errors[question.fieldName] and {
51
- text: errors[question.fieldName].msg
52
- },
53
- classes: question.inputClasses
54
- }) }}
55
-
56
- {% endif %}
57
-
58
- {% include "components/utils/actions.njk" %}
59
- </form>
60
- </div>
61
- </div>
62
- {% endblock %}
@@ -1,33 +0,0 @@
1
- import { Question } from '#question';
2
-
3
- export class IdentifierQuestion extends Question {
4
- /** @type {string|undefined} page h1, optional, will default to use question's label */
5
- pageHeading;
6
- /** @type {string} css classes to apply to input element */
7
- inputClasses;
8
-
9
- /**
10
- * @param {import('#question-types').QuestionParameters} params
11
- * @param {string} [params.inputClasses] css class string to be added to the input
12
- * @param {string|undefined} [params.label] if defined this show as a label for the input and the question will just be a standard h1
13
- */
14
- constructor({ inputClasses = 'govuk-input--width-10', label, ...params }) {
15
- super({
16
- ...params,
17
- viewFolder: 'identifier'
18
- });
19
-
20
- this.inputClasses = inputClasses;
21
- this.label = label;
22
- }
23
-
24
- /**
25
- * @param {import('#question').QuestionViewModel} viewModel
26
- */
27
- addCustomDataToViewModel(viewModel) {
28
- viewModel.question.inputClasses = this.inputClasses;
29
- viewModel.question.label = this.label;
30
- }
31
- }
32
-
33
- export default IdentifierQuestion;
@@ -1,46 +0,0 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
- import IdentifierQuestion from './question.js';
4
-
5
- describe('./src/dynamic-forms/components/identifier/question.js', () => {
6
- it('should create', () => {
7
- const TITLE = 'title';
8
- const QUESTION = 'Question?';
9
- const DESCRIPTION = 'Describe';
10
- const FIELDNAME = 'field-name';
11
- const URL = 'url';
12
- const PAGE_TITLE = 'this appears in <title>';
13
- const VALIDATORS = [1, 2];
14
- const HTML = '/path/to/html.njk';
15
- const HINT = 'hint';
16
- const INPUT_CLASSES = 'govuk-body';
17
- const LABEL = 'A label';
18
-
19
- const question = new IdentifierQuestion({
20
- title: TITLE,
21
- question: QUESTION,
22
- description: DESCRIPTION,
23
- fieldName: FIELDNAME,
24
- url: URL,
25
- pageTitle: PAGE_TITLE,
26
- validators: VALIDATORS,
27
- html: HTML,
28
- hint: HINT,
29
- inputClasses: INPUT_CLASSES,
30
- label: LABEL
31
- });
32
-
33
- assert.strictEqual(question.title, TITLE);
34
- assert.strictEqual(question.question, QUESTION);
35
- assert.strictEqual(question.description, DESCRIPTION);
36
- assert.strictEqual(question.fieldName, FIELDNAME);
37
- assert.strictEqual(question.viewFolder, 'identifier');
38
- assert.strictEqual(question.url, URL);
39
- assert.strictEqual(question.pageTitle, PAGE_TITLE);
40
- assert.strictEqual(question.validators, VALIDATORS);
41
- assert.strictEqual(question.html, HTML);
42
- assert.strictEqual(question.hint, HINT);
43
- assert.strictEqual(question.inputClasses, INPUT_CLASSES);
44
- assert.strictEqual(question.label, LABEL);
45
- });
46
- });
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- let _extends: string[];
3
- export { _extends as extends };
4
- export let ignores: ((commit: any) => any)[];
5
- }
6
- export default _default;
7
- //# sourceMappingURL=commitlint.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commitlint.config.d.ts","sourceRoot":"","sources":["../commitlint.config.js"],"names":[],"mappings":""}
@@ -1,97 +0,0 @@
1
- declare const _default: ({
2
- readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
3
- } | {
4
- ignores: string[];
5
- languageOptions: {
6
- ecmaVersion: number;
7
- sourceType: string;
8
- globals: {
9
- __dirname: false;
10
- __filename: false;
11
- AbortController: false;
12
- AbortSignal: false;
13
- AsyncDisposableStack: false;
14
- atob: false;
15
- Blob: false;
16
- BroadcastChannel: false;
17
- btoa: false;
18
- Buffer: false;
19
- ByteLengthQueuingStrategy: false;
20
- clearImmediate: false;
21
- clearInterval: false;
22
- clearTimeout: false;
23
- CloseEvent: false;
24
- CompressionStream: false;
25
- console: false;
26
- CountQueuingStrategy: false;
27
- crypto: false;
28
- Crypto: false;
29
- CryptoKey: false;
30
- CustomEvent: false;
31
- DecompressionStream: false;
32
- DisposableStack: false;
33
- DOMException: false;
34
- ErrorEvent: false;
35
- Event: false;
36
- EventTarget: false;
37
- exports: true;
38
- fetch: false;
39
- File: false;
40
- FormData: false;
41
- global: false;
42
- Headers: false;
43
- localStorage: false;
44
- MessageChannel: false;
45
- MessageEvent: false;
46
- MessagePort: false;
47
- module: false;
48
- navigator: false;
49
- Navigator: false;
50
- performance: false;
51
- Performance: false;
52
- PerformanceEntry: false;
53
- PerformanceMark: false;
54
- PerformanceMeasure: false;
55
- PerformanceObserver: false;
56
- PerformanceObserverEntryList: false;
57
- PerformanceResourceTiming: false;
58
- process: false;
59
- queueMicrotask: false;
60
- QuotaExceededError: false;
61
- ReadableByteStreamController: false;
62
- ReadableStream: false;
63
- ReadableStreamBYOBReader: false;
64
- ReadableStreamBYOBRequest: false;
65
- ReadableStreamDefaultController: false;
66
- ReadableStreamDefaultReader: false;
67
- Request: false;
68
- require: false;
69
- Response: false;
70
- sessionStorage: false;
71
- setImmediate: false;
72
- setInterval: false;
73
- setTimeout: false;
74
- Storage: false;
75
- structuredClone: false;
76
- SubtleCrypto: false;
77
- SuppressedError: false;
78
- Temporal: false;
79
- TextDecoder: false;
80
- TextDecoderStream: false;
81
- TextEncoder: false;
82
- TextEncoderStream: false;
83
- TransformStream: false;
84
- TransformStreamDefaultController: false;
85
- URL: false;
86
- URLPattern: false;
87
- URLSearchParams: false;
88
- WebAssembly: false;
89
- WebSocket: false;
90
- WritableStream: false;
91
- WritableStreamDefaultController: false;
92
- WritableStreamDefaultWriter: false;
93
- };
94
- };
95
- })[];
96
- export default _default;
97
- //# sourceMappingURL=eslint.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../eslint.config.js"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=move-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"move-types.d.ts","sourceRoot":"","sources":["../move-types.js"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/address/question.js"],"names":[],"mappings":"AAOA;IACC;;OAEG;IACH,oBAFW,OAAO,qCAAqC,EAAE,yBAAyB,EAqBjF;IAXE;;;;;;kBAA8C;IAIhD;;;;;;MAMC;IAiBF;;;OAGG;IACH,4BAHW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACjB,GAAC,GAAC,MAAM,CAqBpB;IAqCD;;;OAGG;IACH;;eAUC;IAuBD,kEAMC;CACD;;yBAtJwB,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/boolean/question.js"],"names":[],"mappings":"AAEA;;;GAGG;AAMI,sCAHI,MAAM,GAAC,GAAC,GACN,OAAO,CAOnB;AAEM,8DAEN;AAMM,4CAHI,OAAO,GAAC,IAAI,GACV,MAAM,GAAC,IAAI,CAOvB;AAED;IACC;;OAEG;IACH,6IAFW,OAAO,qCAAqC,EAAE,qBAAqB,EAmD7E;IADA,oCAAkC;IAGnC;;;;;OAKG,CACH,mBAJW,OAAO,SAAS,EAAE,OAAO,mBACzB,eAAe,GACb,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAezD;CACD;;0BA5GyB,sBAAsB"}
@@ -1,33 +0,0 @@
1
- /**
2
- * @typedef ConditionalAnswerObject
3
- * @type {object}
4
- * @property {string} value the checkbox answer
5
- * @property {string} conditional the conditional text input
6
- */
7
- export class CheckboxQuestion extends OptionsQuestion {
8
- /**
9
- * @param {import('../../questions/question-props.d.ts').CheckboxQuestionParams} params
10
- */
11
- constructor({ title, question, fieldName, url, pageTitle, description, options, validators, viewData }: import("../../questions/question-props.d.ts").CheckboxQuestionParams);
12
- /**
13
- * returns the formatted answers values to be used to build task list elements
14
- * @param {string | ConditionalAnswerObject } answer will be a single value string, a comma-separated string representing multiple values (one of which may be a conditional) or a single ConditionalAnswerObject
15
- * @param {import('#journey').Journey} journey
16
- * @param {String} sectionSegment
17
- * @returns {Array.<Object>}
18
- */
19
- formatAnswerForSummary(sectionSegment: string, journey: import("#journey").Journey, answer: string | ConditionalAnswerObject): Array<Object>;
20
- }
21
- export default CheckboxQuestion;
22
- export type ConditionalAnswerObject = {
23
- /**
24
- * the checkbox answer
25
- */
26
- value: string;
27
- /**
28
- * the conditional text input
29
- */
30
- conditional: string;
31
- };
32
- import OptionsQuestion from '../../questions/options-question.js';
33
- //# sourceMappingURL=question.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/question.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AAEH;IACC;;OAEG;IACH,wGAFW,OAAO,qCAAqC,EAAE,sBAAsB,EAiB9E;IAED;;;;;;OAMG;IACH,wDAJW,OAAO,UAAU,EAAE,OAAO,UAD1B,MAAM,GAAG,uBAAuB,GAG9B,KAAK,CAAE,MAAM,CAAC,CAuC1B;CACD;;;;;;WAtEa,MAAM;;;;iBACN,MAAM;;4BATQ,qCAAqC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/date/question.js"],"names":[],"mappings":"AAKA;;GAEG;AACH;IACC;;OAEG;IACH,6CAFW,OAAO,qCAAqC,EAAE,kBAAkB,EAQ1E;IADA,mBAA4B;IAW7B;;;;;OAKG,CACH,mBAJW,OAAO,SAAS,EAAE,OAAO,mBACzB,OAAO,mBAAmB,EAAE,eAAe,GACzC,OAAO,CAAE,MAAM,CAAC,CAY5B;IAED;;MAwBC;CAoBD;;yBAzFwB,6BAA6B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/date-period/question.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH;IACC;;OAEG;IACH,mGAFW,OAAO,qCAAqC,EAAE,wBAAwB,EAuBhF;IAPA,mBAA4B;IAC5B;;;MAAsD;IAEtD,8BAA0B;IAC1B,4BAAsB;IACtB,wEAA+D;IAC/D,sEAA2D;IAkB5D;;;;;OAKG,CACH,mBAJW,OAAO,SAAS,EAAE,OAAO,mBACzB,OAAO,mBAAmB,EAAE,eAAe,GACzC,OAAO,CAAE,MAAM,CAAC,CAgC5B;IAED;;MAuCC;CAyCD;;yBA1KwB,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/question.js"],"names":[],"mappings":"AAMA;IACC,kBAAiB;IACjB,kBAAiB;IAEjB;;OAEG;IACH,yDAFW,OAAO,qCAAqC,EAAE,sBAAsB,EAS9E;IAFA,mBAA4B;IAC5B,mBAA4B;IAkB7B;;;;;OAKG,CACH,mBAJW,OAAO,SAAS,EAAE,OAAO,mBACzB,eAAe,GACb,OAAO,CAAE,MAAM,CAAC,CAqB5B;IAED;;MAqCC;;CAoCD;;yBAzIwB,6BAA6B"}
@@ -1,35 +0,0 @@
1
- /**
2
- * @typedef {import('#question').QuestionViewModel} QuestionViewModel
3
- * @typedef {import('#journey').Journey} Journey
4
- * @typedef {import('#journey-response').JourneyResponse} JourneyResponse
5
- * @typedef {import('../../section').Section} Section
6
- * @typedef {import('../../validator/base-validator')} BaseValidator
7
- */
8
- /**
9
- * Email input question that extends SingleLineInputQuestion
10
- * Automatically sets the input type to "email" and adds appropriate attributes
11
- * @class
12
- */
13
- export class EmailQuestion extends SingleLineInputQuestion {
14
- /**
15
- * @param {import('../../questions/question-props.d.ts').EmailQuestionParams} params
16
- */
17
- constructor(params: import("../../questions/question-props.d.ts").EmailQuestionParams);
18
- /**
19
- * Override formatAnswerForSummary to prevent capitalization of email addresses
20
- * Email addresses should remain in their original case (typically lowercase)
21
- * @param {string} sectionSegment
22
- * @param {import('#journey').Journey} journey
23
- * @param {string} answer
24
- * @returns {Array}
25
- */
26
- formatAnswerForSummary(sectionSegment: string, journey: import("#journey").Journey, answer: string): any[];
27
- }
28
- export default EmailQuestion;
29
- export type QuestionViewModel = import("#question").QuestionViewModel;
30
- export type Journey = import("#journey").Journey;
31
- export type JourneyResponse = import("#journey-response").JourneyResponse;
32
- export type Section = any;
33
- export type BaseValidator = any;
34
- import SingleLineInputQuestion from '../single-line-input/question.js';
35
- //# sourceMappingURL=question.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/email/question.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH;;;;GAIG;AACH;IACC;;OAEG;IACH,oBAFW,OAAO,qCAAqC,EAAE,mBAAmB,EAmB3E;IAED;;;;;;;OAOG;IACH,uCALW,MAAM,WACN,OAAO,UAAU,EAAE,OAAO,UAC1B,MAAM,SAMhB;CACD;;gCA/CY,OAAO,WAAW,EAAE,iBAAiB;sBACrC,OAAO,UAAU,EAAE,OAAO;8BAC1B,OAAO,mBAAmB,EAAE,eAAe;;;oCALpB,kCAAkC"}
@@ -1,16 +0,0 @@
1
- export class IdentifierQuestion extends Question {
2
- /**
3
- * @param {import('#question-types').QuestionParameters} params
4
- * @param {string} [params.inputClasses] css class string to be added to the input
5
- * @param {string|undefined} [params.label] if defined this show as a label for the input and the question will just be a standard h1
6
- */
7
- constructor({ inputClasses, label, ...params }: import("#question-types").QuestionParameters);
8
- /** @type {string|undefined} page h1, optional, will default to use question's label */
9
- pageHeading: string | undefined;
10
- /** @type {string} css classes to apply to input element */
11
- inputClasses: string;
12
- label: any;
13
- }
14
- export default IdentifierQuestion;
15
- import { Question } from '#question';
16
- //# sourceMappingURL=question.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/identifier/question.js"],"names":[],"mappings":"AAEA;IAMC;;;;OAIG;IACH,gDAJW,OAAO,iBAAiB,EAAE,kBAAkB,EAYtD;IAlBD,uFAAuF;IACvF,aADW,MAAM,GAAC,SAAS,CACf;IACZ,2DAA2D;IAC3D,cADW,MAAM,CACJ;IAcZ,WAAkB;CAUnB;;yBA9BwB,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"manage-list-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/manage-list/manage-list-actions.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,kCAFU,QAAQ,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,CAAC,CAM5D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"manage-list-section.d.ts","sourceRoot":"","sources":["../../../../src/components/manage-list/manage-list-section.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACC,cAEC;IAED;;;;;;OAMG;IACH,2BAFa,OAAO,CAInB;IAED;;;;;OAKG;IACH,sBAJW,OAAO,6BAA6B,EAAE,QAAQ,sBAC9C,OAAO,0BAA0B,EAAE,iBAAiB,GAClD,IAAI,CAYhB;CACD;wBAtCuB,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/manage-list/question.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AAEH;IAOC;;OAEG;IACH,oBAFW,OAAO,qCAAqC,EAAE,wBAAwB,EAehF;IAcD,wCAEC;IAyDD;;;;OAMC;IAED;;;;QAsBC;IAED,4EAQC;IAoCD,yDAEC;IATD,kDAKC;;CAKD;;;;;;mBArLa,MAAM;;;;;;;;;;;;;;yBAPK,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/manage-list/utils.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,oDALW,OAAO,mCAAmC,EAAE,eAAe,wEAE3D,MAAM,GACJ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQnC;AAED;;;;;;;GAOG;AACH,0DALW,OAAO,mCAAmC,EAAE,eAAe,8DAE3D,OAAO,gCAAgC,EAAE,WAAW,GAClD,OAAO,gCAAgC,EAAE,iBAAiB,CAatE"}
@@ -1,64 +0,0 @@
1
- /**
2
- * @typedef {import('#question').QuestionViewModel} QuestionViewModel
3
- * @typedef {import('#journey').Journey} Journey
4
- * @typedef {import('#journey-response').JourneyResponse} JourneyResponse
5
- * @typedef {import('../../section').Section} Section
6
- * @typedef {import('../../validator/base-validator')} BaseValidator
7
- */
8
- /**
9
- * @class
10
- */
11
- export class MultiFieldInputQuestion extends Question {
12
- /**
13
- * @param {import('../../questions/question-props.d.ts').MultiFieldInputQuestionParams} params
14
- */
15
- constructor({ inputFields, ...parentParams }: import("../../questions/question-props.d.ts").MultiFieldInputQuestionParams);
16
- inputFields: import("../../questions/question-props.d.ts").InputField[];
17
- answerForViewModel(answers: any): {
18
- value: string;
19
- fieldName: string;
20
- label: string;
21
- formatJoinString?: string;
22
- formatPrefix?: string;
23
- formatTextFunction?: (text: string) => string;
24
- attributes?: Record<string, string>;
25
- suffix?: import("../../questions/question-props.d.ts").Affix;
26
- prefix?: import("../../questions/question-props.d.ts").Affix;
27
- hint?: string;
28
- classes?: string;
29
- inputmode?: "decimal" | "numeric";
30
- pattern?: string;
31
- }[];
32
- /**
33
- * returns the formatted answers values to be used to build task list elements
34
- * @param {Journey} journey
35
- * @param {String} sectionSegment
36
- * @returns {Array<{
37
- * key: string;
38
- * value: string | Object;
39
- * action: {
40
- * href: string;
41
- * text: string;
42
- * visuallyHiddenText: string;
43
- * };
44
- * }>}
45
- */
46
- formatAnswerForSummary(sectionSegment: string, journey: Journey): Array<{
47
- key: string;
48
- value: string | Object;
49
- action: {
50
- href: string;
51
- text: string;
52
- visuallyHiddenText: string;
53
- };
54
- }>;
55
- #private;
56
- }
57
- export default MultiFieldInputQuestion;
58
- export type QuestionViewModel = import("#question").QuestionViewModel;
59
- export type Journey = import("#journey").Journey;
60
- export type JourneyResponse = import("#journey-response").JourneyResponse;
61
- export type Section = any;
62
- export type BaseValidator = any;
63
- import { Question } from '#question';
64
- //# sourceMappingURL=question.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/multi-field-input/question.js"],"names":[],"mappings":"AAIA;;;;;;GAMG;AAEH;;GAEG;AACH;IACC;;OAEG;IACH,8CAFW,OAAO,qCAAqC,EAAE,6BAA6B,EAarF;IAJC,wEAA8B;IAchC;;;;;;;;;;;;;;QAOC;IAsBD;;;;;;;;;;;;;OAaG;IACH,wDAZW,OAAO,GAEL,KAAK,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,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,CAkBJ;;CAyBD;;gCAvHY,OAAO,WAAW,EAAE,iBAAiB;sBACrC,OAAO,UAAU,EAAE,OAAO;8BAC1B,OAAO,mBAAmB,EAAE,eAAe;;;yBAP/B,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/number-entry/question.js"],"names":[],"mappings":"AAGA;IACC;;OAEG;IACH,gDAFW,OAAO,qCAAqC,EAAE,yBAAyB,EAUjF;IAFA,2BAAoB;IACpB,0BAAkB;IAGnB,kDAEC;IAUD;;;;;;;;;;;;;;OAcG;IACH,wDAZW,OAAO,UAAU,EAAE,OAAO,UAD1B,OAAO,GAGL,KAAK,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,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,CAIJ;CACD;;yBA/CwB,WAAW"}
@@ -1,23 +0,0 @@
1
- export class RadioQuestion extends OptionsQuestion {
2
- /**
3
- * @param {import('../../questions/question-props.d.ts').RadioQuestionParams} params
4
- */
5
- constructor({ title, question, fieldName, viewFolder, url, hint, pageTitle, description, label, html, legend, options, validators, actionLink, editable, viewData }: import("../../questions/question-props.d.ts").RadioQuestionParams);
6
- label: string | undefined;
7
- legend: string | undefined;
8
- /**
9
- * returns the formatted answers values to be used to build task list elements
10
- * @param {unknown} answer
11
- * @param {Journey} journey
12
- * @param {String} sectionSegment
13
- * @returns {Array<{ key: string; value: string | Object; action?: ActionView | ActionView[] | undefined; }>}
14
- */
15
- formatAnswerForSummary(sectionSegment: string, journey: Journey, answer: unknown): Array<{
16
- key: string;
17
- value: string | Object;
18
- action?: ActionView | ActionView[] | undefined;
19
- }>;
20
- }
21
- export default RadioQuestion;
22
- import OptionsQuestion from '../../questions/options-question.js';
23
- //# sourceMappingURL=question.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/question.js"],"names":[],"mappings":"AAEA;IACC;;OAEG;IACH,qKAFW,OAAO,qCAAqC,EAAE,mBAAmB,EAuC3E;IAFA,0BAAkB;IAClB,2BAAoB;IAWrB;;;;;;OAMG;IACH,wDAJW,OAAO,UADP,OAAO,GAGL,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,SAAS,CAAC;KAAE,CAAC,CAgB3G;CACD;;4BA3E2B,qCAAqC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/select/question.js"],"names":[],"mappings":"AAEA;IAEC;;OAEG;IACH,8KAFW,OAAO,qCAAqC,EAAE,oBAAoB,EAqC5E;IAHA,0BAAkB;IAClB,2BAAoB;IAarB;;;;;;;;OAQG;IACH,wDAJW,OAAO,UADP,OAAO,GAGL,KAAK,CAAE,MAAM,CAAC,CAS1B;;CACD;;4BAtE2B,qCAAqC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * @class
3
- */
4
- export class SingleLineInputQuestion extends Question {
5
- /**
6
- * @param {import('../../questions/question-props.d.ts').SingleLineInputQuestionParams} params
7
- */
8
- constructor(params: import("../../questions/question-props.d.ts").SingleLineInputQuestionParams);
9
- /** @type {Record<string, string>} */
10
- inputAttributes: Record<string, string>;
11
- label: string | undefined;
12
- classes: string;
13
- }
14
- export default SingleLineInputQuestion;
15
- import { Question } from '#question';
16
- //# sourceMappingURL=question.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/single-line-input/question.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IAIC;;OAEG;IACH,oBAFW,OAAO,qCAAqC,EAAE,6BAA6B,EAWrF;IAfD,qCAAqC;IACrC,iBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CACjB;IAWf,0BAAyB;IAEzB,gBAAmC;CAepC;;yBAnCwB,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/text-entry/question.js"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;GAEG;AACH;IACC;;OAEG;IACH,2DAFW,OAAO,qCAAqC,EAAE,uBAAuB,EAU/E;IAFA,+FAA0C;IAC1C,0BAAkB;CAUnB;;;YA9Ba,MAAM;UACN,MAAM;UACN,MAAM;;;yBAZK,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/text-entry-redact/question.js"],"names":[],"mappings":"AAGA,+BAAgC,QAAG,CAAC;AACpC,mCAAoC,GAAG,CAAC;AAExC;;GAEG;AACH;IACC;;OAEG;IACH,gLAFW,OAAO,qCAAqC,EAAE,6BAA6B,EAwBrF;IAPA,+FAA0C;IAC1C,0BAAkB;IAClB,qDAAsE;IACtE,iDAA8D;IAC9D,uCAA0C;IAC1C,gCAA8B;IAC9B,2CAAkD;IAkBnD,6IAOC;IAED,yCAEC;IAYD;;;;QAuBC;CACD;;yBAnGwB,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/unit-option-entry/question.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;IAIC;;;OAGG;IACH,uEAHW,OAAO,qCAAqC,EAAE,6BAA6B,oBAC3E,MAAM,CAAC,MAAM,WAAW,EAkBlC;IAvBD,gCAAgC;IAChC,SADW,KAAK,CAAC,UAAU,CAAC,CACpB;IAkBP,6BAAgD;IAEhD,0BAAkB;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,6BAA6B,EAAE,iBAAiB,GAAG;QAClE,QAAQ,EAAE,OAAO,6BAA6B,EAAE,iBAAiB,CAAC,UAAU,CAAC,GAAG;YAC9E,OAAO,EAAC,UAAU,EAAE,CAAA;SACrB,CAAA;KACF,CAmDH;IAED;;;;;OAKG,CACH,mBAJW,OAAO,SAAS,EAAE,OAAO,mBACzB,eAAe,GACb,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAgCzD;CAoBD;;;;;;;;;;yBApKY;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 +0,0 @@
1
- {"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/component-types.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"persisted-number-answer.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/persisted-number-answer.js"],"names":[],"mappings":"AAGO,iDAFI,MAAM,mBAYhB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-has-answer.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/question-has-answer.js"],"names":[],"mappings":"AAOO,8CAHI,OAAO,mCAAmC,EAAE,eAAe,GACzD;IAAC,GAAG,EAAE,eAAe,CAAC;IAAC,EAAE,EAAE,eAAe,CAAA;CAAC,CAOtD;AAYK,gDAJI,OAAO,6BAA6B,EAAE,QAAQ,iBAC9C,OAAO,GACL,OAAO,kBAAkB,EAAE,iBAAiB,CAIxD;AAUM,4CALI,OAAO,mCAAmC,EAAE,eAAe,YAC3D,OAAO,6BAA6B,EAAE,QAAQ,GAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAC,iBACzE,OAAO,GACL,OAAO,CAgBnB;AAUM,sDALI,OAAO,mCAAmC,EAAE,eAAe,YAC3D,GAAG,gBACH,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,GACpB,OAAO,CAWnB;AASM,+CANI,OAAO,mCAAmC,EAAE,eAAe,qBAC3D,iBAAiB,0BAEzB;IAA8B,iBAAiB,EAAvC,KAAK,GAAG,IAAI;CACpB,GAAU,OAAO,CAUnB;AAOM,0DAJI,OAAO,mCAAmC,EAAE,eAAe,YAC3D,OAAO,6BAA6B,EAAE,QAAQ,GAC5C,OAAO,CAMnB;AAOM,0DAJI,OAAO,mCAAmC,EAAE,eAAe,YAC3D,OAAO,6BAA6B,EAAE,QAAQ,GAC5C,OAAO,CAMnB;gCA5Ga,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE;8BAChB,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"question-utils.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/question-utils.js"],"names":[],"mappings":"AAAA,yFAEC;AAED,oFAGC;AAED;;;GAGG;AACH,mDAHW,OAAO,GACL,WAAW,IAAI;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAIzC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../src/controller.js"],"names":[],"mappings":"AAsEA;;;GAGG;AACH,qCAHW,MAAM,GACJ,OAAO,SAAS,EAAE,OAAO,CAIrC;AAED;;;;;GAKG;AACH,0BALW,OAAO,SAAS,EAAE,OAAO,OACzB,OAAO,SAAS,EAAE,QAAQ,eAC1B,MAAM,YACN,MAAM,iBA8DhB;;AAmDD;;;;;;;;;;GAUG;AAEH;;GAEG;AAEH;;;;GAIG;AACH,oCAJW,UAAU,gCACV,OAAO,GACL,OAAO,SAAS,EAAE,OAAO,CAsFrC;sBApSY,OAAO,sBAAsB,EAAE,OAAO;uBACtC,OAAO,yBAAyB,EAAE,QAAQ;;;aAMzC,MAAM;YACN,MAAM;UAEjB;QAAiC,IAAI,EAA1B,KAAK,CAAE,OAAO,CAAC;KAC5B;;;SAIa;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;WAChB;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;eAC1B,UAAU,EAAE;;;;UAKrB,MAAM;UACN,MAAM;;;;SAsKN,OAAO,SAAS,EAAE,OAAO;SACzB,OAAO,SAAS,EAAE,QAAQ;eAC1B,MAAM;iBACN,MAAM;sBACN,OAAO;;;;;;;yBAOR,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":""}
@@ -1,32 +0,0 @@
1
- /**
2
- * @typedef {import('./journey-factory').JourneyType} JourneyType
3
- */
4
- /**
5
- * Defines a response to a journey, a set of Answers to the questions
6
- * @class
7
- */
8
- export class JourneyResponse {
9
- /**
10
- * creates an instance of a JourneyResponse
11
- * @param {JourneyType} journeyId
12
- * @param {string} referenceId
13
- * @param {import('./journey-types.js').JourneyAnswers | null} answers
14
- * @param {string} [lpaCode]
15
- */
16
- constructor(journeyId: JourneyType, referenceId: string, answers: import("./journey-types.js").JourneyAnswers | null, lpaCode?: string);
17
- /**
18
- * @type {string} - reference id used in the url for the journey e.g. appeal id - provides a unique lookup for responses in combination with formId
19
- */
20
- referenceId: string;
21
- /**
22
- * @type {JourneyType} - a reference to the journey type e.g. has-questionnaire - provides a unique lookup for responses in combination with referenceId
23
- */
24
- journeyId: JourneyType;
25
- /**
26
- * @type {import('./journey-types.js').JourneyAnswers} - answers to the journey
27
- */
28
- answers: import("./journey-types.js").JourneyAnswers;
29
- LPACode: string | undefined;
30
- }
31
- export type JourneyType = any;
32
- //# sourceMappingURL=journey-response.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"journey-response.d.ts","sourceRoot":"","sources":["../../../src/journey/journey-response.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH;IAgBC;;;;;;OAMG;IACH,uBALW,WAAW,eACX,MAAM,WACN,OAAO,oBAAoB,EAAE,cAAc,GAAG,IAAI,YAClD,MAAM,EAWhB;IA/BD;;OAEG;IACH,aAFU,MAAM,CAEJ;IAEZ;;OAEG;IACH,WAFU,WAAW,CAEX;IAEV;;OAEG;IACH,SAFU,OAAO,oBAAoB,EAAE,cAAc,CAE7C;IAiBP,4BAAsB;CAEvB"}
@@ -1,28 +0,0 @@
1
- /**
2
- * Express route parameters used for journey routes
3
- */
4
- export type RouteParams = CoreRouteParams & ManageListRouteParams;
5
-
6
- export type CoreRouteParams = {
7
- section: string;
8
- question: string;
9
- [key: string]: string;
10
- };
11
-
12
- export type ManageListRouteParams =
13
- | {
14
- manageListAction: string;
15
- manageListItemId: string;
16
- manageListQuestion: string;
17
- }
18
- | {};
19
-
20
- export interface JourneyAnswers {
21
- // if the answer is for a manage list question, the answer will be an array of answer objects
22
- [k: string]: unknown | ManageListAnswers[];
23
- }
24
-
25
- export interface ManageListAnswers {
26
- id: string;
27
- [k: string]: unknown;
28
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"journey-types.d.ts","sourceRoot":"","sources":["../../../src/journey/journey-types.js"],"names":[],"mappings":""}