@muenchen/muc-patternlab-vue 1.13.0-beta.6 → 1.13.0-beta.7
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/components/Form/MucSelect.stories.d.ts +43 -8
- package/dist/components/Form/MucSelect.vue.d.ts +12 -4
- package/dist/components/Form/MucSelectItem.vue.d.ts +18 -0
- package/dist/components/Form/MucSelectTypes.d.ts +7 -0
- package/dist/muc-patternlab-vue.es.js +375 -339
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Form/MucSelect.stories.ts +39 -4
- package/src/components/Form/MucSelect.vue +98 -22
- package/src/components/Form/MucSelectItem.vue +25 -0
- package/src/components/Form/MucSelectTypes.ts +8 -0
|
@@ -4,13 +4,13 @@ declare const _default: {
|
|
|
4
4
|
type: import('vue').PropType<string>;
|
|
5
5
|
};
|
|
6
6
|
modelValue: {
|
|
7
|
-
type: import('vue').PropType<
|
|
7
|
+
type: import('vue').PropType<import('./MucSelectTypes').MucSelectItemTypes | import('./MucSelectTypes').MucSelectItemTypes[]>;
|
|
8
8
|
};
|
|
9
9
|
hint: {
|
|
10
10
|
type: import('vue').PropType<string>;
|
|
11
11
|
};
|
|
12
12
|
items: {
|
|
13
|
-
type: import('vue').PropType<
|
|
13
|
+
type: import('vue').PropType<import('./MucSelectTypes').MucSelectItemTypes[]>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
16
|
multiple: {
|
|
@@ -21,20 +21,24 @@ declare const _default: {
|
|
|
21
21
|
type: import('vue').PropType<string>;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
|
+
itemTitle: {
|
|
25
|
+
type: import('vue').PropType<string>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
24
28
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
-
"update:modelValue": (modelValue:
|
|
29
|
+
"update:modelValue": (modelValue: import('./MucSelectTypes').MucSelectItemTypes | import('./MucSelectTypes').MucSelectItemTypes[]) => void;
|
|
26
30
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
27
31
|
label: {
|
|
28
32
|
type: import('vue').PropType<string>;
|
|
29
33
|
};
|
|
30
34
|
modelValue: {
|
|
31
|
-
type: import('vue').PropType<
|
|
35
|
+
type: import('vue').PropType<import('./MucSelectTypes').MucSelectItemTypes | import('./MucSelectTypes').MucSelectItemTypes[]>;
|
|
32
36
|
};
|
|
33
37
|
hint: {
|
|
34
38
|
type: import('vue').PropType<string>;
|
|
35
39
|
};
|
|
36
40
|
items: {
|
|
37
|
-
type: import('vue').PropType<
|
|
41
|
+
type: import('vue').PropType<import('./MucSelectTypes').MucSelectItemTypes[]>;
|
|
38
42
|
required: true;
|
|
39
43
|
};
|
|
40
44
|
multiple: {
|
|
@@ -45,11 +49,16 @@ declare const _default: {
|
|
|
45
49
|
type: import('vue').PropType<string>;
|
|
46
50
|
default: string;
|
|
47
51
|
};
|
|
52
|
+
itemTitle: {
|
|
53
|
+
type: import('vue').PropType<string>;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
48
56
|
}>> & {
|
|
49
|
-
"onUpdate:modelValue"?: ((modelValue:
|
|
57
|
+
"onUpdate:modelValue"?: ((modelValue: import('./MucSelectTypes').MucSelectItemTypes | import('./MucSelectTypes').MucSelectItemTypes[]) => any) | undefined;
|
|
50
58
|
}, {
|
|
51
59
|
multiple: boolean;
|
|
52
60
|
noItemFoundMessage: string;
|
|
61
|
+
itemTitle: string;
|
|
53
62
|
}, {}>;
|
|
54
63
|
title: string;
|
|
55
64
|
tags: string[];
|
|
@@ -64,18 +73,44 @@ declare const _default: {
|
|
|
64
73
|
export default _default;
|
|
65
74
|
export declare const Default: {
|
|
66
75
|
args: {
|
|
67
|
-
modelValue:
|
|
68
|
-
|
|
76
|
+
modelValue: {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
quantity: number;
|
|
80
|
+
};
|
|
81
|
+
items: {
|
|
82
|
+
id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
quantity: number;
|
|
85
|
+
}[];
|
|
69
86
|
label: string;
|
|
70
87
|
hint: string;
|
|
88
|
+
itemTitle: string;
|
|
71
89
|
};
|
|
72
90
|
};
|
|
73
91
|
export declare const MultiSelect: {
|
|
74
92
|
args: {
|
|
75
93
|
label: string;
|
|
76
94
|
multiple: boolean;
|
|
95
|
+
modelValue: {
|
|
96
|
+
id: string;
|
|
97
|
+
name: string;
|
|
98
|
+
quantity: number;
|
|
99
|
+
};
|
|
100
|
+
items: {
|
|
101
|
+
id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
quantity: number;
|
|
104
|
+
}[];
|
|
105
|
+
hint: string;
|
|
106
|
+
itemTitle: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export declare const StringSelect: {
|
|
110
|
+
args: {
|
|
77
111
|
modelValue: string;
|
|
78
112
|
items: string[];
|
|
113
|
+
label: string;
|
|
79
114
|
hint: string;
|
|
80
115
|
};
|
|
81
116
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { MucSelectItemTypes } from './MucSelectTypes';
|
|
1
2
|
declare let __VLS_typeProps: {
|
|
2
3
|
/**
|
|
3
4
|
* List of items to be available
|
|
4
5
|
*/
|
|
5
|
-
items:
|
|
6
|
+
items: MucSelectItemTypes[];
|
|
6
7
|
/**
|
|
7
8
|
* Optional label shown above the input
|
|
8
9
|
*/
|
|
@@ -19,23 +20,30 @@ declare let __VLS_typeProps: {
|
|
|
19
20
|
* Optional message shown no item is found after filtering
|
|
20
21
|
*/
|
|
21
22
|
noItemFoundMessage?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Property that contains the value to be displayed in the list when a list of objects is used
|
|
25
|
+
*/
|
|
26
|
+
itemTitle?: string;
|
|
22
27
|
};
|
|
23
28
|
type __VLS_PublicProps = {
|
|
24
|
-
"modelValue"?:
|
|
29
|
+
"modelValue"?: MucSelectItemTypes | MucSelectItemTypes[];
|
|
25
30
|
} & typeof __VLS_typeProps;
|
|
26
31
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
27
32
|
multiple: boolean;
|
|
28
33
|
noItemFoundMessage: string;
|
|
34
|
+
itemTitle: string;
|
|
29
35
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
-
"update:modelValue": (modelValue:
|
|
36
|
+
"update:modelValue": (modelValue: MucSelectItemTypes | MucSelectItemTypes[]) => void;
|
|
31
37
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
32
38
|
multiple: boolean;
|
|
33
39
|
noItemFoundMessage: string;
|
|
40
|
+
itemTitle: string;
|
|
34
41
|
}>>> & {
|
|
35
|
-
"onUpdate:modelValue"?: ((modelValue:
|
|
42
|
+
"onUpdate:modelValue"?: ((modelValue: MucSelectItemTypes | MucSelectItemTypes[]) => any) | undefined;
|
|
36
43
|
}, {
|
|
37
44
|
multiple: boolean;
|
|
38
45
|
noItemFoundMessage: string;
|
|
46
|
+
itemTitle: string;
|
|
39
47
|
}, {}>;
|
|
40
48
|
export default _default;
|
|
41
49
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MucSelectItemTypes } from './MucSelectTypes';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
item: MucSelectItemTypes;
|
|
4
|
+
itemLabel: string;
|
|
5
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
|
+
item: MucSelectItemTypes;
|
|
7
|
+
itemLabel: string;
|
|
8
|
+
}>>>, {}, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToOption<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|