@muenchen/muc-patternlab-vue 1.13.0-beta.5 → 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/MucCounter.stories.d.ts +89 -0
- package/dist/components/Form/MucCounter.vue.d.ts +54 -0
- 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/components/Form/index.d.ts +2 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/muc-patternlab-vue.es.js +497 -401
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/Form/MucCounter.stories.ts +47 -0
- package/src/components/Form/MucCounter.vue +128 -0
- 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
- package/src/components/Form/index.ts +2 -0
- package/src/components/index.ts +2 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: import('vue').DefineComponent<{
|
|
3
|
+
link: {
|
|
4
|
+
type: import('vue').PropType<string>;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: import('vue').PropType<string>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
disabled: {
|
|
11
|
+
type: import('vue').PropType<boolean>;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: import('vue').PropType<number>;
|
|
16
|
+
};
|
|
17
|
+
min: {
|
|
18
|
+
type: import('vue').PropType<number>;
|
|
19
|
+
};
|
|
20
|
+
max: {
|
|
21
|
+
type: import('vue').PropType<number>;
|
|
22
|
+
};
|
|
23
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (modelValue: number) => void;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
+
link: {
|
|
27
|
+
type: import('vue').PropType<string>;
|
|
28
|
+
};
|
|
29
|
+
label: {
|
|
30
|
+
type: import('vue').PropType<string>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
type: import('vue').PropType<boolean>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: import('vue').PropType<number>;
|
|
39
|
+
};
|
|
40
|
+
min: {
|
|
41
|
+
type: import('vue').PropType<number>;
|
|
42
|
+
};
|
|
43
|
+
max: {
|
|
44
|
+
type: import('vue').PropType<number>;
|
|
45
|
+
};
|
|
46
|
+
}>> & {
|
|
47
|
+
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
}, {}>;
|
|
51
|
+
title: string;
|
|
52
|
+
tags: string[];
|
|
53
|
+
parameters: {
|
|
54
|
+
docs: {
|
|
55
|
+
description: {
|
|
56
|
+
component: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export default _default;
|
|
62
|
+
export declare const Default: {
|
|
63
|
+
args: {
|
|
64
|
+
modelValue: number;
|
|
65
|
+
label: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare const MinAndMax: {
|
|
69
|
+
args: {
|
|
70
|
+
modelValue: number;
|
|
71
|
+
min: number;
|
|
72
|
+
max: number;
|
|
73
|
+
label: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export declare const Link: {
|
|
77
|
+
args: {
|
|
78
|
+
link: string;
|
|
79
|
+
modelValue: number;
|
|
80
|
+
label: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
export declare const Disabled: {
|
|
84
|
+
args: {
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
modelValue: number;
|
|
87
|
+
label: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare let __VLS_typeProps: {
|
|
2
|
+
/**
|
|
3
|
+
* Label shown after the counter
|
|
4
|
+
*/
|
|
5
|
+
label: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional minimum of counter
|
|
8
|
+
*/
|
|
9
|
+
min?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Optional maximum of counter
|
|
12
|
+
*/
|
|
13
|
+
max?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Optional link for label
|
|
16
|
+
*/
|
|
17
|
+
link?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optionally disable this specific counter
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_PublicProps = {
|
|
24
|
+
modelValue?: number;
|
|
25
|
+
} & typeof __VLS_typeProps;
|
|
26
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (modelValue: number) => void;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
}>>> & {
|
|
33
|
+
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithDefaults<P, D> = {
|
|
39
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
40
|
+
default: D[K];
|
|
41
|
+
}> : P[K];
|
|
42
|
+
};
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
46
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
47
|
+
type __VLS_TypePropsToOption<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
+
} : {
|
|
51
|
+
type: import('vue').PropType<T[K]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { default as MucCheckbox } from './MucCheckbox.vue';
|
|
2
2
|
import { default as MucCheckboxGroup } from './MucCheckboxGroup.vue';
|
|
3
|
+
import { default as MucCounter } from './MucCounter.vue';
|
|
3
4
|
import { default as MucErrorList } from './MucErrorList.vue';
|
|
4
5
|
import { default as MucForm } from './MucInput.vue';
|
|
5
6
|
import { default as MucRadioButton } from './MucRadioButton.vue';
|
|
6
7
|
import { default as MucRadioButtonGroup } from './MucRadioButtonGroup.vue';
|
|
7
8
|
import { default as MucSelect } from './MucSelect.vue';
|
|
8
9
|
import { default as MucTextArea } from './MucTextArea.vue';
|
|
9
|
-
export { MucForm, MucCheckbox, MucCheckboxGroup, MucRadioButtonGroup, MucInput, MucRadioButton, MucTextArea, MucErrorList, MucSelect, };
|
|
10
|
+
export { MucForm, MucCheckbox, MucCheckboxGroup, MucCounter, MucRadioButtonGroup, MucInput, MucRadioButton, MucTextArea, MucErrorList, MucSelect, };
|
|
@@ -4,8 +4,8 @@ import { MucCallout } from './Callout';
|
|
|
4
4
|
import { MucCard, MucCardContainer } from './Card';
|
|
5
5
|
import { MucComment, MucCommentText } from './Comment/';
|
|
6
6
|
import { MucDivider } from './Divider';
|
|
7
|
-
import { MucCheckbox, MucCheckboxGroup, MucErrorList, MucInput, MucRadioButton, MucRadioButtonGroup, MucSelect, MucTextArea } from './Form';
|
|
7
|
+
import { MucCheckbox, MucCheckboxGroup, MucCounter, MucErrorList, MucInput, MucRadioButton, MucRadioButtonGroup, MucSelect, MucTextArea } from './Form';
|
|
8
8
|
import { MucIcon } from './Icon';
|
|
9
9
|
import { MucIntro } from './Intro';
|
|
10
10
|
import { MucLink } from './Link';
|
|
11
|
-
export { MucButton, MucBanner, MucIntro, MucCallout, MucCard, MucCardContainer, MucComment, MucCommentText, MucRadioButton, MucRadioButtonGroup, MucInput, MucTextArea, MucCheckboxGroup, MucCheckbox, MucSelect, MucErrorList, MucIcon, MucDivider, MucLink, };
|
|
11
|
+
export { MucButton, MucBanner, MucIntro, MucCallout, MucCard, MucCardContainer, MucComment, MucCommentText, MucRadioButton, MucRadioButtonGroup, MucInput, MucTextArea, MucCheckboxGroup, MucCheckbox, MucSelect, MucErrorList, MucIcon, MucDivider, MucLink, MucCounter, };
|