diff --git a/src/core/formDefinition.ts b/src/core/formDefinition.ts index 0237f13b..2c5354b6 100644 --- a/src/core/formDefinition.ts +++ b/src/core/formDefinition.ts @@ -114,6 +114,7 @@ export type EditableInput = { min?: number; max?: number; options?: { value: string; label: string }[]; + query?: string; }; export type EditableFormDefinition = { diff --git a/src/views/EditFormView.ts b/src/views/EditFormView.ts index 5845374a..6f6522dc 100644 --- a/src/views/EditFormView.ts +++ b/src/views/EditFormView.ts @@ -57,7 +57,7 @@ export class EditFormView extends ItemView { onCancel: () => { this.plugin.closeEditForm() }, - onPreview: (formDefinition) => { + onPreview: (formDefinition: FormDefinition) => { this.plugin.api.openForm(formDefinition) }, } diff --git a/src/views/components/inputBuilderDataview.svelte b/src/views/components/inputBuilderDataview.svelte index 1bfbbd9a..522e54d3 100644 --- a/src/views/components/inputBuilderDataview.svelte +++ b/src/views/components/inputBuilderDataview.svelte @@ -2,7 +2,7 @@ import FormRow from "./FormRow.svelte"; export let index: number; - export let value: string; + export let value: string = ""; $: id = `dataview_${index}`;