Update to svelte 5

This commit is contained in:
2025-10-13 16:05:50 +02:00
parent f936e4c0f2
commit 6d89c5ddd9
129 changed files with 2443 additions and 2180 deletions

View File

@@ -1,15 +1,24 @@
<script lang="ts">
export let field = ""
export let active_field = ""
export let asc = true
export let sort_func: (field: string) => void
let {
field = "",
active_field = "",
asc = true,
sort_func,
children
}: {
field?: string;
active_field?: string;
asc?: boolean;
sort_func: (field: string) => void;
children?: import('svelte').Snippet;
} = $props();
</script>
<button on:click={() => sort_func(field)}>
<button onclick={() => sort_func(field)}>
{#if active_field === field}
{#if asc}{:else}{/if}
{/if}
<slot></slot>
{@render children?.()}
</button>
<style>