@defra/forms-model 3.0.148 → 3.0.150
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/components/component-types.js +0 -8
- package/dist/module/components/component-types.js.map +1 -1
- package/dist/module/components/enums.js +0 -1
- package/dist/module/components/enums.js.map +1 -1
- package/dist/module/components/types.js.map +1 -1
- package/dist/types/components/component-types.d.ts.map +1 -1
- package/dist/types/components/enums.d.ts +0 -1
- package/dist/types/components/enums.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +4 -7
- package/dist/types/components/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/component-types.ts +0 -9
- package/src/components/enums.ts +0 -1
- package/src/components/types.ts +0 -8
@@ -174,14 +174,6 @@ export const ComponentTypes = [{
|
|
174
174
|
content: '',
|
175
175
|
options: {},
|
176
176
|
schema: {}
|
177
|
-
}, {
|
178
|
-
name: 'FlashCard',
|
179
|
-
type: 'FlashCard',
|
180
|
-
title: 'Flash card',
|
181
|
-
subType: 'content',
|
182
|
-
options: {},
|
183
|
-
schema: {},
|
184
|
-
list: ''
|
185
177
|
}, {
|
186
178
|
name: 'List',
|
187
179
|
type: 'List',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"component-types.js","names":["ComponentTypes","name","type","title","subType","hint","options","schema","list","content"],"sources":["../../../src/components/component-types.ts"],"sourcesContent":["import { type ComponentDef } from '~/src/components/types.js'\n\nexport const ComponentTypes: ComponentDef[] = [\n {\n name: 'TextField',\n type: 'TextField',\n title: 'Text field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'MultilineTextField',\n type: 'MultilineTextField',\n title: 'Multiline text field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'YesNoField',\n type: 'YesNoField',\n title: 'Yes/No field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'DateField',\n type: 'DateField',\n title: 'Date field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'TimeField',\n type: 'TimeField',\n title: 'Time field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'DateTimeField',\n type: 'DateTimeField',\n title: 'Date time field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'DatePartsField',\n type: 'DatePartsField',\n title: 'Date parts field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'DateTimePartsField',\n type: 'DateTimePartsField',\n title: 'Date time parts field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'MonthYearField',\n type: 'MonthYearField',\n title: 'Month year field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'SelectField',\n type: 'SelectField',\n title: 'Select field',\n subType: 'listField',\n options: {},\n schema: {},\n list: ''\n },\n {\n name: 'AutocompleteField',\n type: 'AutocompleteField',\n title: 'Autocomplete field',\n subType: 'listField',\n options: {},\n schema: {},\n list: ''\n },\n {\n name: 'RadiosField',\n type: 'RadiosField',\n title: 'Radios field',\n subType: 'listField',\n options: {},\n schema: {},\n list: ''\n },\n {\n name: 'CheckboxesField',\n type: 'CheckboxesField',\n title: 'Checkboxes field',\n subType: 'listField',\n options: {},\n schema: {},\n list: ''\n },\n {\n name: 'NumberField',\n type: 'NumberField',\n title: 'Number field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'UkAddressField',\n type: 'UkAddressField',\n title: 'UK address field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'TelephoneNumberField',\n type: 'TelephoneNumberField',\n title: 'Telephone number field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'EmailAddressField',\n type: 'EmailAddressField',\n title: 'Email address field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'FileUploadField',\n type: 'FileUploadField',\n title: 'File upload field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'Para',\n type: 'Para',\n title: 'Paragraph',\n subType: 'content',\n content: '',\n options: {},\n schema: {}\n },\n {\n name: 'Html',\n type: 'Html',\n title: 'Html',\n subType: 'content',\n content: '',\n options: {},\n schema: {}\n },\n {\n name: 'InsetText',\n type: 'InsetText',\n title: 'Inset text',\n subType: 'content',\n content: '',\n options: {},\n schema: {}\n },\n {\n name: 'Details',\n type: 'Details',\n title: 'Details',\n subType: 'content',\n content: '',\n options: {},\n schema: {}\n },\n {\n name: '
|
1
|
+
{"version":3,"file":"component-types.js","names":["ComponentTypes","name","type","title","subType","hint","options","schema","list","content"],"sources":["../../../src/components/component-types.ts"],"sourcesContent":["import { type ComponentDef } from '~/src/components/types.js'\n\nexport const ComponentTypes: ComponentDef[] = [\n {\n name: 'TextField',\n type: 'TextField',\n title: 'Text field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'MultilineTextField',\n type: 'MultilineTextField',\n title: 'Multiline text field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'YesNoField',\n type: 'YesNoField',\n title: 'Yes/No field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'DateField',\n type: 'DateField',\n title: 'Date field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'TimeField',\n type: 'TimeField',\n title: 'Time field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'DateTimeField',\n type: 'DateTimeField',\n title: 'Date time field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'DatePartsField',\n type: 'DatePartsField',\n title: 'Date parts field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'DateTimePartsField',\n type: 'DateTimePartsField',\n title: 'Date time parts field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'MonthYearField',\n type: 'MonthYearField',\n title: 'Month year field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'SelectField',\n type: 'SelectField',\n title: 'Select field',\n subType: 'listField',\n options: {},\n schema: {},\n list: ''\n },\n {\n name: 'AutocompleteField',\n type: 'AutocompleteField',\n title: 'Autocomplete field',\n subType: 'listField',\n options: {},\n schema: {},\n list: ''\n },\n {\n name: 'RadiosField',\n type: 'RadiosField',\n title: 'Radios field',\n subType: 'listField',\n options: {},\n schema: {},\n list: ''\n },\n {\n name: 'CheckboxesField',\n type: 'CheckboxesField',\n title: 'Checkboxes field',\n subType: 'listField',\n options: {},\n schema: {},\n list: ''\n },\n {\n name: 'NumberField',\n type: 'NumberField',\n title: 'Number field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'UkAddressField',\n type: 'UkAddressField',\n title: 'UK address field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'TelephoneNumberField',\n type: 'TelephoneNumberField',\n title: 'Telephone number field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'EmailAddressField',\n type: 'EmailAddressField',\n title: 'Email address field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'FileUploadField',\n type: 'FileUploadField',\n title: 'File upload field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n },\n {\n name: 'Para',\n type: 'Para',\n title: 'Paragraph',\n subType: 'content',\n content: '',\n options: {},\n schema: {}\n },\n {\n name: 'Html',\n type: 'Html',\n title: 'Html',\n subType: 'content',\n content: '',\n options: {},\n schema: {}\n },\n {\n name: 'InsetText',\n type: 'InsetText',\n title: 'Inset text',\n subType: 'content',\n content: '',\n options: {},\n schema: {}\n },\n {\n name: 'Details',\n type: 'Details',\n title: 'Details',\n subType: 'content',\n content: '',\n options: {},\n schema: {}\n },\n {\n name: 'List',\n type: 'List',\n title: 'List',\n subType: 'content',\n options: {},\n schema: {},\n list: ''\n },\n {\n name: 'WebsiteField',\n type: 'WebsiteField',\n title: 'Website field',\n subType: 'field',\n hint: '',\n options: {},\n schema: {}\n }\n]\n"],"mappings":"AAEA,OAAO,MAAMA,cAA8B,GAAG,CAC5C;EACEC,IAAI,EAAE,WAAW;EACjBC,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAE,YAAY;EACnBC,OAAO,EAAE,OAAO;EAChBC,IAAI,EAAE,EAAE;EACRC,OAAO,EAAE,CAAC,CAAC;EACXC,MAAM,EAAE,CAAC;AACX,CAAC,EACD;EACEN,IAAI,EAAE,oBAAoB;EAC1BC,IAAI,EAAE,oBAAoB;EAC1BC,KAAK,EAAE,sBAAsB;EAC7BC,OAAO,EAAE,OAAO;EAChBC,IAAI,EAAE,EAAE;EACRC,OAAO,EAAE,CAAC,CAAC;EACXC,MAAM,EAAE,CAAC;AACX,CAAC,EACD;EACEN,IAAI,EAAE,YAAY;EAClBC,IAAI,EAAE,YAAY;EAClBC,KAAK,EAAE,cAAc;EACrBC,OAAO,EAAE,OAAO;EAChBC,IAAI,EAAE,EAAE;EACRC,OAAO,EAAE,CAAC,CAAC;EACXC,MAAM,EAAE,CAAC;AACX,CAAC,EACD;EACEN,IAAI,EAAE,WAAW;EACjBC,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAE,YAAY;EACnBC,OAAO,EAAE,OAAO;EAChBC,IAAI,EAAE,EAAE;EACRC,OAAO,EAAE,CAAC,CAAC;EACXC,MAAM,EAAE,CAAC;AACX,CAAC,EACD;EACEN,IAAI,EAAE,WAAW;EACjBC,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAE,YAAY;EACnBC,OAAO,EAAE,OAAO;EAChBC,IAAI,EAAE,EAAE;EACRC,OAAO,EAAE,CAAC,CAAC;EACXC,MAAM,EAAE,CAAC;AACX,CAAC,EACD;EACEN,IAAI,EAAE,eAAe;EACrBC,IAAI,EAAE,eAAe;EACrBC,KAAK,EAAE,iBAAiB;EACxBC,OAAO,EAAE,OAAO;EAChBC,IAAI,EAAE,EAAE;EACRC,OAAO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ComponentTypeEnum) {
|
|
21
21
|
ComponentTypeEnum["Html"] = "Html";
|
22
22
|
ComponentTypeEnum["InsetText"] = "InsetText";
|
23
23
|
ComponentTypeEnum["Details"] = "Details";
|
24
|
-
ComponentTypeEnum["FlashCard"] = "FlashCard";
|
25
24
|
ComponentTypeEnum["List"] = "List";
|
26
25
|
return ComponentTypeEnum;
|
27
26
|
}({});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enums.js","names":["ComponentTypeEnum"],"sources":["../../../src/components/enums.ts"],"sourcesContent":["export enum ComponentTypeEnum {\n TextField = 'TextField',\n MultilineTextField = 'MultilineTextField',\n YesNoField = 'YesNoField',\n DateField = 'DateField',\n TimeField = 'TimeField',\n DateTimeField = 'DateTimeField',\n DatePartsField = 'DatePartsField',\n MonthYearField = 'MonthYearField',\n DateTimePartsField = 'DateTimePartsField',\n SelectField = 'SelectField',\n AutocompleteField = 'AutocompleteField',\n RadiosField = 'RadiosField',\n CheckboxesField = 'CheckboxesField',\n NumberField = 'NumberField',\n UkAddressField = 'UkAddressField',\n TelephoneNumberField = 'TelephoneNumberField',\n EmailAddressField = 'EmailAddressField',\n FileUploadField = 'FileUploadField',\n Para = 'Para',\n Html = 'Html',\n InsetText = 'InsetText',\n Details = 'Details',\n
|
1
|
+
{"version":3,"file":"enums.js","names":["ComponentTypeEnum"],"sources":["../../../src/components/enums.ts"],"sourcesContent":["export enum ComponentTypeEnum {\n TextField = 'TextField',\n MultilineTextField = 'MultilineTextField',\n YesNoField = 'YesNoField',\n DateField = 'DateField',\n TimeField = 'TimeField',\n DateTimeField = 'DateTimeField',\n DatePartsField = 'DatePartsField',\n MonthYearField = 'MonthYearField',\n DateTimePartsField = 'DateTimePartsField',\n SelectField = 'SelectField',\n AutocompleteField = 'AutocompleteField',\n RadiosField = 'RadiosField',\n CheckboxesField = 'CheckboxesField',\n NumberField = 'NumberField',\n UkAddressField = 'UkAddressField',\n TelephoneNumberField = 'TelephoneNumberField',\n EmailAddressField = 'EmailAddressField',\n FileUploadField = 'FileUploadField',\n Para = 'Para',\n Html = 'Html',\n InsetText = 'InsetText',\n Details = 'Details',\n List = 'List'\n}\n"],"mappings":"AAAA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/components/types.ts"],"sourcesContent":["export type ComponentType =\n | 'TextField'\n | 'MultilineTextField'\n | 'YesNoField'\n | 'DateField'\n | 'TimeField'\n | 'DateTimeField'\n | 'MonthYearField'\n | 'DatePartsField'\n | 'DateTimePartsField'\n | 'SelectField'\n | 'AutocompleteField'\n | 'RadiosField'\n | 'CheckboxesField'\n | 'NumberField'\n | 'UkAddressField'\n | 'TelephoneNumberField'\n | 'EmailAddressField'\n | 'FileUploadField'\n | 'Para'\n | 'Html'\n | 'InsetText'\n | 'Details'\n | '
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/components/types.ts"],"sourcesContent":["export type ComponentType =\n | 'TextField'\n | 'MultilineTextField'\n | 'YesNoField'\n | 'DateField'\n | 'TimeField'\n | 'DateTimeField'\n | 'MonthYearField'\n | 'DatePartsField'\n | 'DateTimePartsField'\n | 'SelectField'\n | 'AutocompleteField'\n | 'RadiosField'\n | 'CheckboxesField'\n | 'NumberField'\n | 'UkAddressField'\n | 'TelephoneNumberField'\n | 'EmailAddressField'\n | 'FileUploadField'\n | 'Para'\n | 'Html'\n | 'InsetText'\n | 'Details'\n | 'List'\n | 'WebsiteField'\n\nexport type ComponentSubType = 'field' | 'content'\n\nexport interface ConditionalComponent {\n name: 'TextField' | 'NumberField'\n title: string\n subType: 'field'\n}\n\nexport interface ContentOptions {\n condition?: string\n}\n\n/**\n * Types for Components JSON structure which are expected by engine and turned into actual form input/content/lists\n */\ninterface TextFieldBase {\n subType?: 'field'\n type: string\n name: string\n title: string\n hint?: string\n options: {\n hideTitle?: boolean\n required?: boolean\n optionalText?: boolean\n classes?: string\n allow?: string\n autocomplete?: string\n exposeToContext?: boolean\n }\n schema: {\n max?: number\n min?: number\n length?: number\n regex?: string\n error?: any // TODO: in same cases this is a function e.g. addressLine1 in ukaddress\n }\n}\n\ninterface NumberFieldBase {\n subType?: 'field'\n type: string\n name: string\n title: string\n hint: string\n options: {\n prefix?: string\n suffix?: string\n exposeToContext?: boolean\n }\n schema: {\n min?: number\n max?: number\n precision?: number\n }\n}\n\ninterface ListFieldBase {\n subType?: 'listField' | 'content'\n type: string\n name: string\n title: string\n options: {\n type?: string\n hideTitle?: boolean\n required?: boolean\n optionalText?: boolean\n classes?: string\n bold?: boolean\n exposeToContext?: boolean\n allowPrePopulation?: boolean\n }\n list: string\n schema: {}\n}\n\ninterface ContentFieldBase {\n subType?: 'content'\n type: string\n name: string\n title: string\n content: string\n options: ContentOptions\n schema: {}\n}\n\ninterface DateFieldBase {\n subType?: 'field'\n type: string\n name: string\n title: string\n hint: string\n options: {\n hideTitle?: boolean\n required?: boolean\n optionalText?: boolean\n maxDaysInFuture?: number\n maxDaysInPast?: number\n exposeToContext?: boolean\n }\n schema: {}\n}\n\n// Text Fields\nexport interface TextFieldComponent extends TextFieldBase {\n type: 'TextField'\n options: TextFieldBase['options'] & {\n customValidationMessage?: string\n }\n}\n\nexport interface EmailAddressFieldComponent extends TextFieldBase {\n type: 'EmailAddressField'\n}\n\nexport interface NumberFieldComponent extends NumberFieldBase {\n type: 'NumberField'\n}\n\nexport interface WebsiteFieldComponent extends TextFieldBase {\n type: 'WebsiteField'\n options: TextFieldBase['options'] & {\n customValidationMessage?: string\n }\n}\n\nexport interface TelephoneNumberFieldComponent extends TextFieldBase {\n type: 'TelephoneNumberField'\n options: TextFieldBase['options'] & {\n customValidationMessage?: string\n }\n}\n\nexport interface YesNoFieldComponent extends TextFieldBase {\n type: 'YesNoField'\n}\n\nexport interface MultilineTextFieldComponent extends TextFieldBase {\n type: 'MultilineTextField'\n options: TextFieldBase['options'] & {\n customValidationMessage?: string\n rows?: number\n maxWords?: number\n }\n schema: {\n max?: number\n min?: number\n }\n}\n\nexport interface FileUploadFieldComponent {\n subType?: 'field'\n type: 'FileUploadField'\n name: string\n title: string\n hint: string\n options: {\n required?: boolean\n hideTitle?: boolean\n multiple?: boolean\n classes?: string\n exposeToContext?: boolean\n imageQualityPlayback?: boolean\n }\n schema: {}\n}\n\nexport interface UkAddressFieldComponent extends TextFieldBase {\n type: 'UkAddressField'\n}\n\n// Date Fields\nexport interface DateFieldComponent extends DateFieldBase {\n type: 'DateField'\n}\n\nexport interface DateTimeFieldComponent extends DateFieldBase {\n type: 'DateTimeField'\n}\n\nexport interface DatePartsFieldFieldComponent extends DateFieldBase {\n type: 'DatePartsField'\n}\n\nexport interface MonthYearFieldComponent extends DateFieldBase {\n type: 'MonthYearField'\n}\n\nexport interface DateTimePartsFieldComponent extends DateFieldBase {\n type: 'DateTimePartsField'\n}\n\nexport interface TimeFieldComponent extends DateFieldBase {\n type: 'TimeField'\n}\n\n// Content Fields\nexport interface ParaComponent extends ContentFieldBase {\n type: 'Para'\n}\n\nexport interface DetailsComponent extends ContentFieldBase {\n type: 'Details'\n}\n\nexport interface HtmlComponent extends ContentFieldBase {\n type: 'Html'\n}\n\nexport interface InsetTextComponent extends ContentFieldBase {\n type: 'InsetText'\n}\n\n// List Fields\nexport interface ListComponent extends ListFieldBase {\n type: 'List'\n}\n\nexport interface AutocompleteFieldComponent extends ListFieldBase {\n type: 'AutocompleteField'\n subType?: 'listField'\n}\n\nexport interface CheckboxesFieldComponent extends ListFieldBase {\n type: 'CheckboxesField'\n subType?: 'listField'\n}\n\nexport interface RadiosFieldComponent extends ListFieldBase {\n type: 'RadiosField'\n subType?: 'listField'\n}\n\nexport interface SelectFieldComponent extends ListFieldBase {\n type: 'SelectField'\n options: ListFieldBase['options'] & { autocomplete?: string }\n subType?: 'listField'\n}\n\nexport type ComponentDef =\n | InsetTextComponent\n | AutocompleteFieldComponent\n | CheckboxesFieldComponent\n | DateFieldComponent\n | DatePartsFieldFieldComponent\n | MonthYearFieldComponent\n | DateTimeFieldComponent\n | DateTimePartsFieldComponent\n | DetailsComponent\n | EmailAddressFieldComponent\n | FileUploadFieldComponent\n | HtmlComponent\n | ListComponent\n | MultilineTextFieldComponent\n | NumberFieldComponent\n | ParaComponent\n | RadiosFieldComponent\n | SelectFieldComponent\n | TelephoneNumberFieldComponent\n | TextFieldComponent\n | TimeFieldComponent\n | UkAddressFieldComponent\n | YesNoFieldComponent\n | WebsiteFieldComponent\n\n// Components that render inputs.\nexport type InputFieldsComponentsDef =\n | TextFieldComponent\n | EmailAddressFieldComponent\n | NumberFieldComponent\n | MultilineTextFieldComponent\n | TelephoneNumberFieldComponent\n | YesNoFieldComponent\n | FileUploadFieldComponent\n | DateFieldComponent\n | DateTimeFieldComponent\n | DateTimePartsFieldComponent\n | MonthYearFieldComponent\n | TimeFieldComponent\n | UkAddressFieldComponent\n | WebsiteFieldComponent\n\n// Components that render content.\nexport type ContentComponentsDef =\n | ParaComponent\n | DetailsComponent\n | HtmlComponent\n | InsetTextComponent\n | ListComponent\n\n// Components that render Lists\nexport type ListComponentsDef =\n | ListComponent\n | AutocompleteFieldComponent\n | CheckboxesFieldComponent\n | RadiosFieldComponent\n | SelectFieldComponent\n"],"mappings":"","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../../../src/components/component-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,eAAO,MAAM,cAAc,EAAE,YAAY,
|
1
|
+
{"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../../../src/components/component-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,eAAO,MAAM,cAAc,EAAE,YAAY,EAyNxC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/components/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/components/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,IAAI,SAAS;IACb,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export type ComponentType = 'TextField' | 'MultilineTextField' | 'YesNoField' | 'DateField' | 'TimeField' | 'DateTimeField' | 'MonthYearField' | 'DatePartsField' | 'DateTimePartsField' | 'SelectField' | 'AutocompleteField' | 'RadiosField' | 'CheckboxesField' | 'NumberField' | 'UkAddressField' | 'TelephoneNumberField' | 'EmailAddressField' | 'FileUploadField' | 'Para' | 'Html' | 'InsetText' | 'Details' | '
|
1
|
+
export type ComponentType = 'TextField' | 'MultilineTextField' | 'YesNoField' | 'DateField' | 'TimeField' | 'DateTimeField' | 'MonthYearField' | 'DatePartsField' | 'DateTimePartsField' | 'SelectField' | 'AutocompleteField' | 'RadiosField' | 'CheckboxesField' | 'NumberField' | 'UkAddressField' | 'TelephoneNumberField' | 'EmailAddressField' | 'FileUploadField' | 'Para' | 'Html' | 'InsetText' | 'Details' | 'List' | 'WebsiteField';
|
2
2
|
export type ComponentSubType = 'field' | 'content';
|
3
3
|
export interface ConditionalComponent {
|
4
4
|
name: 'TextField' | 'NumberField';
|
@@ -193,9 +193,6 @@ export interface CheckboxesFieldComponent extends ListFieldBase {
|
|
193
193
|
type: 'CheckboxesField';
|
194
194
|
subType?: 'listField';
|
195
195
|
}
|
196
|
-
export interface FlashCardComponent extends ListFieldBase {
|
197
|
-
type: 'FlashCard';
|
198
|
-
}
|
199
196
|
export interface RadiosFieldComponent extends ListFieldBase {
|
200
197
|
type: 'RadiosField';
|
201
198
|
subType?: 'listField';
|
@@ -207,9 +204,9 @@ export interface SelectFieldComponent extends ListFieldBase {
|
|
207
204
|
};
|
208
205
|
subType?: 'listField';
|
209
206
|
}
|
210
|
-
export type ComponentDef = InsetTextComponent | AutocompleteFieldComponent | CheckboxesFieldComponent | DateFieldComponent | DatePartsFieldFieldComponent | MonthYearFieldComponent | DateTimeFieldComponent | DateTimePartsFieldComponent | DetailsComponent | EmailAddressFieldComponent | FileUploadFieldComponent |
|
207
|
+
export type ComponentDef = InsetTextComponent | AutocompleteFieldComponent | CheckboxesFieldComponent | DateFieldComponent | DatePartsFieldFieldComponent | MonthYearFieldComponent | DateTimeFieldComponent | DateTimePartsFieldComponent | DetailsComponent | EmailAddressFieldComponent | FileUploadFieldComponent | HtmlComponent | ListComponent | MultilineTextFieldComponent | NumberFieldComponent | ParaComponent | RadiosFieldComponent | SelectFieldComponent | TelephoneNumberFieldComponent | TextFieldComponent | TimeFieldComponent | UkAddressFieldComponent | YesNoFieldComponent | WebsiteFieldComponent;
|
211
208
|
export type InputFieldsComponentsDef = TextFieldComponent | EmailAddressFieldComponent | NumberFieldComponent | MultilineTextFieldComponent | TelephoneNumberFieldComponent | YesNoFieldComponent | FileUploadFieldComponent | DateFieldComponent | DateTimeFieldComponent | DateTimePartsFieldComponent | MonthYearFieldComponent | TimeFieldComponent | UkAddressFieldComponent | WebsiteFieldComponent;
|
212
|
-
export type ContentComponentsDef = ParaComponent | DetailsComponent | HtmlComponent | InsetTextComponent | ListComponent
|
213
|
-
export type ListComponentsDef = ListComponent | AutocompleteFieldComponent | CheckboxesFieldComponent |
|
209
|
+
export type ContentComponentsDef = ParaComponent | DetailsComponent | HtmlComponent | InsetTextComponent | ListComponent;
|
210
|
+
export type ListComponentsDef = ListComponent | AutocompleteFieldComponent | CheckboxesFieldComponent | RadiosFieldComponent | SelectFieldComponent;
|
214
211
|
export {};
|
215
212
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,oBAAoB,GACpB,YAAY,GACZ,WAAW,GACX,WAAW,GACX,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,oBAAoB,GACpB,aAAa,GACb,mBAAmB,GACnB,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,gBAAgB,GAChB,sBAAsB,GACtB,mBAAmB,GACnB,iBAAiB,GACjB,MAAM,GACN,MAAM,GACN,WAAW,GACX,SAAS,GACT,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,oBAAoB,GACpB,YAAY,GACZ,WAAW,GACX,WAAW,GACX,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,oBAAoB,GACpB,aAAa,GACb,mBAAmB,GACnB,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,gBAAgB,GAChB,sBAAsB,GACtB,mBAAmB,GACnB,iBAAiB,GACjB,MAAM,GACN,MAAM,GACN,WAAW,GACX,SAAS,GACT,MAAM,GACN,cAAc,CAAA;AAElB,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,CAAA;AAElD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,WAAW,GAAG,aAAa,CAAA;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE;QACP,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB,QAAQ,CAAC,EAAE,O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oBAAqB,SAAQ,aAAa;IACzD,IAAI,EAAE,aAAa,CAAA;IACnB,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC7D,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB;AAED,MAAM,MAAM,YAAY,GACpB,kBAAkB,GAClB,0BAA0B,GAC1B,wBAAwB,GACxB,kBAAkB,GAClB,4BAA4B,GAC5B,uBAAuB,GACvB,sBAAsB,GACtB,2BAA2B,GAC3B,gBAAgB,GAChB,0BAA0B,GAC1B,wBAAwB,GACxB,aAAa,GACb,aAAa,GACb,2BAA2B,GAC3B,oBAAoB,GACpB,aAAa,GACb,oBAAoB,GACpB,oBAAoB,GACpB,6BAA6B,GAC7B,kBAAkB,GAClB,kBAAkB,GAClB,uBAAuB,GACvB,mBAAmB,GACnB,qBAAqB,CAAA;AAGzB,MAAM,MAAM,wBAAwB,GAChC,kBAAkB,GAClB,0BAA0B,GAC1B,oBAAoB,GACpB,2BAA2B,GAC3B,6BAA6B,GAC7B,mBAAmB,GACnB,wBAAwB,GACxB,kBAAkB,GAClB,sBAAsB,GACtB,2BAA2B,GAC3B,uBAAuB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,CAAA;AAGzB,MAAM,MAAM,oBAAoB,GAC5B,aAAa,GACb,gBAAgB,GAChB,aAAa,GACb,kBAAkB,GAClB,aAAa,CAAA;AAGjB,MAAM,MAAM,iBAAiB,GACzB,aAAa,GACb,0BAA0B,GAC1B,wBAAwB,GACxB,oBAAoB,GACpB,oBAAoB,CAAA"}
|
package/package.json
CHANGED
@@ -199,15 +199,6 @@ export const ComponentTypes: ComponentDef[] = [
|
|
199
199
|
options: {},
|
200
200
|
schema: {}
|
201
201
|
},
|
202
|
-
{
|
203
|
-
name: 'FlashCard',
|
204
|
-
type: 'FlashCard',
|
205
|
-
title: 'Flash card',
|
206
|
-
subType: 'content',
|
207
|
-
options: {},
|
208
|
-
schema: {},
|
209
|
-
list: ''
|
210
|
-
},
|
211
202
|
{
|
212
203
|
name: 'List',
|
213
204
|
type: 'List',
|
package/src/components/enums.ts
CHANGED
package/src/components/types.ts
CHANGED
@@ -21,7 +21,6 @@ export type ComponentType =
|
|
21
21
|
| 'Html'
|
22
22
|
| 'InsetText'
|
23
23
|
| 'Details'
|
24
|
-
| 'FlashCard'
|
25
24
|
| 'List'
|
26
25
|
| 'WebsiteField'
|
27
26
|
|
@@ -253,10 +252,6 @@ export interface CheckboxesFieldComponent extends ListFieldBase {
|
|
253
252
|
subType?: 'listField'
|
254
253
|
}
|
255
254
|
|
256
|
-
export interface FlashCardComponent extends ListFieldBase {
|
257
|
-
type: 'FlashCard'
|
258
|
-
}
|
259
|
-
|
260
255
|
export interface RadiosFieldComponent extends ListFieldBase {
|
261
256
|
type: 'RadiosField'
|
262
257
|
subType?: 'listField'
|
@@ -280,7 +275,6 @@ export type ComponentDef =
|
|
280
275
|
| DetailsComponent
|
281
276
|
| EmailAddressFieldComponent
|
282
277
|
| FileUploadFieldComponent
|
283
|
-
| FlashCardComponent
|
284
278
|
| HtmlComponent
|
285
279
|
| ListComponent
|
286
280
|
| MultilineTextFieldComponent
|
@@ -319,13 +313,11 @@ export type ContentComponentsDef =
|
|
319
313
|
| HtmlComponent
|
320
314
|
| InsetTextComponent
|
321
315
|
| ListComponent
|
322
|
-
| FlashCardComponent
|
323
316
|
|
324
317
|
// Components that render Lists
|
325
318
|
export type ListComponentsDef =
|
326
319
|
| ListComponent
|
327
320
|
| AutocompleteFieldComponent
|
328
321
|
| CheckboxesFieldComponent
|
329
|
-
| FlashCardComponent
|
330
322
|
| RadiosFieldComponent
|
331
323
|
| SelectFieldComponent
|