fuma 2.0.26 → 2.0.28
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.
package/dist/private/Meta.svelte
CHANGED
|
@@ -56,18 +56,18 @@
|
|
|
56
56
|
{
|
|
57
57
|
key: 'name',
|
|
58
58
|
label: 'Prop',
|
|
59
|
-
|
|
59
|
+
cell: (p) => p.id,
|
|
60
60
|
locked: true
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
key: 'type',
|
|
64
64
|
label: 'Type',
|
|
65
|
-
|
|
65
|
+
cell: (p) => typeof p.value
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
key: 'value',
|
|
69
69
|
label: 'Value',
|
|
70
|
-
|
|
70
|
+
cell: (p) => p.value,
|
|
71
71
|
visible: true
|
|
72
72
|
}
|
|
73
73
|
]}
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
let klass = ''
|
|
36
36
|
export { klass as class }
|
|
37
37
|
export let classList = ''
|
|
38
|
-
export let inputElement: HTMLInputElement
|
|
39
|
-
export let dropdown: DropDown | undefined
|
|
38
|
+
export let inputElement: HTMLInputElement | undefined = undefined
|
|
39
|
+
export let dropdown: DropDown | undefined = undefined
|
|
40
40
|
|
|
41
41
|
let proposedItems: RelationItem[] = []
|
|
42
42
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
item = null
|
|
55
55
|
dispatch('input', { value: item })
|
|
56
56
|
await tick()
|
|
57
|
-
inputElement
|
|
57
|
+
inputElement?.focus()
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export async function select(index = focusIndex) {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export function focus() {
|
|
66
|
-
inputElement
|
|
66
|
+
inputElement?.focus()
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export async function searchItems(searchValue = '') {
|
|
@@ -26,8 +26,8 @@ declare class __sveltets_Render<RelationItem extends {
|
|
|
26
26
|
append?: Snippet | undefined;
|
|
27
27
|
class?: string;
|
|
28
28
|
classList?: string;
|
|
29
|
-
inputElement
|
|
30
|
-
dropdown
|
|
29
|
+
inputElement?: HTMLInputElement | undefined;
|
|
30
|
+
dropdown?: DropDown | undefined;
|
|
31
31
|
clear?: (() => Promise<void>) | undefined;
|
|
32
32
|
select?: ((index?: number) => Promise<void>) | undefined;
|
|
33
33
|
focus?: (() => void) | undefined;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
<SelectorList
|
|
65
65
|
trigger={button}
|
|
66
66
|
{focusIndex}
|
|
67
|
-
items={_options.map((opt) => ({ id: opt.value, ...opt }))}
|
|
67
|
+
items={_options.map((opt) => ({ id: opt.value, ...opt })).filter((opt) => !opt.disable)}
|
|
68
68
|
let:item
|
|
69
69
|
on:select={({ detail }) => onSelect(detail)}
|
|
70
70
|
class="w-full"
|
package/dist/utils/options.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type Option = {
|
|
|
3
3
|
value: string;
|
|
4
4
|
label: string;
|
|
5
5
|
icon?: string | Snippet;
|
|
6
|
+
disable?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export type OptionRecord<Values extends string> = Record<Values, Omit<Option, 'value'>>;
|
|
8
9
|
export type Options = string | string[] | Option[] | Record<string, string> | OptionRecord<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fuma",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.28",
|
|
4
4
|
"description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jonas Voisard",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"svelte-sonner": "^0.3.28",
|
|
115
115
|
"tippy.js": "^6.3.7",
|
|
116
116
|
"ts-node": "^10.9.2",
|
|
117
|
-
"vite": "^7.1.
|
|
117
|
+
"vite": "^7.1.12",
|
|
118
118
|
"zod": "^4.1.11"
|
|
119
119
|
},
|
|
120
120
|
"scripts": {
|