@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.
- package/.gitattributes +3 -0
- package/.prettierrc +1 -0
- package/README.md +11 -3
- package/package.json +6 -4
- package/{types/src → src}/components/address/question.d.ts +14 -2
- package/src/components/address/question.d.ts.map +1 -0
- package/src/components/address/question.js +1 -2
- package/{types/src → src}/components/boolean/question.d.ts +2 -2
- package/src/components/boolean/question.d.ts.map +1 -0
- package/src/components/boolean/question.js +1 -1
- package/src/components/checkbox/question.d.ts +29 -0
- package/src/components/checkbox/question.d.ts.map +1 -0
- package/src/components/checkbox/question.js +1 -5
- package/{types/src → src}/components/date/question.d.ts +10 -2
- package/src/components/date/question.d.ts.map +1 -0
- package/src/components/date/question.js +1 -2
- package/{types/src → src}/components/date-period/question.d.ts +16 -4
- package/src/components/date-period/question.d.ts.map +1 -0
- package/src/components/date-period/question.js +1 -2
- package/{types/src → src}/components/date-time/question.d.ts +10 -2
- package/src/components/date-time/question.d.ts.map +1 -0
- package/src/components/date-time/question.js +1 -2
- package/src/components/email/question.d.ts +23 -0
- package/src/components/email/question.d.ts.map +1 -0
- package/src/components/email/question.js +1 -9
- package/src/components/manage-list/manage-list-actions.d.ts.map +1 -0
- package/src/components/manage-list/manage-list-section.d.ts.map +1 -0
- package/{types/src → src}/components/manage-list/question.d.ts +10 -3
- package/src/components/manage-list/question.d.ts.map +1 -0
- package/src/components/manage-list/question.js +4 -1
- package/{types/src → src}/components/manage-list/utils.d.ts +3 -3
- package/src/components/manage-list/utils.d.ts.map +1 -0
- package/src/components/manage-list/utils.js +2 -2
- package/src/components/multi-field-input/question.d.ts +52 -0
- package/src/components/multi-field-input/question.d.ts.map +1 -0
- package/src/components/multi-field-input/question.js +5 -13
- package/{types/src → src}/components/number-entry/question.d.ts +7 -3
- package/src/components/number-entry/question.d.ts.map +1 -0
- package/src/components/number-entry/question.js +2 -2
- package/src/components/radio/question.d.ts +19 -0
- package/src/components/radio/question.d.ts.map +1 -0
- package/src/components/radio/question.js +1 -5
- package/{types/src → src}/components/select/question.d.ts +7 -3
- package/src/components/select/question.d.ts.map +1 -0
- package/src/components/select/question.js +2 -2
- package/src/components/single-line-input/question.d.ts +20 -0
- package/src/components/single-line-input/question.d.ts.map +1 -0
- package/src/components/single-line-input/question.js +1 -1
- package/{types/src → src}/components/text-entry/question.d.ts +7 -3
- package/src/components/text-entry/question.d.ts.map +1 -0
- package/src/components/text-entry/question.js +1 -1
- package/{types/src → src}/components/text-entry-redact/question.d.ts +12 -9
- package/src/components/text-entry-redact/question.d.ts.map +1 -0
- package/src/components/text-entry-redact/question.js +4 -1
- package/{types/src → src}/components/unit-option-entry/question.d.ts +12 -8
- package/src/components/unit-option-entry/question.d.ts.map +1 -0
- package/src/components/unit-option-entry/question.js +5 -6
- package/src/components/utils/component-types.d.ts.map +1 -0
- package/src/components/utils/persisted-number-answer.d.ts.map +1 -0
- package/src/components/utils/question-has-answer.d.ts.map +1 -0
- package/src/components/utils/question-utils.d.ts.map +1 -0
- package/{types/src → src}/controller.d.ts +2 -7
- package/src/controller.d.ts.map +1 -0
- package/src/controller.js +3 -10
- package/{types/src → src}/index.d.ts +4 -3
- package/src/index.d.ts.map +1 -0
- package/src/index.js +6 -4
- package/src/journey/journey-response.d.ts +28 -0
- package/src/journey/journey-response.d.ts.map +1 -0
- package/src/journey/journey-response.js +4 -8
- package/{types/src → src}/journey/journey.d.ts +8 -8
- package/src/journey/journey.d.ts.map +1 -0
- package/src/journey/journey.js +6 -6
- package/src/lib/address-utils.d.ts.map +1 -0
- package/src/lib/address.d.ts.map +1 -0
- package/src/lib/date-utils.d.ts.map +1 -0
- package/src/lib/session-answer-store.d.ts.map +1 -0
- package/src/lib/utils.d.ts.map +1 -0
- package/src/lib/uuid.d.ts.map +1 -0
- package/src/middleware/build-get-journey.d.ts.map +1 -0
- package/src/middleware/redirect-to-unanswered-question.d.ts +12 -0
- package/src/middleware/redirect-to-unanswered-question.d.ts.map +1 -0
- package/src/middleware/redirect-to-unanswered-question.js +1 -1
- package/src/questions/create-questions.d.ts +18 -0
- package/src/questions/create-questions.d.ts.map +1 -0
- package/src/questions/create-questions.js +5 -4
- package/{types/src → src}/questions/options-question.d.ts +7 -7
- package/src/questions/options-question.d.ts.map +1 -0
- package/src/questions/options-question.js +4 -4
- package/{types/src → src}/questions/question.d.ts +33 -79
- package/src/questions/question.d.ts.map +1 -0
- package/src/questions/question.js +19 -51
- package/src/questions/questions.d.ts +3 -0
- package/src/questions/questions.d.ts.map +1 -0
- package/src/questions/questions.js +1 -1
- package/{types/src → src}/section.d.ts +16 -15
- package/src/section.d.ts.map +1 -0
- package/src/section.js +12 -14
- package/src/validator/address-validator.d.ts.map +1 -0
- package/src/validator/base-validator.d.ts.map +1 -0
- package/src/validator/conditional-required-validator.d.ts.map +1 -0
- package/src/validator/confirmation-checkbox-validator.d.ts.map +1 -0
- package/src/validator/coordinates-validator.d.ts.map +1 -0
- package/src/validator/cross-question-validator.d.ts.map +1 -0
- package/src/validator/date-period-validator.d.ts.map +1 -0
- package/src/validator/date-time-validator.d.ts.map +1 -0
- package/src/validator/date-validator.d.ts.map +1 -0
- package/src/validator/document-upload-validator.d.ts.map +1 -0
- package/src/validator/email-validator.d.ts.map +1 -0
- package/{types/src → src}/validator/multi-field-input-validator.d.ts +3 -3
- package/src/validator/multi-field-input-validator.d.ts.map +1 -0
- package/src/validator/multi-field-input-validator.js +3 -3
- package/{types/src → src}/validator/numeric-validator.d.ts +2 -2
- package/src/validator/numeric-validator.d.ts.map +1 -0
- package/src/validator/numeric-validator.js +2 -2
- package/src/validator/required-validator.d.ts.map +1 -0
- package/src/validator/same-answer-validator.d.ts.map +1 -0
- package/{types/src → src}/validator/string-validator.d.ts +3 -3
- package/src/validator/string-validator.d.ts.map +1 -0
- package/src/validator/string-validator.js +3 -3
- package/src/validator/unit-option-entry-validator.d.ts.map +1 -0
- package/src/validator/valid-option-validator.d.ts.map +1 -0
- package/src/validator/validation-error-handler.d.ts.map +1 -0
- package/src/validator/validator.d.ts.map +1 -0
- package/test/questions.js +1 -1
- package/test/secondary-actions.test.js +1 -1
- package/tsconfig.json +11 -4
- package/{src/questions → typedefs}/question-props.d.ts +28 -26
- package/{src/questions → typedefs}/question-types.d.ts +44 -16
- package/{src → typedefs}/section-types.d.ts +1 -1
- package/typedefs/section-types.js +1 -0
- package/move-types.js +0 -12
- package/src/components/identifier/index.njk +0 -62
- package/src/components/identifier/question.js +0 -33
- package/src/components/identifier/question.test.js +0 -46
- package/types/commitlint.config.d.ts +0 -7
- package/types/commitlint.config.d.ts.map +0 -1
- package/types/eslint.config.d.ts +0 -97
- package/types/eslint.config.d.ts.map +0 -1
- package/types/move-types.d.ts +0 -2
- package/types/move-types.d.ts.map +0 -1
- package/types/src/components/address/question.d.ts.map +0 -1
- package/types/src/components/boolean/question.d.ts.map +0 -1
- package/types/src/components/checkbox/question.d.ts +0 -33
- package/types/src/components/checkbox/question.d.ts.map +0 -1
- package/types/src/components/date/question.d.ts.map +0 -1
- package/types/src/components/date-period/question.d.ts.map +0 -1
- package/types/src/components/date-time/question.d.ts.map +0 -1
- package/types/src/components/email/question.d.ts +0 -35
- package/types/src/components/email/question.d.ts.map +0 -1
- package/types/src/components/identifier/question.d.ts +0 -16
- package/types/src/components/identifier/question.d.ts.map +0 -1
- package/types/src/components/manage-list/manage-list-actions.d.ts.map +0 -1
- package/types/src/components/manage-list/manage-list-section.d.ts.map +0 -1
- package/types/src/components/manage-list/question.d.ts.map +0 -1
- package/types/src/components/manage-list/utils.d.ts.map +0 -1
- package/types/src/components/multi-field-input/question.d.ts +0 -64
- package/types/src/components/multi-field-input/question.d.ts.map +0 -1
- package/types/src/components/number-entry/question.d.ts.map +0 -1
- package/types/src/components/radio/question.d.ts +0 -23
- package/types/src/components/radio/question.d.ts.map +0 -1
- package/types/src/components/select/question.d.ts.map +0 -1
- package/types/src/components/single-line-input/question.d.ts +0 -16
- package/types/src/components/single-line-input/question.d.ts.map +0 -1
- package/types/src/components/text-entry/question.d.ts.map +0 -1
- package/types/src/components/text-entry-redact/question.d.ts.map +0 -1
- package/types/src/components/unit-option-entry/question.d.ts.map +0 -1
- package/types/src/components/utils/component-types.d.ts.map +0 -1
- package/types/src/components/utils/persisted-number-answer.d.ts.map +0 -1
- package/types/src/components/utils/question-has-answer.d.ts.map +0 -1
- package/types/src/components/utils/question-utils.d.ts.map +0 -1
- package/types/src/controller.d.ts.map +0 -1
- package/types/src/index.d.ts.map +0 -1
- package/types/src/journey/journey-response.d.ts +0 -32
- package/types/src/journey/journey-response.d.ts.map +0 -1
- package/types/src/journey/journey-types.d.ts +0 -28
- package/types/src/journey/journey-types.d.ts.map +0 -1
- package/types/src/journey/journey.d.ts.map +0 -1
- package/types/src/lib/address-utils.d.ts.map +0 -1
- package/types/src/lib/address.d.ts.map +0 -1
- package/types/src/lib/date-utils.d.ts.map +0 -1
- package/types/src/lib/session-answer-store.d.ts.map +0 -1
- package/types/src/lib/utils.d.ts.map +0 -1
- package/types/src/lib/uuid.d.ts.map +0 -1
- package/types/src/middleware/build-get-journey.d.ts.map +0 -1
- package/types/src/middleware/redirect-to-unanswered-question.d.ts +0 -12
- package/types/src/middleware/redirect-to-unanswered-question.d.ts.map +0 -1
- package/types/src/questions/create-questions.d.ts +0 -19
- package/types/src/questions/create-questions.d.ts.map +0 -1
- package/types/src/questions/options-question.d.ts.map +0 -1
- package/types/src/questions/question-props.d.ts +0 -295
- package/types/src/questions/question-props.d.ts.map +0 -1
- package/types/src/questions/question-types.d.ts +0 -86
- package/types/src/questions/question-types.d.ts.map +0 -1
- package/types/src/questions/question.d.ts.map +0 -1
- package/types/src/questions/questions.d.ts +0 -3
- package/types/src/questions/questions.d.ts.map +0 -1
- package/types/src/section.d.ts.map +0 -1
- package/types/src/validator/address-validator.d.ts.map +0 -1
- package/types/src/validator/base-validator.d.ts.map +0 -1
- package/types/src/validator/conditional-required-validator.d.ts.map +0 -1
- package/types/src/validator/confirmation-checkbox-validator.d.ts.map +0 -1
- package/types/src/validator/coordinates-validator.d.ts.map +0 -1
- package/types/src/validator/cross-question-validator.d.ts.map +0 -1
- package/types/src/validator/date-period-validator.d.ts.map +0 -1
- package/types/src/validator/date-time-validator.d.ts.map +0 -1
- package/types/src/validator/date-validator.d.ts.map +0 -1
- package/types/src/validator/document-upload-validator.d.ts.map +0 -1
- package/types/src/validator/email-validator.d.ts.map +0 -1
- package/types/src/validator/multi-field-input-validator.d.ts.map +0 -1
- package/types/src/validator/numeric-validator.d.ts.map +0 -1
- package/types/src/validator/required-validator.d.ts.map +0 -1
- package/types/src/validator/same-answer-validator.d.ts.map +0 -1
- package/types/src/validator/string-validator.d.ts.map +0 -1
- package/types/src/validator/unit-option-entry-validator.d.ts.map +0 -1
- package/types/src/validator/valid-option-validator.d.ts.map +0 -1
- package/types/src/validator/validation-error-handler.d.ts.map +0 -1
- package/types/src/validator/validator.d.ts.map +0 -1
- /package/{types/src → src}/components/manage-list/manage-list-actions.d.ts +0 -0
- /package/{types/src → src}/components/manage-list/manage-list-section.d.ts +0 -0
- /package/{types/src → src}/components/utils/component-types.d.ts +0 -0
- /package/{types/src → src}/components/utils/persisted-number-answer.d.ts +0 -0
- /package/{types/src → src}/components/utils/question-has-answer.d.ts +0 -0
- /package/{types/src → src}/components/utils/question-utils.d.ts +0 -0
- /package/{types/src → src}/lib/address-utils.d.ts +0 -0
- /package/{types/src → src}/lib/address.d.ts +0 -0
- /package/{types/src → src}/lib/date-utils.d.ts +0 -0
- /package/{types/src → src}/lib/session-answer-store.d.ts +0 -0
- /package/{types/src → src}/lib/utils.d.ts +0 -0
- /package/{types/src → src}/lib/uuid.d.ts +0 -0
- /package/{types/src → src}/middleware/build-get-journey.d.ts +0 -0
- /package/{types/src → src}/validator/address-validator.d.ts +0 -0
- /package/{types/src → src}/validator/base-validator.d.ts +0 -0
- /package/{types/src → src}/validator/conditional-required-validator.d.ts +0 -0
- /package/{types/src → src}/validator/confirmation-checkbox-validator.d.ts +0 -0
- /package/{types/src → src}/validator/coordinates-validator.d.ts +0 -0
- /package/{types/src → src}/validator/cross-question-validator.d.ts +0 -0
- /package/{types/src → src}/validator/date-period-validator.d.ts +0 -0
- /package/{types/src → src}/validator/date-time-validator.d.ts +0 -0
- /package/{types/src → src}/validator/date-validator.d.ts +0 -0
- /package/{types/src → src}/validator/document-upload-validator.d.ts +0 -0
- /package/{types/src → src}/validator/email-validator.d.ts +0 -0
- /package/{types/src → src}/validator/required-validator.d.ts +0 -0
- /package/{types/src → src}/validator/same-answer-validator.d.ts +0 -0
- /package/{types/src → src}/validator/unit-option-entry-validator.d.ts +0 -0
- /package/{types/src → src}/validator/valid-option-validator.d.ts +0 -0
- /package/{types/src → src}/validator/validation-error-handler.d.ts +0 -0
- /package/{types/src → src}/validator/validator.d.ts +0 -0
- /package/{src/journey → typedefs}/journey-types.d.ts +0 -0
- /package/{src/journey → typedefs}/journey-types.js +0 -0
- /package/{src/questions → typedefs}/question-props.js +0 -0
- /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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commitlint.config.d.ts","sourceRoot":"","sources":["../commitlint.config.js"],"names":[],"mappings":""}
|
package/types/eslint.config.d.ts
DELETED
|
@@ -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":""}
|
package/types/move-types.d.ts
DELETED
|
@@ -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"}
|
package/types/src/index.d.ts.map
DELETED
|
@@ -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":""}
|