started to implement updates on transactions

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-04-10 09:23:26 +02:00
parent ec3add70c6
commit 90a7c5dd18
21 changed files with 215 additions and 68 deletions

View File

@@ -9,8 +9,9 @@
onclick = evt => { evt.preventDefault(); startEdit(); return false },
onSet = newVal => {return true;},
title = t('click_to_edit'),
type = 'div',
value = $bindable(null)
type = 'text',
value = $bindable(null),
wrapper = 'div'
} = $props();
let editing = $state(simple);
@@ -110,7 +111,7 @@
</style>
{#if editable && editing}
<input bind:value={editValue} onkeyup={typed} {title} autofocus />
<input bind:value={editValue} onkeyup={typed} {title} {type} autofocus />
{:else}
<svelte:element this={type} href={href} onclick={ignore} {onmousedown} {onmouseup} {ontouchstart} {ontouchend} {oncontextmenu} class={{editable}} {title} >{value}</svelte:element>
<svelte:element this={wrapper} href={href} onclick={ignore} {onmousedown} {onmouseup} {ontouchstart} {ontouchend} {oncontextmenu} class={{editable}} {title} >{value}</svelte:element>
{/if}