fuma 0.3.29 → 0.3.31

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.
@@ -5,7 +5,7 @@ import { Icon } from "../icon/index.js";
5
5
  import { listEditable } from "../../action/list/index.js";
6
6
  export let key;
7
7
  export let value = "[]";
8
- let options = JSON.parse(value);
8
+ let options = JSON.parse(value || "[]");
9
9
  let newOption = "";
10
10
  let optionInput;
11
11
  function handleKeyDown(e) {
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  key: string;
5
- value?: string | undefined;
5
+ value?: string | undefined | null;
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -12,6 +12,8 @@ export let fields;
12
12
  export let items;
13
13
  export let slotAction = void 0;
14
14
  export let placholder = "Aucun \xE9l\xE9ment trouv\xE9";
15
+ let klass = "";
16
+ export { klass as class };
15
17
  export let classRow = "";
16
18
  export let hideBody = false;
17
19
  export let onCreateField = void 0;
@@ -26,7 +28,7 @@ initFields();
26
28
  afterNavigate(initFields);
27
29
  </script>
28
30
 
29
- <div class="overflow-x-auto rounded-lg border bg-base-100" class:min-h-[320px]={!hideBody}>
31
+ <div class="{klass} overflow-x-auto rounded-lg border bg-base-100" class:min-h-[320px]={!hideBody}>
30
32
  <table class="table relative">
31
33
  <TableHead {fields} {key} {onCreateField} />
32
34
  {#if !hideBody && items.length}
@@ -10,6 +10,7 @@ declare class __sveltets_Render<Item extends {
10
10
  items: Item[];
11
11
  slotAction?: ((item: Item) => ComponentAndProps) | undefined;
12
12
  placholder?: string | undefined;
13
+ class?: string | undefined;
13
14
  classRow?: string | undefined;
14
15
  hideBody?: boolean | undefined;
15
16
  onCreateField?: (() => void) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "0.3.29",
3
+ "version": "0.3.31",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",