@planning-inspectorate/dynamic-forms 3.15.6 → 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 +3 -3
- 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/{types/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/questions/question-props.d.ts +0 -295
- 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/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 -18
- 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.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,295 +0,0 @@
|
|
|
1
|
-
import type { QuestionParameters } from '#src/questions/question-types.d.ts';
|
|
2
|
-
|
|
3
|
-
type QuestionTypes =
|
|
4
|
-
| 'boolean'
|
|
5
|
-
| 'checkbox'
|
|
6
|
-
| 'date'
|
|
7
|
-
| 'date-period'
|
|
8
|
-
| 'date-time'
|
|
9
|
-
| 'email'
|
|
10
|
-
| 'manage-list'
|
|
11
|
-
| 'multi-field-input'
|
|
12
|
-
| 'number'
|
|
13
|
-
| 'radio'
|
|
14
|
-
| 'select'
|
|
15
|
-
| 'single-line-input'
|
|
16
|
-
| 'site-address'
|
|
17
|
-
| 'text-entry'
|
|
18
|
-
| 'text-entry-redact'
|
|
19
|
-
| 'unit-option';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Base params that question classes need to function (NO type - that's routing metadata)
|
|
23
|
-
*/
|
|
24
|
-
export type CommonQuestionParams = Omit<QuestionParameters, 'viewFolder'>;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Full props including type for routing/factory layer
|
|
28
|
-
*/
|
|
29
|
-
type CommonQuestionProps = CommonQuestionParams & {
|
|
30
|
-
type: QuestionTypes;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Generic question props type so that custom components can be used without having to define a new type for each one.
|
|
35
|
-
*/
|
|
36
|
-
export type BaseQuestionProps = CommonQuestionParams & {
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
type Option =
|
|
41
|
-
| {
|
|
42
|
-
text: string;
|
|
43
|
-
value: string;
|
|
44
|
-
hint?: object;
|
|
45
|
-
checked?: boolean | undefined;
|
|
46
|
-
attributes?: Record<string, string>;
|
|
47
|
-
behaviour?: 'exclusive';
|
|
48
|
-
conditional?: {
|
|
49
|
-
question: string;
|
|
50
|
-
type: string;
|
|
51
|
-
fieldName: string;
|
|
52
|
-
inputClasses?: string;
|
|
53
|
-
html?: string;
|
|
54
|
-
value?: unknown;
|
|
55
|
-
label?: string;
|
|
56
|
-
hint?: string;
|
|
57
|
-
};
|
|
58
|
-
conditionalText?: {
|
|
59
|
-
html: string;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
| { divider?: string };
|
|
63
|
-
|
|
64
|
-
type Affix = {
|
|
65
|
-
text: string;
|
|
66
|
-
classes?: string;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
interface InputField {
|
|
70
|
-
fieldName: string;
|
|
71
|
-
label: string;
|
|
72
|
-
formatJoinString?: string; // used by formatAnswerForSummary (e.g. task list display), effective default to line break
|
|
73
|
-
formatPrefix?: string; // used by formatAnswerForSummary (e.g. task list display), to prefix answer
|
|
74
|
-
formatTextFunction?: (text: string) => string; // used to format the answer for display and value in question
|
|
75
|
-
attributes?: Record<string, string>; // used to add HTML attributes to the field
|
|
76
|
-
suffix?: Affix; // used to add a suffix to the field
|
|
77
|
-
prefix?: Affix; // used to add a prefix to the field
|
|
78
|
-
hint?: string;
|
|
79
|
-
classes?: string;
|
|
80
|
-
inputmode?: 'decimal' | 'numeric';
|
|
81
|
-
pattern?: string; // Used for backwards-compatibility for older iOS devices in numeric input fields
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/*
|
|
85
|
-
* UnitOptions are the options displayed in the radio format - in this case the value
|
|
86
|
-
* represents the unit.
|
|
87
|
-
* Conditionals must be used to capture the relevant quantity.
|
|
88
|
-
* Each conditional must have a fieldName which uses the conditionalFieldName from the
|
|
89
|
-
* UnitOptionEntryQuestion object as a base, followed by an underscore and unit reference
|
|
90
|
-
* eg 'siteAreaSquareMetres_hectares' - this is required for validation and saving to the DB
|
|
91
|
-
*/
|
|
92
|
-
interface UnitOption {
|
|
93
|
-
text: string;
|
|
94
|
-
value: string;
|
|
95
|
-
hint?: object;
|
|
96
|
-
checked?: boolean | undefined;
|
|
97
|
-
attributes?: Record<string, string>;
|
|
98
|
-
behaviour?: 'exclusive';
|
|
99
|
-
conditional: {
|
|
100
|
-
fieldName: string;
|
|
101
|
-
suffix: string;
|
|
102
|
-
value?: unknown;
|
|
103
|
-
label?: string;
|
|
104
|
-
hint?: string;
|
|
105
|
-
conversionFactor?: number;
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Internal base params for questions with options - not exported
|
|
111
|
-
*/
|
|
112
|
-
type OptionsQuestionParams = CommonQuestionParams & {
|
|
113
|
-
options: Option[];
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export type BooleanQuestionParams = Omit<RadioQuestionParams, 'options'> & {
|
|
117
|
-
options?: Option[];
|
|
118
|
-
interfaceType?: 'checkbox' | 'radio';
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
type BooleanQuestionProps = BooleanQuestionParams & {
|
|
122
|
-
type: 'boolean';
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export type CheckboxQuestionParams = OptionsQuestionParams;
|
|
126
|
-
|
|
127
|
-
type CheckboxQuestionProps = CheckboxQuestionParams & {
|
|
128
|
-
type: 'checkbox';
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
export type DateQuestionParams = CommonQuestionParams & {
|
|
132
|
-
dateFormat?: string;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
type DateQuestionProps = DateQuestionParams & {
|
|
136
|
-
type: 'date';
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
// Minute and second will default to 0 if not provided
|
|
140
|
-
interface TimeComponents {
|
|
141
|
-
hour: number;
|
|
142
|
-
minute?: number;
|
|
143
|
-
second?: number;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export type DatePeriodQuestionParams = CommonQuestionParams & {
|
|
147
|
-
dateFormat?: string;
|
|
148
|
-
labels?: { start: string; end: string };
|
|
149
|
-
hintStart?: string;
|
|
150
|
-
hintEnd?: string;
|
|
151
|
-
startTime?: TimeComponents;
|
|
152
|
-
endTime?: TimeComponents;
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
type DatePeriodQuestionProps = DatePeriodQuestionParams & {
|
|
156
|
-
type: 'date-period';
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export type DateTimeQuestionParams = CommonQuestionParams & {
|
|
160
|
-
dateFormat?: string;
|
|
161
|
-
timeFormat?: string;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
type DateTimeQuestionProps = DateTimeQuestionParams & {
|
|
165
|
-
type: 'date-time';
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
export type ManageListQuestionParams = CommonQuestionParams & {
|
|
169
|
-
titleSingular?: string;
|
|
170
|
-
showManageListQuestions?: boolean;
|
|
171
|
-
showAnswersInSummary?: boolean;
|
|
172
|
-
confirmationQuestion?: string;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
type ManageListQuestionProps = ManageListQuestionParams & {
|
|
176
|
-
type: 'manage-list';
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
export type EmailQuestionParams = SingleLineInputQuestionParams & {
|
|
180
|
-
autocomplete?: string; // autocomplete attribute value (defaults to 'email')
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
type EmailQuestionProps = EmailQuestionParams & {
|
|
184
|
-
type: 'email';
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
export type MultiFieldInputQuestionParams = CommonQuestionParams & {
|
|
188
|
-
inputFields: InputField[];
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
export type MultiFieldInputQuestionProps = MultiFieldInputQuestionParams & {
|
|
192
|
-
type: 'multi-field-input';
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
export type NumberEntryQuestionParams = CommonQuestionParams & {
|
|
196
|
-
suffix?: string;
|
|
197
|
-
label?: string;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
type NumberEntryQuestionProps = NumberEntryQuestionParams & {
|
|
201
|
-
type: 'number';
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
export type RadioQuestionParams = OptionsQuestionParams & {
|
|
205
|
-
label?: string;
|
|
206
|
-
legend?: string;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
type RadioQuestionProps = RadioQuestionParams & {
|
|
210
|
-
type: 'radio';
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
export type SelectQuestionParams = OptionsQuestionParams & {
|
|
214
|
-
disableAccessibleAutocomplete?: boolean;
|
|
215
|
-
label?: string;
|
|
216
|
-
legend?: string;
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
type SelectQuestionProps = SelectQuestionParams & {
|
|
220
|
-
type: 'select';
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
export type SingleLineInputQuestionParams = CommonQuestionParams & {
|
|
224
|
-
inputAttributes?: Record<string, string>; // HTML attributes to add to the input
|
|
225
|
-
label?: string; // if defined this will show as a label for the input and the question will just be a standard h1
|
|
226
|
-
classes?: string; // HTML classes to add to the input
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
type SingleLineInputQuestionProps = SingleLineInputQuestionParams & {
|
|
230
|
-
type: 'single-line-input';
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
export type SiteAddressQuestionParams = CommonQuestionParams;
|
|
234
|
-
|
|
235
|
-
type SiteAddressQuestionProps = SiteAddressQuestionParams & {
|
|
236
|
-
type: 'site-address';
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
type TextEntryCheckbox = {
|
|
240
|
-
header: string;
|
|
241
|
-
text: string;
|
|
242
|
-
name: string;
|
|
243
|
-
errorMessage?: string;
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
export type TextEntryQuestionParams = CommonQuestionParams & {
|
|
247
|
-
textEntryCheckbox?: TextEntryCheckbox;
|
|
248
|
-
label?: string; // if defined this will show as a label for the input and the question will just be a standard h1
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
type TextEntryQuestionProps = TextEntryQuestionParams & {
|
|
252
|
-
type: 'text-entry';
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
export type TextEntryRedactQuestionParams = CommonQuestionParams & {
|
|
256
|
-
textEntryCheckbox?: TextEntryCheckbox;
|
|
257
|
-
label?: string; // if defined this will show as a label for the input and the question will just be a standard h1
|
|
258
|
-
onlyShowRedactedValueForSummary?: boolean;
|
|
259
|
-
useRedactedFieldNameForSave?: boolean;
|
|
260
|
-
showSuggestionsUi?: boolean;
|
|
261
|
-
summaryText?: string; // summaryText to use with the details component
|
|
262
|
-
shouldTruncateSummary?: boolean; // determines whether redacted comment is truncated in summary view
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
type TextEntryRedactQuestionProps = TextEntryRedactQuestionParams & {
|
|
266
|
-
type: 'text-entry-redact';
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
export type UnitOptionEntryQuestionParams = CommonQuestionParams & {
|
|
270
|
-
conditionalFieldName: string; // will be the quantity and is captured by the conditional in the options
|
|
271
|
-
options: UnitOption[];
|
|
272
|
-
label?: string;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
type UnitOptionEntryQuestionProps = UnitOptionEntryQuestionParams & {
|
|
276
|
-
type: 'unit-option';
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
export type QuestionProps =
|
|
280
|
-
| BooleanQuestionProps
|
|
281
|
-
| CheckboxQuestionProps
|
|
282
|
-
| DateQuestionProps
|
|
283
|
-
| DatePeriodQuestionProps
|
|
284
|
-
| DateTimeQuestionProps
|
|
285
|
-
| ManageListQuestionProps
|
|
286
|
-
| EmailQuestionProps
|
|
287
|
-
| MultiFieldInputQuestionProps
|
|
288
|
-
| NumberEntryQuestionProps
|
|
289
|
-
| RadioQuestionProps
|
|
290
|
-
| SelectQuestionProps
|
|
291
|
-
| SingleLineInputQuestionProps
|
|
292
|
-
| SiteAddressQuestionProps
|
|
293
|
-
| TextEntryQuestionProps
|
|
294
|
-
| TextEntryRedactQuestionProps
|
|
295
|
-
| UnitOptionEntryQuestionProps;
|
|
@@ -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 +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"}
|