@defra/forms-model 3.0.563 → 3.0.565
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/__stubs__/preview.js +8 -0
 - package/dist/module/form/form-editor/__stubs__/preview.js.map +1 -1
 - package/dist/module/form/form-editor/index.js +2 -2
 - package/dist/module/form/form-editor/index.js.map +1 -1
 - package/dist/module/form/form-editor/preview/autocomplete.js +2 -1
 - package/dist/module/form/form-editor/preview/autocomplete.js.map +1 -1
 - package/dist/module/form/form-editor/preview/controller/page-controller.js.map +1 -1
 - package/dist/module/form/form-editor/preview/fieldset-question.js +12 -2
 - package/dist/module/form/form-editor/preview/fieldset-question.js.map +1 -1
 - package/dist/module/form/form-editor/preview/helpers.js +3 -1
 - package/dist/module/form/form-editor/preview/helpers.js.map +1 -1
 - package/dist/module/form/form-editor/preview/preview.js +2 -1
 - package/dist/module/form/form-editor/preview/preview.js.map +1 -1
 - package/dist/module/form/form-editor/preview/select-sortable.js +2 -1
 - package/dist/module/form/form-editor/preview/select-sortable.js.map +1 -1
 - package/dist/module/form/form-editor/preview/select.js +2 -1
 - package/dist/module/form/form-editor/preview/select.js.map +1 -1
 - package/dist/module/form/form-editor/preview/types.js.map +1 -1
 - package/dist/module/form/form-editor/preview/uk-address.js +58 -1
 - package/dist/module/form/form-editor/preview/uk-address.js.map +1 -1
 - package/dist/module/form/form-editor/preview/utils.js +9 -0
 - package/dist/module/form/form-editor/preview/utils.js.map +1 -0
 - package/dist/module/form/form-editor/types.js.map +1 -1
 - package/dist/types/form/form-editor/__stubs__/preview.d.ts +6 -1
 - package/dist/types/form/form-editor/__stubs__/preview.d.ts.map +1 -1
 - package/dist/types/form/form-editor/index.d.ts +2 -2
 - package/dist/types/form/form-editor/index.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/autocomplete.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/controller/page-controller.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/fieldset-question.d.ts +0 -14
 - package/dist/types/form/form-editor/preview/fieldset-question.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/helpers.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/preview.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/select-sortable.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/select.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/types.d.ts +1 -0
 - package/dist/types/form/form-editor/preview/types.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/uk-address.d.ts +37 -0
 - package/dist/types/form/form-editor/preview/uk-address.d.ts.map +1 -1
 - package/dist/types/form/form-editor/preview/utils.d.ts +6 -0
 - package/dist/types/form/form-editor/preview/utils.d.ts.map +1 -0
 - package/dist/types/form/form-editor/types.d.ts +10 -0
 - package/dist/types/form/form-editor/types.d.ts.map +1 -1
 - package/package.json +1 -1
 - package/src/form/form-editor/__stubs__/preview.js +16 -1
 - package/src/form/form-editor/index.ts +7 -3
 - package/src/form/form-editor/preview/autocomplete.js +2 -1
 - package/src/form/form-editor/preview/controller/page-controller.js +1 -0
 - package/src/form/form-editor/preview/fieldset-question.js +11 -2
 - package/src/form/form-editor/preview/helpers.js +6 -1
 - package/src/form/form-editor/preview/preview.js +2 -1
 - package/src/form/form-editor/preview/select-sortable.js +2 -1
 - package/src/form/form-editor/preview/select.js +2 -1
 - package/src/form/form-editor/preview/types.ts +1 -0
 - package/src/form/form-editor/preview/uk-address.js +59 -1
 - package/src/form/form-editor/preview/utils.js +8 -0
 - package/src/form/form-editor/types.ts +11 -0
 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"select-sortable.js","names":["ComponentType","HIGHLIGHT_CLASS","ListSortableQuestion","PreviewComponent","SelectSortableQuestion","_questionTemplate","PATH","selectList","list","length","id","value","text","componentType","SelectField","renderInput","afterInput","formGroup","html","_listElements","afterInputsHTML","highlightedClass","_highlighted","_fieldName","name","hint","label","items","classes"],"sources":["../../../../../src/form/form-editor/preview/select-sortable.js"],"sourcesContent":["import { ComponentType } from '~/src/components/enums.js'\nimport { HIGHLIGHT_CLASS } from '~/src/form/form-editor/preview/constants.js'\nimport { ListSortableQuestion } from '~/src/form/form-editor/preview/list-sortable.js'\nimport { PreviewComponent } from '~/src/form/form-editor/preview/preview.js'\n\nexport class SelectSortableQuestion extends ListSortableQuestion {\n  _questionTemplate = PreviewComponent.PATH + 'selectfield.njk'\n\n  get selectList() {\n    return this.list.length\n      ? [{ id: '', value: '', text: ' ' }, ...this.list]\n      : this.list\n  }\n\n  /**\n   * @type {ComponentType}\n   */\n  componentType = ComponentType.SelectField\n\n  get renderInput() {\n    const afterInput =\n      /** @type {{ formGroup?: { afterInput: { html: string }} }} */ (\n        this.list.length\n          ? {}\n          : {\n              formGroup: {\n                afterInput: {\n                  html: this._listElements.afterInputsHTML\n                }\n              }\n            }\n      )\n\n    const highlightedClass = this._highlighted ? HIGHLIGHT_CLASS : ''\n\n    return {\n      id: this._fieldName,\n      name: this._fieldName,\n      hint: this.hint,\n      label: this.label,\n      items: this.selectList,\n      classes: this.list.length ? highlightedClass : 'govuk-visually-hidden',\n      ...afterInput\n    }\n  }\n}\n\n/**\n * @import { FormGroupAfterInput }  from '~/src/form/form-editor/macros/types.js'\n */\n"],"mappings":"AAAA,SAASA,aAAa;AACtB,SAASC,eAAe;AACxB,SAASC,oBAAoB;AAC7B,SAASC,gBAAgB; 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"select-sortable.js","names":["ComponentType","HIGHLIGHT_CLASS","ListSortableQuestion","PreviewComponent","buildCombinedId","SelectSortableQuestion","_questionTemplate","PATH","selectList","list","length","id","value","text","componentType","SelectField","renderInput","afterInput","formGroup","html","_listElements","afterInputsHTML","highlightedClass","_highlighted","_fieldName","_id","name","hint","label","items","classes"],"sources":["../../../../../src/form/form-editor/preview/select-sortable.js"],"sourcesContent":["import { ComponentType } from '~/src/components/enums.js'\nimport { HIGHLIGHT_CLASS } from '~/src/form/form-editor/preview/constants.js'\nimport { ListSortableQuestion } from '~/src/form/form-editor/preview/list-sortable.js'\nimport { PreviewComponent } from '~/src/form/form-editor/preview/preview.js'\nimport { buildCombinedId } from '~/src/form/form-editor/preview/utils.js'\n\nexport class SelectSortableQuestion extends ListSortableQuestion {\n  _questionTemplate = PreviewComponent.PATH + 'selectfield.njk'\n\n  get selectList() {\n    return this.list.length\n      ? [{ id: '', value: '', text: ' ' }, ...this.list]\n      : this.list\n  }\n\n  /**\n   * @type {ComponentType}\n   */\n  componentType = ComponentType.SelectField\n\n  get renderInput() {\n    const afterInput =\n      /** @type {{ formGroup?: { afterInput: { html: string }} }} */ (\n        this.list.length\n          ? {}\n          : {\n              formGroup: {\n                afterInput: {\n                  html: this._listElements.afterInputsHTML\n                }\n              }\n            }\n      )\n\n    const highlightedClass = this._highlighted ? HIGHLIGHT_CLASS : ''\n\n    return {\n      id: buildCombinedId(this._fieldName, this._id),\n      name: this._fieldName,\n      hint: this.hint,\n      label: this.label,\n      items: this.selectList,\n      classes: this.list.length ? highlightedClass : 'govuk-visually-hidden',\n      ...afterInput\n    }\n  }\n}\n\n/**\n * @import { FormGroupAfterInput }  from '~/src/form/form-editor/macros/types.js'\n */\n"],"mappings":"AAAA,SAASA,aAAa;AACtB,SAASC,eAAe;AACxB,SAASC,oBAAoB;AAC7B,SAASC,gBAAgB;AACzB,SAASC,eAAe;AAExB,OAAO,MAAMC,sBAAsB,SAASH,oBAAoB,CAAC;EAC/DI,iBAAiB,GAAGH,gBAAgB,CAACI,IAAI,GAAG,iBAAiB;EAE7D,IAAIC,UAAUA,CAAA,EAAG;IACf,OAAO,IAAI,CAACC,IAAI,CAACC,MAAM,GACnB,CAAC;MAAEC,EAAE,EAAE,EAAE;MAAEC,KAAK,EAAE,EAAE;MAAEC,IAAI,EAAE;IAAI,CAAC,EAAE,GAAG,IAAI,CAACJ,IAAI,CAAC,GAChD,IAAI,CAACA,IAAI;EACf;;EAEA;AACF;AACA;EACEK,aAAa,GAAGd,aAAa,CAACe,WAAW;EAEzC,IAAIC,WAAWA,CAAA,EAAG;IAChB,MAAMC,UAAU,GACd;IACE,IAAI,CAACR,IAAI,CAACC,MAAM,GACZ,CAAC,CAAC,GACF;MACEQ,SAAS,EAAE;QACTD,UAAU,EAAE;UACVE,IAAI,EAAE,IAAI,CAACC,aAAa,CAACC;QAC3B;MACF;IACF,CACL;IAEH,MAAMC,gBAAgB,GAAG,IAAI,CAACC,YAAY,GAAGtB,eAAe,GAAG,EAAE;IAEjE,OAAO;MACLU,EAAE,EAAEP,eAAe,CAAC,IAAI,CAACoB,UAAU,EAAE,IAAI,CAACC,GAAG,CAAC;MAC9CC,IAAI,EAAE,IAAI,CAACF,UAAU;MACrBG,IAAI,EAAE,IAAI,CAACA,IAAI;MACfC,KAAK,EAAE,IAAI,CAACA,KAAK;MACjBC,KAAK,EAAE,IAAI,CAACrB,UAAU;MACtBsB,OAAO,EAAE,IAAI,CAACrB,IAAI,CAACC,MAAM,GAAGY,gBAAgB,GAAG,uBAAuB;MACtE,GAAGL;IACL,CAAC;EACH;AACF;;AAEA;AACA;AACA","ignoreList":[]}
         
     | 
| 
         @@ -2,6 +2,7 @@ import { ComponentType } from "../../../components/enums.js"; 
     | 
|
| 
       2 
2 
     | 
    
         
             
            import { HIGHLIGHT_CLASS } from "./constants.js";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import { ListQuestion } from "./list.js";
         
     | 
| 
       4 
4 
     | 
    
         
             
            import { PreviewComponent } from "./preview.js";
         
     | 
| 
      
 5 
     | 
    
         
            +
            import { buildCombinedId } from "./utils.js";
         
     | 
| 
       5 
6 
     | 
    
         
             
            export class SelectQuestion extends ListQuestion {
         
     | 
| 
       6 
7 
     | 
    
         
             
              _questionTemplate = PreviewComponent.PATH + 'selectfield.njk';
         
     | 
| 
       7 
8 
     | 
    
         
             
              _fieldName = 'selectInput';
         
     | 
| 
         @@ -27,7 +28,7 @@ export class SelectQuestion extends ListQuestion { 
     | 
|
| 
       27 
28 
     | 
    
         
             
                };
         
     | 
| 
       28 
29 
     | 
    
         
             
                const highlightedClass = this._highlighted ? HIGHLIGHT_CLASS : '';
         
     | 
| 
       29 
30 
     | 
    
         
             
                return {
         
     | 
| 
       30 
     | 
    
         
            -
                  id: this._fieldName,
         
     | 
| 
      
 31 
     | 
    
         
            +
                  id: buildCombinedId(this._fieldName, this._id),
         
     | 
| 
       31 
32 
     | 
    
         
             
                  name: this._fieldName,
         
     | 
| 
       32 
33 
     | 
    
         
             
                  hint: this.hint,
         
     | 
| 
       33 
34 
     | 
    
         
             
                  label: this.label,
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"select.js","names":["ComponentType","HIGHLIGHT_CLASS","ListQuestion","PreviewComponent","SelectQuestion","_questionTemplate","PATH","_fieldName","componentType","SelectField","list","_getList","renderInput","afterInput","length","formGroup","html","_listElements","afterInputsHTML","highlightedClass","_highlighted","id","name","hint","label","items","classes"],"sources":["../../../../../src/form/form-editor/preview/select.js"],"sourcesContent":["import { ComponentType } from '~/src/components/enums.js'\nimport { HIGHLIGHT_CLASS } from '~/src/form/form-editor/preview/constants.js'\nimport { ListQuestion } from '~/src/form/form-editor/preview/list.js'\nimport { PreviewComponent } from '~/src/form/form-editor/preview/preview.js'\n\nexport class SelectQuestion extends ListQuestion {\n  _questionTemplate = PreviewComponent.PATH + 'selectfield.njk'\n  _fieldName = 'selectInput'\n  /**\n   * @type {ComponentType}\n   */\n  componentType = ComponentType.SelectField\n\n  /**\n   * @returns {ListItemReadonly[]}\n   */\n  get list() {\n    return this._getList()\n  }\n\n  get renderInput() {\n    const afterInput =\n      /** @type {{ formGroup?: { afterInput: { html: string }} }} */ (\n        this.list.length\n          ? {}\n          : {\n              formGroup: {\n                afterInput: {\n                  html: this._listElements.afterInputsHTML\n                }\n              }\n            }\n      )\n\n    const highlightedClass = this._highlighted ? HIGHLIGHT_CLASS : ''\n\n    return {\n      id: this._fieldName,\n      name: this._fieldName,\n      hint: this.hint,\n      label: this.label,\n      items: this.list,\n      classes: this.list.length ? highlightedClass : 'govuk-visually-hidden',\n      ...afterInput\n    }\n  }\n}\n\n/**\n * @import { ListItemReadonly } from '~/src/form/form-editor/types.js'\n * @import { FormGroupAfterInput }  from '~/src/form/form-editor/macros/types.js'\n */\n"],"mappings":"AAAA,SAASA,aAAa;AACtB,SAASC,eAAe;AACxB,SAASC,YAAY;AACrB,SAASC,gBAAgB; 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"select.js","names":["ComponentType","HIGHLIGHT_CLASS","ListQuestion","PreviewComponent","buildCombinedId","SelectQuestion","_questionTemplate","PATH","_fieldName","componentType","SelectField","list","_getList","renderInput","afterInput","length","formGroup","html","_listElements","afterInputsHTML","highlightedClass","_highlighted","id","_id","name","hint","label","items","classes"],"sources":["../../../../../src/form/form-editor/preview/select.js"],"sourcesContent":["import { ComponentType } from '~/src/components/enums.js'\nimport { HIGHLIGHT_CLASS } from '~/src/form/form-editor/preview/constants.js'\nimport { ListQuestion } from '~/src/form/form-editor/preview/list.js'\nimport { PreviewComponent } from '~/src/form/form-editor/preview/preview.js'\nimport { buildCombinedId } from '~/src/form/form-editor/preview/utils.js'\n\nexport class SelectQuestion extends ListQuestion {\n  _questionTemplate = PreviewComponent.PATH + 'selectfield.njk'\n  _fieldName = 'selectInput'\n  /**\n   * @type {ComponentType}\n   */\n  componentType = ComponentType.SelectField\n\n  /**\n   * @returns {ListItemReadonly[]}\n   */\n  get list() {\n    return this._getList()\n  }\n\n  get renderInput() {\n    const afterInput =\n      /** @type {{ formGroup?: { afterInput: { html: string }} }} */ (\n        this.list.length\n          ? {}\n          : {\n              formGroup: {\n                afterInput: {\n                  html: this._listElements.afterInputsHTML\n                }\n              }\n            }\n      )\n\n    const highlightedClass = this._highlighted ? HIGHLIGHT_CLASS : ''\n\n    return {\n      id: buildCombinedId(this._fieldName, this._id),\n      name: this._fieldName,\n      hint: this.hint,\n      label: this.label,\n      items: this.list,\n      classes: this.list.length ? highlightedClass : 'govuk-visually-hidden',\n      ...afterInput\n    }\n  }\n}\n\n/**\n * @import { ListItemReadonly } from '~/src/form/form-editor/types.js'\n * @import { FormGroupAfterInput }  from '~/src/form/form-editor/macros/types.js'\n */\n"],"mappings":"AAAA,SAASA,aAAa;AACtB,SAASC,eAAe;AACxB,SAASC,YAAY;AACrB,SAASC,gBAAgB;AACzB,SAASC,eAAe;AAExB,OAAO,MAAMC,cAAc,SAASH,YAAY,CAAC;EAC/CI,iBAAiB,GAAGH,gBAAgB,CAACI,IAAI,GAAG,iBAAiB;EAC7DC,UAAU,GAAG,aAAa;EAC1B;AACF;AACA;EACEC,aAAa,GAAGT,aAAa,CAACU,WAAW;;EAEzC;AACF;AACA;EACE,IAAIC,IAAIA,CAAA,EAAG;IACT,OAAO,IAAI,CAACC,QAAQ,CAAC,CAAC;EACxB;EAEA,IAAIC,WAAWA,CAAA,EAAG;IAChB,MAAMC,UAAU,GACd;IACE,IAAI,CAACH,IAAI,CAACI,MAAM,GACZ,CAAC,CAAC,GACF;MACEC,SAAS,EAAE;QACTF,UAAU,EAAE;UACVG,IAAI,EAAE,IAAI,CAACC,aAAa,CAACC;QAC3B;MACF;IACF,CACL;IAEH,MAAMC,gBAAgB,GAAG,IAAI,CAACC,YAAY,GAAGpB,eAAe,GAAG,EAAE;IAEjE,OAAO;MACLqB,EAAE,EAAElB,eAAe,CAAC,IAAI,CAACI,UAAU,EAAE,IAAI,CAACe,GAAG,CAAC;MAC9CC,IAAI,EAAE,IAAI,CAAChB,UAAU;MACrBiB,IAAI,EAAE,IAAI,CAACA,IAAI;MACfC,KAAK,EAAE,IAAI,CAACA,KAAK;MACjBC,KAAK,EAAE,IAAI,CAAChB,IAAI;MAChBiB,OAAO,EAAE,IAAI,CAACjB,IAAI,CAACI,MAAM,GAAGK,gBAAgB,GAAG,uBAAuB;MACtE,GAAGN;IACL,CAAC;EACH;AACF;;AAEA;AACA;AACA;AACA","ignoreList":[]}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/form/form-editor/preview/types.ts"],"sourcesContent":["import {\n  type PagePreviewPanelMacro,\n  type QuestionBaseModel\n} from '~/src/form/form-editor/macros/types.js'\nimport { type AutocompleteQuestion } from '~/src/form/form-editor/preview/autocomplete.js'\nimport { type DateInputQuestion } from '~/src/form/form-editor/preview/date-input.js'\nimport { type EmailAddressQuestion } from '~/src/form/form-editor/preview/email-address.js'\nimport { type ListSortableQuestion } from '~/src/form/form-editor/preview/list-sortable.js'\nimport { type LongAnswerQuestion } from '~/src/form/form-editor/preview/long-answer.js'\nimport { type PhoneNumberQuestion } from '~/src/form/form-editor/preview/phone-number.js'\nimport { type Question } from '~/src/form/form-editor/preview/question.js'\nimport { type RadioSortableQuestion } from '~/src/form/form-editor/preview/radio-sortable.js'\nimport { type SelectSortableQuestion } from '~/src/form/form-editor/preview/select-sortable.js'\nimport { type ShortAnswerQuestion } from '~/src/form/form-editor/preview/short-answer.js'\nimport { type UkAddressQuestion } from '~/src/form/form-editor/preview/uk-address.js'\nimport { type ListElement } from '~/src/form/form-editor/types.js'\nexport { type QuestionBaseModel } from '~/src/form/form-editor/macros/types.js'\nexport interface BaseSettings {\n  question: string\n  hintText: string\n  optional: boolean\n  shortDesc: string\n  items: ListElement[]\n  content: string\n  attributes?: Record<string, string>\n}\n\nexport interface DefaultComponent {\n  id?: string\n  text: string\n  classes: string\n  isPageHeading?: boolean\n}\n\nexport interface GovukFieldset {\n  legend: DefaultComponent\n}\n\nexport type ListenerRow = [\n  HTMLInputElement | null,\n  (target: HTMLInputElement, e: Event) => void,\n  keyof HTMLElementEventMap\n]\n\nexport interface DomElementsBase {\n  readonly values?: BaseSettings\n  autocompleteOptions?: string\n  setPreviewHTML(value: string): void\n  setPreviewDOM(element: HTMLElement): void\n}\n\nexport interface QuestionElements extends DomElementsBase {\n  readonly values: BaseSettings\n}\n\nexport interface AutocompleteElements extends QuestionElements {\n  autocompleteOptions: string\n}\n\nexport interface RenderBase {\n  render(questionTemplate: string, renderContext: RenderContext): void\n}\n\nexport interface QuestionRenderContext {\n  model: QuestionBaseModel\n}\n\nexport interface PageRenderContext {\n  params: PagePreviewPanelMacro\n}\n\nexport type RenderContext = QuestionRenderContext | PageRenderContext\n\nexport interface HTMLBuilder {\n  buildHTML(questionTemplate: string, renderContext: RenderContext): string\n}\n\nexport interface QuestionRenderer {\n  render(questionTemplate: string, questionBaseModel: QuestionBaseModel): void\n}\n\nexport interface PageRenderer {\n  render(pageTemplate: string, pagePreview: PagePreviewPanelMacro): void\n}\n\nexport type Renderer = QuestionRenderer | PageRenderer\n\nexport interface ListElements extends QuestionElements {\n  afterInputsHTML: string\n}\n\nexport interface PagePreviewBaseElements {\n  heading: string\n  guidance: string\n}\n\nexport interface PageOverviewElements extends PagePreviewBaseElements {\n  addHeading: boolean\n  repeatQuestion: string | undefined\n  hasRepeater: boolean\n}\n\nexport interface SummaryPageElements extends PagePreviewBaseElements {\n  declaration: boolean\n}\n\nexport type PreviewQuestion =\n  | DateInputQuestion\n  | EmailAddressQuestion\n  | ListSortableQuestion\n  | LongAnswerQuestion\n  | PhoneNumberQuestion\n  | Question\n  | RadioSortableQuestion\n  | SelectSortableQuestion\n  | ShortAnswerQuestion\n  | UkAddressQuestion\n  | AutocompleteQuestion\n"],"mappings":"","ignoreList":[]}
         
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/form/form-editor/preview/types.ts"],"sourcesContent":["import {\n  type PagePreviewPanelMacro,\n  type QuestionBaseModel\n} from '~/src/form/form-editor/macros/types.js'\nimport { type AutocompleteQuestion } from '~/src/form/form-editor/preview/autocomplete.js'\nimport { type DateInputQuestion } from '~/src/form/form-editor/preview/date-input.js'\nimport { type EmailAddressQuestion } from '~/src/form/form-editor/preview/email-address.js'\nimport { type ListSortableQuestion } from '~/src/form/form-editor/preview/list-sortable.js'\nimport { type LongAnswerQuestion } from '~/src/form/form-editor/preview/long-answer.js'\nimport { type PhoneNumberQuestion } from '~/src/form/form-editor/preview/phone-number.js'\nimport { type Question } from '~/src/form/form-editor/preview/question.js'\nimport { type RadioSortableQuestion } from '~/src/form/form-editor/preview/radio-sortable.js'\nimport { type SelectSortableQuestion } from '~/src/form/form-editor/preview/select-sortable.js'\nimport { type ShortAnswerQuestion } from '~/src/form/form-editor/preview/short-answer.js'\nimport { type UkAddressQuestion } from '~/src/form/form-editor/preview/uk-address.js'\nimport { type ListElement } from '~/src/form/form-editor/types.js'\nexport { type QuestionBaseModel } from '~/src/form/form-editor/macros/types.js'\nexport interface BaseSettings {\n  question: string\n  hintText: string\n  optional: boolean\n  shortDesc: string\n  items: ListElement[]\n  content: string\n  attributes?: Record<string, string>\n  usePostcodeLookup?: boolean\n}\n\nexport interface DefaultComponent {\n  id?: string\n  text: string\n  classes: string\n  isPageHeading?: boolean\n}\n\nexport interface GovukFieldset {\n  legend: DefaultComponent\n}\n\nexport type ListenerRow = [\n  HTMLInputElement | null,\n  (target: HTMLInputElement, e: Event) => void,\n  keyof HTMLElementEventMap\n]\n\nexport interface DomElementsBase {\n  readonly values?: BaseSettings\n  autocompleteOptions?: string\n  setPreviewHTML(value: string): void\n  setPreviewDOM(element: HTMLElement): void\n}\n\nexport interface QuestionElements extends DomElementsBase {\n  readonly values: BaseSettings\n}\n\nexport interface AutocompleteElements extends QuestionElements {\n  autocompleteOptions: string\n}\n\nexport interface RenderBase {\n  render(questionTemplate: string, renderContext: RenderContext): void\n}\n\nexport interface QuestionRenderContext {\n  model: QuestionBaseModel\n}\n\nexport interface PageRenderContext {\n  params: PagePreviewPanelMacro\n}\n\nexport type RenderContext = QuestionRenderContext | PageRenderContext\n\nexport interface HTMLBuilder {\n  buildHTML(questionTemplate: string, renderContext: RenderContext): string\n}\n\nexport interface QuestionRenderer {\n  render(questionTemplate: string, questionBaseModel: QuestionBaseModel): void\n}\n\nexport interface PageRenderer {\n  render(pageTemplate: string, pagePreview: PagePreviewPanelMacro): void\n}\n\nexport type Renderer = QuestionRenderer | PageRenderer\n\nexport interface ListElements extends QuestionElements {\n  afterInputsHTML: string\n}\n\nexport interface PagePreviewBaseElements {\n  heading: string\n  guidance: string\n}\n\nexport interface PageOverviewElements extends PagePreviewBaseElements {\n  addHeading: boolean\n  repeatQuestion: string | undefined\n  hasRepeater: boolean\n}\n\nexport interface SummaryPageElements extends PagePreviewBaseElements {\n  declaration: boolean\n}\n\nexport type PreviewQuestion =\n  | DateInputQuestion\n  | EmailAddressQuestion\n  | ListSortableQuestion\n  | LongAnswerQuestion\n  | PhoneNumberQuestion\n  | Question\n  | RadioSortableQuestion\n  | SelectSortableQuestion\n  | ShortAnswerQuestion\n  | UkAddressQuestion\n  | AutocompleteQuestion\n"],"mappings":"","ignoreList":[]}
         
     | 
| 
         @@ -1,6 +1,31 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import { ComponentType } from "../../../components/enums.js";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import { FieldsetQuestion } from "./fieldset-question.js";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import { PreviewComponent } from "./preview.js";
         
     | 
| 
      
 4 
     | 
    
         
            +
            import { QuestionComponentElements } from "./question.js";
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            /**
         
     | 
| 
      
 7 
     | 
    
         
            +
             * @implements {QuestionElements}
         
     | 
| 
      
 8 
     | 
    
         
            +
             */
         
     | 
| 
      
 9 
     | 
    
         
            +
            export class UkAddressComponentPreviewElements extends QuestionComponentElements {
         
     | 
| 
      
 10 
     | 
    
         
            +
              /**
         
     | 
| 
      
 11 
     | 
    
         
            +
               * @param {UkAddressFieldComponent} component
         
     | 
| 
      
 12 
     | 
    
         
            +
               */
         
     | 
| 
      
 13 
     | 
    
         
            +
              constructor(component) {
         
     | 
| 
      
 14 
     | 
    
         
            +
                super(component);
         
     | 
| 
      
 15 
     | 
    
         
            +
                this._usePostcodeLookup = component.options.usePostcodeLookup;
         
     | 
| 
      
 16 
     | 
    
         
            +
              }
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
              /**
         
     | 
| 
      
 19 
     | 
    
         
            +
               * @protected
         
     | 
| 
      
 20 
     | 
    
         
            +
               * @returns {BaseSettings}
         
     | 
| 
      
 21 
     | 
    
         
            +
               */
         
     | 
| 
      
 22 
     | 
    
         
            +
              _getValues() {
         
     | 
| 
      
 23 
     | 
    
         
            +
                return {
         
     | 
| 
      
 24 
     | 
    
         
            +
                  ...super._getValues(),
         
     | 
| 
      
 25 
     | 
    
         
            +
                  usePostcodeLookup: this._usePostcodeLookup
         
     | 
| 
      
 26 
     | 
    
         
            +
                };
         
     | 
| 
      
 27 
     | 
    
         
            +
              }
         
     | 
| 
      
 28 
     | 
    
         
            +
            }
         
     | 
| 
       4 
29 
     | 
    
         
             
            export class UkAddressQuestion extends FieldsetQuestion {
         
     | 
| 
       5 
30 
     | 
    
         
             
              /**
         
     | 
| 
       6 
31 
     | 
    
         
             
               * @type {ComponentType}
         
     | 
| 
         @@ -8,9 +33,41 @@ export class UkAddressQuestion extends FieldsetQuestion { 
     | 
|
| 
       8 
33 
     | 
    
         
             
              componentType = ComponentType.UkAddressField;
         
     | 
| 
       9 
34 
     | 
    
         
             
              _questionTemplate = PreviewComponent.PATH + 'ukaddressfield.njk';
         
     | 
| 
       10 
35 
     | 
    
         
             
              _fieldName = 'addressField';
         
     | 
| 
      
 36 
     | 
    
         
            +
              _usePostcodeLookup = false;
         
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
      
 38 
     | 
    
         
            +
              /**
         
     | 
| 
      
 39 
     | 
    
         
            +
               * @param {QuestionElements} htmlElements
         
     | 
| 
      
 40 
     | 
    
         
            +
               * @param {QuestionRenderer} questionRenderer
         
     | 
| 
      
 41 
     | 
    
         
            +
               */
         
     | 
| 
      
 42 
     | 
    
         
            +
              constructor(htmlElements, questionRenderer) {
         
     | 
| 
      
 43 
     | 
    
         
            +
                super(htmlElements, questionRenderer);
         
     | 
| 
      
 44 
     | 
    
         
            +
                this._usePostcodeLookup = htmlElements.values.usePostcodeLookup ?? false;
         
     | 
| 
      
 45 
     | 
    
         
            +
              }
         
     | 
| 
      
 46 
     | 
    
         
            +
              get usePostcodeLookup() {
         
     | 
| 
      
 47 
     | 
    
         
            +
                return this._usePostcodeLookup;
         
     | 
| 
      
 48 
     | 
    
         
            +
              }
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
      
 50 
     | 
    
         
            +
              /**
         
     | 
| 
      
 51 
     | 
    
         
            +
               * @param {boolean} val
         
     | 
| 
      
 52 
     | 
    
         
            +
               */
         
     | 
| 
      
 53 
     | 
    
         
            +
              set usePostcodeLookup(val) {
         
     | 
| 
      
 54 
     | 
    
         
            +
                this._usePostcodeLookup = val;
         
     | 
| 
      
 55 
     | 
    
         
            +
                this.render();
         
     | 
| 
      
 56 
     | 
    
         
            +
              }
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
              /**
         
     | 
| 
      
 59 
     | 
    
         
            +
               * @protected
         
     | 
| 
      
 60 
     | 
    
         
            +
               */
         
     | 
| 
      
 61 
     | 
    
         
            +
              _renderInput() {
         
     | 
| 
      
 62 
     | 
    
         
            +
                return {
         
     | 
| 
      
 63 
     | 
    
         
            +
                  ...super._renderInput(),
         
     | 
| 
      
 64 
     | 
    
         
            +
                  usePostcodeLookup: this.usePostcodeLookup
         
     | 
| 
      
 65 
     | 
    
         
            +
                };
         
     | 
| 
      
 66 
     | 
    
         
            +
              }
         
     | 
| 
       11 
67 
     | 
    
         
             
            }
         
     | 
| 
       12 
68 
     | 
    
         | 
| 
       13 
69 
     | 
    
         
             
            /**
         
     | 
| 
       14 
     | 
    
         
            -
             * @import {  
     | 
| 
      
 70 
     | 
    
         
            +
             * @import { BaseSettings, QuestionElements, QuestionRenderer } from '~/src/form/form-editor/preview/types.js'
         
     | 
| 
      
 71 
     | 
    
         
            +
             * @import { UkAddressFieldComponent } from '~/src/components/types.js'
         
     | 
| 
       15 
72 
     | 
    
         
             
             */
         
     | 
| 
       16 
73 
     | 
    
         
             
            //# sourceMappingURL=uk-address.js.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"uk-address.js","names":["ComponentType","FieldsetQuestion","PreviewComponent","UkAddressQuestion","componentType","UkAddressField","_questionTemplate","PATH","_fieldName"],"sources":["../../../../../src/form/form-editor/preview/uk-address.js"],"sourcesContent":["import { ComponentType } from '~/src/components/enums.js'\nimport { FieldsetQuestion } from '~/src/form/form-editor/preview/fieldset-question.js'\nimport { PreviewComponent } from '~/src/form/form-editor/preview/preview.js'\n\nexport class UkAddressQuestion extends FieldsetQuestion {\n  /**\n   * @type {ComponentType}\n   */\n  componentType = ComponentType.UkAddressField\n  _questionTemplate = PreviewComponent.PATH + 'ukaddressfield.njk'\n  _fieldName = 'addressField'\n}\n\n/**\n * @import {  
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"uk-address.js","names":["ComponentType","FieldsetQuestion","PreviewComponent","QuestionComponentElements","UkAddressComponentPreviewElements","constructor","component","_usePostcodeLookup","options","usePostcodeLookup","_getValues","UkAddressQuestion","componentType","UkAddressField","_questionTemplate","PATH","_fieldName","htmlElements","questionRenderer","values","val","render","_renderInput"],"sources":["../../../../../src/form/form-editor/preview/uk-address.js"],"sourcesContent":["import { ComponentType } from '~/src/components/enums.js'\nimport { FieldsetQuestion } from '~/src/form/form-editor/preview/fieldset-question.js'\nimport { PreviewComponent } from '~/src/form/form-editor/preview/preview.js'\nimport { QuestionComponentElements } from '~/src/form/form-editor/preview/question.js'\n\n/**\n * @implements {QuestionElements}\n */\nexport class UkAddressComponentPreviewElements extends QuestionComponentElements {\n  /**\n   * @param {UkAddressFieldComponent} component\n   */\n  constructor(component) {\n    super(component)\n    this._usePostcodeLookup = component.options.usePostcodeLookup\n  }\n\n  /**\n   * @protected\n   * @returns {BaseSettings}\n   */\n  _getValues() {\n    return {\n      ...super._getValues(),\n      usePostcodeLookup: this._usePostcodeLookup\n    }\n  }\n}\n\nexport class UkAddressQuestion extends FieldsetQuestion {\n  /**\n   * @type {ComponentType}\n   */\n  componentType = ComponentType.UkAddressField\n  _questionTemplate = PreviewComponent.PATH + 'ukaddressfield.njk'\n  _fieldName = 'addressField'\n  _usePostcodeLookup = false\n\n  /**\n   * @param {QuestionElements} htmlElements\n   * @param {QuestionRenderer} questionRenderer\n   */\n  constructor(htmlElements, questionRenderer) {\n    super(htmlElements, questionRenderer)\n    this._usePostcodeLookup = htmlElements.values.usePostcodeLookup ?? false\n  }\n\n  get usePostcodeLookup() {\n    return this._usePostcodeLookup\n  }\n\n  /**\n   * @param {boolean} val\n   */\n  set usePostcodeLookup(val) {\n    this._usePostcodeLookup = val\n    this.render()\n  }\n\n  /**\n   * @protected\n   */\n  _renderInput() {\n    return {\n      ...super._renderInput(),\n      usePostcodeLookup: this.usePostcodeLookup\n    }\n  }\n}\n\n/**\n * @import { BaseSettings, QuestionElements, QuestionRenderer } from '~/src/form/form-editor/preview/types.js'\n * @import { UkAddressFieldComponent } from '~/src/components/types.js'\n */\n"],"mappings":"AAAA,SAASA,aAAa;AACtB,SAASC,gBAAgB;AACzB,SAASC,gBAAgB;AACzB,SAASC,yBAAyB;;AAElC;AACA;AACA;AACA,OAAO,MAAMC,iCAAiC,SAASD,yBAAyB,CAAC;EAC/E;AACF;AACA;EACEE,WAAWA,CAACC,SAAS,EAAE;IACrB,KAAK,CAACA,SAAS,CAAC;IAChB,IAAI,CAACC,kBAAkB,GAAGD,SAAS,CAACE,OAAO,CAACC,iBAAiB;EAC/D;;EAEA;AACF;AACA;AACA;EACEC,UAAUA,CAAA,EAAG;IACX,OAAO;MACL,GAAG,KAAK,CAACA,UAAU,CAAC,CAAC;MACrBD,iBAAiB,EAAE,IAAI,CAACF;IAC1B,CAAC;EACH;AACF;AAEA,OAAO,MAAMI,iBAAiB,SAASV,gBAAgB,CAAC;EACtD;AACF;AACA;EACEW,aAAa,GAAGZ,aAAa,CAACa,cAAc;EAC5CC,iBAAiB,GAAGZ,gBAAgB,CAACa,IAAI,GAAG,oBAAoB;EAChEC,UAAU,GAAG,cAAc;EAC3BT,kBAAkB,GAAG,KAAK;;EAE1B;AACF;AACA;AACA;EACEF,WAAWA,CAACY,YAAY,EAAEC,gBAAgB,EAAE;IAC1C,KAAK,CAACD,YAAY,EAAEC,gBAAgB,CAAC;IACrC,IAAI,CAACX,kBAAkB,GAAGU,YAAY,CAACE,MAAM,CAACV,iBAAiB,IAAI,KAAK;EAC1E;EAEA,IAAIA,iBAAiBA,CAAA,EAAG;IACtB,OAAO,IAAI,CAACF,kBAAkB;EAChC;;EAEA;AACF;AACA;EACE,IAAIE,iBAAiBA,CAACW,GAAG,EAAE;IACzB,IAAI,CAACb,kBAAkB,GAAGa,GAAG;IAC7B,IAAI,CAACC,MAAM,CAAC,CAAC;EACf;;EAEA;AACF;AACA;EACEC,YAAYA,CAAA,EAAG;IACb,OAAO;MACL,GAAG,KAAK,CAACA,YAAY,CAAC,CAAC;MACvBb,iBAAiB,EAAE,IAAI,CAACA;IAC1B,CAAC;EACH;AACF;;AAEA;AACA;AACA;AACA","ignoreList":[]}
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"utils.js","names":["buildCombinedId","fieldName","id","idSuffix"],"sources":["../../../../../src/form/form-editor/preview/utils.js"],"sourcesContent":["/**\n * @param {string} fieldName\n * @param { string | undefined } id\n */\nexport function buildCombinedId(fieldName, id) {\n  const idSuffix = id ? `-${id}` : ''\n  return `${fieldName}${idSuffix}`\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,SAASA,eAAeA,CAACC,SAAS,EAAEC,EAAE,EAAE;EAC7C,MAAMC,QAAQ,GAAGD,EAAE,GAAG,IAAIA,EAAE,EAAE,GAAG,EAAE;EACnC,OAAO,GAAGD,SAAS,GAAGE,QAAQ,EAAE;AAClC","ignoreList":[]}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"types.js","names":[],"sources":["../../../../src/form/form-editor/types.ts"],"sourcesContent":["import { type ComponentType } from '~/src/components/enums.js'\nimport { type ComponentDef } from '~/src/components/types.js'\nimport { type DateDirections, type DateUnits } from '~/src/conditions/enums.js'\nimport {\n  type ConditionWrapperV2,\n  type Item\n} from '~/src/form/form-definition/types.js'\n\n/**\n * Interface for `FormEditor` Joi schema\n */\nexport interface FormEditor {\n  /**\n   * The type of the page\n   */\n  pageType: string\n\n  /**\n   * The type of the question\n   */\n  questionType: string | undefined\n\n  /**\n   * The sub-type of written answer\n   */\n  writtenAnswerSub: string\n\n  /**\n   * The sub-type of date\n   */\n  dateSub: string\n\n  /**\n   * The sub-type of lists\n   */\n  listSub: string\n\n  /**\n   * The name of the question (unique id)\n   */\n  name: string\n\n  /**\n   * The text of the question\n   */\n  question: string\n\n  /**\n   * The hint text of the question\n   */\n  hintText: string\n\n  /**\n   * Denotes if the question is optional\n   */\n  questionOptional: string\n\n  /**\n   * The short description of the question\n   */\n  shortDescription: string\n\n  /**\n   * The value of checkbox to reveal heading and guidance section\n   */\n  pageHeadingAndGuidance: string\n\n  /**\n   * The page heading\n   */\n  pageHeading: string\n\n  /**\n   * The page guidance text\n   */\n  guidanceText: string\n\n  /**\n   * The value of checkbox to reveal repeater section\n   */\n  repeater: string\n\n  /**\n   * The maximum number of repeater items\n   */\n  minItems: number\n\n  /**\n   * The minimum number of repeater items\n   */\n  maxItems: number\n\n  /**\n   * The repeater question set name\n   */\n  questionSetName: string\n\n  /**\n   * The value of radio to reveal declaration text field\n   */\n  needDeclaration: string\n\n  /**\n   * The check answers declaration text\n   */\n  declarationText: string\n\n  /**\n   * The min length a field can have\n   */\n  minLength: string\n\n  /**\n   * The max length a field can have\n   */\n  maxLength: string\n\n  /**\n   * The regex value of a field\n   */\n  regex: string\n\n  /**\n   * The number of rows of a textarea\n   */\n  rows: string\n\n  /**\n   * The classes to be applied to a field\n   */\n  classes: string\n\n  /**\n   * The prefix to be applied to a field\n   */\n  prefix: string\n\n  /**\n   * The suffix to be applied to a field\n   */\n  suffix: string\n\n  /**\n   * The decimal precision of a number field\n   */\n  precision: string\n\n  /**\n   * The lowest number allowed in a field\n   */\n  min: string\n\n  /**\n   * The highest number allowed in a field\n   */\n  max: string\n\n  /**\n   * The maximum days in the future to allow for a date\n   */\n  maxFuture: string\n\n  /**\n   * The maximum days in the past to allow for a date\n   */\n  maxPast: string\n\n  /**\n   * The exact number of files to upload\n   */\n  exactFiles: string\n\n  /**\n   * The minimum number of files to upload\n   */\n  minFiles: string\n\n  /**\n   * The maximum number of files to upload\n   */\n  maxFiles: string\n\n  /**\n   * The type of files for upload\n   */\n  fileTypes: string[]\n\n  /**\n   * The types of document files for upload\n   */\n  documentTypes: string[]\n\n  /**\n   * The types of image files for upload\n   */\n  imageTypes: string[]\n\n  /**\n   * The types of tabular data files for upload\n   */\n  tabularDataTypes: string[]\n\n  /**\n   * The action required from within a sub-section\n   */\n  enhancedAction: string\n\n  /**\n   * Placeholder for inserted section to handle adding/editing radios or checkboxes\n   */\n  radiosOrCheckboxes: string\n\n  /**\n   * The unique id of the radio item\n   */\n  radioId: string\n\n  /**\n   * The display text of the radio item\n   */\n  radioText?: string\n\n  /**\n   * The hint of the radio item\n   */\n  radioHint?: string\n\n  /**\n   * The value of the radio item\n   */\n  radioValue?: string\n\n  /**\n   * The list name to be applied to a field (if applicable)\n   */\n  list: string\n\n  /**\n   * List items in JSON format, such as for radios ro checkboxes\n   */\n  listItemsData: string\n\n  /**\n   * An array of options for autocomplete\n   */\n  autoCompleteOptions: Item[]\n\n  /**\n   * Set to 'true' is Javascript is enabled\n   */\n  jsEnabled: string\n\n  /**\n   * List item id for conditions\n   */\n  itemId: string\n\n  /**\n   * Relative date period for conditions\n   */\n  period: string\n\n  /**\n   * Relative date unit for conditions\n   */\n  unit: DateUnits\n\n  /**\n   * Relative date direction for conditions\n   */\n  direction: DateDirections\n\n  /**\n   * Denotes if page is an Exit Page\n   */\n  exitPage: boolean\n\n  /**\n   * Denotes if the UK address question supports postcode lookup\n   */\n  usePostcodeLookup: string\n}\n\nexport type FormEditorInputPage = Pick<\n  FormEditor,\n  'pageType' | 'questionType' | 'writtenAnswerSub' | 'dateSub' | 'listSub'\n>\n\nexport type FormEditorInputCheckAnswersSettings = Pick<\n  FormEditor,\n  'needDeclaration' | 'declarationText'\n>\n\nexport type FormEditorInputQuestion = Pick<\n  FormEditor,\n  | 'questionType'\n  | 'name'\n  | 'question'\n  | 'shortDescription'\n  | 'hintText'\n  | 'questionOptional'\n  | 'minLength'\n  | 'maxLength'\n  | 'regex'\n  | 'rows'\n  | 'classes'\n  | 'prefix'\n  | 'suffix'\n  | 'precision'\n  | 'min'\n  | 'max'\n  | 'maxFuture'\n  | 'maxPast'\n  | 'exactFiles'\n  | 'minFiles'\n  | 'maxFiles'\n  | 'fileTypes'\n  | 'documentTypes'\n  | 'imageTypes'\n  | 'tabularDataTypes'\n  | 'autoCompleteOptions'\n  | 'enhancedAction'\n  | 'radioId'\n  | 'radioText'\n  | 'radioHint'\n  | 'radioValue'\n  | 'list'\n  | 'listItemsData'\n  | 'jsEnabled'\n  | 'usePostcodeLookup'\n>\n\nexport type FormEditorInputPageSettings = Pick<\n  FormEditor,\n  | 'pageHeadingAndGuidance'\n  | 'pageHeading'\n  | 'guidanceText'\n  | 'repeater'\n  | 'minItems'\n  | 'maxItems'\n  | 'questionSetName'\n  | 'exitPage'\n>\n\nexport type FormEditorInputGuidancePage = Pick<\n  FormEditor,\n  'pageHeading' | 'guidanceText' | 'exitPage'\n>\n\nexport type FormEditorInputQuestionDetails = Pick<\n  FormEditorInputQuestion,\n  | 'question'\n  | 'hintText'\n  | 'shortDescription'\n  | 'questionOptional'\n  | 'questionType'\n  | 'fileTypes'\n  | 'documentTypes'\n  | 'imageTypes'\n  | 'tabularDataTypes'\n  | 'autoCompleteOptions'\n  | 'enhancedAction'\n  | 'radioId'\n  | 'radioText'\n  | 'radioHint'\n  | 'radioValue'\n  | 'listItemsData'\n  | 'jsEnabled'\n>\n\ntype ListValue = string | boolean | number\n\nexport interface ListItem {\n  id?: string\n  text?: string\n  hint?: {\n    text: string\n  }\n  value?: ListValue\n}\n\nexport interface ListLabel {\n  text: string\n  classes: string\n}\n\nexport interface ListElement extends ListItem {\n  readonly id: string\n  text: string\n  value: ListValue\n  label?: ListLabel\n}\n\nexport interface ReadonlyHint {\n  readonly text: string\n}\n\nexport interface ListItemReadonly extends ListElement {\n  readonly text: string\n  readonly hint?: ReadonlyHint\n  readonly value: ListValue\n  readonly label?: ListLabel\n}\n\nexport interface DateItem {\n  name: string\n  classes: string\n}\n\nexport interface ListConflict {\n  conflictItem: {\n    id: string\n    text: string\n  }\n  originalItem?: {\n    id: string\n    text: string\n  }\n  conditionNames: string[]\n  linkableItems: {\n    id?: string\n    text: string\n    value: string | number | boolean\n  }[]\n  closestMatch?: string | number | boolean\n}\n\nexport interface QuestionSessionState {\n  questionType?: ComponentType\n  questionDetails?: Partial<ComponentDef>\n  editRow?: {\n    radioId?: string\n    radioText?: string\n    radioHint?: string\n    radioValue?: ListValue\n    expanded?: boolean\n  }\n  listItems?: ListItem[]\n  isReordering?: boolean\n  lastMovedId?: string\n  lastMoveDirection?: string\n  listConflicts?: ListConflict[]\n}\n\nexport interface ConditionSessionState {\n  id?: string\n  stateId?: string\n  conditionWrapper?: ConditionWrapperV2\n}\n\nexport interface ConditionDetails {\n  pageCondition: string | undefined\n  pageConditionDetails: ConditionWrapperV2 | undefined\n  pageConditionPresentationString: string | null\n}\n\nexport interface GovukFieldItem {\n  text?: string\n  value?: string\n  checked?: boolean\n  hint?: { text?: string; html?: string; classes?: string }\n}\n\nexport interface GovukSummaryListRow {\n  key?: {\n    text?: string\n    classes?: string\n  }\n  value?: {\n    text?: string\n    html?: string\n    classes?: string\n  }\n}\n\nexport interface GovukField {\n  id?: string\n  name?: string\n  idPrefix?: string\n  fieldset?: {\n    legend?: { text?: string; isPageHeading?: boolean; classes?: string }\n  }\n  value?: string | boolean | number | string[] | Item[]\n  classes?: string\n  label?: {\n    text?: string\n    html?: string\n    classes?: string\n    isPageHeading?: boolean\n  }\n  hint?: { text?: string; html?: string; classes?: string }\n  items?: GovukFieldItem[]\n  rows?: number\n  type?: string\n  customTemplate?: string\n}\n\nexport type GovukFieldQuestionOptional = Omit<GovukField, 'name' | 'items'> & {\n  name: 'questionOptional'\n  items: [\n    {\n      text?: string\n      value?: string\n      checked: boolean\n    }\n  ]\n}\n\nexport type GovukStringField = Omit<GovukField, 'value'> & { value: string }\n\nexport interface FormEditorGovukField {\n  question?: GovukField\n  hintText?: GovukField\n  questionOptional?: GovukField\n  shortDescription?: GovukField\n  fileTypes?: GovukField\n  documentTypes?: GovukField\n  imageTypes?: GovukField\n  tabularDataTypes?: GovukField\n  radiosOrCheckboxes?: GovukField\n  autoCompleteOptions?: GovukField\n  usePostcodeLookup?: GovukField\n  errorMessage?: { text: string }\n}\n\nexport type FormEditorGovukFieldBase = Omit<\n  FormEditorGovukField,\n  'errorMessage'\n>\n\nexport type FormEditorGovukFieldBaseKeys = keyof FormEditorGovukFieldBase\n\nexport interface FormEditorCheckbox {\n  text?: string\n  hint?: {\n    text?: string\n  }\n  value?: string\n  divider?: {\n    text?: string\n    hint?: string\n    value?: string\n  }\n}\n\nexport type AdvancedFieldMappingsType = Record<\n  ComponentType,\n  Record<string, string>\n>\n\nexport type HTMLElementOrNull = HTMLElement | null\n\nexport type HTMLInputElementOrNull = HTMLInputElement | null\n\nexport interface ErrorPreviewFieldMappingDef {\n  min?: { fieldName: string; placeholder: string }\n  max?: { fieldName: string; placeholder: string }\n}\n"],"mappings":"","ignoreList":[]}
         
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"types.js","names":[],"sources":["../../../../src/form/form-editor/types.ts"],"sourcesContent":["import { type ComponentType } from '~/src/components/enums.js'\nimport { type ComponentDef } from '~/src/components/types.js'\nimport { type DateDirections, type DateUnits } from '~/src/conditions/enums.js'\nimport {\n  type ConditionWrapperV2,\n  type Item\n} from '~/src/form/form-definition/types.js'\n\n/**\n * Interface for `FormEditor` Joi schema\n */\nexport interface FormEditor {\n  /**\n   * The type of the page\n   */\n  pageType: string\n\n  /**\n   * The type of the question\n   */\n  questionType: string | undefined\n\n  /**\n   * The sub-type of written answer\n   */\n  writtenAnswerSub: string\n\n  /**\n   * The sub-type of date\n   */\n  dateSub: string\n\n  /**\n   * The sub-type of lists\n   */\n  listSub: string\n\n  /**\n   * The name of the question (unique id)\n   */\n  name: string\n\n  /**\n   * The text of the question\n   */\n  question: string\n\n  /**\n   * The hint text of the question\n   */\n  hintText: string\n\n  /**\n   * Denotes if the question is optional\n   */\n  questionOptional: string\n\n  /**\n   * The short description of the question\n   */\n  shortDescription: string\n\n  /**\n   * The value of checkbox to reveal heading and guidance section\n   */\n  pageHeadingAndGuidance: string\n\n  /**\n   * The page heading\n   */\n  pageHeading: string\n\n  /**\n   * The page guidance text\n   */\n  guidanceText: string\n\n  /**\n   * The value of checkbox to reveal repeater section\n   */\n  repeater: string\n\n  /**\n   * The maximum number of repeater items\n   */\n  minItems: number\n\n  /**\n   * The minimum number of repeater items\n   */\n  maxItems: number\n\n  /**\n   * The repeater question set name\n   */\n  questionSetName: string\n\n  /**\n   * The value of radio to reveal declaration text field\n   */\n  needDeclaration: string\n\n  /**\n   * The check answers declaration text\n   */\n  declarationText: string\n\n  /**\n   * The min length a field can have\n   */\n  minLength: string\n\n  /**\n   * The max length a field can have\n   */\n  maxLength: string\n\n  /**\n   * The regex value of a field\n   */\n  regex: string\n\n  /**\n   * The number of rows of a textarea\n   */\n  rows: string\n\n  /**\n   * The classes to be applied to a field\n   */\n  classes: string\n\n  /**\n   * The prefix to be applied to a field\n   */\n  prefix: string\n\n  /**\n   * The suffix to be applied to a field\n   */\n  suffix: string\n\n  /**\n   * The decimal precision of a number field\n   */\n  precision: string\n\n  /**\n   * The lowest number allowed in a field\n   */\n  min: string\n\n  /**\n   * The highest number allowed in a field\n   */\n  max: string\n\n  /**\n   * The maximum days in the future to allow for a date\n   */\n  maxFuture: string\n\n  /**\n   * The maximum days in the past to allow for a date\n   */\n  maxPast: string\n\n  /**\n   * The exact number of files to upload\n   */\n  exactFiles: string\n\n  /**\n   * The minimum number of files to upload\n   */\n  minFiles: string\n\n  /**\n   * The maximum number of files to upload\n   */\n  maxFiles: string\n\n  /**\n   * The type of files for upload\n   */\n  fileTypes: string[]\n\n  /**\n   * The types of document files for upload\n   */\n  documentTypes: string[]\n\n  /**\n   * The types of image files for upload\n   */\n  imageTypes: string[]\n\n  /**\n   * The types of tabular data files for upload\n   */\n  tabularDataTypes: string[]\n\n  /**\n   * The action required from within a sub-section\n   */\n  enhancedAction: string\n\n  /**\n   * Placeholder for inserted section to handle adding/editing radios or checkboxes\n   */\n  radiosOrCheckboxes: string\n\n  /**\n   * The unique id of the radio item\n   */\n  radioId: string\n\n  /**\n   * The display text of the radio item\n   */\n  radioText?: string\n\n  /**\n   * The hint of the radio item\n   */\n  radioHint?: string\n\n  /**\n   * The value of the radio item\n   */\n  radioValue?: string\n\n  /**\n   * The list name to be applied to a field (if applicable)\n   */\n  list: string\n\n  /**\n   * List items in JSON format, such as for radios ro checkboxes\n   */\n  listItemsData: string\n\n  /**\n   * An array of options for autocomplete\n   */\n  autoCompleteOptions: Item[]\n\n  /**\n   * Set to 'true' is Javascript is enabled\n   */\n  jsEnabled: string\n\n  /**\n   * List item id for conditions\n   */\n  itemId: string\n\n  /**\n   * Relative date period for conditions\n   */\n  period: string\n\n  /**\n   * Relative date unit for conditions\n   */\n  unit: DateUnits\n\n  /**\n   * Relative date direction for conditions\n   */\n  direction: DateDirections\n\n  /**\n   * Denotes if page is an Exit Page\n   */\n  exitPage: boolean\n\n  /**\n   * Denotes if the UK address question supports postcode lookup\n   */\n  usePostcodeLookup: string\n}\n\nexport type FormEditorInputPage = Pick<\n  FormEditor,\n  'pageType' | 'questionType' | 'writtenAnswerSub' | 'dateSub' | 'listSub'\n>\n\nexport type FormEditorInputCheckAnswersSettings = Pick<\n  FormEditor,\n  'needDeclaration' | 'declarationText'\n>\n\nexport type FormEditorInputQuestion = Pick<\n  FormEditor,\n  | 'questionType'\n  | 'name'\n  | 'question'\n  | 'shortDescription'\n  | 'hintText'\n  | 'questionOptional'\n  | 'minLength'\n  | 'maxLength'\n  | 'regex'\n  | 'rows'\n  | 'classes'\n  | 'prefix'\n  | 'suffix'\n  | 'precision'\n  | 'min'\n  | 'max'\n  | 'maxFuture'\n  | 'maxPast'\n  | 'exactFiles'\n  | 'minFiles'\n  | 'maxFiles'\n  | 'fileTypes'\n  | 'documentTypes'\n  | 'imageTypes'\n  | 'tabularDataTypes'\n  | 'autoCompleteOptions'\n  | 'enhancedAction'\n  | 'radioId'\n  | 'radioText'\n  | 'radioHint'\n  | 'radioValue'\n  | 'list'\n  | 'listItemsData'\n  | 'jsEnabled'\n  | 'usePostcodeLookup'\n>\n\nexport type FormEditorInputPageSettings = Pick<\n  FormEditor,\n  | 'pageHeadingAndGuidance'\n  | 'pageHeading'\n  | 'guidanceText'\n  | 'repeater'\n  | 'minItems'\n  | 'maxItems'\n  | 'questionSetName'\n  | 'exitPage'\n>\n\nexport type FormEditorInputGuidancePage = Pick<\n  FormEditor,\n  'pageHeading' | 'guidanceText' | 'exitPage'\n>\n\nexport type FormEditorInputQuestionDetails = Pick<\n  FormEditorInputQuestion,\n  | 'question'\n  | 'hintText'\n  | 'shortDescription'\n  | 'questionOptional'\n  | 'questionType'\n  | 'fileTypes'\n  | 'documentTypes'\n  | 'imageTypes'\n  | 'tabularDataTypes'\n  | 'autoCompleteOptions'\n  | 'enhancedAction'\n  | 'radioId'\n  | 'radioText'\n  | 'radioHint'\n  | 'radioValue'\n  | 'listItemsData'\n  | 'jsEnabled'\n>\n\ntype ListValue = string | boolean | number\n\nexport interface ListItem {\n  id?: string\n  text?: string\n  hint?: {\n    text: string\n  }\n  value?: ListValue\n}\n\nexport interface ListLabel {\n  text: string\n  classes: string\n}\n\nexport interface ListElement extends ListItem {\n  readonly id: string\n  text: string\n  value: ListValue\n  label?: ListLabel\n}\n\nexport interface ReadonlyHint {\n  readonly text: string\n}\n\nexport interface ListItemReadonly extends ListElement {\n  readonly text: string\n  readonly hint?: ReadonlyHint\n  readonly value: ListValue\n  readonly label?: ListLabel\n}\n\nexport interface DateItem {\n  name: string\n  classes: string\n}\n\nexport interface ListConflict {\n  conflictItem: {\n    id: string\n    text: string\n  }\n  originalItem?: {\n    id: string\n    text: string\n  }\n  conditionNames: string[]\n  linkableItems: {\n    id?: string\n    text: string\n    value: string | number | boolean\n  }[]\n  closestMatch?: string | number | boolean\n}\n\nexport interface QuestionSessionState {\n  questionType?: ComponentType\n  questionDetails?: Partial<ComponentDef>\n  editRow?: {\n    radioId?: string\n    radioText?: string\n    radioHint?: string\n    radioValue?: ListValue\n    expanded?: boolean\n  }\n  listItems?: ListItem[]\n  isReordering?: boolean\n  lastMovedId?: string\n  lastMoveDirection?: string\n  listConflicts?: ListConflict[]\n}\n\nexport interface ConditionSessionState {\n  id?: string\n  stateId?: string\n  conditionWrapper?: ConditionWrapperV2\n}\n\nexport interface ConditionDetails {\n  pageCondition: string | undefined\n  pageConditionDetails: ConditionWrapperV2 | undefined\n  pageConditionPresentationString: string | null\n}\n\nexport interface GovukFieldItem {\n  text?: string\n  value?: string\n  checked?: boolean\n  hint?: { text?: string; html?: string; classes?: string }\n}\n\nexport interface GovukSummaryListRow {\n  key?: {\n    text?: string\n    classes?: string\n  }\n  value?: {\n    text?: string\n    html?: string\n    classes?: string\n  }\n}\n\nexport interface GovukField {\n  id?: string\n  name?: string\n  idPrefix?: string\n  fieldset?: {\n    legend?: { text?: string; isPageHeading?: boolean; classes?: string }\n  }\n  value?: string | boolean | number | string[] | Item[]\n  classes?: string\n  label?: {\n    text?: string\n    html?: string\n    classes?: string\n    isPageHeading?: boolean\n  }\n  hint?: { text?: string; html?: string; classes?: string }\n  items?: GovukFieldItem[]\n  rows?: number\n  type?: string\n  customTemplate?: string\n}\n\nexport type GovukFieldQuestionOptional = Omit<GovukField, 'name' | 'items'> & {\n  name: 'questionOptional'\n  items: [\n    {\n      text?: string\n      value?: string\n      checked: boolean\n    }\n  ]\n}\n\nexport type GovukFieldUsePostcodeLookup = Omit<GovukField, 'name' | 'items'> & {\n  name: 'usePostcodeLookup'\n  items: [\n    {\n      text?: string\n      value?: string\n      checked: boolean\n    }\n  ]\n}\n\nexport type GovukStringField = Omit<GovukField, 'value'> & { value: string }\n\nexport interface FormEditorGovukField {\n  question?: GovukField\n  hintText?: GovukField\n  questionOptional?: GovukField\n  shortDescription?: GovukField\n  fileTypes?: GovukField\n  documentTypes?: GovukField\n  imageTypes?: GovukField\n  tabularDataTypes?: GovukField\n  radiosOrCheckboxes?: GovukField\n  autoCompleteOptions?: GovukField\n  usePostcodeLookup?: GovukField\n  errorMessage?: { text: string }\n}\n\nexport type FormEditorGovukFieldBase = Omit<\n  FormEditorGovukField,\n  'errorMessage'\n>\n\nexport type FormEditorGovukFieldBaseKeys = keyof FormEditorGovukFieldBase\n\nexport interface FormEditorCheckbox {\n  text?: string\n  hint?: {\n    text?: string\n  }\n  value?: string\n  divider?: {\n    text?: string\n    hint?: string\n    value?: string\n  }\n}\n\nexport type AdvancedFieldMappingsType = Record<\n  ComponentType,\n  Record<string, string>\n>\n\nexport type HTMLElementOrNull = HTMLElement | null\n\nexport type HTMLInputElementOrNull = HTMLInputElement | null\n\nexport interface ErrorPreviewFieldMappingDef {\n  min?: { fieldName: string; placeholder: string }\n  max?: { fieldName: string; placeholder: string }\n}\n"],"mappings":"","ignoreList":[]}
         
     | 
| 
         @@ -59,7 +59,7 @@ export class QuestionPreviewElements implements ListElements { 
     | 
|
| 
       59 
59 
     | 
    
         
             
                /**
         
     | 
| 
       60 
60 
     | 
    
         
             
                 * @param {BaseSettings} baseSettings
         
     | 
| 
       61 
61 
     | 
    
         
             
                 */
         
     | 
| 
       62 
     | 
    
         
            -
                constructor({ question, hintText, optional, shortDesc, items, content }: BaseSettings);
         
     | 
| 
      
 62 
     | 
    
         
            +
                constructor({ question, hintText, optional, shortDesc, usePostcodeLookup, items, content }: BaseSettings);
         
     | 
| 
       63 
63 
     | 
    
         
             
                /**
         
     | 
| 
       64 
64 
     | 
    
         
             
                 * @protected
         
     | 
| 
       65 
65 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -84,6 +84,11 @@ export class QuestionPreviewElements implements ListElements { 
     | 
|
| 
       84 
84 
     | 
    
         
             
                 * @private
         
     | 
| 
       85 
85 
     | 
    
         
             
                 */
         
     | 
| 
       86 
86 
     | 
    
         
             
                private _items;
         
     | 
| 
      
 87 
     | 
    
         
            +
                /**
         
     | 
| 
      
 88 
     | 
    
         
            +
                 * @protected
         
     | 
| 
      
 89 
     | 
    
         
            +
                 * @type {boolean}
         
     | 
| 
      
 90 
     | 
    
         
            +
                 */
         
     | 
| 
      
 91 
     | 
    
         
            +
                protected _usePostcodeLookup: boolean;
         
     | 
| 
       87 
92 
     | 
    
         
             
                afterInputsHTML: string;
         
     | 
| 
       88 
93 
     | 
    
         
             
                /**
         
     | 
| 
       89 
94 
     | 
    
         
             
                 * @returns {BaseSettings}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/__stubs__/preview.js"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/__stubs__/preview.js"],"names":[],"mappings":"AA8PA;;;;GAIG;AACH,6DAJW,OAAO,CAAC,YAAY,CAAC,cACrB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,C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AG;QAAC,mBAAmB,EAAE,MAAM,CAAA;KAAC,EAKtD;IADC,4BAA8C;CAEjD;AAED;;GAEG;AACH;IAOE;;;;;;OAMG;IACH,qBANW,MAAM,aACN,MAAM,eACN,OAAO,mBACP,MAAM,gBACN,OAAO,EAcjB;IAzBD,iBAAQ;IACR,gBAAO;IACP,oBAAU;IACV,uBAAc;IACd,qBAAW;CAsBZ;AAED,2BAAuC,YAAY,CAQjD;;;;;;;;kCA+D8K,yCAAyC;uCAAzC,yCAAyC;yBAhRhM,4CAA4C;sCAgR2G,yCAAyC;mCAAzC,yCAAyC;kCAAzC,yCAAyC;2CAD/K,wCAAwC;kCAC8F,yCAAyC;0CAAzC,yCAAyC;0CAAzC,yCAAyC;AA7DzN,uBAAgB,sCAAsC,CAAA;AACtD,uBAAgB,sCAAsC,CAAA;AACtD,uBAAgB,sCAAsC,CAAA;AACtD,uBAAgB,sCAAsC,CAAA;AAEtD,gCAAoC,YAAY,CA4B9C"}
         
     | 
| 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import Joi, { type ArraySchema } from 'joi';
         
     | 
| 
       2 
     | 
    
         
            -
            import { type FormEditorInputCheckAnswersSettings, type FormEditorInputPage, type FormEditorInputPageSettings, type FormEditorInputQuestion, type GovukField, type GovukFieldQuestionOptional, type GovukStringField } from '../../form/form-editor/types.js';
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { type FormEditorInputCheckAnswersSettings, type FormEditorInputPage, type FormEditorInputPageSettings, type FormEditorInputQuestion, type GovukField, type GovukFieldQuestionOptional, type GovukFieldUsePostcodeLookup, type GovukStringField } from '../../form/form-editor/types.js';
         
     | 
| 
       3 
3 
     | 
    
         
             
            export declare enum QuestionTypeSubGroup {
         
     | 
| 
       4 
4 
     | 
    
         
             
                WrittenAnswerSubGroup = "writtenAnswerSub",
         
     | 
| 
       5 
5 
     | 
    
         
             
                DateSubGroup = "dateSub",
         
     | 
| 
         @@ -150,7 +150,7 @@ export declare const formEditorInputPageSettingsKeys: { 
     | 
|
| 
       150 
150 
     | 
    
         
             
             */
         
     | 
| 
       151 
151 
     | 
    
         
             
            export declare const formEditorInputPageSettingsSchema: Joi.ObjectSchema<FormEditorInputPageSettings>;
         
     | 
| 
       152 
152 
     | 
    
         
             
            export declare function govukFieldValueIsString(govukField: GovukField): govukField is GovukStringField;
         
     | 
| 
       153 
     | 
    
         
            -
            export declare function  
     | 
| 
      
 153 
     | 
    
         
            +
            export declare function govukFieldIsChecked(govukField: GovukField): govukField is GovukFieldQuestionOptional | GovukFieldUsePostcodeLookup;
         
     | 
| 
       154 
154 
     | 
    
         
             
            export declare const allowedErrorTemplateFunctions: string[];
         
     | 
| 
       155 
155 
     | 
    
         
             
            export {};
         
     | 
| 
       156 
156 
     | 
    
         
             
            //# sourceMappingURL=index.d.ts.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/form/form-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,KAAK,WAAW,EAAuB,MAAM,KAAK,CAAA;AAOhE,OAAO,EACL,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAA;AAExC,oBAAY,oBAAoB;IAC9B,qBAAqB,qBAAqB;IAC1C,YAAY,YAAY;IACxB,YAAY,YAAY;CACzB;AAED,eAAO,MAAM,cAAc,0BAG6C,CAAA;AAExE,eAAO,MAAM,kBAAkB,0BAe2C,CAAA;AAE1E,eAAO,MAAM,sBAAsB,0BAkBmC,CAAA;AAEtE,eAAO,MAAM,sBAAsB,0BAOmB,CAAA;AAEtD,eAAO,MAAM,aAAa,0BAE0C,CAAA;AACpE,eAAO,MAAM,aAAa,0BAS0B,CAAA;AA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EA4GtB,eAAe,CAAA;AAErB,eAAO,MAAM,yBAAyB;UACvB,MAAM;WAAS,MAAM;IAiBvB,CAAA;AAEb,eAAO,MAAM,yBAAyB;;cAnBvB,MAAM;eAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDnC,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, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/form/form-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,KAAK,WAAW,EAAuB,MAAM,KAAK,CAAA;AAOhE,OAAO,EACL,KAAK,mCAAmC,EACxC,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAA;AAExC,oBAAY,oBAAoB;IAC9B,qBAAqB,qBAAqB;IAC1C,YAAY,YAAY;IACxB,YAAY,YAAY;CACzB;AAED,eAAO,MAAM,cAAc,0BAG6C,CAAA;AAExE,eAAO,MAAM,kBAAkB,0BAe2C,CAAA;AAE1E,eAAO,MAAM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C,CAAA;CAC7C;AAED,UAAU,eAAgB,SAAQ,GAAG,CAAC,IAAI;IACxC,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,OAAO,CAAC,CAAA;CACnC;AAED,eAAO,MAAM,eAAe,EA4GtB,eAAe,CAAA;AAErB,eAAO,MAAM,yBAAyB;UACvB,MAAM;WAAS,MAAM;IAiBvB,CAAA;AAEb,eAAO,MAAM,yBAAyB;;cAnBvB,MAAM;eAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDnC,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,mBAAmB,CACjC,UAAU,EAAE,UAAU,GACrB,UAAU,IAAI,0BAA0B,GAAG,2BAA2B,CASxE;AAGD,eAAO,MAAM,6BAA6B,UAA+B,CAAA"}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/autocomplete.js"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/autocomplete.js"],"names":[],"mappings":"AAMA;CAqBC;AAED;IAME;;;OAGG;IACH,kCAHW,oBAAoB,oBACpB,gBAAgB,EAK1B;IAZD;;;OAGG;IACH,0BAAsB;IAUtB,sCAEC;IAED;;OAEG;IACH,8BAFW,MAAM,QAkBhB;IAED;;;;;;;;;MASC;CACF;yBA5EwB,4CAA4C;iCAgFrC,iCAAiC;0CACa,yCAAyC;sCAAzC,yCAAyC"}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"page-controller.d.ts","sourceRoot":"","sources":["../../../../../../src/form/form-editor/preview/controller/page-controller.js"],"names":[],"mappings":"AAiBA; 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"page-controller.d.ts","sourceRoot":"","sources":["../../../../../../src/form/form-editor/preview/controller/page-controller.js"],"names":[],"mappings":"AAiBA;IA0ME;;;;;OAKG;IACH,4CAKC;IA7MD;;;;;OAKG;IACH,wBALW,YAAY,EAAE,YACd,oBAAoB,cACpB,cAAc,YACd,YAAY,EAkBtB;IAmCD;;OAEG;IACH,sBAFa,OAAO,CAgBnB;IAED;;;OAGG;IACH,qCAHW,gBAAgB,GACd,iBAAiB,CAgC7B;IAED;;OAEG;IACH,8BAFa,OAAO,CASnB;IAwBD,uCAQC;IAaD;;;kBAUC;IAED,6CAaC;;CAcF;0CAvOyC,mEAAmE;sCA4OxE,2CAA2C;uCAFY,yCAAyC;kCAIpG,2BAA2B;0CAJgC,yCAAyC;oCAGlG,qCAAqC;kCAHoB,yCAAyC"}
         
     | 
| 
         @@ -3,20 +3,6 @@ 
     | 
|
| 
       3 
3 
     | 
    
         
             
             * @abstract
         
     | 
| 
       4 
4 
     | 
    
         
             
             */
         
     | 
| 
       5 
5 
     | 
    
         
             
            export class FieldsetQuestion extends Question {
         
     | 
| 
       6 
     | 
    
         
            -
                get renderInput(): {
         
     | 
| 
       7 
     | 
    
         
            -
                    id: string;
         
     | 
| 
       8 
     | 
    
         
            -
                    name: string;
         
     | 
| 
       9 
     | 
    
         
            -
                    content?: string | undefined;
         
     | 
| 
       10 
     | 
    
         
            -
                    attributes?: Record<string, string> | undefined;
         
     | 
| 
       11 
     | 
    
         
            -
                    label?: import("./types.js").DefaultComponent | undefined;
         
     | 
| 
       12 
     | 
    
         
            -
                    hint: import("./types.js").DefaultComponent;
         
     | 
| 
       13 
     | 
    
         
            -
                    fieldset: import("./types.js").GovukFieldset;
         
     | 
| 
       14 
     | 
    
         
            -
                    items?: import("../types.js").ListItemReadonly[] | import("../types.js").DateItem[];
         
     | 
| 
       15 
     | 
    
         
            -
                    text?: string | undefined;
         
     | 
| 
       16 
     | 
    
         
            -
                    formGroup?: import("../macros/types.js").FormGroupAfterInput | undefined;
         
     | 
| 
       17 
     | 
    
         
            -
                    type?: "text" | "number" | "boolean" | undefined;
         
     | 
| 
       18 
     | 
    
         
            -
                    classes: string;
         
     | 
| 
       19 
     | 
    
         
            -
                };
         
     | 
| 
       20 
6 
     | 
    
         
             
            }
         
     | 
| 
       21 
7 
     | 
    
         
             
            import { Question } from '../../../form/form-editor/preview/question.js';
         
     | 
| 
       22 
8 
     | 
    
         
             
            //# sourceMappingURL=fieldset-question.d.ts.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"fieldset-question.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/fieldset-question.js"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"fieldset-question.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/fieldset-question.js"],"names":[],"mappings":"AAKA;;;GAGG;AACH;CAoBC;yBA3BwB,4CAA4C"}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/helpers.js"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/helpers.js"],"names":[],"mappings":"AA2DA;;;;GAIG;AACH,gEAJW,gBAAgB,cAChB,cAAc,GACZ,CAAC,SAAS,EAAE,YAAY,KAAK,QAAQ,CA0CjD;sCAGsD,yCAAyC;oCAG7D,qCAAqC;kCACvC,2BAA2B;8BAH/B,4CAA4C"}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/preview.js"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/preview.js"],"names":[],"mappings":"AAIA;;GAEG;AACH;IACE,oBAAmC;IA2CnC;;;OAGG;IAEH;;;OAGG;IACH,0BAHW,gBAAgB,oBAChB,gBAAgB,EA0B1B;IA3ED;;OAEG;IACH,KAFW,MAAM,GAAG,SAAS,CAEd;IACf;;;OAGG;IACH,eAFU,aAAa,CAEc;IACrC;;;;OAIG;IACH,6BAHU,MAAM,CAGM;IACtB;;;OAGG;IACH,sBAHW,MAAM,GAAC,IAAI,CAGL;IACjB;;;;OAIG;IACH,sBAHU,MAAM,CAGD;IACf;;;OAGG;IACH,6BAHU,gBAAgB,CAGT;IAEjB;;;OAGG;IACH,yBAHU,gBAAgB,CAGb;IACb;;;OAGG;IACH,wBAHU,OAAO,CAGG;IAkBlB;;;OAGG;IACH,kBAAyB;IACzB;;;OAGG;IACH,kBAAyB;IAS3B;;;;OAIG;IACH,gCAJW,MAAM,GACJ,MAAM,CAKlB;IAED,wBAKC;IAED;;;OAGG;IACH,uBAFU,gBAAgB,CAQzB;IAED;;;OAGG;IACH,0BAFU,aAAa,CAUtB;IAED;;OAEG;IACH,0BAFa,OAAO,CAAC,iBAAiB,CAAC,CAItC;IAED;;;;OAIG;IACH,0BAHa,iBAAiB,CAS7B;IAED;;OAEG;IACH,mBAFU,iBAAiB,CAO1B;IAED,eAEC;IASD;;OAEG;IACH,oBAFW,MAAM,GAAG,SAAS,EAK5B;IAbD;;OAEG;IACH,gBAFU,MAAM,GAAG,SAAS,CAI3B;IAcD;;OAEG;IACH,oBAFW,OAAO,EAKjB;IAVD,gBAKW,OAAO,CAHjB;IAiBD;;OAEG;IACH,qBAFW,MAAM,GAAG,IAAI,EAKvB;IAbD;;OAEG;IACH,iBAFU,MAAM,GAAG,IAAI,CAItB;IAiBD;;OAEG;IACH,cAFY,MAAM,GAAG,SAAS,EAI7B;IAZD;;OAEG;IACH,UAFW,MAAM,GAAG,SAAS,CAI5B;IASD;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,2BAEC;CACF;8BAvO6B,2BAA2B;sCA0OkD,yCAAyC;sCAAzC,yCAAyC;sCAAzC,yCAAyC;mCAAzC,yCAAyC;uCAAzC,yCAAyC"}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"select-sortable.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/select-sortable.js"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"select-sortable.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/select-sortable.js"],"names":[],"mappings":"AAMA;IAGE,2DAIC;IAOD;oBAE6B;YAAE,UAAU,EAAE;gBAAE,IAAI,EAAE,MAAM,CAAA;aAAE,CAAA;SAAC;;;;;;;MAuB3D;CACF;qCA5CoC,iDAAiD"}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/select.js"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/select.js"],"names":[],"mappings":"AAMA;IAeE;oBAE6B;YAAE,UAAU,EAAE;gBAAE,IAAI,EAAE,MAAM,CAAA;aAAE,CAAA;SAAC;;;;;;;MAuB3D;CACF;6BA7C4B,wCAAwC;sCAgDhC,iCAAiC"}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,gDAAgD,CAAA;AAC1F,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AACrF,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,iDAAiD,CAAA;AAC3F,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,iDAAiD,CAAA;AAC3F,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,+CAA+C,CAAA;AACvF,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACzF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAC1E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,kDAAkD,CAAA;AAC7F,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,mDAAmD,CAAA;AAC/F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACzF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AACrF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAC/E,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA; 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,gDAAgD,CAAA;AAC1F,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AACrF,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,iDAAiD,CAAA;AAC3F,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,iDAAiD,CAAA;AAC3F,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,+CAA+C,CAAA;AACvF,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACzF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,4CAA4C,CAAA;AAC1E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,kDAAkD,CAAA;AAC7F,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,mDAAmD,CAAA;AAC/F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACzF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AACrF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAC/E,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,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M,MAAM,aAAa,GAAG,qBAAqB,GAAG,iBAAiB,CAAA;AAErE,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,MAAM,CAAA;CAC1E;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAC7E;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,GAAG,IAAI,CAAA;CACvE;AAED,MAAM,MAAM,QAAQ,GAAG,gBAAgB,GAAG,YAAY,CAAA;AAEtD,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,oBAAqB,SAAQ,uBAAuB;IACnE,UAAU,EAAE,OAAO,CAAA;IACnB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,WAAW,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IAClE,WAAW,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,eAAe,GACvB,iBAAiB,GACjB,oBAAoB,GACpB,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,QAAQ,GACR,qBAAqB,GACrB,sBAAsB,GACtB,mBAAmB,GACnB,iBAAiB,GACjB,oBAAoB,CAAA"}
         
     | 
| 
         @@ -1,4 +1,41 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            /**
         
     | 
| 
      
 2 
     | 
    
         
            +
             * @implements {QuestionElements}
         
     | 
| 
      
 3 
     | 
    
         
            +
             */
         
     | 
| 
      
 4 
     | 
    
         
            +
            export class UkAddressComponentPreviewElements extends QuestionComponentElements implements QuestionElements {
         
     | 
| 
      
 5 
     | 
    
         
            +
                /**
         
     | 
| 
      
 6 
     | 
    
         
            +
                 * @param {UkAddressFieldComponent} component
         
     | 
| 
      
 7 
     | 
    
         
            +
                 */
         
     | 
| 
      
 8 
     | 
    
         
            +
                constructor(component: UkAddressFieldComponent);
         
     | 
| 
      
 9 
     | 
    
         
            +
                _usePostcodeLookup: boolean | undefined;
         
     | 
| 
      
 10 
     | 
    
         
            +
            }
         
     | 
| 
       1 
11 
     | 
    
         
             
            export class UkAddressQuestion extends FieldsetQuestion {
         
     | 
| 
      
 12 
     | 
    
         
            +
                _usePostcodeLookup: boolean;
         
     | 
| 
      
 13 
     | 
    
         
            +
                /**
         
     | 
| 
      
 14 
     | 
    
         
            +
                 * @param {boolean} val
         
     | 
| 
      
 15 
     | 
    
         
            +
                 */
         
     | 
| 
      
 16 
     | 
    
         
            +
                set usePostcodeLookup(val: boolean);
         
     | 
| 
      
 17 
     | 
    
         
            +
                get usePostcodeLookup(): boolean;
         
     | 
| 
      
 18 
     | 
    
         
            +
                /**
         
     | 
| 
      
 19 
     | 
    
         
            +
                 * @protected
         
     | 
| 
      
 20 
     | 
    
         
            +
                 */
         
     | 
| 
      
 21 
     | 
    
         
            +
                protected _renderInput(): {
         
     | 
| 
      
 22 
     | 
    
         
            +
                    usePostcodeLookup: boolean;
         
     | 
| 
      
 23 
     | 
    
         
            +
                    id?: string;
         
     | 
| 
      
 24 
     | 
    
         
            +
                    name?: string;
         
     | 
| 
      
 25 
     | 
    
         
            +
                    content?: string;
         
     | 
| 
      
 26 
     | 
    
         
            +
                    attributes?: Record<string, string>;
         
     | 
| 
      
 27 
     | 
    
         
            +
                    label?: import("../../../form/form-editor/preview/types.js").DefaultComponent;
         
     | 
| 
      
 28 
     | 
    
         
            +
                    hint?: import("../../../form/form-editor/preview/types.js").DefaultComponent;
         
     | 
| 
      
 29 
     | 
    
         
            +
                    fieldset?: import("../../../form/form-editor/preview/types.js").GovukFieldset;
         
     | 
| 
      
 30 
     | 
    
         
            +
                    items?: import("../types.js").ListItemReadonly[] | import("../types.js").DateItem[];
         
     | 
| 
      
 31 
     | 
    
         
            +
                    text?: string;
         
     | 
| 
      
 32 
     | 
    
         
            +
                    formGroup?: import("../macros/types.js").FormGroupAfterInput;
         
     | 
| 
      
 33 
     | 
    
         
            +
                    type?: "text" | "number" | "boolean";
         
     | 
| 
      
 34 
     | 
    
         
            +
                    classes?: string;
         
     | 
| 
      
 35 
     | 
    
         
            +
                };
         
     | 
| 
       2 
36 
     | 
    
         
             
            }
         
     | 
| 
      
 37 
     | 
    
         
            +
            import type { QuestionElements } from '../../../form/form-editor/preview/types.js';
         
     | 
| 
      
 38 
     | 
    
         
            +
            import { QuestionComponentElements } from '../../../form/form-editor/preview/question.js';
         
     | 
| 
      
 39 
     | 
    
         
            +
            import type { UkAddressFieldComponent } from '../../../components/types.js';
         
     | 
| 
       3 
40 
     | 
    
         
             
            import { FieldsetQuestion } from '../../../form/form-editor/preview/fieldset-question.js';
         
     | 
| 
       4 
41 
     | 
    
         
             
            //# sourceMappingURL=uk-address.d.ts.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"uk-address.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/uk-address.js"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"uk-address.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/uk-address.js"],"names":[],"mappings":"AAKA;;GAEG;AACH;IACE;;OAEG;IACH,uBAFW,uBAAuB,EAKjC;IADC,wCAA6D;CAahE;AAED;IAOE,4BAA0B;IAe1B;;OAEG;IACH,2BAFW,OAAO,EAKjB;IAVD,yBAKW,OAAO,CAHjB;IAUD;;OAEG;IACH;;;;;;;;;;;;;;MAKC;CACF;sCAGoE,yCAAyC;0CApEpE,4CAA4C;6CAqE1C,2BAA2B;iCAvEtC,qDAAqD"}
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/form/form-editor/preview/utils.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,2CAHW,MAAM,MACL,MAAM,GAAG,SAAS,UAK7B"}
         
     | 
| 
         @@ -364,6 +364,16 @@ export type GovukFieldQuestionOptional = Omit<GovukField, 'name' | 'items'> & { 
     | 
|
| 
       364 
364 
     | 
    
         
             
                    }
         
     | 
| 
       365 
365 
     | 
    
         
             
                ];
         
     | 
| 
       366 
366 
     | 
    
         
             
            };
         
     | 
| 
      
 367 
     | 
    
         
            +
            export type GovukFieldUsePostcodeLookup = Omit<GovukField, 'name' | 'items'> & {
         
     | 
| 
      
 368 
     | 
    
         
            +
                name: 'usePostcodeLookup';
         
     | 
| 
      
 369 
     | 
    
         
            +
                items: [
         
     | 
| 
      
 370 
     | 
    
         
            +
                    {
         
     | 
| 
      
 371 
     | 
    
         
            +
                        text?: string;
         
     | 
| 
      
 372 
     | 
    
         
            +
                        value?: string;
         
     | 
| 
      
 373 
     | 
    
         
            +
                        checked: boolean;
         
     | 
| 
      
 374 
     | 
    
         
            +
                    }
         
     | 
| 
      
 375 
     | 
    
         
            +
                ];
         
     | 
| 
      
 376 
     | 
    
         
            +
            };
         
     | 
| 
       367 
377 
     | 
    
         
             
            export type GovukStringField = Omit<GovukField, 'value'> & {
         
     | 
| 
       368 
378 
     | 
    
         
             
                value: string;
         
     | 
| 
       369 
379 
     | 
    
         
             
            };
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/form/form-editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,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CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACF;AAED,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAC5C,aAAa,EACb,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CACvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,IAAI,CAAA;AAElD,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,IAAI,CAAA;AAE5D,MAAM,WAAW,2BAA2B;IAC1C,GAAG,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;IAChD,GAAG,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD"}
         
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/form/form-editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,IAAI,EACV,MAAM,qCAAqC,CAAA;AAE5C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAEhC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IAExB;;OAEG;IACH,O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ACd,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACF;AAED,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAC5C,aAAa,EACb,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CACvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,IAAI,CAAA;AAElD,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,IAAI,CAAA;AAE5D,MAAM,WAAW,2BAA2B;IAC1C,GAAG,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;IAChD,GAAG,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD"}
         
     | 
    
        package/package.json
    CHANGED
    
    
| 
         @@ -96,18 +96,32 @@ export class QuestionPreviewElements { 
     | 
|
| 
       96 
96 
     | 
    
         
             
               * @private
         
     | 
| 
       97 
97 
     | 
    
         
             
               */
         
     | 
| 
       98 
98 
     | 
    
         
             
              _items = []
         
     | 
| 
      
 99 
     | 
    
         
            +
              /**
         
     | 
| 
      
 100 
     | 
    
         
            +
               * @protected
         
     | 
| 
      
 101 
     | 
    
         
            +
               * @type {boolean}
         
     | 
| 
      
 102 
     | 
    
         
            +
               */
         
     | 
| 
      
 103 
     | 
    
         
            +
              _usePostcodeLookup = false
         
     | 
| 
       99 
104 
     | 
    
         
             
              afterInputsHTML = '<div class="govuk-inset-text">No items added yet.</div>'
         
     | 
| 
       100 
105 
     | 
    
         | 
| 
       101 
106 
     | 
    
         
             
              /**
         
     | 
| 
       102 
107 
     | 
    
         
             
               * @param {BaseSettings} baseSettings
         
     | 
| 
       103 
108 
     | 
    
         
             
               */
         
     | 
| 
       104 
     | 
    
         
            -
              constructor({ 
     | 
| 
      
 109 
     | 
    
         
            +
              constructor({
         
     | 
| 
      
 110 
     | 
    
         
            +
                question,
         
     | 
| 
      
 111 
     | 
    
         
            +
                hintText,
         
     | 
| 
      
 112 
     | 
    
         
            +
                optional,
         
     | 
| 
      
 113 
     | 
    
         
            +
                shortDesc,
         
     | 
| 
      
 114 
     | 
    
         
            +
                usePostcodeLookup,
         
     | 
| 
      
 115 
     | 
    
         
            +
                items,
         
     | 
| 
      
 116 
     | 
    
         
            +
                content
         
     | 
| 
      
 117 
     | 
    
         
            +
              }) {
         
     | 
| 
       105 
118 
     | 
    
         
             
                this._question = question
         
     | 
| 
       106 
119 
     | 
    
         
             
                this._hintText = hintText
         
     | 
| 
       107 
120 
     | 
    
         
             
                this._optional = optional
         
     | 
| 
       108 
121 
     | 
    
         
             
                this._shortDesc = shortDesc
         
     | 
| 
       109 
122 
     | 
    
         
             
                this._items = items
         
     | 
| 
       110 
123 
     | 
    
         
             
                this._content = content
         
     | 
| 
      
 124 
     | 
    
         
            +
                this._usePostcodeLookup = usePostcodeLookup ?? false
         
     | 
| 
       111 
125 
     | 
    
         
             
              }
         
     | 
| 
       112 
126 
     | 
    
         | 
| 
       113 
127 
     | 
    
         
             
              /**
         
     | 
| 
         @@ -119,6 +133,7 @@ export class QuestionPreviewElements { 
     | 
|
| 
       119 
133 
     | 
    
         
             
                  hintText: this._hintText,
         
     | 
| 
       120 
134 
     | 
    
         
             
                  optional: this._optional,
         
     | 
| 
       121 
135 
     | 
    
         
             
                  shortDesc: this._shortDesc,
         
     | 
| 
      
 136 
     | 
    
         
            +
                  usePostcodeLookup: this._usePostcodeLookup,
         
     | 
| 
       122 
137 
     | 
    
         
             
                  items: this._items,
         
     | 
| 
       123 
138 
     | 
    
         
             
                  content: this._content
         
     | 
| 
       124 
139 
     | 
    
         
             
                }
         
     | 
| 
         @@ -12,6 +12,7 @@ import { 
     | 
|
| 
       12 
12 
     | 
    
         
             
              type FormEditorInputQuestion,
         
     | 
| 
       13 
13 
     | 
    
         
             
              type GovukField,
         
     | 
| 
       14 
14 
     | 
    
         
             
              type GovukFieldQuestionOptional,
         
     | 
| 
      
 15 
     | 
    
         
            +
              type GovukFieldUsePostcodeLookup,
         
     | 
| 
       15 
16 
     | 
    
         
             
              type GovukStringField
         
     | 
| 
       16 
17 
     | 
    
         
             
            } from '~/src/form/form-editor/types.js'
         
     | 
| 
       17 
18 
     | 
    
         | 
| 
         @@ -615,10 +616,13 @@ export function govukFieldValueIsString( 
     | 
|
| 
       615 
616 
     | 
    
         
             
              ].includes(`${govukField.name}`)
         
     | 
| 
       616 
617 
     | 
    
         
             
            }
         
     | 
| 
       617 
618 
     | 
    
         | 
| 
       618 
     | 
    
         
            -
            export function  
     | 
| 
      
 619 
     | 
    
         
            +
            export function govukFieldIsChecked(
         
     | 
| 
       619 
620 
     | 
    
         
             
              govukField: GovukField
         
     | 
| 
       620 
     | 
    
         
            -
            ): govukField is GovukFieldQuestionOptional {
         
     | 
| 
       621 
     | 
    
         
            -
              if ( 
     | 
| 
      
 621 
     | 
    
         
            +
            ): govukField is GovukFieldQuestionOptional | GovukFieldUsePostcodeLookup {
         
     | 
| 
      
 622 
     | 
    
         
            +
              if (
         
     | 
| 
      
 623 
     | 
    
         
            +
                govukField.name !== 'questionOptional' &&
         
     | 
| 
      
 624 
     | 
    
         
            +
                govukField.name !== 'usePostcodeLookup'
         
     | 
| 
      
 625 
     | 
    
         
            +
              ) {
         
     | 
| 
       622 
626 
     | 
    
         
             
                return false
         
     | 
| 
       623 
627 
     | 
    
         
             
              }
         
     | 
| 
       624 
628 
     | 
    
         
             
              const checkedValue = govukField.items?.[0].checked
         
     |