{#if editor_state}
{#if potential_presentations?.length > 0}
{/if}
{#if ["Dropdown", "Numeric", "Text", "Uuid"].includes(current_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 current_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 current_presentation.t === "Dropdown"}
{/if}
{/if}