@defra/forms-model 3.0.455 → 3.0.456
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/dist/module/form/form-editor/preview/index.js +1 -0
- package/dist/module/form/form-editor/preview/index.js.map +1 -1
- package/dist/module/form/form-editor/preview/supporting-evidence.js +14 -0
- package/dist/module/form/form-editor/preview/supporting-evidence.js.map +1 -0
- package/dist/types/form/form-editor/preview/index.d.ts +1 -0
- package/dist/types/form/form-editor/preview/supporting-evidence.d.ts +4 -0
- package/dist/types/form/form-editor/preview/supporting-evidence.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/form/form-editor/preview/index.js +1 -0
- package/src/form/form-editor/preview/supporting-evidence.js +14 -0
@@ -11,6 +11,7 @@ export * from "./question.js";
|
|
11
11
|
export * from "./radio.js";
|
12
12
|
export * from "./radio-sortable.js";
|
13
13
|
export * from "./short-answer.js";
|
14
|
+
export * from "./supporting-evidence.js";
|
14
15
|
export * from "./long-answer.js";
|
15
16
|
export * from "./uk-address.js";
|
16
17
|
export * from "./yes-no.js";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/form/form-editor/preview/index.js"],"sourcesContent":["export * from '~/src/form/form-editor/preview/autocomplete.js'\nexport * from '~/src/form/form-editor/preview/checkbox-sortable.js'\nexport * from '~/src/form/form-editor/preview/date-input.js'\nexport * from '~/src/form/form-editor/preview/email-address.js'\nexport * from '~/src/form/form-editor/preview/list.js'\nexport * from '~/src/form/form-editor/preview/list-sortable.js'\nexport * from '~/src/form/form-editor/preview/month-year.js'\nexport * from '~/src/form/form-editor/preview/number-only.js'\nexport * from '~/src/form/form-editor/preview/phone-number.js'\nexport * from '~/src/form/form-editor/preview/question.js'\nexport * from '~/src/form/form-editor/preview/radio.js'\nexport * from '~/src/form/form-editor/preview/radio-sortable.js'\nexport * from '~/src/form/form-editor/preview/short-answer.js'\nexport * from '~/src/form/form-editor/preview/long-answer.js'\nexport * from '~/src/form/form-editor/preview/uk-address.js'\nexport * from '~/src/form/form-editor/preview/yes-no.js'\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/form/form-editor/preview/index.js"],"sourcesContent":["export * from '~/src/form/form-editor/preview/autocomplete.js'\nexport * from '~/src/form/form-editor/preview/checkbox-sortable.js'\nexport * from '~/src/form/form-editor/preview/date-input.js'\nexport * from '~/src/form/form-editor/preview/email-address.js'\nexport * from '~/src/form/form-editor/preview/list.js'\nexport * from '~/src/form/form-editor/preview/list-sortable.js'\nexport * from '~/src/form/form-editor/preview/month-year.js'\nexport * from '~/src/form/form-editor/preview/number-only.js'\nexport * from '~/src/form/form-editor/preview/phone-number.js'\nexport * from '~/src/form/form-editor/preview/question.js'\nexport * from '~/src/form/form-editor/preview/radio.js'\nexport * from '~/src/form/form-editor/preview/radio-sortable.js'\nexport * from '~/src/form/form-editor/preview/short-answer.js'\nexport * from '~/src/form/form-editor/preview/supporting-evidence.js'\nexport * from '~/src/form/form-editor/preview/long-answer.js'\nexport * from '~/src/form/form-editor/preview/uk-address.js'\nexport * from '~/src/form/form-editor/preview/yes-no.js'\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Question } from "./question.js";
|
2
|
+
export class SupportingEvidenceQuestion extends Question {
|
3
|
+
/**
|
4
|
+
* @type {string}
|
5
|
+
* @protected
|
6
|
+
*/
|
7
|
+
_questionTemplate = Question.PATH + 'fileuploadfield.njk';
|
8
|
+
/**
|
9
|
+
* @type {string}
|
10
|
+
* @protected
|
11
|
+
*/
|
12
|
+
_fieldName = 'supportingEvidence';
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=supporting-evidence.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"supporting-evidence.js","names":["Question","SupportingEvidenceQuestion","_questionTemplate","PATH","_fieldName"],"sources":["../../../../../src/form/form-editor/preview/supporting-evidence.js"],"sourcesContent":["import { Question } from '~/src/form/form-editor/preview/question.js'\n\nexport class SupportingEvidenceQuestion extends Question {\n /**\n * @type {string}\n * @protected\n */\n _questionTemplate = Question.PATH + 'fileuploadfield.njk'\n /**\n * @type {string}\n * @protected\n */\n _fieldName = 'supportingEvidence'\n}\n"],"mappings":"AAAA,SAASA,QAAQ;AAEjB,OAAO,MAAMC,0BAA0B,SAASD,QAAQ,CAAC;EACvD;AACF;AACA;AACA;EACEE,iBAAiB,GAAGF,QAAQ,CAACG,IAAI,GAAG,qBAAqB;EACzD;AACF;AACA;AACA;EACEC,UAAU,GAAG,oBAAoB;AACnC","ignoreList":[]}
|
@@ -11,6 +11,7 @@ export * from "../../../form/form-editor/preview/question.js";
|
|
11
11
|
export * from "../../../form/form-editor/preview/radio.js";
|
12
12
|
export * from "../../../form/form-editor/preview/radio-sortable.js";
|
13
13
|
export * from "../../../form/form-editor/preview/short-answer.js";
|
14
|
+
export * from "../../../form/form-editor/preview/supporting-evidence.js";
|
14
15
|
export * from "../../../form/form-editor/preview/long-answer.js";
|
15
16
|
export * from "../../../form/form-editor/preview/uk-address.js";
|
16
17
|
export * from "../../../form/form-editor/preview/yes-no.js";
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"supporting-evidence.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/supporting-evidence.js"],"names":[],"mappings":"AAEA;CAWC;yBAbwB,4CAA4C"}
|
package/package.json
CHANGED
@@ -11,6 +11,7 @@ export * from '~/src/form/form-editor/preview/question.js'
|
|
11
11
|
export * from '~/src/form/form-editor/preview/radio.js'
|
12
12
|
export * from '~/src/form/form-editor/preview/radio-sortable.js'
|
13
13
|
export * from '~/src/form/form-editor/preview/short-answer.js'
|
14
|
+
export * from '~/src/form/form-editor/preview/supporting-evidence.js'
|
14
15
|
export * from '~/src/form/form-editor/preview/long-answer.js'
|
15
16
|
export * from '~/src/form/form-editor/preview/uk-address.js'
|
16
17
|
export * from '~/src/form/form-editor/preview/yes-no.js'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Question } from '~/src/form/form-editor/preview/question.js'
|
2
|
+
|
3
|
+
export class SupportingEvidenceQuestion extends Question {
|
4
|
+
/**
|
5
|
+
* @type {string}
|
6
|
+
* @protected
|
7
|
+
*/
|
8
|
+
_questionTemplate = Question.PATH + 'fileuploadfield.njk'
|
9
|
+
/**
|
10
|
+
* @type {string}
|
11
|
+
* @protected
|
12
|
+
*/
|
13
|
+
_fieldName = 'supportingEvidence'
|
14
|
+
}
|