{#if editor_state}
{#if assignable_fields?.length > 0}
{#each assignable_fields as assignable_field_info}
{/each}
{/if}
{#if ["Dropdown", "Numeric", "Text", "Uuid"].includes(field_info.field.presentation.t)}
{
if (!editor_state) {
console.warn("text input oninput() preconditions not met");
return;
}
editor_state.text_value = currentTarget.value;
if (currentTarget.value !== "") {
editor_state.is_null = false;
}
handle_input();
}}
class="datum-editor__text-input"
type="text"
/>
{:else if field_info.field.presentation.t === "Timestamp"}
{
if (!editor_state) {
console.warn("date input oninput() preconditions not met");
return;
}
editor_state.date_value = currentTarget.value;
editor_state.is_null = false;
handle_input();
}}
value={editor_state.date_value}
type="date"
/>
{
if (!editor_state) {
console.warn("time input oninput() preconditions not met");
return;
}
editor_state.time_value = currentTarget.value;
editor_state.is_null = false;
handle_input();
}}
value={editor_state.time_value}
step="1"
type="time"
/>
{/if}
{#if field_info.field.presentation.t === "Dropdown"}
{/if}
{/if}