fuma 2.0.36 → 2.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
<table class="relative table">
|
|
61
61
|
<TableHead {fields} {key} {onCreateField} />
|
|
62
62
|
{#if !hideBody && items.length}
|
|
63
|
-
<TableBody {fields} {items} {actions} {classRow} {onclick}
|
|
63
|
+
<TableBody {fields} {items} {actions} {classRow} {onclick} />
|
|
64
64
|
{/if}
|
|
65
65
|
</table>
|
|
66
66
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script lang="ts" generics="Item extends ItemBase">
|
|
2
|
-
import { maxHeightScreen } from '../../action/maxHeightScreen.js'
|
|
3
2
|
import { TableCell, type ItemBase, type TableField } from './index.js'
|
|
4
3
|
import type { Snippet } from 'svelte'
|
|
5
4
|
|
|
@@ -8,21 +7,19 @@
|
|
|
8
7
|
fields,
|
|
9
8
|
actions,
|
|
10
9
|
classRow,
|
|
11
|
-
onclick
|
|
12
|
-
screenPadding
|
|
10
|
+
onclick
|
|
13
11
|
}: {
|
|
14
12
|
items: Item[]
|
|
15
13
|
fields: TableField<Item>[]
|
|
16
14
|
actions?: Snippet<[item: Item]>
|
|
17
15
|
classRow?: string
|
|
18
16
|
onclick?: (item?: Item) => void
|
|
19
|
-
screenPadding?: number
|
|
20
17
|
} = $props()
|
|
21
18
|
|
|
22
19
|
let fieldsVisible = $derived(fields.filter((f) => f._visible))
|
|
23
20
|
</script>
|
|
24
21
|
|
|
25
|
-
<tbody
|
|
22
|
+
<tbody>
|
|
26
23
|
{#each items as item (item.id)}
|
|
27
24
|
<tr class={classRow} onclick={() => onclick?.(item)}>
|
|
28
25
|
{#each fieldsVisible as field (field.key)}
|