@lavalogic/scoria 0.0.39 → 0.0.40
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.
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
4
|
interface QuerySelectPropsAsObjectCommonProps<V extends object, VP extends ValueProp<V>> {
|
|
5
|
-
options: V[];
|
|
6
|
-
|
|
7
5
|
labelProp: NonNullableKey<V>;
|
|
8
6
|
valueProp: VP;
|
|
9
7
|
|
|
10
8
|
query: (value: string) => Promise<V[]>;
|
|
11
9
|
onchange: (newValue: V | null) => void;
|
|
12
10
|
|
|
11
|
+
options?: V[];
|
|
13
12
|
name?: string;
|
|
14
13
|
disabled?: boolean;
|
|
15
14
|
width?: string;
|
|
@@ -34,6 +33,7 @@
|
|
|
34
33
|
extends QuerySelectPropsAsObjectCommonProps<V, VP> {
|
|
35
34
|
valueAsObject: false;
|
|
36
35
|
value: V[VP] | null;
|
|
36
|
+
options: V[];
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export type QuerySelectProps<V extends object, VP extends ValueProp<V>> =
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
interface QuerySelectPropsAsObjectCommonProps<V extends object, VP extends ValueProp<V>> {
|
|
2
|
-
options: V[];
|
|
3
2
|
labelProp: NonNullableKey<V>;
|
|
4
3
|
valueProp: VP;
|
|
5
4
|
query: (value: string) => Promise<V[]>;
|
|
6
5
|
onchange: (newValue: V | null) => void;
|
|
6
|
+
options?: V[];
|
|
7
7
|
name?: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
width?: string;
|
|
@@ -24,6 +24,7 @@ export interface QuerySelectPropsAsObject<V extends object, VP extends ValueProp
|
|
|
24
24
|
export interface QuerySelectPropsAsPrimitive<V extends object, VP extends ValueProp<V>> extends QuerySelectPropsAsObjectCommonProps<V, VP> {
|
|
25
25
|
valueAsObject: false;
|
|
26
26
|
value: V[VP] | null;
|
|
27
|
+
options: V[];
|
|
27
28
|
}
|
|
28
29
|
export type QuerySelectProps<V extends object, VP extends ValueProp<V>> = QuerySelectPropsAsObject<V, VP> | QuerySelectPropsAsPrimitive<V, VP>;
|
|
29
30
|
import type { NonNullableKey, ValueProp } from '../Types/Internal/Misc.js';
|