@ticatec/uniface-element 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.
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
export let showActionIcon: boolean = false;
|
|
19
19
|
export let clean: () => void;
|
|
20
20
|
|
|
21
|
-
export let hasLeadingIcon: boolean =
|
|
22
|
-
export let hasTrailingIcon: boolean =
|
|
21
|
+
export let hasLeadingIcon: boolean = $$slots['leading-icon'];
|
|
22
|
+
export let hasTrailingIcon: boolean = $$slots['trailing-icon'];
|
|
23
23
|
|
|
24
24
|
let className: string = '';
|
|
25
25
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
export let variant: '' | 'plain' | 'outlined' | 'filled' = '';
|
|
7
7
|
export let compact: boolean = false;
|
|
8
8
|
export let style: string = '';
|
|
9
|
-
export let value: string
|
|
9
|
+
export let value: string | null;
|
|
10
10
|
export let disabled: boolean = false;
|
|
11
|
-
export let onChange: OnChangeHandler<string> = null as unknown as OnChangeHandler<string>;
|
|
11
|
+
export let onChange: OnChangeHandler<string|null> = null as unknown as OnChangeHandler<string|null>;
|
|
12
12
|
|
|
13
13
|
export let placeholder: string | null = null;
|
|
14
14
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
let composing: boolean = false;
|
|
23
23
|
let inputText: string;
|
|
24
24
|
|
|
25
|
-
$: inputText = value;
|
|
25
|
+
$: inputText = value??'';
|
|
26
26
|
|
|
27
27
|
const handleInput = () => {
|
|
28
28
|
if (composing == false) {
|
|
@@ -16,9 +16,9 @@ declare const SearchBox: $$__sveltets_2_IsomorphicComponent<{
|
|
|
16
16
|
variant?: "" | "plain" | "outlined" | "filled";
|
|
17
17
|
compact?: boolean;
|
|
18
18
|
style?: string;
|
|
19
|
-
value
|
|
19
|
+
value: string | null;
|
|
20
20
|
disabled?: boolean;
|
|
21
|
-
onChange?: OnChangeHandler<string>;
|
|
21
|
+
onChange?: OnChangeHandler<string | null>;
|
|
22
22
|
placeholder?: string | null;
|
|
23
23
|
focus?: () => void;
|
|
24
24
|
}, {
|