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} {screenPadding} />
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 use:maxHeightScreen={{ padding: screenPadding }}>
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)}
@@ -7,7 +7,6 @@ declare function $$render<Item extends ItemBase>(): {
7
7
  actions?: Snippet<[item: Item]>;
8
8
  classRow?: string;
9
9
  onclick?: (item?: Item) => void;
10
- screenPadding?: number;
11
10
  };
12
11
  exports: {};
13
12
  bindings: "";
@@ -20,7 +20,7 @@
20
20
  } = $props()
21
21
  </script>
22
22
 
23
- <thead>
23
+ <thead class="bg-base-100 sticky top-0 z-10">
24
24
  <tr class="shadow">
25
25
  {#each fields.filter((f) => f._visible) as field (field.key)}
26
26
  {#if !field.type}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "2.0.36",
3
+ "version": "2.0.37",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",