@muenchen/muc-patternlab-vue 2.1.2-beta.1 → 3.0.0-beta.2

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.
@@ -3,9 +3,12 @@ declare const _default: {
3
3
  modelValue?: import('./MucCalendarType').MucCalendarSelected;
4
4
  } & {
5
5
  viewMonth?: Date;
6
+ min?: Date;
7
+ max?: Date;
6
8
  showAdjacentMonths?: boolean;
7
9
  variant?: import('./MucCalendarType').CalendarTypes;
8
10
  disabled?: boolean;
11
+ disableViewChange?: boolean;
9
12
  noAnimation?: boolean;
10
13
  allowedDates?: import('./MucCalendarType').AllowedDateFunction;
11
14
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -14,9 +17,12 @@ declare const _default: {
14
17
  modelValue?: import('./MucCalendarType').MucCalendarSelected;
15
18
  } & {
16
19
  viewMonth?: Date;
20
+ min?: Date;
21
+ max?: Date;
17
22
  showAdjacentMonths?: boolean;
18
23
  variant?: import('./MucCalendarType').CalendarTypes;
19
24
  disabled?: boolean;
25
+ disableViewChange?: boolean;
20
26
  noAnimation?: boolean;
21
27
  allowedDates?: import('./MucCalendarType').AllowedDateFunction;
22
28
  }> & Readonly<{
@@ -34,24 +40,68 @@ declare const _default: {
34
40
  };
35
41
  export default _default;
36
42
  export declare const Single: {
43
+ argTypes: {
44
+ viewMonth: {
45
+ control: string;
46
+ };
47
+ min: {
48
+ control: string;
49
+ };
50
+ max: {
51
+ control: string;
52
+ };
53
+ };
37
54
  args: {
38
55
  variant: string;
39
56
  showAdjacentMonths: boolean;
40
57
  };
41
58
  };
42
59
  export declare const MultipleWithSelectedViewMonth: {
60
+ argTypes: {
61
+ viewMonth: {
62
+ control: string;
63
+ };
64
+ min: {
65
+ control: string;
66
+ };
67
+ max: {
68
+ control: string;
69
+ };
70
+ };
43
71
  args: {
44
72
  variant: string;
45
73
  viewMonth: Date;
46
74
  };
47
75
  };
48
76
  export declare const Range: {
77
+ argTypes: {
78
+ viewMonth: {
79
+ control: string;
80
+ };
81
+ min: {
82
+ control: string;
83
+ };
84
+ max: {
85
+ control: string;
86
+ };
87
+ };
49
88
  args: {
50
89
  variant: string;
51
90
  showAdjacentMonths: boolean;
52
91
  };
53
92
  };
54
93
  export declare const DisabledWithPreSelectedDate: {
94
+ argTypes: {
95
+ viewMonth: {
96
+ control: string;
97
+ };
98
+ min: {
99
+ control: string;
100
+ };
101
+ max: {
102
+ control: string;
103
+ };
104
+ };
55
105
  args: {
56
106
  disabled: boolean;
57
107
  showAdjacentMonths: boolean;
@@ -59,15 +109,74 @@ export declare const DisabledWithPreSelectedDate: {
59
109
  };
60
110
  };
61
111
  export declare const AllowedDatesWithNoAnimation: {
112
+ argTypes: {
113
+ viewMonth: {
114
+ control: string;
115
+ };
116
+ min: {
117
+ control: string;
118
+ };
119
+ max: {
120
+ control: string;
121
+ };
122
+ };
62
123
  args: {
63
124
  noAnimation: boolean;
64
125
  allowedDates: (date: Date) => boolean;
65
126
  };
66
127
  };
67
128
  export declare const DisabledPreSelectedViewMonth: {
129
+ argTypes: {
130
+ viewMonth: {
131
+ control: string;
132
+ };
133
+ min: {
134
+ control: string;
135
+ };
136
+ max: {
137
+ control: string;
138
+ };
139
+ };
68
140
  args: {
69
141
  disabled: boolean;
70
142
  showAdjacentMonths: boolean;
71
143
  viewMonth: Date;
72
144
  };
73
145
  };
146
+ export declare const DisableViewChange: {
147
+ argTypes: {
148
+ viewMonth: {
149
+ control: string;
150
+ };
151
+ min: {
152
+ control: string;
153
+ };
154
+ max: {
155
+ control: string;
156
+ };
157
+ };
158
+ args: {
159
+ variant: string;
160
+ showAdjacentMonths: boolean;
161
+ disableViewChange: boolean;
162
+ };
163
+ };
164
+ export declare const MinAndMax: {
165
+ argTypes: {
166
+ viewMonth: {
167
+ control: string;
168
+ };
169
+ min: {
170
+ control: string;
171
+ };
172
+ max: {
173
+ control: string;
174
+ };
175
+ };
176
+ args: {
177
+ variant: string;
178
+ viewMonth: Date;
179
+ min: Date;
180
+ max: Date;
181
+ };
182
+ };
@@ -4,6 +4,14 @@ type __VLS_Props = {
4
4
  * Initial date to be displayed on the selection screen
5
5
  */
6
6
  viewMonth?: Date;
7
+ /**
8
+ * Earliest selectable date
9
+ */
10
+ min?: Date;
11
+ /**
12
+ * Latest selectable date
13
+ */
14
+ max?: Date;
7
15
  /**
8
16
  * Select if adjacent (before and after) month should be shown in the selection of the day. Defaults to false
9
17
  */
@@ -16,6 +24,10 @@ type __VLS_Props = {
16
24
  * Disable the selection of dates by the user. Defaults to false
17
25
  */
18
26
  disabled?: boolean;
27
+ /**
28
+ * Disables the change of the calendar view. Only show month view. Defaults to false
29
+ */
30
+ disableViewChange?: boolean;
19
31
  /**
20
32
  * Disables the animation
21
33
  */
@@ -1,4 +1,4 @@
1
- import { InjectionKey, Ref } from 'vue';
1
+ import { ComputedRef, InjectionKey, Ref } from 'vue';
2
2
  /**
3
3
  * Different possible types of date selection for the calendar
4
4
  */
@@ -24,6 +24,8 @@ type MucCalendarSelected = null | Date | Date[] | MucDateRange;
24
24
  */
25
25
  type MucCalendarInjection = {
26
26
  viewDate: Readonly<Ref<Date>>;
27
+ minDate: ComputedRef<Date | undefined>;
28
+ maxDate: ComputedRef<Date | undefined>;
27
29
  selectedDate: Readonly<Ref<MucCalendarSelected>>;
28
30
  variant: Readonly<Ref<CalendarTypes>>;
29
31
  showAdjacentMonths: Readonly<Ref<boolean>>;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * Date of for this tile to be displayed
4
+ */
5
+ date: Date;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ click: (date: Date) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onClick?: ((date: Date) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * Date of for this tile to be displayed
4
+ */
5
+ date: Date;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ click: (date: Date) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onClick?: ((date: Date) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ export default _default;
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  component: import('vue').DefineComponent<{
3
3
  modelValue?: boolean;
4
4
  } & {
5
+ id: string;
5
6
  label: string;
6
7
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
8
  "update:modelValue": (value: boolean) => any;
@@ -10,6 +11,7 @@ declare const _default: {
10
11
  }, string, import('vue').PublicProps, Readonly<{
11
12
  modelValue?: boolean;
12
13
  } & {
14
+ id: string;
13
15
  label: string;
14
16
  }> & Readonly<{
15
17
  onClick?: (() => any) | undefined;
@@ -28,6 +30,7 @@ declare const _default: {
28
30
  export default _default;
29
31
  export declare const Default: {
30
32
  args: {
33
+ id: string;
31
34
  label: string;
32
35
  };
33
36
  };
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Unique identifier for the checkbox. Required property used to associate the checkbox with its label and hint text for accessibility.
4
+ */
5
+ id: string;
2
6
  /**
3
7
  * Label is displayed to the right of the checkbox as information for the user.
4
8
  */
@@ -30,6 +30,7 @@ declare const _default: {
30
30
  MucCheckbox: import('vue').DefineComponent<{
31
31
  modelValue?: boolean;
32
32
  } & {
33
+ id: string;
33
34
  label: string;
34
35
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
36
  "update:modelValue": (value: boolean) => any;
@@ -38,6 +39,7 @@ declare const _default: {
38
39
  }, string, import('vue').PublicProps, Readonly<{
39
40
  modelValue?: boolean;
40
41
  } & {
42
+ id: string;
41
43
  label: string;
42
44
  }> & Readonly<{
43
45
  onClick?: (() => any) | undefined;
@@ -87,6 +89,7 @@ export declare const NotCollapsable: () => {
87
89
  MucCheckbox: import('vue').DefineComponent<{
88
90
  modelValue?: boolean;
89
91
  } & {
92
+ id: string;
90
93
  label: string;
91
94
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
92
95
  "update:modelValue": (value: boolean) => any;
@@ -95,6 +98,7 @@ export declare const NotCollapsable: () => {
95
98
  }, string, import('vue').PublicProps, Readonly<{
96
99
  modelValue?: boolean;
97
100
  } & {
101
+ id: string;
98
102
  label: string;
99
103
  }> & Readonly<{
100
104
  onClick?: (() => any) | undefined;
@@ -135,6 +139,7 @@ export declare const Collapsable: () => {
135
139
  MucCheckbox: import('vue').DefineComponent<{
136
140
  modelValue?: boolean;
137
141
  } & {
142
+ id: string;
138
143
  label: string;
139
144
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
140
145
  "update:modelValue": (value: boolean) => any;
@@ -143,6 +148,7 @@ export declare const Collapsable: () => {
143
148
  }, string, import('vue').PublicProps, Readonly<{
144
149
  modelValue?: boolean;
145
150
  } & {
151
+ id: string;
146
152
  label: string;
147
153
  }> & Readonly<{
148
154
  onClick?: (() => any) | undefined;
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
4
  modelValue?: string;
5
5
  } & {
6
+ id: string;
6
7
  errorMsg?: string;
7
8
  placeholder?: string;
8
9
  required?: boolean;
@@ -28,6 +29,7 @@ declare const _default: {
28
29
  }, Readonly<{
29
30
  modelValue?: string;
30
31
  } & {
32
+ id: string;
31
33
  errorMsg?: string;
32
34
  placeholder?: string;
33
35
  required?: boolean;
@@ -46,6 +48,7 @@ declare const _default: {
46
48
  } & import('vue').ComponentOptionsBase<Readonly<{
47
49
  modelValue?: string;
48
50
  } & {
51
+ id: string;
49
52
  errorMsg?: string;
50
53
  placeholder?: string;
51
54
  required?: boolean;
@@ -81,11 +84,13 @@ declare const _default: {
81
84
  export default _default;
82
85
  export declare const Default: {
83
86
  args: {
87
+ id: string;
84
88
  placeholder: string;
85
89
  };
86
90
  };
87
91
  export declare const HintAndLabel: {
88
92
  args: {
93
+ id: string;
89
94
  hint: string;
90
95
  label: string;
91
96
  placeholder: string;
@@ -93,6 +98,7 @@ export declare const HintAndLabel: {
93
98
  };
94
99
  export declare const Password: {
95
100
  args: {
101
+ id: string;
96
102
  type: string;
97
103
  modelValue: string;
98
104
  hint: string;
@@ -101,6 +107,7 @@ export declare const Password: {
101
107
  };
102
108
  export declare const Error: {
103
109
  args: {
110
+ id: string;
104
111
  errorMsg: string;
105
112
  hint: string;
106
113
  placeholder: string;
@@ -108,18 +115,21 @@ export declare const Error: {
108
115
  };
109
116
  export declare const Prefix: {
110
117
  args: {
118
+ id: string;
111
119
  prefix: string;
112
120
  placeholder: string;
113
121
  };
114
122
  };
115
123
  export declare const SuffixIcon: {
116
124
  args: {
125
+ id: string;
117
126
  suffixIcon: string;
118
127
  placeholder: string;
119
128
  };
120
129
  };
121
130
  export declare const Search: {
122
131
  args: {
132
+ id: string;
123
133
  type: string;
124
134
  dataList: string[];
125
135
  placeholder: string;
@@ -127,16 +137,19 @@ export declare const Search: {
127
137
  };
128
138
  export declare const Color: {
129
139
  args: {
140
+ id: string;
130
141
  type: string;
131
142
  };
132
143
  };
133
144
  export declare const Date: {
134
145
  args: {
146
+ id: string;
135
147
  type: string;
136
148
  };
137
149
  };
138
150
  export declare const Datetime_Local: {
139
151
  args: {
152
+ id: string;
140
153
  type: string;
141
154
  };
142
155
  };
@@ -3,6 +3,10 @@
3
3
  */
4
4
  type InputType = "text" | "password" | "color" | "search" | "date" | "datetime-local";
5
5
  type __VLS_Props = {
6
+ /**
7
+ * Unique identifier for the input. Required property used to associate the input with its label and hint text for accessibility.
8
+ */
9
+ id: string;
6
10
  /**
7
11
  * Displays error message and highlights the input form with a red border.
8
12
  */
@@ -1,10 +1,12 @@
1
1
  declare const _default: {
2
2
  component: import('vue').DefineComponent<{
3
+ id: string;
3
4
  value: string;
4
5
  label?: string;
5
6
  hint?: string;
6
7
  disabled?: boolean;
7
8
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
9
+ id: string;
8
10
  value: string;
9
11
  label?: string;
10
12
  hint?: string;
@@ -24,11 +26,13 @@ export default _default;
24
26
  export declare const Default: () => {
25
27
  components: {
26
28
  MucRadioButton: import('vue').DefineComponent<{
29
+ id: string;
27
30
  value: string;
28
31
  label?: string;
29
32
  hint?: string;
30
33
  disabled?: boolean;
31
34
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
35
+ id: string;
32
36
  value: string;
33
37
  label?: string;
34
38
  hint?: string;
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Unique identifier for the radiobutton. Required property used to associate the radiobutton with its label and hint text for accessibility.
4
+ */
5
+ id: string;
2
6
  /**
3
7
  * value for this radiobutton
4
8
  */
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  component: import('vue').DefineComponent<{
3
3
  modelValue?: import('./MucSelectTypes').MucSelectItemTypes | import('./MucSelectTypes').MucSelectItemTypes[];
4
4
  } & {
5
+ id: string;
5
6
  items: import('./MucSelectTypes').MucSelectItemTypes[];
6
7
  label?: string;
7
8
  hint?: string;
@@ -13,6 +14,7 @@ declare const _default: {
13
14
  }, string, import('vue').PublicProps, Readonly<{
14
15
  modelValue?: import('./MucSelectTypes').MucSelectItemTypes | import('./MucSelectTypes').MucSelectItemTypes[];
15
16
  } & {
17
+ id: string;
16
18
  items: import('./MucSelectTypes').MucSelectItemTypes[];
17
19
  label?: string;
18
20
  hint?: string;
@@ -37,6 +39,7 @@ declare const _default: {
37
39
  export default _default;
38
40
  export declare const Default: {
39
41
  args: {
42
+ id: string;
40
43
  modelValue: {
41
44
  id: string;
42
45
  name: string;
@@ -54,6 +57,7 @@ export declare const Default: {
54
57
  };
55
58
  export declare const MultiSelect: {
56
59
  args: {
60
+ id: string;
57
61
  label: string;
58
62
  multiple: boolean;
59
63
  modelValue: {
@@ -72,6 +76,7 @@ export declare const MultiSelect: {
72
76
  };
73
77
  export declare const StringSelect: {
74
78
  args: {
79
+ id: string;
75
80
  modelValue: string;
76
81
  items: string[];
77
82
  label: string;
@@ -1,5 +1,9 @@
1
1
  import { MucSelectItemTypes } from './MucSelectTypes';
2
2
  type __VLS_Props = {
3
+ /**
4
+ * Unique identifier for the select. Required property used to associate the select with its label and hint text for accessibility.
5
+ */
6
+ id: string;
3
7
  /**
4
8
  * List of items to be available
5
9
  */
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  component: import('vue').DefineComponent<{
3
3
  modelValue?: string;
4
4
  } & {
5
+ id: string;
5
6
  errorMsg?: string;
6
7
  rows?: number;
7
8
  placeholder?: string;
@@ -13,6 +14,7 @@ declare const _default: {
13
14
  }, string, import('vue').PublicProps, Readonly<{
14
15
  modelValue?: string;
15
16
  } & {
17
+ id: string;
16
18
  errorMsg?: string;
17
19
  rows?: number;
18
20
  placeholder?: string;
@@ -35,17 +37,20 @@ declare const _default: {
35
37
  export default _default;
36
38
  export declare const Default: {
37
39
  args: {
40
+ id: string;
38
41
  placeholder: string;
39
42
  };
40
43
  };
41
44
  export declare const Error: {
42
45
  args: {
46
+ id: string;
43
47
  errorMsg: string;
44
48
  placeholder: string;
45
49
  };
46
50
  };
47
51
  export declare const Required: {
48
52
  args: {
53
+ id: string;
49
54
  required: boolean;
50
55
  placeholder: string;
51
56
  label: string;
@@ -53,6 +58,7 @@ export declare const Required: {
53
58
  };
54
59
  export declare const BigTextArea: {
55
60
  args: {
61
+ id: string;
56
62
  rows: number;
57
63
  label: string;
58
64
  hint: string;
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ /**
3
+ * Unique identifier for the textarea. Required property used to associate the textarea with its label and hint text for accessibility.
4
+ */
5
+ id: string;
2
6
  /**
3
7
  * Displays error message and highlights the input form with a red border.
4
8
  */