@muenchen/muc-patternlab-vue 1.13.0-beta.3 → 1.13.0-beta.4
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/Banner/MucBanner.vue.d.ts +12 -11
- package/dist/components/Banner/index.d.ts +0 -1
- package/dist/components/BuisnessHours/MucBusinessHours.vue.d.ts +74 -0
- package/dist/components/Button/MucButton.vue.d.ts +11 -11
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Callout/MucCallout.vue.d.ts +11 -11
- package/dist/components/Callout/index.d.ts +0 -1
- package/dist/components/Card/MucCard.vue.d.ts +8 -8
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Comment/MucComment.vue.d.ts +11 -12
- package/dist/components/Comment/MucCommentText.vue.d.ts +11 -12
- package/dist/components/Comment/index.d.ts +0 -1
- package/dist/components/Divider/index.d.ts +0 -1
- package/dist/components/Form/MucCheckbox.stories.d.ts +8 -2
- package/dist/components/Form/MucCheckbox.vue.d.ts +22 -14
- package/dist/components/Form/MucCheckboxGroup.stories.d.ts +24 -6
- package/dist/components/Form/MucCheckboxGroup.vue.d.ts +8 -8
- package/dist/components/Form/MucErrorList.vue.d.ts +3 -3
- package/dist/components/Form/MucInput.stories.d.ts +22 -8
- package/dist/components/Form/MucInput.vue.d.ts +66 -58
- package/dist/components/Form/MucRadioButton.stories.d.ts +30 -16
- package/dist/components/Form/MucRadioButton.vue.d.ts +11 -11
- package/dist/components/Form/MucRadioButtonGroup.vue.d.ts +38 -21
- package/dist/components/Form/MucRadioButtonTypes.d.ts +0 -1
- package/dist/components/Form/MucSelect.stories.d.ts +21 -4
- package/dist/components/Form/MucSelect.vue.d.ts +54 -33
- package/dist/components/Form/MucTextArea.stories.d.ts +14 -6
- package/dist/components/Form/MucTextArea.vue.d.ts +57 -45
- package/dist/components/Form/index.d.ts +0 -1
- package/dist/components/Icon/MucIcon.vue.d.ts +3 -3
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Intro/MucIntro.vue.d.ts +8 -8
- package/dist/components/Intro/index.d.ts +0 -1
- package/dist/components/Link/MucLink.vue.d.ts +11 -11
- package/dist/components/Link/index.d.ts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/composables/useOnClickOutside.d.ts +3 -0
- package/dist/index.d.ts +0 -1
- package/dist/muc-patternlab-vue.es.js +425 -387
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/Form/MucSelect.vue +82 -7
- package/src/composables/useOnClickOutside.ts +24 -0
|
@@ -1,36 +1,57 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
}>>, {
|
|
1
|
+
declare let __VLS_typeProps: {
|
|
2
|
+
/**
|
|
3
|
+
* List of items to be available
|
|
4
|
+
*/
|
|
5
|
+
items: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Optional label shown above the input
|
|
8
|
+
*/
|
|
9
|
+
label?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional hint shown below the input
|
|
12
|
+
*/
|
|
13
|
+
hint?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Allow multiple selectable items
|
|
16
|
+
*/
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Optional message shown no item is found after filtering
|
|
20
|
+
*/
|
|
21
|
+
noItemFoundMessage?: string;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_PublicProps = {
|
|
24
|
+
"modelValue"?: string | string[];
|
|
25
|
+
} & typeof __VLS_typeProps;
|
|
26
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
27
|
+
multiple: boolean;
|
|
28
|
+
noItemFoundMessage: string;
|
|
29
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (modelValue: string | string[]) => void;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
34
32
|
multiple: boolean;
|
|
33
|
+
noItemFoundMessage: string;
|
|
34
|
+
}>>> & {
|
|
35
|
+
"onUpdate:modelValue"?: ((modelValue: string | string[]) => any) | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
multiple: boolean;
|
|
38
|
+
noItemFoundMessage: string;
|
|
35
39
|
}, {}>;
|
|
36
40
|
export default _default;
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
49
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
+
type __VLS_TypePropsToOption<T> = {
|
|
51
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
+
} : {
|
|
54
|
+
type: import('vue').PropType<T[K]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
component: import('vue').DefineComponent<{
|
|
3
|
-
modelValue: import('vue').PropType<string>;
|
|
4
3
|
required: {
|
|
5
4
|
type: import('vue').PropType<boolean>;
|
|
6
5
|
default: boolean;
|
|
@@ -8,7 +7,7 @@ declare const _default: {
|
|
|
8
7
|
label: {
|
|
9
8
|
type: import('vue').PropType<string>;
|
|
10
9
|
};
|
|
11
|
-
|
|
10
|
+
modelValue: {
|
|
12
11
|
type: import('vue').PropType<string>;
|
|
13
12
|
};
|
|
14
13
|
errorMsg: {
|
|
@@ -17,12 +16,16 @@ declare const _default: {
|
|
|
17
16
|
placeholder: {
|
|
18
17
|
type: import('vue').PropType<string>;
|
|
19
18
|
};
|
|
19
|
+
hint: {
|
|
20
|
+
type: import('vue').PropType<string>;
|
|
21
|
+
};
|
|
20
22
|
rows: {
|
|
21
23
|
type: import('vue').PropType<number>;
|
|
22
24
|
default: number;
|
|
23
25
|
};
|
|
24
|
-
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
-
modelValue:
|
|
26
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (modelValue: string) => void;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
29
|
required: {
|
|
27
30
|
type: import('vue').PropType<boolean>;
|
|
28
31
|
default: boolean;
|
|
@@ -30,7 +33,7 @@ declare const _default: {
|
|
|
30
33
|
label: {
|
|
31
34
|
type: import('vue').PropType<string>;
|
|
32
35
|
};
|
|
33
|
-
|
|
36
|
+
modelValue: {
|
|
34
37
|
type: import('vue').PropType<string>;
|
|
35
38
|
};
|
|
36
39
|
errorMsg: {
|
|
@@ -39,11 +42,16 @@ declare const _default: {
|
|
|
39
42
|
placeholder: {
|
|
40
43
|
type: import('vue').PropType<string>;
|
|
41
44
|
};
|
|
45
|
+
hint: {
|
|
46
|
+
type: import('vue').PropType<string>;
|
|
47
|
+
};
|
|
42
48
|
rows: {
|
|
43
49
|
type: import('vue').PropType<number>;
|
|
44
50
|
default: number;
|
|
45
51
|
};
|
|
46
|
-
}
|
|
52
|
+
}>> & {
|
|
53
|
+
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
54
|
+
}, {
|
|
47
55
|
required: boolean;
|
|
48
56
|
rows: number;
|
|
49
57
|
}, {}>;
|
|
@@ -1,49 +1,61 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
required
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
rows: {
|
|
42
|
-
type: import('vue').PropType<number>;
|
|
43
|
-
default: number;
|
|
44
|
-
};
|
|
45
|
-
}>>, {
|
|
1
|
+
declare let __VLS_typeProps: {
|
|
2
|
+
/**
|
|
3
|
+
* Displays error message and highlights the input form with a red border.
|
|
4
|
+
*/
|
|
5
|
+
errorMsg?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Number of rows displayed of the textarea. Default is three.
|
|
8
|
+
*/
|
|
9
|
+
rows?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Placeholder for empty input form.
|
|
12
|
+
*/
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Displays a label above the form component.
|
|
16
|
+
*/
|
|
17
|
+
label?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Displays a hint beneath the form component.
|
|
20
|
+
*/
|
|
21
|
+
hint?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Sets this input form as required. Default is false.
|
|
24
|
+
*/
|
|
25
|
+
required?: boolean;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_PublicProps = {
|
|
28
|
+
modelValue?: string;
|
|
29
|
+
} & typeof __VLS_typeProps;
|
|
30
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
31
|
+
rows: number;
|
|
32
|
+
required: boolean;
|
|
33
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
"update:modelValue": (modelValue: string) => void;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
36
|
+
rows: number;
|
|
37
|
+
required: boolean;
|
|
38
|
+
}>>> & {
|
|
39
|
+
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
40
|
+
}, {
|
|
46
41
|
required: boolean;
|
|
47
42
|
rows: number;
|
|
48
43
|
}, {}>;
|
|
49
44
|
export default _default;
|
|
45
|
+
type __VLS_WithDefaults<P, D> = {
|
|
46
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
47
|
+
default: D[K];
|
|
48
|
+
}> : P[K];
|
|
49
|
+
};
|
|
50
|
+
type __VLS_Prettify<T> = {
|
|
51
|
+
[K in keyof T]: T[K];
|
|
52
|
+
} & {};
|
|
53
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
|
+
type __VLS_TypePropsToOption<T> = {
|
|
55
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
56
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
57
|
+
} : {
|
|
58
|
+
type: import('vue').PropType<T[K]>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -6,5 +6,4 @@ import { default as MucRadioButton } from './MucRadioButton.vue';
|
|
|
6
6
|
import { default as MucRadioButtonGroup } from './MucRadioButtonGroup.vue';
|
|
7
7
|
import { default as MucSelect } from './MucSelect.vue';
|
|
8
8
|
import { default as MucTextArea } from './MucTextArea.vue';
|
|
9
|
-
|
|
10
9
|
export { MucForm, MucCheckbox, MucCheckboxGroup, MucRadioButtonGroup, MucInput, MucRadioButton, MucTextArea, MucErrorList, MucSelect, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
/**
|
|
3
3
|
* String of the icon to be displayed.
|
|
4
4
|
*/
|
|
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
7
7
|
* Optional css-color for the icon.
|
|
8
8
|
*/
|
|
9
9
|
color?: string;
|
|
10
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<
|
|
10
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
11
|
/**
|
|
12
12
|
* String of the icon to be displayed.
|
|
13
13
|
*/
|
|
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
19
19
|
}>>>, {}, {}>;
|
|
20
20
|
export default _default;
|
|
21
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
-
type
|
|
22
|
+
type __VLS_TypePropsToOption<T> = {
|
|
23
23
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
24
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
25
|
} : {
|
|
@@ -9,7 +9,7 @@ declare function __VLS_template(): Readonly<{
|
|
|
9
9
|
*/
|
|
10
10
|
default(): any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
13
13
|
/**
|
|
14
14
|
* Title of the Intro
|
|
15
15
|
*/
|
|
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRu
|
|
|
22
22
|
* Toggle to show a divider between title and body
|
|
23
23
|
*/
|
|
24
24
|
divider: boolean;
|
|
25
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<
|
|
25
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
26
26
|
/**
|
|
27
27
|
* Title of the Intro
|
|
28
28
|
*/
|
|
@@ -38,8 +38,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRu
|
|
|
38
38
|
}>>>, {}, {}>;
|
|
39
39
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
40
40
|
export default _default;
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
41
46
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
-
type
|
|
47
|
+
type __VLS_TypePropsToOption<T> = {
|
|
43
48
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
49
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
50
|
} : {
|
|
@@ -47,8 +52,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
47
52
|
required: true;
|
|
48
53
|
};
|
|
49
54
|
};
|
|
50
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
-
new (): {
|
|
52
|
-
$slots: S;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
@@ -11,7 +11,7 @@ declare function __VLS_template(): Readonly<{
|
|
|
11
11
|
*/
|
|
12
12
|
icon(): void;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
15
15
|
/**
|
|
16
16
|
* Text shown as the link
|
|
17
17
|
*/
|
|
@@ -36,7 +36,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
36
36
|
noUnderline: boolean;
|
|
37
37
|
href: string;
|
|
38
38
|
target: string;
|
|
39
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
39
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
40
40
|
/**
|
|
41
41
|
* Text shown as the link
|
|
42
42
|
*/
|
|
@@ -68,15 +68,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
68
68
|
}, {}>;
|
|
69
69
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
70
70
|
export default _default;
|
|
71
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
72
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
73
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
74
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
75
|
-
} : {
|
|
76
|
-
type: import('vue').PropType<T[K]>;
|
|
77
|
-
required: true;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
71
|
type __VLS_WithDefaults<P, D> = {
|
|
81
72
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
82
73
|
default: D[K];
|
|
@@ -90,3 +81,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
90
81
|
$slots: S;
|
|
91
82
|
};
|
|
92
83
|
};
|
|
84
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
85
|
+
type __VLS_TypePropsToOption<T> = {
|
|
86
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
87
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
88
|
+
} : {
|
|
89
|
+
type: import('vue').PropType<T[K]>;
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -8,5 +8,4 @@ import { MucCheckbox, MucCheckboxGroup, MucErrorList, MucInput, MucRadioButton,
|
|
|
8
8
|
import { MucIcon } from './Icon';
|
|
9
9
|
import { MucIntro } from './Intro';
|
|
10
10
|
import { MucLink } from './Link';
|
|
11
|
-
|
|
12
11
|
export { MucButton, MucBanner, MucIntro, MucCallout, MucCard, MucCardContainer, MucComment, MucCommentText, MucRadioButton, MucRadioButtonGroup, MucInput, MucTextArea, MucCheckboxGroup, MucCheckbox, MucSelect, MucErrorList, MucIcon, MucDivider, MucLink, };
|