fuma 0.1.27 → 0.1.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/ui/input/FormControl.svelte +6 -1
- package/dist/ui/input/FormControl.svelte.d.ts +2 -1
- package/dist/ui/input/InputBoolean.svelte +4 -0
- package/dist/ui/input/InputBoolean.svelte.d.ts +4 -2
- package/dist/ui/input/InputCheckboxs.svelte.d.ts +1 -1
- package/dist/ui/input/InputCheckboxsMenu.svelte.d.ts +1 -1
- package/dist/ui/input/InputCombo.svelte.d.ts +1 -1
- package/dist/ui/input/InputPassword.svelte.d.ts +1 -1
- package/dist/ui/input/InputRadio.svelte.d.ts +1 -1
- package/dist/ui/input/textRich/InputTextRich.svelte.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script>import { slide } from "svelte/transition";
|
|
2
2
|
import { onMount } from "svelte";
|
|
3
3
|
import { formContext } from "../../validation/form.js";
|
|
4
|
+
import { Slot } from "../index.js";
|
|
4
5
|
let klass = "";
|
|
5
6
|
export { klass as class };
|
|
6
7
|
export let classLabel = "";
|
|
@@ -42,7 +43,11 @@ onMount(() => {
|
|
|
42
43
|
>
|
|
43
44
|
{#if label || $$slots.label}
|
|
44
45
|
<label for="{prefixFor}{_key}" class="label cursor-pointer {classLabel}">
|
|
45
|
-
<span class="label-text">
|
|
46
|
+
<span class="label-text">
|
|
47
|
+
<slot name="label">
|
|
48
|
+
<Slot slot={label} />
|
|
49
|
+
</slot>
|
|
50
|
+
</span>
|
|
46
51
|
<slot name="label" />
|
|
47
52
|
<slot name="label_append" />
|
|
48
53
|
</label>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { ComponentAndProps } from '../../utils/index.js';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
class?: string | undefined;
|
|
5
6
|
classLabel?: string | undefined;
|
|
6
7
|
key?: string | undefined;
|
|
7
|
-
label?: string | undefined;
|
|
8
|
+
label?: string | ComponentAndProps | undefined;
|
|
8
9
|
error?: string | undefined;
|
|
9
10
|
hint?: string | undefined;
|
|
10
11
|
prefix?: string | number | undefined;
|
|
@@ -5,7 +5,7 @@ declare const __propDef: {
|
|
|
5
5
|
class?: string | undefined;
|
|
6
6
|
classLabel?: string | undefined;
|
|
7
7
|
key?: string | undefined;
|
|
8
|
-
label?: string | undefined;
|
|
8
|
+
label?: string | import("../../index.js").ComponentAndProps | undefined;
|
|
9
9
|
error?: string | undefined;
|
|
10
10
|
hint?: string | undefined;
|
|
11
11
|
prefix?: string | number | undefined;
|
|
@@ -28,7 +28,9 @@ declare const __propDef: {
|
|
|
28
28
|
} & {
|
|
29
29
|
[evt: string]: CustomEvent<any>;
|
|
30
30
|
};
|
|
31
|
-
slots: {
|
|
31
|
+
slots: {
|
|
32
|
+
label: {};
|
|
33
|
+
};
|
|
32
34
|
};
|
|
33
35
|
export type InputBooleanProps = typeof __propDef.props;
|
|
34
36
|
export type InputBooleanEvents = typeof __propDef.events;
|
|
@@ -5,7 +5,7 @@ declare const __propDef: {
|
|
|
5
5
|
class?: string | undefined;
|
|
6
6
|
classLabel?: string | undefined;
|
|
7
7
|
key?: string | undefined;
|
|
8
|
-
label?: string | undefined;
|
|
8
|
+
label?: string | import("../../index.js").ComponentAndProps | undefined;
|
|
9
9
|
error?: string | undefined;
|
|
10
10
|
hint?: string | undefined;
|
|
11
11
|
prefix?: string | number | undefined;
|
|
@@ -5,7 +5,7 @@ declare const __propDef: {
|
|
|
5
5
|
class?: string | undefined;
|
|
6
6
|
classLabel?: string | undefined;
|
|
7
7
|
key?: string | undefined;
|
|
8
|
-
label?: string | undefined;
|
|
8
|
+
label?: string | import("../../utils/index.js").ComponentAndProps | undefined;
|
|
9
9
|
error?: string | undefined;
|
|
10
10
|
hint?: string | undefined;
|
|
11
11
|
prefix?: string | number | undefined;
|
|
@@ -8,7 +8,7 @@ declare const __propDef: {
|
|
|
8
8
|
class?: string | undefined;
|
|
9
9
|
classLabel?: string | undefined;
|
|
10
10
|
key?: string | undefined;
|
|
11
|
-
label?: string | undefined;
|
|
11
|
+
label?: string | import("../../index.js").ComponentAndProps | undefined;
|
|
12
12
|
error?: string | undefined;
|
|
13
13
|
hint?: string | undefined;
|
|
14
14
|
prefix?: string | number | undefined;
|
|
@@ -4,7 +4,7 @@ declare const __propDef: {
|
|
|
4
4
|
class?: string | undefined;
|
|
5
5
|
classLabel?: string | undefined;
|
|
6
6
|
key?: string | undefined;
|
|
7
|
-
label?: string | undefined;
|
|
7
|
+
label?: string | import("../../index.js").ComponentAndProps | undefined;
|
|
8
8
|
error?: string | undefined;
|
|
9
9
|
hint?: string | undefined;
|
|
10
10
|
prefix?: string | number | undefined;
|
|
@@ -5,7 +5,7 @@ declare const __propDef: {
|
|
|
5
5
|
class?: string | undefined;
|
|
6
6
|
classLabel?: string | undefined;
|
|
7
7
|
key?: string | undefined;
|
|
8
|
-
label?: string | undefined;
|
|
8
|
+
label?: string | import("../../index.js").ComponentAndProps | undefined;
|
|
9
9
|
error?: string | undefined;
|
|
10
10
|
hint?: string | undefined;
|
|
11
11
|
prefix?: string | number | undefined;
|
|
@@ -4,7 +4,7 @@ declare const __propDef: {
|
|
|
4
4
|
class?: string | undefined;
|
|
5
5
|
classLabel?: string | undefined;
|
|
6
6
|
key?: string | undefined;
|
|
7
|
-
label?: string | undefined;
|
|
7
|
+
label?: string | import("../../..").ComponentAndProps | undefined;
|
|
8
8
|
error?: string | undefined;
|
|
9
9
|
hint?: string | undefined;
|
|
10
10
|
prefix?: string | number | undefined;
|