@planning-inspectorate/dynamic-forms 3.10.9 → 3.10.10
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/move-types.js +6 -8
- package/package.json +1 -1
- package/src/components/boolean/question.js +1 -1
- package/src/components/manage-list/utils.js +4 -4
- package/src/components/radio/question.js +1 -1
- package/src/index.js +1 -0
- package/src/journey/journey-response.js +2 -2
- package/src/journey/journey-types.js +1 -0
- package/src/journey/journey.js +17 -23
- package/src/questions/create-questions.js +1 -1
- package/src/questions/options-question.js +7 -3
- package/src/questions/question-types.d.ts +6 -0
- package/src/questions/question.js +18 -21
- package/src/validator/valid-option-validator.js +1 -5
- package/tsconfig.json +1 -1
- package/types/commitlint.config.d.ts +0 -7
- package/types/commitlint.config.d.ts.map +0 -1
- package/types/eslint.config.d.ts +0 -95
- 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 +0 -36
- package/types/src/components/address/question.d.ts.map +0 -1
- package/types/src/components/address/question.test.d.ts +0 -2
- package/types/src/components/address/question.test.d.ts.map +0 -1
- package/types/src/components/boolean/question.d.ts +0 -50
- package/types/src/components/boolean/question.d.ts.map +0 -1
- package/types/src/components/boolean/question.test.d.ts +0 -2
- package/types/src/components/boolean/question.test.d.ts.map +0 -1
- package/types/src/components/checkbox/question.d.ts +0 -52
- package/types/src/components/checkbox/question.d.ts.map +0 -1
- package/types/src/components/checkbox/question.test.d.ts +0 -2
- package/types/src/components/checkbox/question.test.d.ts.map +0 -1
- package/types/src/components/date/question.d.ts +0 -23
- package/types/src/components/date/question.d.ts.map +0 -1
- package/types/src/components/date/question.test.d.ts +0 -2
- package/types/src/components/date/question.test.d.ts.map +0 -1
- package/types/src/components/date-period/question.d.ts +0 -35
- package/types/src/components/date-period/question.d.ts.map +0 -1
- package/types/src/components/date-period/question.test.d.ts +0 -2
- package/types/src/components/date-period/question.test.d.ts.map +0 -1
- package/types/src/components/date-time/question.d.ts +0 -25
- package/types/src/components/date-time/question.d.ts.map +0 -1
- package/types/src/components/date-time/question.test.d.ts +0 -2
- package/types/src/components/date-time/question.test.d.ts.map +0 -1
- package/types/src/components/email/question.d.ts +0 -31
- package/types/src/components/email/question.d.ts.map +0 -1
- package/types/src/components/email/question.test.d.ts +0 -2
- package/types/src/components/email/question.test.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/identifier/question.test.d.ts +0 -2
- package/types/src/components/identifier/question.test.d.ts.map +0 -1
- package/types/src/components/manage-list/manage-list-actions.d.ts +0 -10
- 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 +0 -16
- package/types/src/components/manage-list/manage-list-section.d.ts.map +0 -1
- package/types/src/components/manage-list/manage-list-section.test.d.ts +0 -2
- package/types/src/components/manage-list/manage-list-section.test.d.ts.map +0 -1
- package/types/src/components/manage-list/question.d.ts +0 -49
- package/types/src/components/manage-list/question.d.ts.map +0 -1
- package/types/src/components/manage-list/question.test.d.ts +0 -2
- package/types/src/components/manage-list/question.test.d.ts.map +0 -1
- package/types/src/components/manage-list/utils.d.ts +0 -18
- package/types/src/components/manage-list/utils.d.ts.map +0 -1
- package/types/src/components/manage-list/utils.test.d.ts +0 -2
- package/types/src/components/manage-list/utils.test.d.ts.map +0 -1
- package/types/src/components/multi-field-input/question.d.ts +0 -61
- package/types/src/components/multi-field-input/question.d.ts.map +0 -1
- package/types/src/components/multi-field-input/question.test.d.ts +0 -2
- package/types/src/components/multi-field-input/question.test.d.ts.map +0 -1
- package/types/src/components/number-entry/question.d.ts +0 -38
- package/types/src/components/number-entry/question.d.ts.map +0 -1
- package/types/src/components/radio/question.d.ts +0 -54
- package/types/src/components/radio/question.d.ts.map +0 -1
- package/types/src/components/radio/question.test.d.ts +0 -2
- package/types/src/components/radio/question.test.d.ts.map +0 -1
- package/types/src/components/select/question.d.ts +0 -55
- package/types/src/components/select/question.d.ts.map +0 -1
- package/types/src/components/select/question.test.d.ts +0 -2
- package/types/src/components/select/question.test.d.ts.map +0 -1
- package/types/src/components/single-line-input/question.d.ts +0 -19
- package/types/src/components/single-line-input/question.d.ts.map +0 -1
- package/types/src/components/single-line-input/question.test.d.ts +0 -2
- package/types/src/components/single-line-input/question.test.d.ts.map +0 -1
- package/types/src/components/text-entry/question.d.ts +0 -35
- package/types/src/components/text-entry/question.d.ts.map +0 -1
- package/types/src/components/text-entry/question.test.d.ts +0 -2
- package/types/src/components/text-entry/question.test.d.ts.map +0 -1
- package/types/src/components/text-entry-redact/question.d.ts +0 -35
- package/types/src/components/text-entry-redact/question.d.ts.map +0 -1
- package/types/src/components/text-entry-redact/question.test.d.ts +0 -2
- package/types/src/components/text-entry-redact/question.test.d.ts.map +0 -1
- package/types/src/components/unit-option-entry/question.d.ts +0 -84
- package/types/src/components/unit-option-entry/question.d.ts.map +0 -1
- package/types/src/components/unit-option-entry/question.test.d.ts +0 -2
- package/types/src/components/unit-option-entry/question.test.d.ts.map +0 -1
- package/types/src/components/utils/component-types.d.ts +0 -19
- package/types/src/components/utils/component-types.d.ts.map +0 -1
- package/types/src/components/utils/persisted-number-answer.d.ts +0 -2
- package/types/src/components/utils/persisted-number-answer.d.ts.map +0 -1
- package/types/src/components/utils/question-has-answer.d.ts +0 -17
- package/types/src/components/utils/question-has-answer.d.ts.map +0 -1
- package/types/src/components/utils/question-has-answer.test.d.ts +0 -2
- package/types/src/components/utils/question-has-answer.test.d.ts.map +0 -1
- package/types/src/components/utils/question-utils.d.ts +0 -15
- package/types/src/components/utils/question-utils.d.ts.map +0 -1
- package/types/src/components/utils/question-utils.test.d.ts +0 -2
- package/types/src/components/utils/question-utils.test.d.ts.map +0 -1
- package/types/src/controller.d.ts +0 -75
- package/types/src/controller.d.ts.map +0 -1
- package/types/src/controller.test.d.ts +0 -2
- package/types/src/controller.test.d.ts.map +0 -1
- package/types/src/index.d.ts +0 -58
- package/types/src/index.d.ts.map +0 -1
- package/types/src/index.test.d.ts +0 -2
- package/types/src/index.test.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-response.test.d.ts +0 -2
- package/types/src/journey/journey-response.test.d.ts.map +0 -1
- package/types/src/journey/journey.d.ts +0 -144
- package/types/src/journey/journey.d.ts.map +0 -1
- package/types/src/journey/journey.test.d.ts +0 -2
- package/types/src/journey/journey.test.d.ts.map +0 -1
- package/types/src/lib/address-utils.d.ts +0 -6
- package/types/src/lib/address-utils.d.ts.map +0 -1
- package/types/src/lib/address-utils.test.d.ts +0 -2
- package/types/src/lib/address-utils.test.d.ts.map +0 -1
- package/types/src/lib/address.d.ts +0 -43
- package/types/src/lib/address.d.ts.map +0 -1
- package/types/src/lib/address.test.d.ts +0 -2
- package/types/src/lib/address.test.d.ts.map +0 -1
- package/types/src/lib/date-utils.d.ts +0 -60
- package/types/src/lib/date-utils.d.ts.map +0 -1
- package/types/src/lib/date-utils.test.d.ts +0 -2
- package/types/src/lib/date-utils.test.d.ts.map +0 -1
- package/types/src/lib/session-answer-store.d.ts +0 -88
- package/types/src/lib/session-answer-store.d.ts.map +0 -1
- package/types/src/lib/session-answer-store.test.d.ts +0 -2
- package/types/src/lib/session-answer-store.test.d.ts.map +0 -1
- package/types/src/lib/utils.d.ts +0 -26
- package/types/src/lib/utils.d.ts.map +0 -1
- package/types/src/lib/utils.test.d.ts +0 -2
- package/types/src/lib/utils.test.d.ts.map +0 -1
- package/types/src/lib/uuid.d.ts +0 -7
- package/types/src/lib/uuid.d.ts.map +0 -1
- package/types/src/lib/uuid.test.d.ts +0 -2
- package/types/src/lib/uuid.test.d.ts.map +0 -1
- package/types/src/middleware/build-get-journey.d.ts +0 -6
- 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/middleware/redirect-to-unanswered-question.test.d.ts +0 -2
- package/types/src/middleware/redirect-to-unanswered-question.test.d.ts.map +0 -1
- package/types/src/questions/create-questions.d.ts +0 -21
- package/types/src/questions/create-questions.d.ts.map +0 -1
- package/types/src/questions/options-question.d.ts +0 -74
- package/types/src/questions/options-question.d.ts.map +0 -1
- package/types/src/questions/options-question.test.d.ts +0 -2
- package/types/src/questions/options-question.test.d.ts.map +0 -1
- package/types/src/questions/question-props.d.ts +0 -182
- package/types/src/questions/question-props.d.ts.map +0 -1
- package/types/src/questions/question-types.d.ts +0 -80
- package/types/src/questions/question-types.d.ts.map +0 -1
- package/types/src/questions/question.d.ts +0 -278
- package/types/src/questions/question.d.ts.map +0 -1
- package/types/src/questions/question.test.d.ts +0 -2
- package/types/src/questions/question.test.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 +0 -107
- package/types/src/section.d.ts.map +0 -1
- package/types/src/section.test.d.ts +0 -2
- package/types/src/section.test.d.ts.map +0 -1
- package/types/src/validator/address-validator.d.ts +0 -48
- package/types/src/validator/address-validator.d.ts.map +0 -1
- package/types/src/validator/address-validator.test.d.ts +0 -2
- package/types/src/validator/address-validator.test.d.ts.map +0 -1
- package/types/src/validator/base-validator.d.ts +0 -12
- package/types/src/validator/base-validator.d.ts.map +0 -1
- package/types/src/validator/base-validator.test.d.ts +0 -2
- package/types/src/validator/base-validator.test.d.ts.map +0 -1
- package/types/src/validator/conditional-required-validator.d.ts +0 -25
- package/types/src/validator/conditional-required-validator.d.ts.map +0 -1
- package/types/src/validator/conditional-required-validator.test.d.ts +0 -2
- package/types/src/validator/conditional-required-validator.test.d.ts.map +0 -1
- package/types/src/validator/confirmation-checkbox-validator.d.ts +0 -28
- package/types/src/validator/confirmation-checkbox-validator.d.ts.map +0 -1
- package/types/src/validator/confirmation-checkbox-validator.test.d.ts +0 -2
- package/types/src/validator/confirmation-checkbox-validator.test.d.ts.map +0 -1
- package/types/src/validator/coordinates-validator.d.ts +0 -23
- package/types/src/validator/coordinates-validator.d.ts.map +0 -1
- package/types/src/validator/coordinates-validator.test.d.ts +0 -2
- package/types/src/validator/coordinates-validator.test.d.ts.map +0 -1
- package/types/src/validator/date-period-validator.d.ts +0 -64
- package/types/src/validator/date-period-validator.d.ts.map +0 -1
- package/types/src/validator/date-period-validator.test.d.ts +0 -2
- package/types/src/validator/date-period-validator.test.d.ts.map +0 -1
- package/types/src/validator/date-time-validator.d.ts +0 -27
- package/types/src/validator/date-time-validator.d.ts.map +0 -1
- package/types/src/validator/date-time-validator.test.d.ts +0 -2
- package/types/src/validator/date-time-validator.test.d.ts.map +0 -1
- package/types/src/validator/date-validator.d.ts +0 -49
- package/types/src/validator/date-validator.d.ts.map +0 -1
- package/types/src/validator/date-validator.test.d.ts +0 -2
- package/types/src/validator/date-validator.test.d.ts.map +0 -1
- package/types/src/validator/document-upload-validator.d.ts +0 -12
- package/types/src/validator/document-upload-validator.d.ts.map +0 -1
- package/types/src/validator/document-upload-validator.test.d.ts +0 -2
- package/types/src/validator/document-upload-validator.test.d.ts.map +0 -1
- package/types/src/validator/email-validator.d.ts +0 -74
- package/types/src/validator/email-validator.d.ts.map +0 -1
- package/types/src/validator/email-validator.test.d.ts +0 -2
- package/types/src/validator/email-validator.test.d.ts.map +0 -1
- package/types/src/validator/multi-field-input-validator.d.ts +0 -91
- package/types/src/validator/multi-field-input-validator.d.ts.map +0 -1
- package/types/src/validator/multi-field-input-validator.test.d.ts +0 -2
- package/types/src/validator/multi-field-input-validator.test.d.ts.map +0 -1
- package/types/src/validator/numeric-validator.d.ts +0 -50
- package/types/src/validator/numeric-validator.d.ts.map +0 -1
- package/types/src/validator/numeric-validator.test.d.ts +0 -2
- package/types/src/validator/numeric-validator.test.d.ts.map +0 -1
- package/types/src/validator/required-validator.d.ts +0 -23
- package/types/src/validator/required-validator.d.ts.map +0 -1
- package/types/src/validator/required-validator.test.d.ts +0 -2
- package/types/src/validator/required-validator.test.d.ts.map +0 -1
- package/types/src/validator/same-answer-validator.d.ts +0 -19
- package/types/src/validator/same-answer-validator.d.ts.map +0 -1
- package/types/src/validator/same-answer-validator.test.d.ts +0 -2
- package/types/src/validator/same-answer-validator.test.d.ts.map +0 -1
- package/types/src/validator/string-validator.d.ts +0 -59
- package/types/src/validator/string-validator.d.ts.map +0 -1
- package/types/src/validator/string-validator.test.d.ts +0 -2
- package/types/src/validator/string-validator.test.d.ts.map +0 -1
- package/types/src/validator/unit-option-entry-validator.d.ts +0 -41
- package/types/src/validator/unit-option-entry-validator.d.ts.map +0 -1
- package/types/src/validator/unit-option-entry-validator.test.d.ts +0 -2
- package/types/src/validator/unit-option-entry-validator.test.d.ts.map +0 -1
- package/types/src/validator/valid-option-validator.d.ts +0 -23
- package/types/src/validator/valid-option-validator.d.ts.map +0 -1
- package/types/src/validator/valid-option-validator.test.d.ts +0 -2
- package/types/src/validator/valid-option-validator.test.d.ts.map +0 -1
- package/types/src/validator/validation-error-handler.d.ts +0 -20
- package/types/src/validator/validation-error-handler.d.ts.map +0 -1
- package/types/src/validator/validation-error-handler.test.d.ts +0 -2
- package/types/src/validator/validation-error-handler.test.d.ts.map +0 -1
- package/types/src/validator/validator.d.ts +0 -5
- package/types/src/validator/validator.d.ts.map +0 -1
- package/types/src/validator/validator.test.d.ts +0 -2
- package/types/src/validator/validator.test.d.ts.map +0 -1
- package/types/test/mock/journey.d.ts +0 -3
- package/types/test/mock/journey.d.ts.map +0 -1
- package/types/test/mock/uuid.d.ts +0 -7
- package/types/test/mock/uuid.d.ts.map +0 -1
- package/types/test/utils/nunjucks.d.ts +0 -2
- package/types/test/utils/nunjucks.d.ts.map +0 -1
- package/types/test/utils/utils.d.ts +0 -32
- package/types/test/utils/utils.d.ts.map +0 -1
|
@@ -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,6IAdG;QAAuB,KAAK,EAApB,MAAM;QACS,QAAQ,EAAvB,MAAM;QACS,SAAS,EAAxB,MAAM;QACU,GAAG;QACH,IAAI;QACJ,SAAS;QACT,WAAW;QACX,IAAI;QACJ,aAAa;QACyC,OAAO;QACpB,UAAU;QAClD,QAAQ;QACyC,QAAQ,GAA1E,OAAO,iBAAiB,EAAE,kBAAkB,CAAC,UAAU,CAAC;KAAmB,EAmDrF;IADA,sBAAkC;IAGnC;;;;;OAKG,CACH,mBAJW,OAAO,SAAS,EAAE,OAAO,mBACzB,eAAe,GACb,OAAO,CAAE,MAAM,CAAC,CAe5B;CACD;;0BAzHyB,sBAAsB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.test.d.ts","sourceRoot":"","sources":["../../../../src/components/boolean/question.test.js"],"names":[],"mappings":""}
|
|
@@ -1,52 +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 {Object} params
|
|
10
|
-
* @param {string} params.title
|
|
11
|
-
* @param {string} params.question
|
|
12
|
-
* @param {string} params.fieldName
|
|
13
|
-
* @param {string} [params.url]
|
|
14
|
-
* @param {string} [params.pageTitle]
|
|
15
|
-
* @param {string} [params.description]
|
|
16
|
-
* @param {Array.<import('../../questions/options-question.js').Option>} params.options
|
|
17
|
-
* @param {Array.<import('#base-validator').BaseValidator>} [params.validators]
|
|
18
|
-
* @param {import('#question-types').QuestionParameters['viewData']} [params.viewData]
|
|
19
|
-
*/
|
|
20
|
-
constructor({ title, question, fieldName, url, pageTitle, description, options, validators, viewData }: {
|
|
21
|
-
title: string;
|
|
22
|
-
question: string;
|
|
23
|
-
fieldName: string;
|
|
24
|
-
url?: string | undefined;
|
|
25
|
-
pageTitle?: string | undefined;
|
|
26
|
-
description?: string | undefined;
|
|
27
|
-
options: Array<import("../../questions/options-question.js").Option>;
|
|
28
|
-
validators?: import("#base-validator").BaseValidator[] | undefined;
|
|
29
|
-
viewData?: import("#question-types").QuestionParameters["viewData"];
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* returns the formatted answers values to be used to build task list elements
|
|
33
|
-
* @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
|
|
34
|
-
* @param {import('#journey').Journey} journey
|
|
35
|
-
* @param {String} sectionSegment
|
|
36
|
-
* @returns {Array.<Object>}
|
|
37
|
-
*/
|
|
38
|
-
formatAnswerForSummary(sectionSegment: string, journey: import("#journey").Journey, answer: string | ConditionalAnswerObject): Array<Object>;
|
|
39
|
-
}
|
|
40
|
-
export default CheckboxQuestion;
|
|
41
|
-
export type ConditionalAnswerObject = {
|
|
42
|
-
/**
|
|
43
|
-
* the checkbox answer
|
|
44
|
-
*/
|
|
45
|
-
value: string;
|
|
46
|
-
/**
|
|
47
|
-
* the conditional text input
|
|
48
|
-
*/
|
|
49
|
-
conditional: string;
|
|
50
|
-
};
|
|
51
|
-
import OptionsQuestion from '../../questions/options-question.js';
|
|
52
|
-
//# 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;;;;;;;;;;;OAWG;IACH,wGAVG;QAAuB,KAAK,EAApB,MAAM;QACS,QAAQ,EAAvB,MAAM;QACS,SAAS,EAAxB,MAAM;QACU,GAAG;QACH,SAAS;QACT,WAAW;QAC0C,OAAO,EAA5E,KAAK,CAAE,OAAO,qCAAqC,EAAE,MAAM,CAAC;QACH,UAAU;QACD,QAAQ,GAA1E,OAAO,iBAAiB,EAAE,kBAAkB,CAAC,UAAU,CAAC;KAAmB,EAiBrF;IAED;;;;;;OAMG;IACH,wDAJW,OAAO,UAAU,EAAE,OAAO,UAD1B,MAAM,GAAG,uBAAuB,GAG9B,KAAK,CAAE,MAAM,CAAC,CAuC1B;CACD;;;;;;WA/Ea,MAAM;;;;iBACN,MAAM;;4BATQ,qCAAqC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.test.d.ts","sourceRoot":"","sources":["../../../../src/components/checkbox/question.test.js"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class
|
|
3
|
-
*/
|
|
4
|
-
export class DateQuestion extends Question {
|
|
5
|
-
/**
|
|
6
|
-
* @param {import('#question-types').QuestionParameters} params
|
|
7
|
-
* @param {string} [params.dateFormat]
|
|
8
|
-
*/
|
|
9
|
-
constructor({ dateFormat, ...params }: import("#question-types").QuestionParameters);
|
|
10
|
-
dateFormat: any;
|
|
11
|
-
/**
|
|
12
|
-
* Get the data to save from the request, returns an object of answers
|
|
13
|
-
* @param {import('express').Request} req
|
|
14
|
-
* @param {import('#journey-response').JourneyResponse} journeyResponse - current journey response, modified with the new answers
|
|
15
|
-
* @returns {Promise.<Object>}
|
|
16
|
-
*/ getDataToSave(req: import("express").Request, journeyResponse: import("#journey-response").JourneyResponse): Promise<Object>;
|
|
17
|
-
answerForViewModel(answers: any, isPayload: any): {
|
|
18
|
-
[x: string]: any;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export default DateQuestion;
|
|
22
|
-
import { Question } from '../../questions/question.js';
|
|
23
|
-
//# sourceMappingURL=question.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/date/question.js"],"names":[],"mappings":"AAKA;;GAEG;AACH;IACC;;;OAGG;IACH,uCAHW,OAAO,iBAAiB,EAAE,kBAAkB,EAStD;IADA,gBAA4B;IAG7B;;;;;OAKG,CACH,mBAJW,OAAO,SAAS,EAAE,OAAO,mBACzB,OAAO,mBAAmB,EAAE,eAAe,GACzC,OAAO,CAAE,MAAM,CAAC,CAY5B;IAED;;MAwBC;CAoBD;;yBAlFwB,6BAA6B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.test.d.ts","sourceRoot":"","sources":["../../../../src/components/date/question.test.js"],"names":[],"mappings":""}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a date period, two dates which make up a period or range
|
|
3
|
-
* @class
|
|
4
|
-
*/
|
|
5
|
-
export class DatePeriodQuestion extends Question {
|
|
6
|
-
/**
|
|
7
|
-
* @param {import('#question-types').QuestionParameters} params
|
|
8
|
-
* @param {string} [params.dateFormat]
|
|
9
|
-
* @param {{start: string, end: string}} [params.labels]
|
|
10
|
-
* @param {string} [params.hint]
|
|
11
|
-
* @param {string} [params.hintStart]
|
|
12
|
-
* @param {string} [params.hintEnd]
|
|
13
|
-
* @param {{hour: number, minute: number, second: number}} [params.startTime]
|
|
14
|
-
* @param {{hour: number, minute: number, second: number}} [params.endTime]
|
|
15
|
-
*/
|
|
16
|
-
constructor({ dateFormat, hint, labels, hintStart, startTime, hintEnd, endTime, ...params }: import("#question-types").QuestionParameters);
|
|
17
|
-
dateFormat: any;
|
|
18
|
-
labels: any;
|
|
19
|
-
hintStart: any;
|
|
20
|
-
hintEnd: any;
|
|
21
|
-
startTime: any;
|
|
22
|
-
endTime: any;
|
|
23
|
-
/**
|
|
24
|
-
* Get the data to save from the request, returns an object of answers
|
|
25
|
-
* @param {import('express').Request} req
|
|
26
|
-
* @param {import('#journey-response').JourneyResponse} journeyResponse - current journey response, modified with the new answers
|
|
27
|
-
* @returns {Promise.<Object>}
|
|
28
|
-
*/ getDataToSave(req: import("express").Request, journeyResponse: import("#journey-response").JourneyResponse): Promise<Object>;
|
|
29
|
-
answerForViewModel(answers: any, isPayload: any): {
|
|
30
|
-
[x: string]: any;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export default DatePeriodQuestion;
|
|
34
|
-
import { Question } from '#question';
|
|
35
|
-
//# sourceMappingURL=question.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/date-period/question.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH;IACC;;;;;;;;;OASG;IACH,6FATW,OAAO,iBAAiB,EAAE,kBAAkB,EAqBtD;IAPA,gBAA4B;IAC5B,YAAsD;IAEtD,eAA0B;IAC1B,aAAsB;IACtB,eAA+D;IAC/D,aAA2D;IAG5D;;;;;OAKG,CACH,mBAJW,OAAO,SAAS,EAAE,OAAO,mBACzB,OAAO,mBAAmB,EAAE,eAAe,GACzC,OAAO,CAAE,MAAM,CAAC,CAgC5B;IAED;;MAuCC;CAyCD;;yBAzJwB,WAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.test.d.ts","sourceRoot":"","sources":["../../../../src/components/date-period/question.test.js"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export class DateTimeQuestion extends Question {
|
|
2
|
-
static AM: string;
|
|
3
|
-
static PM: string;
|
|
4
|
-
/**
|
|
5
|
-
* @param {import('#question-types').QuestionParameters} params
|
|
6
|
-
* @param {string} [params.dateFormat]
|
|
7
|
-
* @param {string} [params.timeFormat]
|
|
8
|
-
*/
|
|
9
|
-
constructor({ dateFormat, timeFormat, ...params }: import("#question-types").QuestionParameters);
|
|
10
|
-
dateFormat: any;
|
|
11
|
-
timeFormat: any;
|
|
12
|
-
/**
|
|
13
|
-
* Get the data to save from the request, returns an object of answers
|
|
14
|
-
* @param {import('express').Request} req
|
|
15
|
-
* @param {JourneyResponse} journeyResponse - current journey response, modified with the new answers
|
|
16
|
-
* @returns {Promise.<Object>}
|
|
17
|
-
*/ getDataToSave(req: import("express").Request, journeyResponse: JourneyResponse): Promise<Object>;
|
|
18
|
-
answerForViewModel(answers: any, isPayload: any): {
|
|
19
|
-
[x: string]: any;
|
|
20
|
-
};
|
|
21
|
-
#private;
|
|
22
|
-
}
|
|
23
|
-
export default DateTimeQuestion;
|
|
24
|
-
import { Question } from '../../questions/question.js';
|
|
25
|
-
//# sourceMappingURL=question.d.ts.map
|
|
@@ -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;;;;OAIG;IACH,mDAJW,OAAO,iBAAiB,EAAE,kBAAkB,EAWtD;IAFA,gBAA4B;IAC5B,gBAA4B;IAG7B;;;;;OAKG,CACH,mBAJW,OAAO,SAAS,EAAE,OAAO,mBACzB,eAAe,GACb,OAAO,CAAE,MAAM,CAAC,CAqB5B;IAED;;MAqCC;;CAoCD;;yBA5HwB,6BAA6B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.test.d.ts","sourceRoot":"","sources":["../../../../src/components/date-time/question.test.js"],"names":[],"mappings":""}
|
|
@@ -1,31 +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
|
-
* Override formatAnswerForSummary to prevent capitalization of email addresses
|
|
16
|
-
* Email addresses should remain in their original case (typically lowercase)
|
|
17
|
-
* @param {string} sectionSegment
|
|
18
|
-
* @param {import('#journey').Journey} journey
|
|
19
|
-
* @param {string} answer
|
|
20
|
-
* @returns {Array}
|
|
21
|
-
*/
|
|
22
|
-
formatAnswerForSummary(sectionSegment: string, journey: import("#journey").Journey, answer: string): any[];
|
|
23
|
-
}
|
|
24
|
-
export default EmailQuestion;
|
|
25
|
-
export type QuestionViewModel = import("#question").QuestionViewModel;
|
|
26
|
-
export type Journey = import("#journey").Journey;
|
|
27
|
-
export type JourneyResponse = import("#journey-response").JourneyResponse;
|
|
28
|
-
export type Section = any;
|
|
29
|
-
export type BaseValidator = any;
|
|
30
|
-
import SingleLineInputQuestion from '../single-line-input/question.js';
|
|
31
|
-
//# 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;IA2BC;;;;;;;OAOG;IACH,uCALW,MAAM,WACN,OAAO,UAAU,EAAE,OAAO,UAC1B,MAAM,SAMhB;CACD;;gCAnDY,OAAO,WAAW,EAAE,iBAAiB;sBACrC,OAAO,UAAU,EAAE,OAAO;8BAC1B,OAAO,mBAAmB,EAAE,eAAe;;;oCALpB,kCAAkC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.test.d.ts","sourceRoot":"","sources":["../../../../src/components/email/question.test.js"],"names":[],"mappings":""}
|
|
@@ -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":"question.test.d.ts","sourceRoot":"","sources":["../../../../src/components/identifier/question.test.js"],"names":[],"mappings":""}
|
|
@@ -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,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extends the Section class for extra logic around managing lists.
|
|
3
|
-
*/
|
|
4
|
-
export class ManageListSection extends Section {
|
|
5
|
-
constructor();
|
|
6
|
-
/**
|
|
7
|
-
* Is this section a manage list section?
|
|
8
|
-
*
|
|
9
|
-
* Used by controller and other logic.
|
|
10
|
-
*
|
|
11
|
-
* @returns {boolean}
|
|
12
|
-
*/
|
|
13
|
-
get isManageListSection(): boolean;
|
|
14
|
-
}
|
|
15
|
-
import { Section } from '#src/section.js';
|
|
16
|
-
//# sourceMappingURL=manage-list-section.d.ts.map
|
|
@@ -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;CAmBD;wBAtCuB,iBAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manage-list-section.test.d.ts","sourceRoot":"","sources":["../../../../src/components/manage-list/manage-list-section.test.js"],"names":[],"mappings":""}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {Object} ManageListQuestionParameters
|
|
3
|
-
* @property {string} titleSingular - the single name of the list item, e.g. "Holiday activity"
|
|
4
|
-
* @property {boolean} [showManageListQuestions] - whether to show the question titles as well as answers on the manage list summary page
|
|
5
|
-
* @property {boolean} [showAnswersInSummary] - whether to show the answers on the main check-your-answers page (or just a count)
|
|
6
|
-
* @property {string} [confirmationQuestion] - the name of the confirmation question to use when removing an item, default 'confirm'
|
|
7
|
-
*/
|
|
8
|
-
export class ManageListQuestion extends Question {
|
|
9
|
-
/**
|
|
10
|
-
* @param {import('#question-types').QuestionParameters & ManageListQuestionParameters} params
|
|
11
|
-
*/
|
|
12
|
-
constructor(params: import("#question-types").QuestionParameters & ManageListQuestionParameters);
|
|
13
|
-
get confirmationQuestionParam(): string;
|
|
14
|
-
getDataToSave(req: any, journeyResponse: any): Promise<{
|
|
15
|
-
answers: {
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
};
|
|
18
|
-
}>;
|
|
19
|
-
formatAnswerForSummary(sectionSegment: any, journey: any, answer: any): {
|
|
20
|
-
key: string;
|
|
21
|
-
value: string;
|
|
22
|
-
action: import("../../controller.js").ActionView | import("../../controller.js").ActionView[] | undefined;
|
|
23
|
-
}[];
|
|
24
|
-
renderConfirmationAction(res: any, itemToRemove: any, viewModel: any): void;
|
|
25
|
-
set section(section: import("../../section.js").Section);
|
|
26
|
-
get section(): import("../../section.js").Section;
|
|
27
|
-
#private;
|
|
28
|
-
}
|
|
29
|
-
export default ManageListQuestion;
|
|
30
|
-
export type ManageListQuestionParameters = {
|
|
31
|
-
/**
|
|
32
|
-
* - the single name of the list item, e.g. "Holiday activity"
|
|
33
|
-
*/
|
|
34
|
-
titleSingular: string;
|
|
35
|
-
/**
|
|
36
|
-
* - whether to show the question titles as well as answers on the manage list summary page
|
|
37
|
-
*/
|
|
38
|
-
showManageListQuestions?: boolean | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* - whether to show the answers on the main check-your-answers page (or just a count)
|
|
41
|
-
*/
|
|
42
|
-
showAnswersInSummary?: boolean | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* - the name of the confirmation question to use when removing an item, default 'confirm'
|
|
45
|
-
*/
|
|
46
|
-
confirmationQuestion?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
import { Question } from '#question';
|
|
49
|
-
//# sourceMappingURL=question.d.ts.map
|
|
@@ -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,iBAAiB,EAAE,kBAAkB,GAAG,4BAA4B,EAerF;IAcD,wCAEC;IAyDD;;;;OAMC;IAED;;;;QAsBC;IAED,4EAQC;IAoCD,yDAEC;IATD,kDAKC;;CAKD;;;;;;mBArLa,MAAM;;;;;;;;;;;;;;yBAPK,WAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.test.d.ts","sourceRoot":"","sources":["../../../../src/components/manage-list/question.test.js"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {import('#src/journey/journey-response.js').JourneyResponse} response
|
|
4
|
-
* @param {import('./question.js')} manageListQuestion
|
|
5
|
-
* @param {string} manageListItemId
|
|
6
|
-
* @returns {Record<string, unknown>}
|
|
7
|
-
*/
|
|
8
|
-
export function answerObjectForManageList(response: import("#src/journey/journey-response.js").JourneyResponse, manageListQuestion: typeof import("./question.js"), manageListItemId: string): Record<string, unknown>;
|
|
9
|
-
/**
|
|
10
|
-
* Similar to answerObjectForManageList but will edit response and add a new array entry if not found
|
|
11
|
-
*
|
|
12
|
-
* @param {import('#src/journey/journey-response.js').JourneyResponse} response
|
|
13
|
-
* @param {import('./question.js')} manageListQuestion
|
|
14
|
-
* @param {import('#src/journey/journey-types.d.ts').RouteParams} params
|
|
15
|
-
* @returns {import('#src/journey/journey-types.d.ts').ManageListAnswers}
|
|
16
|
-
*/
|
|
17
|
-
export function answerObjectForManageListSaving(response: import("#src/journey/journey-response.js").JourneyResponse, manageListQuestion: typeof import("./question.js"), params: import("#src/journey/journey-types.d.ts").RouteParams): import("#src/journey/journey-types.d.ts").ManageListAnswers;
|
|
18
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -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,kCAAkC,EAAE,eAAe,wEAE1D,MAAM,GACJ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQnC;AAED;;;;;;;GAOG;AACH,0DALW,OAAO,kCAAkC,EAAE,eAAe,8DAE1D,OAAO,iCAAiC,EAAE,WAAW,GACnD,OAAO,iCAAiC,EAAE,iBAAiB,CAavE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../../src/components/manage-list/utils.test.js"],"names":[],"mappings":""}
|
|
@@ -1,61 +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('#src/questions/question-props.d.ts').MultiFieldInputQuestionProps} params
|
|
14
|
-
*/
|
|
15
|
-
constructor({ inputFields, ...params }: import("#src/questions/question-props.d.ts").MultiFieldInputQuestionProps);
|
|
16
|
-
inputFields: import("#src/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("#src/questions/question-props.d.ts").Affix;
|
|
26
|
-
prefix?: import("#src/questions/question-props.d.ts").Affix;
|
|
27
|
-
hint?: string;
|
|
28
|
-
}[];
|
|
29
|
-
/**
|
|
30
|
-
* returns the formatted answers values to be used to build task list elements
|
|
31
|
-
* @param {Journey} journey
|
|
32
|
-
* @param {String} sectionSegment
|
|
33
|
-
* @returns {Array<{
|
|
34
|
-
* key: string;
|
|
35
|
-
* value: string | Object;
|
|
36
|
-
* action: {
|
|
37
|
-
* href: string;
|
|
38
|
-
* text: string;
|
|
39
|
-
* visuallyHiddenText: string;
|
|
40
|
-
* };
|
|
41
|
-
* }>}
|
|
42
|
-
*/
|
|
43
|
-
formatAnswerForSummary(sectionSegment: string, journey: Journey): Array<{
|
|
44
|
-
key: string;
|
|
45
|
-
value: string | Object;
|
|
46
|
-
action: {
|
|
47
|
-
href: string;
|
|
48
|
-
text: string;
|
|
49
|
-
visuallyHiddenText: string;
|
|
50
|
-
};
|
|
51
|
-
}>;
|
|
52
|
-
#private;
|
|
53
|
-
}
|
|
54
|
-
export default MultiFieldInputQuestion;
|
|
55
|
-
export type QuestionViewModel = import("#question").QuestionViewModel;
|
|
56
|
-
export type Journey = import("#journey").Journey;
|
|
57
|
-
export type JourneyResponse = import("#journey-response").JourneyResponse;
|
|
58
|
-
export type Section = any;
|
|
59
|
-
export type BaseValidator = any;
|
|
60
|
-
import { Question } from '#question';
|
|
61
|
-
//# 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,wCAFW,OAAO,oCAAoC,EAAE,4BAA4B,EAanF;IAJC,uEAA8B;IAMhC;;;;;;;;;;;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;;gCA/GY,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.test.d.ts","sourceRoot":"","sources":["../../../../src/components/multi-field-input/question.test.js"],"names":[],"mappings":""}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export class NumberEntryQuestion extends Question {
|
|
2
|
-
/**
|
|
3
|
-
* @param {import('#question-types').QuestionParameters} params
|
|
4
|
-
* @param {string} [params.suffix]
|
|
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({ label, suffix, ...params }: import("#question-types").QuestionParameters);
|
|
8
|
-
suffix: any;
|
|
9
|
-
label: any;
|
|
10
|
-
answerForViewModel(answers: any): string | number;
|
|
11
|
-
/**
|
|
12
|
-
* returns the formatted answers values to be used to build task list elements
|
|
13
|
-
* @param {Object} answer
|
|
14
|
-
* @param {import('#journey').Journey} journey
|
|
15
|
-
* @param {String} sectionSegment
|
|
16
|
-
* @returns {Array<{
|
|
17
|
-
* key: string;
|
|
18
|
-
* value: string | Object;
|
|
19
|
-
* action: {
|
|
20
|
-
* href: string;
|
|
21
|
-
* text: string;
|
|
22
|
-
* visuallyHiddenText: string;
|
|
23
|
-
* };
|
|
24
|
-
* }>}
|
|
25
|
-
*/
|
|
26
|
-
formatAnswerForSummary(sectionSegment: string, journey: import("#journey").Journey, answer: Object): Array<{
|
|
27
|
-
key: string;
|
|
28
|
-
value: string | Object;
|
|
29
|
-
action: {
|
|
30
|
-
href: string;
|
|
31
|
-
text: string;
|
|
32
|
-
visuallyHiddenText: string;
|
|
33
|
-
};
|
|
34
|
-
}>;
|
|
35
|
-
}
|
|
36
|
-
export default NumberEntryQuestion;
|
|
37
|
-
import { Question } from '#question';
|
|
38
|
-
//# sourceMappingURL=question.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/number-entry/question.js"],"names":[],"mappings":"AAGA;IACC;;;;OAIG;IACH,0CAJW,OAAO,iBAAiB,EAAE,kBAAkB,EAYtD;IAFA,YAAoB;IACpB,WAAkB;IAGnB,kDAEC;IAUD;;;;;;;;;;;;;;OAcG;IACH,wDAZW,OAAO,UAAU,EAAE,OAAO,UAD1B,MAAM,GAGJ,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;;yBAjDwB,WAAW"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export class RadioQuestion extends OptionsQuestion {
|
|
2
|
-
/**
|
|
3
|
-
* @param {Object} params
|
|
4
|
-
* @param {string} params.title
|
|
5
|
-
* @param {string} params.question
|
|
6
|
-
* @param {string} params.fieldName
|
|
7
|
-
* @param {string} [params.viewFolder]
|
|
8
|
-
* @param {string} [params.url]
|
|
9
|
-
* @param {string} [params.hint]
|
|
10
|
-
* @param {string} [params.pageTitle]
|
|
11
|
-
* @param {string} [params.description]
|
|
12
|
-
* @param {string} [params.label]
|
|
13
|
-
* @param {string} [params.html]
|
|
14
|
-
* @param {string} [params.legend] - optional legend, used instead of h1
|
|
15
|
-
* @param {Array.<import('../../questions/options-question.js').Option>} params.options
|
|
16
|
-
* @param {Array.<import('#base-validator').BaseValidator>} [params.validators]
|
|
17
|
-
* @param {boolean} [params.editable]
|
|
18
|
-
* @param {Object<string, any>} [params.viewData]
|
|
19
|
-
* @param {import('#question-types').ActionLink} [params.actionLink]
|
|
20
|
-
*/
|
|
21
|
-
constructor({ title, question, fieldName, viewFolder, url, hint, pageTitle, description, label, html, legend, options, validators, actionLink, editable, viewData }: {
|
|
22
|
-
title: string;
|
|
23
|
-
question: string;
|
|
24
|
-
fieldName: string;
|
|
25
|
-
viewFolder?: string | undefined;
|
|
26
|
-
url?: string | undefined;
|
|
27
|
-
hint?: string | undefined;
|
|
28
|
-
pageTitle?: string | undefined;
|
|
29
|
-
description?: string | undefined;
|
|
30
|
-
label?: string | undefined;
|
|
31
|
-
html?: string | undefined;
|
|
32
|
-
legend?: string | undefined;
|
|
33
|
-
options: Array<import("../../questions/options-question.js").Option>;
|
|
34
|
-
validators?: import("#base-validator").BaseValidator[] | undefined;
|
|
35
|
-
editable?: boolean | undefined;
|
|
36
|
-
viewData?: {
|
|
37
|
-
[x: string]: any;
|
|
38
|
-
} | undefined;
|
|
39
|
-
actionLink?: import("#question-types").ActionLink | undefined;
|
|
40
|
-
});
|
|
41
|
-
label: string | undefined;
|
|
42
|
-
legend: string | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* returns the formatted answers values to be used to build task list elements
|
|
45
|
-
* @param {Object} answer
|
|
46
|
-
* @param {Journey} journey
|
|
47
|
-
* @param {String} sectionSegment
|
|
48
|
-
* @returns {Array.<Object>}
|
|
49
|
-
*/
|
|
50
|
-
formatAnswerForSummary(sectionSegment: string, journey: Journey, answer: Object): Array<Object>;
|
|
51
|
-
}
|
|
52
|
-
export default RadioQuestion;
|
|
53
|
-
import OptionsQuestion from '../../questions/options-question.js';
|
|
54
|
-
//# 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;;;;;;;;;;;;;;;;;;OAkBG;IACH,qKAjBG;QAAuB,KAAK,EAApB,MAAM;QACS,QAAQ,EAAvB,MAAM;QACS,SAAS,EAAxB,MAAM;QACU,UAAU;QACV,GAAG;QACH,IAAI;QACJ,SAAS;QACT,WAAW;QACX,KAAK;QACL,IAAI;QACJ,MAAM;QAC+C,OAAO,EAA5E,KAAK,CAAE,OAAO,qCAAqC,EAAE,MAAM,CAAC;QACH,UAAU;QAClD,QAAQ;QACI,QAAQ;;;QACS,UAAU;KAAC,EAuCnE;IAFA,0BAAkB;IAClB,2BAAoB;IAWrB;;;;;;OAMG;IACH,wDAJW,OAAO,UADP,MAAM,GAGJ,KAAK,CAAE,MAAM,CAAC,CAgB1B;CACD;;4BA3F2B,qCAAqC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"question.test.d.ts","sourceRoot":"","sources":["../../../../src/components/radio/question.test.js"],"names":[],"mappings":""}
|