@defra/forms-model 3.0.481 → 3.0.482

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/module/form/form-definition/index.js +0 -1
  2. package/dist/module/form/form-definition/index.js.map +1 -1
  3. package/dist/module/form/form-editor/__stubs__/preview.js +83 -4
  4. package/dist/module/form/form-editor/__stubs__/preview.js.map +1 -1
  5. package/dist/module/form/form-editor/index.js +2 -2
  6. package/dist/module/form/form-editor/index.js.map +1 -1
  7. package/dist/module/form/form-editor/macros/types.js +2 -0
  8. package/dist/module/form/form-editor/macros/types.js.map +1 -0
  9. package/dist/module/form/form-editor/preview/autocomplete.js +20 -4
  10. package/dist/module/form/form-editor/preview/autocomplete.js.map +1 -1
  11. package/dist/module/form/form-editor/preview/checkbox-sortable.js +7 -2
  12. package/dist/module/form/form-editor/preview/checkbox-sortable.js.map +1 -1
  13. package/dist/module/form/form-editor/preview/checkbox.js +17 -0
  14. package/dist/module/form/form-editor/preview/checkbox.js.map +1 -0
  15. package/dist/module/form/form-editor/preview/component-elements.js +61 -0
  16. package/dist/module/form/form-editor/preview/component-elements.js.map +1 -0
  17. package/dist/module/form/form-editor/preview/constants.js +2 -0
  18. package/dist/module/form/form-editor/preview/constants.js.map +1 -0
  19. package/dist/module/form/form-editor/preview/content.js +94 -0
  20. package/dist/module/form/form-editor/preview/content.js.map +1 -0
  21. package/dist/module/form/form-editor/preview/controller/page-controller.js +260 -0
  22. package/dist/module/form/form-editor/preview/controller/page-controller.js.map +1 -0
  23. package/dist/module/form/form-editor/preview/date-input.js +7 -2
  24. package/dist/module/form/form-editor/preview/date-input.js.map +1 -1
  25. package/dist/module/form/form-editor/preview/email-address.js +7 -1
  26. package/dist/module/form/form-editor/preview/email-address.js.map +1 -1
  27. package/dist/module/form/form-editor/preview/fieldset-question.js +5 -0
  28. package/dist/module/form/form-editor/preview/fieldset-question.js.map +1 -1
  29. package/dist/module/form/form-editor/preview/helpers.js +81 -0
  30. package/dist/module/form/form-editor/preview/helpers.js.map +1 -0
  31. package/dist/module/form/form-editor/preview/index.js +6 -0
  32. package/dist/module/form/form-editor/preview/index.js.map +1 -1
  33. package/dist/module/form/form-editor/preview/list.js +59 -3
  34. package/dist/module/form/form-editor/preview/list.js.map +1 -1
  35. package/dist/module/form/form-editor/preview/long-answer.js +7 -1
  36. package/dist/module/form/form-editor/preview/long-answer.js.map +1 -1
  37. package/dist/module/form/form-editor/preview/markdown.js +53 -0
  38. package/dist/module/form/form-editor/preview/markdown.js.map +1 -0
  39. package/dist/module/form/form-editor/preview/month-year.js +7 -2
  40. package/dist/module/form/form-editor/preview/month-year.js.map +1 -1
  41. package/dist/module/form/form-editor/preview/number-only.js +5 -0
  42. package/dist/module/form/form-editor/preview/number-only.js.map +1 -1
  43. package/dist/module/form/form-editor/preview/phone-number.js +7 -1
  44. package/dist/module/form/form-editor/preview/phone-number.js.map +1 -1
  45. package/dist/module/form/form-editor/preview/preview.js +212 -0
  46. package/dist/module/form/form-editor/preview/preview.js.map +1 -0
  47. package/dist/module/form/form-editor/preview/question.js +48 -138
  48. package/dist/module/form/form-editor/preview/question.js.map +1 -1
  49. package/dist/module/form/form-editor/preview/radio-sortable.js +7 -2
  50. package/dist/module/form/form-editor/preview/radio-sortable.js.map +1 -1
  51. package/dist/module/form/form-editor/preview/radio.js +7 -2
  52. package/dist/module/form/form-editor/preview/radio.js.map +1 -1
  53. package/dist/module/form/form-editor/preview/select-sortable.js +38 -0
  54. package/dist/module/form/form-editor/preview/select-sortable.js.map +1 -0
  55. package/dist/module/form/form-editor/preview/select.js +11 -0
  56. package/dist/module/form/form-editor/preview/select.js.map +1 -0
  57. package/dist/module/form/form-editor/preview/short-answer.js +7 -1
  58. package/dist/module/form/form-editor/preview/short-answer.js.map +1 -1
  59. package/dist/module/form/form-editor/preview/supporting-evidence.js +7 -1
  60. package/dist/module/form/form-editor/preview/supporting-evidence.js.map +1 -1
  61. package/dist/module/form/form-editor/preview/types.js.map +1 -1
  62. package/dist/module/form/form-editor/preview/uk-address.js +7 -2
  63. package/dist/module/form/form-editor/preview/uk-address.js.map +1 -1
  64. package/dist/module/form/form-editor/preview/yes-no.js +7 -2
  65. package/dist/module/form/form-editor/preview/yes-no.js.map +1 -1
  66. package/dist/module/form/form-editor/types.js.map +1 -1
  67. package/dist/module/form/form-metadata/index.js +1 -5
  68. package/dist/module/form/form-metadata/index.js.map +1 -1
  69. package/dist/module/form/utils/index.js +1 -0
  70. package/dist/module/form/utils/index.js.map +1 -1
  71. package/dist/module/form/utils/list.js +15 -0
  72. package/dist/module/form/utils/list.js.map +1 -0
  73. package/dist/module/index.js.map +1 -1
  74. package/dist/module/stubs.js +1 -0
  75. package/dist/module/stubs.js.map +1 -1
  76. package/dist/types/form/form-definition/index.d.ts.map +1 -1
  77. package/dist/types/form/form-editor/__stubs__/preview.d.ts +58 -11
  78. package/dist/types/form/form-editor/__stubs__/preview.d.ts.map +1 -1
  79. package/dist/types/form/form-editor/index.d.ts.map +1 -1
  80. package/dist/types/form/form-editor/macros/types.d.ts +62 -0
  81. package/dist/types/form/form-editor/macros/types.d.ts.map +1 -0
  82. package/dist/types/form/form-editor/preview/autocomplete.d.ts +3 -1
  83. package/dist/types/form/form-editor/preview/autocomplete.d.ts.map +1 -1
  84. package/dist/types/form/form-editor/preview/checkbox-sortable.d.ts.map +1 -1
  85. package/dist/types/form/form-editor/preview/checkbox.d.ts +4 -0
  86. package/dist/types/form/form-editor/preview/checkbox.d.ts.map +1 -0
  87. package/dist/types/form/form-editor/preview/component-elements.d.ts +35 -0
  88. package/dist/types/form/form-editor/preview/component-elements.d.ts.map +1 -0
  89. package/dist/types/form/form-editor/preview/constants.d.ts +2 -0
  90. package/dist/types/form/form-editor/preview/constants.d.ts.map +1 -0
  91. package/dist/types/form/form-editor/preview/content.d.ts +43 -0
  92. package/dist/types/form/form-editor/preview/content.d.ts.map +1 -0
  93. package/dist/types/form/form-editor/preview/controller/page-controller.d.ts +132 -0
  94. package/dist/types/form/form-editor/preview/controller/page-controller.d.ts.map +1 -0
  95. package/dist/types/form/form-editor/preview/date-input.d.ts.map +1 -1
  96. package/dist/types/form/form-editor/preview/email-address.d.ts.map +1 -1
  97. package/dist/types/form/form-editor/preview/fieldset-question.d.ts +2 -0
  98. package/dist/types/form/form-editor/preview/fieldset-question.d.ts.map +1 -1
  99. package/dist/types/form/form-editor/preview/helpers.d.ts +11 -0
  100. package/dist/types/form/form-editor/preview/helpers.d.ts.map +1 -0
  101. package/dist/types/form/form-editor/preview/index.d.ts +6 -0
  102. package/dist/types/form/form-editor/preview/list-sortable.d.ts +1 -1
  103. package/dist/types/form/form-editor/preview/list.d.ts +25 -0
  104. package/dist/types/form/form-editor/preview/list.d.ts.map +1 -1
  105. package/dist/types/form/form-editor/preview/long-answer.d.ts.map +1 -1
  106. package/dist/types/form/form-editor/preview/markdown.d.ts +9 -0
  107. package/dist/types/form/form-editor/preview/markdown.d.ts.map +1 -0
  108. package/dist/types/form/form-editor/preview/month-year.d.ts.map +1 -1
  109. package/dist/types/form/form-editor/preview/number-only.d.ts.map +1 -1
  110. package/dist/types/form/form-editor/preview/phone-number.d.ts.map +1 -1
  111. package/dist/types/form/form-editor/preview/preview.d.ts +126 -0
  112. package/dist/types/form/form-editor/preview/preview.d.ts.map +1 -0
  113. package/dist/types/form/form-editor/preview/question.d.ts +19 -93
  114. package/dist/types/form/form-editor/preview/question.d.ts.map +1 -1
  115. package/dist/types/form/form-editor/preview/radio-sortable.d.ts.map +1 -1
  116. package/dist/types/form/form-editor/preview/radio.d.ts.map +1 -1
  117. package/dist/types/form/form-editor/preview/select-sortable.d.ts +18 -0
  118. package/dist/types/form/form-editor/preview/select-sortable.d.ts.map +1 -0
  119. package/dist/types/form/form-editor/preview/select.d.ts +4 -0
  120. package/dist/types/form/form-editor/preview/select.d.ts.map +1 -0
  121. package/dist/types/form/form-editor/preview/short-answer.d.ts.map +1 -1
  122. package/dist/types/form/form-editor/preview/supporting-evidence.d.ts.map +1 -1
  123. package/dist/types/form/form-editor/preview/types.d.ts +13 -17
  124. package/dist/types/form/form-editor/preview/types.d.ts.map +1 -1
  125. package/dist/types/form/form-editor/preview/uk-address.d.ts.map +1 -1
  126. package/dist/types/form/form-editor/preview/yes-no.d.ts.map +1 -1
  127. package/dist/types/form/form-editor/types.d.ts +6 -4
  128. package/dist/types/form/form-editor/types.d.ts.map +1 -1
  129. package/dist/types/form/form-metadata/index.d.ts.map +1 -1
  130. package/dist/types/form/utils/index.d.ts +1 -0
  131. package/dist/types/form/utils/index.d.ts.map +1 -1
  132. package/dist/types/form/utils/list.d.ts +10 -0
  133. package/dist/types/form/utils/list.d.ts.map +1 -0
  134. package/dist/types/index.d.ts +1 -0
  135. package/dist/types/index.d.ts.map +1 -1
  136. package/dist/types/stubs.d.ts +1 -0
  137. package/dist/types/stubs.d.ts.map +1 -1
  138. package/package.json +1 -1
  139. package/schemas/form-definition-schema.json +0 -12
  140. package/schemas/form-metadata-input-schema.json +1 -2
  141. package/schemas/form-metadata-schema.json +1 -2
  142. package/schemas/question-type-full-schema.json +2 -1
  143. package/src/form/form-definition/index.ts +0 -5
  144. package/src/form/form-editor/__stubs__/preview.js +84 -4
  145. package/src/form/form-editor/index.ts +4 -2
  146. package/src/form/form-editor/macros/types.ts +65 -0
  147. package/src/form/form-editor/preview/autocomplete.js +21 -4
  148. package/src/form/form-editor/preview/checkbox-sortable.js +7 -2
  149. package/src/form/form-editor/preview/checkbox.js +17 -0
  150. package/src/form/form-editor/preview/component-elements.js +61 -0
  151. package/src/form/form-editor/preview/constants.js +1 -0
  152. package/src/form/form-editor/preview/content.js +93 -0
  153. package/src/form/form-editor/preview/controller/page-controller.js +284 -0
  154. package/src/form/form-editor/preview/date-input.js +8 -2
  155. package/src/form/form-editor/preview/email-address.js +7 -1
  156. package/src/form/form-editor/preview/fieldset-question.js +6 -0
  157. package/src/form/form-editor/preview/helpers.js +95 -0
  158. package/src/form/form-editor/preview/index.js +6 -0
  159. package/src/form/form-editor/preview/list.js +62 -3
  160. package/src/form/form-editor/preview/long-answer.js +7 -1
  161. package/src/form/form-editor/preview/markdown.js +50 -0
  162. package/src/form/form-editor/preview/month-year.js +7 -2
  163. package/src/form/form-editor/preview/number-only.js +5 -0
  164. package/src/form/form-editor/preview/phone-number.js +7 -1
  165. package/src/form/form-editor/preview/preview.js +211 -0
  166. package/src/form/form-editor/preview/question.js +47 -142
  167. package/src/form/form-editor/preview/radio-sortable.js +7 -2
  168. package/src/form/form-editor/preview/radio.js +7 -2
  169. package/src/form/form-editor/preview/select-sortable.js +43 -0
  170. package/src/form/form-editor/preview/select.js +11 -0
  171. package/src/form/form-editor/preview/short-answer.js +7 -1
  172. package/src/form/form-editor/preview/supporting-evidence.js +7 -1
  173. package/src/form/form-editor/preview/types.ts +18 -18
  174. package/src/form/form-editor/preview/uk-address.js +7 -2
  175. package/src/form/form-editor/preview/yes-no.js +7 -2
  176. package/src/form/form-editor/types.ts +6 -4
  177. package/src/form/form-metadata/index.ts +2 -5
  178. package/src/form/utils/index.ts +1 -0
  179. package/src/form/utils/list.ts +25 -0
  180. package/src/index.ts +1 -0
  181. package/src/stubs.ts +1 -0
@@ -1,3 +1,9 @@
1
+ /**
2
+ * @param {Partial<BaseSettings>} partialBaseElements
3
+ * @param {jest.Mock<void, [string, QuestionBaseModel]>} renderMock
4
+ * @returns {Question}
5
+ */
6
+ export function buildPreviewShortAnswer(partialBaseElements: Partial<BaseSettings>, renderMock: jest.Mock<void, [string, QuestionBaseModel]>): Question;
1
7
  /**
2
8
  * @implements {QuestionRenderer}
3
9
  */
@@ -22,6 +28,30 @@ export class QuestionRendererStub implements QuestionRenderer {
22
28
  */
23
29
  render(questionTemplate: string, questionBaseModel: QuestionBaseModel): void;
24
30
  }
31
+ /**
32
+ * @implements {PageRenderer}
33
+ */
34
+ export class PageRendererStub implements PageRenderer {
35
+ /**
36
+ * @returns {string}
37
+ * @param {string} _questionTemplate
38
+ * @param {RenderContext} _renderContext
39
+ */
40
+ static buildHTML(_questionTemplate: string, _renderContext: RenderContext): string;
41
+ /**
42
+ * @param {jest.Mock<void, [string, PagePreviewPanelMacro]>} renderMock
43
+ */
44
+ constructor(renderMock: jest.Mock<void, [string, PagePreviewPanelMacro]>);
45
+ /**
46
+ * @type {jest.Mock<void, [string, PagePreviewPanelMacro]>}
47
+ */
48
+ renderMock: jest.Mock<void, [string, PagePreviewPanelMacro]>;
49
+ /**
50
+ * @param {string} pageTemplate
51
+ * @param {PagePreviewPanelMacro} pagePreviewPanelMacro
52
+ */
53
+ render(pageTemplate: string, pagePreviewPanelMacro: PagePreviewPanelMacro): void;
54
+ }
25
55
  /**
26
56
  * @implements {ListElements}
27
57
  */
@@ -29,7 +59,7 @@ export class QuestionPreviewElements implements ListElements {
29
59
  /**
30
60
  * @param {BaseSettings} baseSettings
31
61
  */
32
- constructor({ question, hintText, optional, shortDesc, items }: BaseSettings);
62
+ constructor({ question, hintText, optional, shortDesc, items, content }: BaseSettings);
33
63
  /**
34
64
  * @protected
35
65
  */
@@ -43,6 +73,11 @@ export class QuestionPreviewElements implements ListElements {
43
73
  * @protected
44
74
  */
45
75
  protected _shortDesc: string;
76
+ /**
77
+ * @type {string}
78
+ * @protected
79
+ */
80
+ protected _content: string;
46
81
  /**
47
82
  *
48
83
  * @type {ListElement[]}
@@ -50,13 +85,10 @@ export class QuestionPreviewElements implements ListElements {
50
85
  */
51
86
  private _items;
52
87
  afterInputsHTML: string;
53
- get values(): {
54
- question: string;
55
- hintText: string;
56
- optional: boolean;
57
- shortDesc: string;
58
- items: ListElement[];
59
- };
88
+ /**
89
+ * @returns {BaseSettings}
90
+ */
91
+ get values(): BaseSettings;
60
92
  /**
61
93
  * @param {string} _value
62
94
  */
@@ -78,6 +110,18 @@ export class AutocompletePreviewElements extends QuestionPreviewElements impleme
78
110
  });
79
111
  autocompleteOptions: string;
80
112
  }
113
+ /**
114
+ * @implements {PageOverviewElements}
115
+ */
116
+ export class PagePreviewElements implements PageOverviewElements {
117
+ /**
118
+ * @param {string} heading
119
+ * @param {string} guidance
120
+ */
121
+ constructor(heading: string, guidance?: string);
122
+ guidance: string;
123
+ heading: string;
124
+ }
81
125
  export const baseElements: BaseSettings;
82
126
  export namespace listElementsStub {
83
127
  export { list1Id };
@@ -86,13 +130,16 @@ export namespace listElementsStub {
86
130
  export { list4Id };
87
131
  export { listElementsBase as baseElements };
88
132
  }
89
- import type { QuestionRenderer } from '../../../form/form-editor/preview/types.js';
133
+ import type { BaseSettings } from '../../../form/form-editor/preview/types.js';
90
134
  import type { QuestionBaseModel } from '../../../form/form-editor/preview/types.js';
135
+ import { Question } from '../../../form/form-editor/preview/question.js';
136
+ import type { QuestionRenderer } from '../../../form/form-editor/preview/types.js';
91
137
  import type { RenderContext } from '../../../form/form-editor/preview/types.js';
138
+ import type { PageRenderer } from '../../../form/form-editor/preview/types.js';
139
+ import type { PagePreviewPanelMacro } from '../../../form/form-editor/macros/types.js';
92
140
  import type { ListElements } from '../../../form/form-editor/preview/types.js';
93
- import type { ListElement } from '../../../form/form-editor/types.js';
94
- import type { BaseSettings } from '../../../form/form-editor/preview/types.js';
95
141
  import type { AutocompleteElements } from '../../../form/form-editor/preview/types.js';
142
+ import type { PageOverviewElements } from '../../../form/form-editor/preview/types.js';
96
143
  declare const list1Id: "414d82a3-4cab-416a-bd54-6b86fbd51120";
97
144
  declare const list2Id: "801385a4-81e6-4171-96c3-6c6727d97f22";
98
145
  declare const list3Id: "e6e3f621-b875-4ca3-a054-cca9149149dd";
@@ -1 +1 @@
1
- {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/__stubs__/preview.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IAqBE;;;;OAIG;IACH,oCAHW,MAAM,kBACN,aAAa,GAFX,MAAM,CAMlB;IAtBD;;OAEG;IACH,wBAFW,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,EAItD;IAVD;;OAEG;IACH,YAFU,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAE5C;IASV;;;OAGG;IACH,yBAHW,MAAM,qBACN,iBAAiB,QAI3B;CAUF;AAED;;GAEG;AACH;IAuBE;;OAEG;IACH,gEAFW,YAAY,EAQtB;IA/BD;;OAEG;IACH,4BAAc;IACd,iBAAiB;IACjB,4BAAc;IACd,iBAAiB;IACjB,6BAAiB;IACjB;;;OAGG;IACH,sBAHU,MAAM,CAGD;IACf;;;;OAIG;IACH,eAAW;IAEX,wBAA2E;IAa3E;;;;;;MAQC;IAED;;OAEG;IACH,uBAFW,MAAM,QAIhB;IAED;;OAEG;IACH,sBAFW,WAAW,QAIrB;CACF;AAED;;GAEG;AACH;IACE;;OAEG;IACH,kDAFW,YAAY,GAAG;QAAC,mBAAmB,EAAE,MAAM,CAAA;KAAC,EAKtD;IADC,4BAA8C;CAEjD;AAED,2BAAuC,YAAY,CAMjD;;;;;;;;sCA+C0I,yCAAyC;uCAAzC,yCAAyC;mCAAzC,yCAAyC;kCAAzC,yCAAyC;iCADpJ,iCAAiC;kCAC0E,yCAAyC;0CAAzC,yCAAyC;AA7CrL,uBAAgB,sCAAsC,CAAA;AACtD,uBAAgB,sCAAsC,CAAA;AACtD,uBAAgB,sCAAsC,CAAA;AACtD,uBAAgB,sCAAsC,CAAA;AAEtD,gCAAoC,YAAY,CA4B9C"}
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/__stubs__/preview.js"],"names":[],"mappings":"AAgOA;;;;GAIG;AACH,6DAJW,OAAO,CAAC,YAAY,CAAC,cACrB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,GAC1C,QAAQ,CAUpB;AA3OD;;GAEG;AACH;IAqBE;;;;OAIG;IACH,oCAHW,MAAM,kBACN,aAAa,GAFX,MAAM,CAMlB;IAtBD;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;;CAuDnC,CAAA;AAED,eAAO,MAAM,uBAAuB;;;CAGnC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,uCAGmC,CAAA;AAEzE,eAAO,MAAM,sCAAsC;;CAElD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,wCAAwC,uDAIO,CAAA;AAE5D,eAAO,MAAM,2BAA2B;;;;;CAKvC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,6BAA6B,2CAMrC,CAAA;AAEL,eAAO,MAAM,+BAA+B;;;;CAI3C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iCAAiC,+CAI8B,CAAA;AAE5E,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,UAAU,GACrB,UAAU,IAAI,gBAAgB,CAOhC;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,UAAU,GACrB,UAAU,IAAI,0BAA0B,CAM1C;AAGD,eAAO,MAAM,6BAA6B,UAA+B,CAAA"}
@@ -0,0 +1,62 @@
1
+ import { type ComponentType } from '../../../components/enums.js';
2
+ import { type DateItem, type GovukField, type ListItemReadonly } from '../../../form/form-editor/types.js';
3
+ import { type DefaultComponent, type GovukFieldset } from '../../../index.js';
4
+ export interface AppPreviewErrorPanelMacroErrorTemplate {
5
+ advancedSettingsErrors: [];
6
+ baseErrors: {
7
+ template: unknown;
8
+ type: string;
9
+ }[];
10
+ }
11
+ export interface AppPreviewErrorPanelMacro {
12
+ errorTemplates: AppPreviewErrorPanelMacroErrorTemplate;
13
+ fieldDetails: {
14
+ extraFields: GovukField[];
15
+ basePageFields: GovukField[];
16
+ };
17
+ questionType: ComponentType;
18
+ }
19
+ export interface AppPreviewPanelTabsMacro {
20
+ questionType: ComponentType;
21
+ previewPageUrl: string;
22
+ previewErrorsUrl: string;
23
+ errorTemplates: AppPreviewErrorPanelMacroErrorTemplate;
24
+ extraFields: GovukField[];
25
+ basePageFields: GovukField[];
26
+ }
27
+ export interface QuestionBaseModel {
28
+ id?: string;
29
+ name?: string;
30
+ content?: string;
31
+ label?: DefaultComponent;
32
+ hint?: DefaultComponent;
33
+ fieldset?: GovukFieldset;
34
+ readonly items?: ListItemReadonly[] | DateItem[];
35
+ text?: string;
36
+ formGroup?: {
37
+ afterInputs: {
38
+ html: string;
39
+ };
40
+ };
41
+ type?: 'text' | 'number' | 'boolean';
42
+ classes?: string;
43
+ }
44
+ export interface AppPreviewPanelMacro extends AppPreviewPanelTabsMacro {
45
+ model: QuestionBaseModel;
46
+ }
47
+ export interface PagePreviewComponent {
48
+ model: QuestionBaseModel;
49
+ questionType: ComponentType;
50
+ }
51
+ export interface PagePreviewPanelMacro {
52
+ readonly pageTitle: {
53
+ text: string;
54
+ classes: string;
55
+ };
56
+ readonly guidance: {
57
+ text: string;
58
+ classes: string;
59
+ };
60
+ readonly components: PagePreviewComponent[];
61
+ }
62
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/macros/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE1E,MAAM,WAAW,sCAAsC;IACrD,sBAAsB,EAAE,EAAE,CAAA;IAC1B,UAAU,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAClD;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,sCAAsC,CAAA;IACtD,YAAY,EAAE;QACZ,WAAW,EAAE,UAAU,EAAE,CAAA;QACzB,cAAc,EAAE,UAAU,EAAE,CAAA;KAC7B,CAAA;IACD,YAAY,EAAE,aAAa,CA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AAE,oBAAoB,EAAE,CAAA;CAC5C"}
@@ -1,4 +1,6 @@
1
- export class AutocompleteQuestion extends Question {
1
+ export class AutocompleteListQuestion extends Question {
2
+ }
3
+ export class AutocompleteQuestion extends AutocompleteListQuestion {
2
4
  /**
3
5
  * @param {AutocompleteElements} autocompleteElements
4
6
  * @param {QuestionRenderer} questionRenderer
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/autocomplete.js"],"names":[],"mappings":"AAGA;IAaE;;;OAGG;IACH,kCAHW,oBAAoB,oBACpB,gBAAgB,EAK1B;IAbD;;;OAGG;IACH,0BAAsB;IAWtB,sCAEC;IAED;;OAEG;IACH,8BAFW,MAAM,QAkBhB;IAED;;;;;;;;;MASC;CACF;yBA3DwB,4CAA4C;iCA+DrC,iCAAiC;0CACN,yCAAyC;sCAAzC,yCAAyC"}
1
+ {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/autocomplete.js"],"names":[],"mappings":"AAKA;CAoBC;AAED;IAME;;;OAGG;IACH,kCAHW,oBAAoB,oBACpB,gBAAgB,EAK1B;IAZD;;;OAGG;IACH,0BAAsB;IAUtB,sCAEC;IAED;;OAEG;IACH,8BAFW,MAAM,QAkBhB;IAED;;;;;;;;;MASC;CACF;yBA1EwB,4CAA4C;iCA8ErC,iCAAiC;0CACa,yCAAyC;sCAAzC,yCAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-sortable.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/checkbox-sortable.js"],"names":[],"mappings":"AAGA;CAQC;qCAXoC,iDAAiD"}
1
+ {"version":3,"file":"checkbox-sortable.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/checkbox-sortable.js"],"names":[],"mappings":"AAIA;CAYC;qCAfoC,iDAAiD"}
@@ -0,0 +1,4 @@
1
+ export class CheckboxQuestion extends ListQuestion {
2
+ }
3
+ import { ListQuestion } from '../../../form/form-editor/preview/list.js';
4
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/checkbox.js"],"names":[],"mappings":"AAIA;CAYC;6BAf4B,wCAAwC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @implements {QuestionElements}
3
+ */
4
+ export class ComponentElements implements QuestionElements {
5
+ /**
6
+ * @param {ComponentDef} component
7
+ */
8
+ constructor(component: ComponentDef);
9
+ /**
10
+ * @type {ComponentDef}
11
+ * @protected
12
+ */
13
+ protected _component: ComponentDef;
14
+ /**
15
+ * @protected
16
+ * @returns {BaseSettings}
17
+ */
18
+ protected _getValues(): BaseSettings;
19
+ /**
20
+ * @returns {BaseSettings}
21
+ */
22
+ get values(): BaseSettings;
23
+ /**
24
+ * @param {HTMLElement} _element
25
+ */
26
+ setPreviewDOM(_element: HTMLElement): void;
27
+ /**
28
+ * @param {string} _value
29
+ */
30
+ setPreviewHTML(_value: string): void;
31
+ }
32
+ import type { QuestionElements } from '../../../form/form-editor/preview/types.js';
33
+ import type { ComponentDef } from '../../../components/types.js';
34
+ import type { BaseSettings } from '../../../form/form-editor/preview/types.js';
35
+ //# sourceMappingURL=component-elements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-elements.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/component-elements.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IAME;;OAEG;IACH,uBAFW,YAAY,EAItB;IAVD;;;OAGG;IACH,sBAHU,YAAY,CAGZ;IAQV;;;OAGG;IACH,wBAFa,YAAY,CAaxB;IAED;;OAEG;IACH,cAFa,YAAY,CAKxB;IAED;;OAEG;IACH,wBAFW,WAAW,QAIrB;IAED;;OAEG;IACH,uBAFW,MAAM,QAIhB;CACF;sCAGqI,yCAAyC;kCACrG,2BAA2B;kCADiC,yCAAyC"}
@@ -0,0 +1,2 @@
1
+ export const HIGHLIGHT_CLASS: "highlight";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/constants.js"],"names":[],"mappings":"AAAA,8BAA+B,WAAW,CAAA"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @implements {QuestionElements}
3
+ */
4
+ export class ContentElements extends ComponentElements implements QuestionElements {
5
+ /**
6
+ * @param {Exclude<ContentComponentsDef, ListComponent>} component
7
+ */
8
+ constructor(component: Exclude<ContentComponentsDef, ListComponent>);
9
+ /**
10
+ * @type {Exclude<ContentComponentsDef, ListComponent>}
11
+ * @protected
12
+ */
13
+ protected _component: Exclude<ContentComponentsDef, ListComponent>;
14
+ }
15
+ /**
16
+ * @abstract
17
+ * @class Content
18
+ * @classdesc
19
+ * Base of Content preview classes
20
+ */
21
+ export class Content extends PreviewComponent {
22
+ /**
23
+ * @type {string}
24
+ * @protected
25
+ */
26
+ protected _content: string;
27
+ /**
28
+ * @param {string} value
29
+ * @protected
30
+ */
31
+ protected _setContent(value: string): void;
32
+ set content(value: string);
33
+ /**
34
+ * @returns {string}
35
+ */
36
+ get content(): string;
37
+ }
38
+ import type { QuestionElements } from '../../../form/form-editor/preview/types.js';
39
+ import { ComponentElements } from '../../../form/form-editor/preview/component-elements.js';
40
+ import type { ContentComponentsDef } from '../../../components/types.js';
41
+ import type { ListComponent } from '../../../components/types.js';
42
+ import { PreviewComponent } from '../../../form/form-editor/preview/preview.js';
43
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/content.js"],"names":[],"mappings":"AAGA;;GAEG;AACH;IAME;;OAEG;IACH,uBAFW,OAAO,CAAC,oBAAoB,EAAE,aAAa,CAAC,EAKtD;IAXD;;;OAGG;IACH,sBAHU,OAAO,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAG5C;CAmBX;AAED;;;;;GAKG;AACH;IACE;;;OAGG;IACH,oBAHU,MAAM,CAGR;IAwBR;;;OAGG;IACH,6BAHW,MAAM,QAKhB;IASD,mBANa,MAAM,EASlB;IAVD;;OAEG;IACH,eAFa,MAAM,CAIlB;CAMF;sCAGqI,yCAAyC;kCAzF7I,sDAAsD;0CA0FC,2BAA2B;mCAA3B,2BAA2B;iCAzFnF,2CAA2C"}
@@ -0,0 +1,132 @@
1
+ /**
2
+ * @implements {PageOverviewElements}
3
+ */
4
+ export class PagePreviewElements implements PageOverviewElements {
5
+ /**
6
+ * @param {Page} page
7
+ */
8
+ constructor(page: Page);
9
+ /**
10
+ * @type {Page}
11
+ * @private
12
+ */
13
+ private _page;
14
+ get heading(): string;
15
+ get guidance(): string;
16
+ }
17
+ /**
18
+ * @implements {PagePreviewPanelMacro}
19
+ */
20
+ export class PreviewPageController implements PagePreviewPanelMacro {
21
+ static PATH: string;
22
+ /**
23
+ * Creates a dummy component for when guidance is highlighted
24
+ * but no guidance text exists
25
+ * @returns {Markdown}
26
+ */
27
+ static createGuidanceComponent(): Markdown;
28
+ /**
29
+ * Helper method to return the guidance or a new one
30
+ * @param { Markdown | Question | undefined } guidanceComponent
31
+ * @returns {Markdown}
32
+ * @private
33
+ */
34
+ private static getOrCreateGuidanceComponent;
35
+ /**
36
+ * @param {ComponentDef[]} components
37
+ * @param {PageOverviewElements} elements
38
+ * @param {FormDefinition} definition
39
+ * @param {PageRenderer} renderer
40
+ */
41
+ constructor(components: ComponentDef[], elements: PageOverviewElements, definition: FormDefinition, renderer: PageRenderer);
42
+ /**
43
+ * @type {string}
44
+ * @protected
45
+ */
46
+ protected _pageTemplate: string;
47
+ /**
48
+ * @protected
49
+ * @type {Question[]}
50
+ */
51
+ protected _components: Question[];
52
+ /**
53
+ * @type { undefined | 'title' | 'guidance'}
54
+ * @protected
55
+ */
56
+ protected _highlighted: undefined | "title" | "guidance";
57
+ /**
58
+ * @type {string}
59
+ * @private
60
+ */
61
+ private _guidanceText;
62
+ /**
63
+ * @type {Markdown}
64
+ * @private
65
+ */
66
+ private _emptyGuidance;
67
+ /**
68
+ *
69
+ * @type {Markdown}
70
+ * @protected
71
+ */
72
+ protected _guidanceComponent: Markdown;
73
+ /**
74
+ * @type {boolean}
75
+ * @private
76
+ */
77
+ private _showGuidance;
78
+ /**
79
+ * @returns {Markdown[]}
80
+ * @private
81
+ */
82
+ private get _guidanceComponents();
83
+ /**
84
+ * @returns {PagePreviewComponent[]}
85
+ */
86
+ get components(): PagePreviewComponent[];
87
+ set guidanceText(text: string);
88
+ get guidanceText(): string;
89
+ get guidance(): {
90
+ text: string;
91
+ classes: string;
92
+ };
93
+ /**
94
+ * @private
95
+ * @returns {string}
96
+ */
97
+ private _fallBackTitle;
98
+ /**
99
+ * @returns {{ text: string, classes: string }}
100
+ */
101
+ get pageTitle(): {
102
+ text: string;
103
+ classes: string;
104
+ };
105
+ render(): void;
106
+ /**
107
+ * @param {string} value
108
+ */
109
+ set title(value: string);
110
+ /**
111
+ * @returns {string}
112
+ */
113
+ get title(): string;
114
+ highlightTitle(): void;
115
+ highlightGuidance(): void;
116
+ /**
117
+ * @param {'title'|'guidance'} highlightSection
118
+ */
119
+ setHighLighted(highlightSection: "title" | "guidance"): void;
120
+ clearHighlight(): void;
121
+ #private;
122
+ }
123
+ import type { PageOverviewElements } from '../../../../form/form-editor/preview/types.js';
124
+ import type { Page } from '../../../../form/form-definition/types.js';
125
+ import type { PagePreviewPanelMacro } from '../../../../form/form-editor/macros/types.js';
126
+ import type { Question } from '../../../../form/form-editor/preview/question.js';
127
+ import { Markdown } from '../../../../form/form-editor/preview/markdown.js';
128
+ import type { PagePreviewComponent } from '../../../../form/form-editor/macros/types.js';
129
+ import type { ComponentDef } from '../../../../components/types.js';
130
+ import type { FormDefinition } from '../../../../form/form-definition/types.js';
131
+ import type { PageRenderer } from '../../../../form/form-editor/preview/types.js';
132
+ //# sourceMappingURL=page-controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-controller.d.ts","sourceRoot":"","sources":["../../../../../../src/form/form-editor/preview/controller/page-controller.js"],"names":[],"mappings":"AAmBA;;GAEG;AACH;IAME;;OAEG;IACH,kBAFW,IAAI,EAId;IAVD;;;OAGG;IACH,cAAK;IAQL,sBAEC;IAED,uBAUC;CACF;AAED;;GAEG;AACH;IACE,oBAAoC;IAuKpC;;;;OAIG;IACH,kCAFa,QAAQ,CAepB;IAED;;;;;OAKG;IACH,4CAKC;IAvJD;;;;;OAKG;IACH,wBALW,YAAY,EAAE,YACd,oBAAoB,cACpB,cAAc,YACd,YAAY,EAgBtB;IAlED;;;OAGG;IACH,yBAHU,MAAM,CAGkD;IAClE;;;OAGG;IACH,uBAFU,QAAQ,EAAE,CAEJ;IAUhB;;;OAGG;IACH,wBAHW,SAAS,GAAG,OAAO,GAAG,UAAU,CAGnB;IACxB;;;OAGG;IACH,sBAAkB;IAClB;;;OAGG;IACH,uBAAgE;IAChE;;;;OAIG;IACH,8BAHU,QAAQ,CAGA;IAElB;;;OAGG;IACH,sBAAqB;IAkCrB;;;OAGG;IACH,kCAQC;IAED;;OAEG;IACH,kBAFa,oBAAoB,EAAE,CAYlC;IAED,+BAIC;IAED,2BAEC;IAED;;;MAKC;IAED;;;OAGG;IACH,uBAEC;IAED;;OAEG;IACH,iBAFa;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAO7C;IAED,eAEC;IASD;;OAEG;IACH,iBAFW,MAAM,EAKhB;IAbD;;OAEG;IACH,aAFa,MAAM,CAIlB;IAUD,uBAEC;IAmCD,0BAGC;IAED;;OAEG;IACH,iCAFW,OAAO,GAAC,UAAU,QAK5B;IAED,uBAKC;;CACF;0CAG2F,yCAAyC;0BAE5F,qCAAqC;2CAEd,wCAAwC;8BAH3E,4CAA4C;yBAnRhD,4CAA4C;0CAsRL,wCAAwC;kCADpD,2BAA2B;oCADtC,qCAAqC;kCAFc,yCAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"date-input.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/date-input.js"],"names":[],"mappings":"AAEA;CAOC;iCATgC,qDAAqD"}
1
+ {"version":3,"file":"date-input.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/date-input.js"],"names":[],"mappings":"AAIA;CAWC;iCAdgC,qDAAqD"}
@@ -1 +1 @@
1
- {"version":3,"file":"email-address.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/email-address.js"],"names":[],"mappings":"AAEA;CAGC;yBALwB,4CAA4C"}
1
+ {"version":3,"file":"email-address.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/email-address.js"],"names":[],"mappings":"AAIA;CAOC;yBATwB,4CAA4C"}
@@ -6,6 +6,7 @@ export class FieldsetQuestion extends Question {
6
6
  get renderInput(): {
7
7
  id: string;
8
8
  name: string;
9
+ content?: string | undefined;
9
10
  label?: import("./types.js").DefaultComponent | undefined;
10
11
  hint: import("./types.js").DefaultComponent;
11
12
  fieldset: import("./types.js").GovukFieldset;
@@ -17,6 +18,7 @@ export class FieldsetQuestion extends Question {
17
18
  };
18
19
  } | undefined;
19
20
  type?: "text" | "number" | "boolean" | undefined;
21
+ classes?: string | undefined;
20
22
  };
21
23
  }
22
24
  import { Question } from '../../../form/form-editor/preview/question.js';
@@ -1 +1 @@
1
- {"version":3,"file":"fieldset-question.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/fieldset-question.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IACE;;;;;;;;;;;;;;MAQC;CACF;yBAhBwB,4CAA4C"}
1
+ {"version":3,"file":"fieldset-question.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/fieldset-question.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IAME;;;;;;;;;;;;;;;;MAQC;CACF;yBArBwB,4CAA4C"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @param {QuestionRenderer} questionRenderer
3
+ * @param {FormDefinition} definition
4
+ * @returns {(component: ComponentDef) => Question}
5
+ */
6
+ export function mapComponentToPreviewQuestion(questionRenderer: QuestionRenderer, definition: FormDefinition): (component: ComponentDef) => Question;
7
+ import type { QuestionRenderer } from '../../../form/form-editor/preview/types.js';
8
+ import type { FormDefinition } from '../../../form/form-definition/types.js';
9
+ import type { ComponentDef } from '../../../components/types.js';
10
+ import type { Question } from '../../../form/form-editor/preview/question.js';
11
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/helpers.js"],"names":[],"mappings":"AAsDA;;;;GAIG;AACH,gEAJW,gBAAgB,cAChB,cAAc,GACZ,CAAC,SAAS,EAAE,YAAY,KAAK,QAAQ,CA6BjD;sCAGsD,yCAAyC;oCAGvD,qCAAqC;kCAC1B,2BAA2B;8BAHlD,4CAA4C"}
@@ -1,18 +1,24 @@
1
1
  export * from "../../../form/form-editor/preview/autocomplete.js";
2
+ export * from "../../../form/form-editor/preview/checkbox.js";
2
3
  export * from "../../../form/form-editor/preview/checkbox-sortable.js";
3
4
  export * from "../../../form/form-editor/preview/date-input.js";
4
5
  export * from "../../../form/form-editor/preview/email-address.js";
5
6
  export * from "../../../form/form-editor/preview/list.js";
6
7
  export * from "../../../form/form-editor/preview/list-sortable.js";
8
+ export * from "../../../form/form-editor/preview/markdown.js";
7
9
  export * from "../../../form/form-editor/preview/month-year.js";
8
10
  export * from "../../../form/form-editor/preview/number-only.js";
9
11
  export * from "../../../form/form-editor/preview/phone-number.js";
10
12
  export * from "../../../form/form-editor/preview/question.js";
11
13
  export * from "../../../form/form-editor/preview/radio.js";
12
14
  export * from "../../../form/form-editor/preview/radio-sortable.js";
15
+ export * from "../../../form/form-editor/preview/select-sortable.js";
13
16
  export * from "../../../form/form-editor/preview/short-answer.js";
17
+ export * from "../../../form/form-editor/preview/select.js";
18
+ export * from "../../../form/form-editor/preview/select-sortable.js";
14
19
  export * from "../../../form/form-editor/preview/supporting-evidence.js";
15
20
  export * from "../../../form/form-editor/preview/long-answer.js";
16
21
  export * from "../../../form/form-editor/preview/uk-address.js";
17
22
  export * from "../../../form/form-editor/preview/yes-no.js";
23
+ export * from "../../../form/form-editor/preview/controller/page-controller.js";
18
24
  //# sourceMappingURL=index.d.ts.map
@@ -9,7 +9,7 @@ export class ListSortableQuestion extends ListQuestion {
9
9
  hint: {
10
10
  text: string;
11
11
  } | undefined;
12
- value: string | boolean;
12
+ value: string | number | boolean;
13
13
  }[];
14
14
  }
15
15
  import { ListQuestion } from '../../../form/form-editor/preview/list.js';
@@ -9,6 +9,26 @@ export function listItemMapper(listElement: ListElement): [string, ListElement];
9
9
  * @returns {Map<string, ListElement>}
10
10
  */
11
11
  export function listsElementToMap(listElements: ListElement[] | undefined): Map<string, ListElement>;
12
+ /**
13
+ * @param {Item} item
14
+ * @returns {ListElement}
15
+ */
16
+ export function listItemToListElement(item: Item): ListElement;
17
+ /**
18
+ * @implements {QuestionElements}
19
+ */
20
+ export class ListComponentElements extends QuestionComponentElements implements QuestionElements {
21
+ /**
22
+ * @param {SelectionComponentsDef} component
23
+ * @param {List} list
24
+ */
25
+ constructor(component: SelectionComponentsDef, list: List);
26
+ /**
27
+ * @type {List}
28
+ * @protected
29
+ */
30
+ protected _list: List;
31
+ }
12
32
  export class ListQuestion extends Question {
13
33
  /**
14
34
  * @param {ListElements} listElements
@@ -83,6 +103,11 @@ export class ListQuestion extends Question {
83
103
  updateValue(id: string | undefined, value: string): void;
84
104
  }
85
105
  import type { ListElement } from '../../../form/form-editor/types.js';
106
+ import type { Item } from '../../../form/form-definition/types.js';
107
+ import type { QuestionElements } from '../../../form/form-editor/preview/types.js';
108
+ import { QuestionComponentElements } from '../../../form/form-editor/preview/question.js';
109
+ import type { List } from '../../../form/form-definition/types.js';
110
+ import type { SelectionComponentsDef } from '../../../components/types.js';
86
111
  import { Question } from '../../../form/form-editor/preview/question.js';
87
112
  import type { ListElements } from '../../../form/form-editor/preview/types.js';
88
113
  import type { DefaultComponent } from '../../../form/form-editor/preview/types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/list.js"],"names":[],"mappings":"AAUA;;;GAGG;AACH,4CAHW,WAAW,GACT,CAAC,MAAM,EAAE,WAAW,CAAC,CAIjC;AAED;;;;GAIG;AACH,gDAHY,WAAW,EAAE,GAAE,SAAS,GACvB,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAKpC;AAED;IAiBE;;;OAGG;IACH,0BAHW,YAAY,oBACZ,gBAAgB,EAQ1B;IArBD,2BAA2B;IAC3B,eADW,YAAY,CACV;IACb,qBAAqC;IACrC,uBAA4C;IAE5C;;;OAGG;IACH,iBAHU,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAG7B;IAcL;;;;;;;;;OASG;IACH,mBATa;QACT,SAAS,CAAC,EAAE;YAAC,WAAW,EAAE;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAC,CAAA;SAAC,CAAC;QAC1C,IAAI,EAAE,gBAAgB,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,gBAAgB,EAAE,CAAA;KACzB,CAwBH;IAED;;;OAGG;IACH,kBAFW,WAAW,QAKrB;IAED;;OAEG;IACH,YAFW,MAAM,QAKhB;IAED;;;OAGG;IACH,qCAHW,WAAW,EAAE,GACX,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAKpC;IAED;;OAEG;IACH,YAFa,gBAAgB,EAAE,CAiC9B;IAED;;;;OAIG;IACH,eAHW,MAAM,GAAG,SAAS,QAClB,MAAM,QAYhB;IAED;;;;OAIG;IACH,eAHW,MAAM,GAAG,SAAS,QAClB,MAAM,QAehB;IAED;;;OAGG;IACH,gBAHW,MAAM,GAAG,SAAS,SAClB,MAAM,QAYhB;CACF;iCAGiD,iCAAiC;yBAhN1D,4CAA4C;kCAiNe,yCAAyC;sCAAzC,yCAAyC;mCAAzC,yCAAyC;sCAD3E,iCAAiC;sCACC,yCAAyC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/list.js"],"names":[],"mappings":"AAeA;;;GAGG;AACH,4CAHW,WAAW,GACT,CAAC,MAAM,EAAE,WAAW,CAAC,CAIjC;AAED;;;;GAIG;AACH,gDAHY,WAAW,EAAE,GAAE,SAAS,GACvB,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAKpC;AAED;;;GAGG;AACH,4CAHW,IAAI,GACF,WAAW,CAavB;AAED;;GAEG;AACH;IAOE;;;OAGG;IACH,uBAHW,sBAAsB,QACtB,IAAI,EAKd;IAbD;;;OAGG;IACH,iBAHU,IAAI,CAGT;CAqBN;AAED;IAqBE;;;OAGG;IACH,0BAHW,YAAY,oBACZ,gBAAgB,EAQ1B;IArBD,2BAA2B;IAC3B,eADW,YAAY,CACV;IACb,qBAAqC;IACrC,uBAA4C;IAE5C;;;OAGG;IACH,iBAHU,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAG7B;IAcL;;;;;;;;;OASG;IACH,mBATa;QACT,SAAS,CAAC,EAAE;YAAC,WAAW,EAAE;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAC,CAAA;SAAC,CAAC;QAC1C,IAAI,EAAE,gBAAgB,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,gBAAgB,EAAE,CAAA;KACzB,CAwBH;IAED;;;OAGG;IACH,kBAFW,WAAW,QAKrB;IAED;;OAEG;IACH,YAFW,MAAM,QAKhB;IAED;;;OAGG;IACH,qCAHW,WAAW,EAAE,GACX,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAKpC;IAED;;OAEG;IACH,YAFa,gBAAgB,EAAE,CAiC9B;IAED;;;;OAIG;IACH,eAHW,MAAM,GAAG,SAAS,QAClB,MAAM,QAYhB;IAED;;;;OAIG;IACH,eAHW,MAAM,GAAG,SAAS,QAClB,MAAM,QAehB;IAED;;;OAGG;IACH,gBAHW,MAAM,GAAG,SAAS,SAClB,MAAM,QAYhB;CACF;iCAGiD,iCAAiC;0BAEpD,qCAAqC;sCACgD,yCAAyC;0CAvQtJ,4CAA4C;0BAsQpB,qCAAqC;4CADN,2BAA2B;yBArQlF,4CAA4C;kCAuQiE,yCAAyC;sCAAzC,yCAAyC;mCAAzC,yCAAyC;sCAH3G,iCAAiC;sCAGiC,yCAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"long-answer.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/long-answer.js"],"names":[],"mappings":"AAEA;CAWC;yBAbwB,4CAA4C"}
1
+ {"version":3,"file":"long-answer.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/long-answer.js"],"names":[],"mappings":"AAIA;CAeC;yBAjBwB,4CAA4C"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @class Markdown
3
+ * @classdesc
4
+ * Base of Content preview classes
5
+ */
6
+ export class Markdown extends Content {
7
+ }
8
+ import { Content } from '../../../form/form-editor/preview/content.js';
9
+ //# sourceMappingURL=markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/markdown.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;CAiCC;wBA1CuB,2CAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"month-year.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/month-year.js"],"names":[],"mappings":"AAGA;CAmBC;iCAtBgC,qDAAqD"}
1
+ {"version":3,"file":"month-year.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/month-year.js"],"names":[],"mappings":"AAIA;CAuBC;iCA1BgC,qDAAqD"}
@@ -1 +1 @@
1
- {"version":3,"file":"number-only.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/number-only.js"],"names":[],"mappings":"AAEA;CASC;yBAXwB,4CAA4C"}
1
+ {"version":3,"file":"number-only.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/number-only.js"],"names":[],"mappings":"AAGA;CAaC;yBAfwB,4CAA4C"}