fuma 0.1.16 → 0.1.17
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.
|
@@ -25,12 +25,6 @@ export const inputs = {
|
|
|
25
25
|
relations: InputRelations
|
|
26
26
|
};
|
|
27
27
|
export const inputsType = Object.keys(inputs);
|
|
28
|
-
export function relationProps(props) {
|
|
29
|
-
return props;
|
|
30
|
-
}
|
|
31
|
-
export function relationsProps(props) {
|
|
32
|
-
return props;
|
|
33
|
-
}
|
|
34
28
|
</script>
|
|
35
29
|
|
|
36
30
|
<script>let inputType;
|
package/dist/ui/form/index.d.ts
CHANGED
package/dist/ui/form/index.js
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ComponentProps } from 'svelte';
|
|
2
|
+
import type { InputRelation, InputRelations } from '../input/index.js';
|
|
3
|
+
export declare function relationProps<Item extends {
|
|
4
|
+
id: string;
|
|
5
|
+
}>(props: ComponentProps<InstanceType<typeof InputRelation<Item>>>): {
|
|
6
|
+
key?: string | undefined;
|
|
7
|
+
label?: string | undefined;
|
|
8
|
+
search: (q: string) => Promise<Item[]>;
|
|
9
|
+
createUrl?: string | undefined;
|
|
10
|
+
createTitle?: string | undefined;
|
|
11
|
+
value?: Item | null | undefined;
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
placeholder?: string | undefined;
|
|
14
|
+
tippyProps?: Partial<import("tippy.js").Props> | undefined;
|
|
15
|
+
flatMode?: boolean | undefined;
|
|
16
|
+
slotItem?: ((item: Item) => string | import("../../index.js").ComponentAndProps) | null | undefined;
|
|
17
|
+
slotSuggestion?: ((item: Item) => string | import("../../index.js").ComponentAndProps) | null | undefined;
|
|
18
|
+
class?: string | undefined;
|
|
19
|
+
classList?: string | undefined;
|
|
20
|
+
clear?: (() => Promise<void>) | undefined;
|
|
21
|
+
};
|
|
22
|
+
export declare function relationsProps<Item extends {
|
|
23
|
+
id: string;
|
|
24
|
+
}>(props: ComponentProps<InstanceType<typeof InputRelations<Item>>>): {
|
|
25
|
+
key?: string | undefined;
|
|
26
|
+
label?: string | undefined;
|
|
27
|
+
search: (q: string) => Promise<Item[]>;
|
|
28
|
+
createUrl?: string | undefined;
|
|
29
|
+
createTitle?: string | undefined;
|
|
30
|
+
error?: string | undefined;
|
|
31
|
+
placeholder?: string | undefined;
|
|
32
|
+
flatMode?: boolean | undefined;
|
|
33
|
+
slotItem?: ((item: Item) => string | import("../../index.js").ComponentAndProps) | null | undefined;
|
|
34
|
+
slotSuggestion?: ((item: Item) => string | import("../../index.js").ComponentAndProps) | null | undefined;
|
|
35
|
+
class?: string | undefined;
|
|
36
|
+
classList?: string | undefined;
|
|
37
|
+
value?: Item[] | null | undefined;
|
|
38
|
+
};
|