@cloudparker/moldex.js 0.0.36 → 0.0.38
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/views/core/input/components/color-field/color-field.svelte +1 -1
- package/dist/views/core/input/components/date-field/date-field.svelte +2 -2
- package/dist/views/core/input/components/date-field/date-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/datetime-field/datetime-field.svelte +2 -2
- package/dist/views/core/input/components/datetime-field/datetime-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/email-field/email-field.svelte +8 -2
- package/dist/views/core/input/components/email-field/email-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/file-field/file-field.svelte +2 -2
- package/dist/views/core/input/components/file-field/file-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/input-field/input-field.svelte +1 -1
- package/dist/views/core/input/components/number-field/number-field.svelte +2 -2
- package/dist/views/core/input/components/number-field/number-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/password-field/password-field.svelte +2 -0
- package/dist/views/core/input/components/password-field/password-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/range-field/range-field.svelte +1 -1
- package/dist/views/core/input/components/search-field/search-field.svelte +3 -2
- package/dist/views/core/input/components/search-field/search-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/text-field/text-field.svelte +1 -6
- package/dist/views/core/input/components/textarea-field/textarea-field.svelte +1 -0
- package/dist/views/core/input/components/time-field/time-field.svelte +2 -2
- package/dist/views/core/input/components/time-field/time-field.svelte.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import InputField, { type InputFieldPropsType } from '../input-field/input-field.svelte';
|
|
3
3
|
|
|
4
|
-
let props: InputFieldPropsType = $props();
|
|
4
|
+
let { value = $bindable(null), ...props }: InputFieldPropsType = $props();
|
|
5
5
|
|
|
6
6
|
let inputFieldRef: InputField | null = $state(null);
|
|
7
7
|
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
}
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
|
-
<InputField bind:this={inputFieldRef} {...props} type="date" />
|
|
13
|
+
<InputField bind:this={inputFieldRef} {...props} type="date" bind:value />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import InputField, { type InputFieldPropsType } from '../input-field/input-field.svelte';
|
|
3
3
|
|
|
4
|
-
let props: InputFieldPropsType = $props();
|
|
4
|
+
let { value = $bindable(), ...props }: InputFieldPropsType = $props();
|
|
5
5
|
|
|
6
6
|
let inputFieldRef: InputField | null = $state(null);
|
|
7
7
|
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
}
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
|
-
<InputField bind:this={inputFieldRef} {...props} type="datetime-local"
|
|
13
|
+
<InputField bind:this={inputFieldRef} {...props} type="datetime-local" bind:value />
|
|
@@ -16,6 +16,6 @@ declare const DatetimeField: $$__sveltets_2_IsomorphicComponent<InputFieldPropsT
|
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
17
17
|
}, {}, {
|
|
18
18
|
focus: () => void;
|
|
19
|
-
}, "">;
|
|
19
|
+
}, "value">;
|
|
20
20
|
type DatetimeField = InstanceType<typeof DatetimeField>;
|
|
21
21
|
export default DatetimeField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import InputField, { type InputFieldPropsType } from '../input-field/input-field.svelte';
|
|
3
3
|
|
|
4
|
-
let props: InputFieldPropsType = $props();
|
|
4
|
+
let { value = $bindable(''), ...props }: InputFieldPropsType = $props();
|
|
5
5
|
let inputFieldRef: InputField | null = $state(null);
|
|
6
6
|
|
|
7
7
|
export function focus() {
|
|
@@ -9,4 +9,10 @@
|
|
|
9
9
|
}
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<InputField
|
|
12
|
+
<InputField
|
|
13
|
+
bind:this={inputFieldRef}
|
|
14
|
+
{...props}
|
|
15
|
+
type="email"
|
|
16
|
+
maxlength={props?.maxlength || 80}
|
|
17
|
+
bind:value
|
|
18
|
+
/>
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
className,
|
|
12
12
|
accept = '',
|
|
13
13
|
multiple = false,
|
|
14
|
-
value,
|
|
14
|
+
value = $bindable(null),
|
|
15
15
|
...props
|
|
16
16
|
}: InputFieldPropsType & {
|
|
17
17
|
accept?: string;
|
|
18
18
|
multiple?: boolean;
|
|
19
|
-
value?: File | File[];
|
|
19
|
+
value?: File | File[] | null;
|
|
20
20
|
} = $props();
|
|
21
21
|
|
|
22
22
|
let btnRoundedClassName = $state('');
|
|
@@ -15,11 +15,11 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
15
15
|
declare const FileField: $$__sveltets_2_IsomorphicComponent<InputFieldPropsType & {
|
|
16
16
|
accept?: string;
|
|
17
17
|
multiple?: boolean;
|
|
18
|
-
value?: File | File[];
|
|
18
|
+
value?: File | File[] | null;
|
|
19
19
|
}, {
|
|
20
20
|
[evt: string]: CustomEvent<any>;
|
|
21
21
|
}, {}, {
|
|
22
22
|
focus: () => void;
|
|
23
|
-
}, "">;
|
|
23
|
+
}, "value">;
|
|
24
24
|
type FileField = InstanceType<typeof FileField>;
|
|
25
25
|
export default FileField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import InputField, { type InputFieldPropsType } from '../input-field/input-field.svelte';
|
|
3
3
|
|
|
4
|
-
let props: InputFieldPropsType = $props();
|
|
4
|
+
let { value = $bindable(), ...props }: InputFieldPropsType = $props();
|
|
5
5
|
|
|
6
6
|
let inputFieldRef: InputField | null = $state(null);
|
|
7
7
|
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
}
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
|
-
<InputField bind:this={inputFieldRef} {...props} type="number" />
|
|
13
|
+
<InputField bind:this={inputFieldRef} {...props} type="number" bind:value />
|
|
@@ -16,6 +16,6 @@ declare const NumberField: $$__sveltets_2_IsomorphicComponent<InputFieldPropsTyp
|
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
17
17
|
}, {}, {
|
|
18
18
|
focus: () => void;
|
|
19
|
-
}, "">;
|
|
19
|
+
}, "value">;
|
|
20
20
|
type NumberField = InstanceType<typeof NumberField>;
|
|
21
21
|
export default NumberField;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
appearance,
|
|
11
11
|
buttonClassName,
|
|
12
12
|
iconClassName,
|
|
13
|
+
value = $bindable(),
|
|
13
14
|
...props
|
|
14
15
|
}: InputFieldPropsType & {
|
|
15
16
|
buttonClassName?: string;
|
|
@@ -80,4 +81,5 @@
|
|
|
80
81
|
rightSnippet={showPasswordButton}
|
|
81
82
|
{size}
|
|
82
83
|
{appearance}
|
|
84
|
+
bind:value
|
|
83
85
|
/>
|
|
@@ -19,6 +19,6 @@ declare const PasswordField: $$__sveltets_2_IsomorphicComponent<InputFieldPropsT
|
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
20
20
|
}, {}, {
|
|
21
21
|
focus: () => void;
|
|
22
|
-
}, "">;
|
|
22
|
+
}, "value">;
|
|
23
23
|
type PasswordField = InstanceType<typeof PasswordField>;
|
|
24
24
|
export default PasswordField;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
className,
|
|
8
8
|
placeholder,
|
|
9
9
|
iconClassName,
|
|
10
|
+
value=$bindable(''),
|
|
10
11
|
onSearch,
|
|
11
12
|
...props
|
|
12
|
-
}: InputFieldPropsType & { iconClassName?: string; onSearch?: (value: string) => void } =
|
|
13
|
-
$props();
|
|
13
|
+
}: InputFieldPropsType & { iconClassName?: string; onSearch?: (value: string) => void } = $props();
|
|
14
14
|
|
|
15
15
|
const debouncedSearch = debounce(search, 300);
|
|
16
16
|
let lastQuery: string;
|
|
@@ -64,4 +64,5 @@
|
|
|
64
64
|
className=" pl-12 {className}"
|
|
65
65
|
{placeholder}
|
|
66
66
|
oninput={handleInput}
|
|
67
|
+
bind:value
|
|
67
68
|
/>
|
|
@@ -19,6 +19,6 @@ declare const SearchField: $$__sveltets_2_IsomorphicComponent<InputFieldPropsTyp
|
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
20
20
|
}, {}, {
|
|
21
21
|
focus: () => void;
|
|
22
|
-
}, "">;
|
|
22
|
+
}, "value">;
|
|
23
23
|
type SearchField = InstanceType<typeof SearchField>;
|
|
24
24
|
export default SearchField;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import InputField, {
|
|
3
3
|
type InputFieldPropsType,
|
|
4
|
-
type InputValueType
|
|
5
4
|
} from '../input-field/input-field.svelte';
|
|
6
5
|
|
|
7
|
-
let {
|
|
8
|
-
maxlength,
|
|
9
|
-
value = $bindable<InputValueType>(''),
|
|
10
|
-
...props
|
|
11
|
-
}: InputFieldPropsType = $props();
|
|
6
|
+
let { maxlength, value = $bindable(''), ...props }: InputFieldPropsType = $props();
|
|
12
7
|
let inputFieldRef: InputField | null = $state(null);
|
|
13
8
|
|
|
14
9
|
export function focus() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import InputField, { type InputFieldPropsType } from '../input-field/input-field.svelte';
|
|
3
3
|
|
|
4
|
-
let props: InputFieldPropsType = $props();
|
|
4
|
+
let { value = $bindable(), ...props }: InputFieldPropsType = $props();
|
|
5
5
|
let inputFieldRef: InputField | null = $state(null);
|
|
6
6
|
|
|
7
7
|
export function focus() {
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
}
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<InputField bind:this={inputFieldRef} {...props} type="time" />
|
|
12
|
+
<InputField bind:this={inputFieldRef} {...props} type="time" bind:value />
|