From 65b33a6c7f54092896145621fca2c9aa2b5fcaa3 Mon Sep 17 00:00:00 2001 From: Trilmatic Date: Sat, 16 Dec 2023 14:28:37 +0100 Subject: [PATCH] update Form import --- packages/core/package.json | 2 +- packages/core/src/fields/checkboxField.ts | 2 +- packages/core/src/fields/colorField.ts | 2 +- packages/core/src/fields/dateField.ts | 2 +- packages/core/src/fields/datetimeField.ts | 2 +- packages/core/src/fields/emailField.ts | 2 +- packages/core/src/fields/fileField.ts | 2 +- packages/core/src/fields/hiddenField.ts | 2 +- packages/core/src/fields/numberField.ts | 2 +- packages/core/src/fields/passwordField.ts | 2 +- packages/core/src/fields/radioField.ts | 2 +- packages/core/src/fields/rangeField.ts | 2 +- packages/core/src/fields/selectField.ts | 2 +- packages/core/src/fields/staticField.ts | 2 +- packages/core/src/fields/telField.ts | 2 +- packages/core/src/fields/textField.ts | 2 +- packages/core/src/fields/textareaField.ts | 2 +- packages/core/src/fields/timeField.ts | 2 +- packages/core/src/fields/urlField.ts | 2 +- packages/core/src/fields/weekField.ts | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 3df12fe..2aa7520 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@forms.js/core", - "version": "1.0.12", + "version": "1.0.13", "description": "Javascript form generator that streamlines web forms", "module": "lib/index.js", "type": "module", diff --git a/packages/core/src/fields/checkboxField.ts b/packages/core/src/fields/checkboxField.ts index 635ceb8..8fc9ccc 100644 --- a/packages/core/src/fields/checkboxField.ts +++ b/packages/core/src/fields/checkboxField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { CheckboxFieldOptions } from '../interfaces.js'; import { HTMLElementEvent } from '../types.js'; import { mountElement } from '../utils.js'; diff --git a/packages/core/src/fields/colorField.ts b/packages/core/src/fields/colorField.ts index b3b1c60..0d3b969 100644 --- a/packages/core/src/fields/colorField.ts +++ b/packages/core/src/fields/colorField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { FieldOptions } from '../interfaces.js'; export class ColorField extends Field { diff --git a/packages/core/src/fields/dateField.ts b/packages/core/src/fields/dateField.ts index 1fd8602..2c8f22b 100644 --- a/packages/core/src/fields/dateField.ts +++ b/packages/core/src/fields/dateField.ts @@ -1,7 +1,7 @@ import * as flatpickerNamespace from 'flatpickr'; const flatpickr = (flatpickerNamespace as any).default; import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { DateFieldOptions } from '../interfaces.js'; export class DateField extends Field { diff --git a/packages/core/src/fields/datetimeField.ts b/packages/core/src/fields/datetimeField.ts index 6bae695..1683686 100644 --- a/packages/core/src/fields/datetimeField.ts +++ b/packages/core/src/fields/datetimeField.ts @@ -1,7 +1,7 @@ import * as flatpickerNamespace from 'flatpickr'; const flatpickr = (flatpickerNamespace as any).default; import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { DateFieldOptions } from '../interfaces.js'; export class DatetimeField extends Field { diff --git a/packages/core/src/fields/emailField.ts b/packages/core/src/fields/emailField.ts index 4e2492d..84b0c84 100644 --- a/packages/core/src/fields/emailField.ts +++ b/packages/core/src/fields/emailField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { FieldOptions } from '../interfaces.js'; export class EmailField extends Field { diff --git a/packages/core/src/fields/fileField.ts b/packages/core/src/fields/fileField.ts index 5da70cd..ebb8a02 100644 --- a/packages/core/src/fields/fileField.ts +++ b/packages/core/src/fields/fileField.ts @@ -1,6 +1,6 @@ import * as FilePond from 'filepond'; import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { FileFieldOptions } from '../interfaces.js'; import { debounce } from '../utils.js'; diff --git a/packages/core/src/fields/hiddenField.ts b/packages/core/src/fields/hiddenField.ts index d1365fc..14a1ead 100644 --- a/packages/core/src/fields/hiddenField.ts +++ b/packages/core/src/fields/hiddenField.ts @@ -1,4 +1,4 @@ -import { Form } from '../form.js'; +import Form from '../form.js'; import { generateFieldSaveKey, mountElement, unmountElement } from '../utils.js'; import { FieldOptions } from '../interfaces.js'; import { FieldValue } from '../types.js'; diff --git a/packages/core/src/fields/numberField.ts b/packages/core/src/fields/numberField.ts index 829b4a3..c86a281 100644 --- a/packages/core/src/fields/numberField.ts +++ b/packages/core/src/fields/numberField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { FieldOptions, NumberFieldOptions } from '../interfaces.js'; export class NumberField extends Field { diff --git a/packages/core/src/fields/passwordField.ts b/packages/core/src/fields/passwordField.ts index 0176fdd..4e0ee0d 100644 --- a/packages/core/src/fields/passwordField.ts +++ b/packages/core/src/fields/passwordField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { FieldOptions } from '../interfaces.js'; export class PasswordField extends Field { diff --git a/packages/core/src/fields/radioField.ts b/packages/core/src/fields/radioField.ts index 2aa0031..b4aac1b 100644 --- a/packages/core/src/fields/radioField.ts +++ b/packages/core/src/fields/radioField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { FieldOptions, RadioFieldOptions } from '../interfaces.js'; import { HTMLElementEvent } from '../types.js'; import { mountElement } from '../utils.js'; diff --git a/packages/core/src/fields/rangeField.ts b/packages/core/src/fields/rangeField.ts index 86d3ba2..4a3dcad 100644 --- a/packages/core/src/fields/rangeField.ts +++ b/packages/core/src/fields/rangeField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { NumberFieldOptions } from '../interfaces.js'; import { mountElement } from '../utils.js'; diff --git a/packages/core/src/fields/selectField.ts b/packages/core/src/fields/selectField.ts index 3a660e9..d335a61 100644 --- a/packages/core/src/fields/selectField.ts +++ b/packages/core/src/fields/selectField.ts @@ -1,7 +1,7 @@ import TomSelect, * as TomSelectNamespace from 'tom-select'; const TomSelectInitiator = (TomSelectNamespace as any).default; import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { SelectFieldOptions } from '../interfaces.js'; import { FieldValue, HTMLElementEvent, Option } from '../types.js'; import { debounce, mountElement } from '../utils.js'; diff --git a/packages/core/src/fields/staticField.ts b/packages/core/src/fields/staticField.ts index e5395aa..29b02e0 100644 --- a/packages/core/src/fields/staticField.ts +++ b/packages/core/src/fields/staticField.ts @@ -1,4 +1,4 @@ -import { Form } from '../form.js'; +import Form from '../form.js'; import { generateFieldSaveKey, mountElement, unmountElement } from '../utils.js'; import { StaticFieldOptions } from '../interfaces.js'; import { FieldValue } from '../types.js'; diff --git a/packages/core/src/fields/telField.ts b/packages/core/src/fields/telField.ts index 1a67005..c9df42a 100644 --- a/packages/core/src/fields/telField.ts +++ b/packages/core/src/fields/telField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { FieldOptions } from '../interfaces.js'; export class TelField extends Field { diff --git a/packages/core/src/fields/textField.ts b/packages/core/src/fields/textField.ts index 0c18a89..6971e10 100644 --- a/packages/core/src/fields/textField.ts +++ b/packages/core/src/fields/textField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { FieldOptions } from '../interfaces.js'; export class TextField extends Field { diff --git a/packages/core/src/fields/textareaField.ts b/packages/core/src/fields/textareaField.ts index c8fea54..af29fe4 100644 --- a/packages/core/src/fields/textareaField.ts +++ b/packages/core/src/fields/textareaField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { TextareaFieldOptions } from '../interfaces.js'; export class TextareaField extends Field { diff --git a/packages/core/src/fields/timeField.ts b/packages/core/src/fields/timeField.ts index 09d46d0..459a688 100644 --- a/packages/core/src/fields/timeField.ts +++ b/packages/core/src/fields/timeField.ts @@ -1,7 +1,7 @@ import * as flatpickerNamespace from 'flatpickr'; const flatpickr = (flatpickerNamespace as any).default; import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { DateFieldOptions } from '../interfaces.js'; import { FlatpickrFn } from 'flatpickr/dist/types/instance.js'; diff --git a/packages/core/src/fields/urlField.ts b/packages/core/src/fields/urlField.ts index dd11982..67f58e0 100644 --- a/packages/core/src/fields/urlField.ts +++ b/packages/core/src/fields/urlField.ts @@ -1,5 +1,5 @@ import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { FieldOptions } from '../interfaces.js'; export class UrlField extends Field { diff --git a/packages/core/src/fields/weekField.ts b/packages/core/src/fields/weekField.ts index 18c4888..ded259b 100644 --- a/packages/core/src/fields/weekField.ts +++ b/packages/core/src/fields/weekField.ts @@ -1,7 +1,7 @@ import * as flatpickerNamespace from 'flatpickr'; const flatpickr = (flatpickerNamespace as any).default; import { Field } from '../field.js'; -import { Form } from '../form.js'; +import Form from '../form.js'; import { DateFieldOptions } from '../interfaces.js'; import weekSelectPlugin from 'flatpickr/dist/plugins/weekSelect/weekSelect.js'; import { FlatpickrFn } from 'flatpickr/dist/types/instance.js';