@muenchen/muc-patternlab-vue 1.11.0-beta.2 → 1.11.0-beta.3

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.
Files changed (47) hide show
  1. package/README.md +1 -4
  2. package/dist/components/Form/MucCheckbox.stories.d.ts +34 -0
  3. package/dist/components/Form/MucCheckbox.vue.d.ts +18 -0
  4. package/dist/components/Form/MucCheckboxGroup.stories.d.ts +223 -0
  5. package/dist/components/Form/MucCheckboxGroup.vue.d.ts +46 -0
  6. package/dist/components/Form/MucErrorList.stories.d.ts +41 -0
  7. package/dist/components/Form/MucErrorList.vue.d.ts +17 -0
  8. package/dist/components/Form/MucInput.stories.d.ts +225 -0
  9. package/dist/components/Form/MucInput.vue.d.ts +86 -0
  10. package/dist/components/Form/MucRadioButton.stories.d.ts +154 -0
  11. package/dist/components/Form/MucRadioButton.vue.d.ts +59 -0
  12. package/dist/components/Form/MucRadioButtonGroup.vue.d.ts +37 -0
  13. package/dist/components/Form/MucSelect.stories.d.ts +64 -0
  14. package/dist/components/Form/MucSelect.vue.d.ts +36 -0
  15. package/dist/components/Form/MucTextArea.stories.d.ts +86 -0
  16. package/dist/components/Form/MucTextArea.vue.d.ts +49 -0
  17. package/dist/components/Form/RadioButtonTypes.d.ts +30 -0
  18. package/dist/components/Form/index.d.ts +10 -0
  19. package/dist/components/index.d.ts +2 -1
  20. package/dist/muc-patternlab-vue.es.js +311 -240
  21. package/dist/style.css +1 -1
  22. package/package.json +1 -1
  23. package/src/components/Banner/MucBanner.vue +6 -6
  24. package/src/components/BuisnessHours/MucBusinessHours.vue +7 -11
  25. package/src/components/Button/MucButton.vue +5 -5
  26. package/src/components/Callout/MucCallout.vue +3 -6
  27. package/src/components/Comment/MucComment.vue +7 -21
  28. package/src/components/Form/MucCheckbox.stories.ts +25 -0
  29. package/src/components/Form/MucCheckbox.vue +47 -0
  30. package/src/components/Form/MucCheckboxGroup.stories.ts +43 -0
  31. package/src/components/Form/MucCheckboxGroup.vue +80 -0
  32. package/src/components/Form/MucErrorList.stories.ts +31 -0
  33. package/src/components/Form/MucErrorList.vue +34 -0
  34. package/src/components/Form/MucInput.stories.ts +90 -0
  35. package/src/components/Form/MucInput.vue +198 -0
  36. package/src/components/Form/MucRadioButton.stories.ts +32 -0
  37. package/src/components/Form/MucRadioButton.vue +81 -0
  38. package/src/components/Form/MucRadioButtonGroup.vue +62 -0
  39. package/src/components/Form/MucSelect.stories.ts +34 -0
  40. package/src/components/Form/MucSelect.vue +201 -0
  41. package/src/components/Form/MucTextArea.stories.ts +47 -0
  42. package/src/components/Form/MucTextArea.vue +80 -0
  43. package/src/components/Form/RadioButtonTypes.ts +41 -0
  44. package/src/components/Form/index.ts +23 -0
  45. package/src/components/Icon/MucIcon.vue +7 -1
  46. package/src/components/Intro/MucIntro.vue +2 -2
  47. package/src/components/index.ts +2 -0
@@ -1,12 +1,30 @@
1
- import { defineComponent as m, computed as l, openBlock as o, createElementBlock as r, createElementVNode as t, normalizeClass as k, renderSlot as c, createCommentVNode as g, toDisplayString as _, pushScopeId as E, popScopeId as A, useSlots as B, createTextVNode as p, Fragment as M, renderList as S, createBlock as O, unref as R, createSlots as T, withCtx as f, normalizeStyle as L } from "vue";
2
- const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class: "icon" }, j = ["href"], N = /* @__PURE__ */ m({
1
+ import { defineComponent as v, useAttrs as P, computed as c, openBlock as a, createElementBlock as r, normalizeClass as k, normalizeStyle as H, createElementVNode as e, createVNode as S, unref as $, renderSlot as d, createBlock as R, createCommentVNode as f, toDisplayString as m, pushScopeId as q, popScopeId as F, useSlots as T, createTextVNode as h, Fragment as B, renderList as L, createSlots as N, withCtx as C, mergeModels as O, useModel as W, withDirectives as j, vModelDynamic as z } from "vue";
2
+ const U = ["href"], b = /* @__PURE__ */ v({
3
+ __name: "MucIcon",
4
+ props: {
5
+ icon: {},
6
+ color: {}
7
+ },
8
+ setup(o) {
9
+ const t = P(), n = c(() => t.class ?? "icon");
10
+ return (s, l) => (a(), r("svg", {
11
+ "aria-hidden": "true",
12
+ class: k(n.value),
13
+ style: H({ color: s.color })
14
+ }, [
15
+ e("use", {
16
+ href: "#icon-" + s.icon
17
+ }, null, 8, U)
18
+ ], 6));
19
+ }
20
+ }), X = ["role", "aria-label"], G = { class: "container-fluid" }, J = /* @__PURE__ */ v({
3
21
  __name: "MucBanner",
4
22
  props: {
5
23
  type: { default: "info" }
6
24
  },
7
- setup(a) {
8
- const e = a, s = l(() => {
9
- switch (e.type) {
25
+ setup(o) {
26
+ const t = o, n = c(() => {
27
+ switch (t.type) {
10
28
  case "info":
11
29
  return "m-banner--info";
12
30
  case "success":
@@ -18,8 +36,8 @@ const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class:
18
36
  default:
19
37
  return "m-banner--info";
20
38
  }
21
- }), n = l(() => {
22
- switch (e.type) {
39
+ }), s = c(() => {
40
+ switch (t.type) {
23
41
  case "info":
24
42
  return "dialog";
25
43
  case "success":
@@ -31,8 +49,8 @@ const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class:
31
49
  default:
32
50
  return "dialog";
33
51
  }
34
- }), u = l(() => {
35
- switch (e.type) {
52
+ }), l = c(() => {
53
+ switch (t.type) {
36
54
  case "info":
37
55
  return "Information";
38
56
  case "success":
@@ -44,45 +62,39 @@ const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class:
44
62
  default:
45
63
  return "Information";
46
64
  }
47
- }), d = l(() => {
48
- switch (e.type) {
65
+ }), _ = c(() => {
66
+ switch (t.type) {
49
67
  case "success":
50
- return "#icon-check";
68
+ return "check";
51
69
  case "warning":
52
70
  case "emergency":
53
- return "#icon-warning";
71
+ return "warning";
54
72
  case "info":
55
73
  default:
56
- return "#icon-information";
74
+ return "information";
57
75
  }
58
76
  });
59
- return (h, i) => (o(), r("div", null, [
60
- t("div", null, [
61
- t("div", {
62
- class: k(["m-banner", s.value]),
63
- role: n.value,
64
- "aria-label": u.value
77
+ return (p, i) => (a(), r("div", null, [
78
+ e("div", null, [
79
+ e("div", {
80
+ class: k(["m-banner", n.value]),
81
+ role: s.value,
82
+ "aria-label": l.value
65
83
  }, [
66
- t("div", D, [
67
- (o(), r("svg", H, [
68
- t("use", { href: d.value }, null, 8, j)
69
- ])),
70
- c(h.$slots, "default", {}, void 0, !0)
84
+ e("div", G, [
85
+ S($(b), { icon: _.value }, null, 8, ["icon"]),
86
+ d(p.$slots, "default", {}, void 0, !0)
71
87
  ])
72
- ], 10, P)
88
+ ], 10, X)
73
89
  ])
74
90
  ]));
75
91
  }
76
- }), $ = (a, e) => {
77
- const s = a.__vccOpts || a;
78
- for (const [n, u] of e)
79
- s[n] = u;
80
- return s;
81
- }, V = /* @__PURE__ */ $(N, [["__scopeId", "data-v-ac0adeb7"]]), W = ["disabled"], z = {
82
- key: 0,
83
- "aria-hidden": "true",
84
- class: "m-button__icon"
85
- }, F = ["xlink:href"], U = /* @__PURE__ */ m({
92
+ }), I = (o, t) => {
93
+ const n = o.__vccOpts || o;
94
+ for (const [s, l] of t)
95
+ n[s] = l;
96
+ return n;
97
+ }, K = /* @__PURE__ */ I(J, [["__scopeId", "data-v-53bc7eca"]]), Q = ["disabled"], Y = /* @__PURE__ */ v({
86
98
  __name: "MucButton",
87
99
  props: {
88
100
  variant: { default: "primary" },
@@ -91,9 +103,9 @@ const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class:
91
103
  iconAnimated: { type: Boolean, default: !1 }
92
104
  },
93
105
  emits: ["click"],
94
- setup(a, { emit: e }) {
95
- const s = a, n = e, u = l(() => {
96
- switch (s.variant) {
106
+ setup(o, { emit: t }) {
107
+ const n = o, s = t, l = c(() => {
108
+ switch (n.variant) {
97
109
  case "secondary":
98
110
  return "m-button--secondary";
99
111
  case "ghost":
@@ -101,37 +113,34 @@ const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class:
101
113
  default:
102
114
  return "m-button--primary";
103
115
  }
104
- }), d = l(
105
- () => s.iconAnimated ? "m-button--animated-right" : ""
106
- ), h = () => {
107
- n("click");
116
+ }), _ = c(
117
+ () => n.iconAnimated ? "m-button--animated-right" : ""
118
+ ), p = () => {
119
+ s("click");
108
120
  };
109
- return (i, y) => (o(), r("button", {
110
- onClick: h,
121
+ return (i, y) => (a(), r("button", {
122
+ onClick: p,
111
123
  disabled: i.disabled,
112
- class: k(["m-button", [u.value, d.value]])
124
+ class: k(["m-button", [l.value, _.value]])
113
125
  }, [
114
- t("span", null, [
115
- c(i.$slots, "default"),
116
- i.icon ? (o(), r("svg", z, [
117
- t("use", {
118
- "xlink:href": "#icon-" + i.icon
119
- }, null, 8, F)
120
- ])) : g("", !0)
126
+ e("span", null, [
127
+ d(i.$slots, "default"),
128
+ i.icon ? (a(), R($(b), {
129
+ key: 0,
130
+ icon: i.icon,
131
+ class: "m-button__icon"
132
+ }, null, 8, ["icon"])) : f("", !0)
121
133
  ])
122
- ], 10, W));
134
+ ], 10, Q));
123
135
  }
124
- }), x = ["aria-label"], X = { class: "m-callout__inner" }, q = { class: "m-callout__icon" }, G = {
125
- "aria-hidden": "true",
126
- class: "icon"
127
- }, J = ["xlink:href"], K = { class: "m-callout__body" }, Q = { class: "m-callout__body__inner" }, Y = { class: "m-callout__headline" }, Z = { class: "m-callout__content" }, tt = /* @__PURE__ */ m({
136
+ }), Z = ["aria-label"], x = { class: "m-callout__inner" }, ee = { class: "m-callout__icon" }, te = { class: "m-callout__body" }, se = { class: "m-callout__body__inner" }, ne = { class: "m-callout__headline" }, ae = { class: "m-callout__content" }, oe = /* @__PURE__ */ v({
128
137
  __name: "MucCallout",
129
138
  props: {
130
139
  type: { default: "info" }
131
140
  },
132
- setup(a) {
133
- const e = a, s = l(() => {
134
- switch (e.type) {
141
+ setup(o) {
142
+ const t = o, n = c(() => {
143
+ switch (t.type) {
135
144
  case "error":
136
145
  return "warning";
137
146
  case "success":
@@ -139,8 +148,8 @@ const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class:
139
148
  default:
140
149
  return "information";
141
150
  }
142
- }), n = l(() => {
143
- switch (e.type) {
151
+ }), s = c(() => {
152
+ switch (t.type) {
144
153
  case "error":
145
154
  return "m-callout--error";
146
155
  case "warning":
@@ -150,8 +159,8 @@ const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class:
150
159
  default:
151
160
  return "m-callout--default";
152
161
  }
153
- }), u = l(() => {
154
- switch (e.type) {
162
+ }), l = c(() => {
163
+ switch (t.type) {
155
164
  case "success":
156
165
  return "Erfolgreich";
157
166
  case "warning":
@@ -162,165 +171,146 @@ const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class:
162
171
  return "Information";
163
172
  }
164
173
  });
165
- return (d, h) => (o(), r("div", {
166
- class: k(["m-callout", n.value]),
167
- "aria-label": u.value
174
+ return (_, p) => (a(), r("div", {
175
+ class: k(["m-callout", s.value]),
176
+ "aria-label": l.value
168
177
  }, [
169
- t("div", X, [
170
- t("div", q, [
171
- c(d.$slots, "icon", {}, () => [
172
- (o(), r("svg", G, [
173
- t("use", {
174
- "xlink:href": `#icon-${s.value}`
175
- }, null, 8, J)
176
- ]))
178
+ e("div", x, [
179
+ e("div", ee, [
180
+ d(_.$slots, "icon", {}, () => [
181
+ S($(b), { icon: n.value }, null, 8, ["icon"])
177
182
  ], !0)
178
183
  ]),
179
- t("div", K, [
180
- t("div", Q, [
181
- t("div", Y, [
182
- c(d.$slots, "header", {}, void 0, !0)
184
+ e("div", te, [
185
+ e("div", se, [
186
+ e("div", ne, [
187
+ d(_.$slots, "header", {}, void 0, !0)
183
188
  ]),
184
- t("div", Z, [
185
- t("p", null, [
186
- c(d.$slots, "content", { class: "m-callout__content" }, void 0, !0)
189
+ e("div", ae, [
190
+ e("p", null, [
191
+ d(_.$slots, "content", { class: "m-callout__content" }, void 0, !0)
187
192
  ])
188
193
  ])
189
194
  ])
190
195
  ])
191
196
  ])
192
- ], 10, x));
197
+ ], 10, Z));
193
198
  }
194
- }), et = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-efad4956"]]), nt = (a) => (E("data-v-acf0a1dd"), a = a(), A(), a), st = { class: "card-content" }, at = { class: "card-header" }, ot = {
199
+ }), re = /* @__PURE__ */ I(oe, [["__scopeId", "data-v-e6cf4104"]]), ie = (o) => (q("data-v-acf0a1dd"), o = o(), F(), o), ce = { class: "card-content" }, le = { class: "card-header" }, ue = {
195
200
  key: 0,
196
201
  class: "card-tagline"
197
- }, rt = /* @__PURE__ */ nt(() => /* @__PURE__ */ t("div", { class: "muc-divider" }, null, -1)), it = /* @__PURE__ */ m({
202
+ }, de = /* @__PURE__ */ ie(() => /* @__PURE__ */ e("div", { class: "muc-divider" }, null, -1)), me = /* @__PURE__ */ v({
198
203
  __name: "MucCard",
199
204
  props: {
200
205
  title: {},
201
206
  tagline: {}
202
207
  },
203
208
  emits: ["click"],
204
- setup(a, { emit: e }) {
205
- const s = e;
206
- return (n, u) => (o(), r("div", {
209
+ setup(o, { emit: t }) {
210
+ const n = t;
211
+ return (s, l) => (a(), r("div", {
207
212
  class: "card",
208
- onClick: u[0] || (u[0] = (d) => s("click", d))
213
+ onClick: l[0] || (l[0] = (_) => n("click", _))
209
214
  }, [
210
- t("div", st, [
211
- t("div", at, [
212
- c(n.$slots, "headerPrefix", {}, void 0, !0),
213
- t("div", null, [
214
- n.tagline ? (o(), r("div", ot, _(n.tagline), 1)) : g("", !0),
215
- t("div", null, [
216
- t("h3", null, _(n.title), 1)
215
+ e("div", ce, [
216
+ e("div", le, [
217
+ d(s.$slots, "headerPrefix", {}, void 0, !0),
218
+ e("div", null, [
219
+ s.tagline ? (a(), r("div", ue, m(s.tagline), 1)) : f("", !0),
220
+ e("div", null, [
221
+ e("h3", null, m(s.title), 1)
217
222
  ])
218
223
  ])
219
224
  ]),
220
- rt,
221
- c(n.$slots, "content", {}, void 0, !0)
225
+ de,
226
+ d(s.$slots, "content", {}, void 0, !0)
222
227
  ])
223
228
  ]));
224
229
  }
225
- }), ct = /* @__PURE__ */ $(it, [["__scopeId", "data-v-acf0a1dd"]]), lt = { class: "container card-container" }, ut = /* @__PURE__ */ m({
230
+ }), _e = /* @__PURE__ */ I(me, [["__scopeId", "data-v-acf0a1dd"]]), pe = { class: "container card-container" }, he = /* @__PURE__ */ v({
226
231
  __name: "MucCardContainer",
227
- setup(a) {
228
- return (e, s) => (o(), r("div", lt, [
229
- c(e.$slots, "default", {}, void 0, !0)
232
+ setup(o) {
233
+ return (t, n) => (a(), r("div", pe, [
234
+ d(t.$slots, "default", {}, void 0, !0)
230
235
  ]));
231
236
  }
232
- }), dt = /* @__PURE__ */ $(ut, [["__scopeId", "data-v-6740df8f"]]), _t = { class: "m-comment__head" }, mt = { class: "m-comment__initials" }, ht = { class: "m-comment__info" }, pt = { class: "m-comment__author" }, vt = { key: 0 }, ft = { class: "m-comment__author" }, gt = { class: "m-comment__date" }, $t = ["aria-label"], yt = /* @__PURE__ */ t("svg", {
233
- "aria-hidden": "true",
234
- class: "icon"
235
- }, [
236
- /* @__PURE__ */ t("use", { "xlink:href": "#icon-solid-star" })
237
- ], -1), bt = [
238
- yt
239
- ], kt = {
237
+ }), fe = /* @__PURE__ */ I(he, [["__scopeId", "data-v-6740df8f"]]), ve = { class: "m-comment__head" }, ge = { class: "m-comment__initials" }, ye = { class: "m-comment__info" }, $e = { class: "m-comment__author" }, be = { key: 0 }, Ce = { class: "m-comment__author" }, ke = { class: "m-comment__date" }, Me = ["aria-label"], we = {
240
238
  key: 0,
241
239
  class: "m-star-rating__item m-star-rating__item--half"
242
- }, Ct = /* @__PURE__ */ t("svg", {
243
- "aria-hidden": "true",
244
- class: "icon"
245
- }, [
246
- /* @__PURE__ */ t("use", { "xlink:href": "#icon-half-star" })
247
- ], -1), Mt = [
248
- Ct
249
- ], St = /* @__PURE__ */ t("svg", {
250
- "aria-hidden": "true",
251
- class: "icon"
252
- }, [
253
- /* @__PURE__ */ t("use", { "xlink:href": "#icon-solid-star" })
254
- ], -1), wt = [
255
- St
256
- ], It = { class: "m-star-rating__numeric" }, Et = { class: "m-comment__body" }, At = { class: "m-comment__headline" }, Bt = { class: "m-comment__text" }, Ot = "de-DE", Rt = 0.2, Tt = 0.8, b = 5, I = /* @__PURE__ */ m({
240
+ }, Se = { class: "m-star-rating__numeric" }, Ie = { class: "m-comment__body" }, Ee = { class: "m-comment__headline" }, Ae = { class: "m-comment__text" }, Be = "de-DE", Le = 0.2, Oe = 0.8, A = 5, D = /* @__PURE__ */ v({
257
241
  __name: "MucComment",
258
242
  props: {
259
243
  rating: {},
260
244
  variant: { default: "listing" }
261
245
  },
262
- setup(a) {
263
- const e = B(), s = a, n = l(() => !!e.date), u = l(() => s.variant === "slider" ? "m-comment--slider" : "m-comment--listing"), d = l(() => s.rating.toLocaleString(Ot.valueOf(), {
246
+ setup(o) {
247
+ const t = T(), n = o, s = c(() => !!t.date), l = c(() => n.variant === "slider" ? "m-comment--slider" : "m-comment--listing"), _ = c(() => n.rating.toLocaleString(Be.valueOf(), {
264
248
  minimumFractionDigits: 1
265
- })), h = l(() => {
266
- const i = +(s.rating % 1).toFixed(1);
267
- let y = Math.min(Math.floor(s.rating), b), v = Math.floor(b - s.rating), C = !1;
268
- return s.rating !== 0 && s.rating !== b && (i <= Rt ? v++ : i >= Tt ? y++ : C = !0), {
249
+ })), p = c(() => {
250
+ const i = +(n.rating % 1).toFixed(1);
251
+ let y = Math.min(Math.floor(n.rating), A), g = Math.floor(A - n.rating), E = !1;
252
+ return n.rating !== 0 && n.rating !== A && (i <= Le ? g++ : i >= Oe ? y++ : E = !0), {
269
253
  fullStars: y,
270
- emptyStars: v,
271
- isHalfStar: C
254
+ emptyStars: g,
255
+ isHalfStar: E
272
256
  };
273
257
  });
274
- return (i, y) => (o(), r("div", {
275
- class: k(["m-comment", u.value])
258
+ return (i, y) => (a(), r("div", {
259
+ class: k(["m-comment", l.value])
276
260
  }, [
277
- t("div", _t, [
278
- t("div", mt, [
279
- c(i.$slots, "initials")
261
+ e("div", ve, [
262
+ e("div", ge, [
263
+ d(i.$slots, "initials")
280
264
  ]),
281
- t("div", ht, [
282
- t("span", pt, [
283
- c(i.$slots, "author")
265
+ e("div", ye, [
266
+ e("span", $e, [
267
+ d(i.$slots, "author")
284
268
  ]),
285
- n.value ? (o(), r("span", vt, [
286
- t("span", ft, [
287
- p(" "),
288
- c(i.$slots, "datePrefix")
269
+ s.value ? (a(), r("span", be, [
270
+ e("span", Ce, [
271
+ h("  "),
272
+ d(i.$slots, "datePrefix")
289
273
  ]),
290
- t("span", gt, [
291
- p(" "),
292
- c(i.$slots, "date")
274
+ e("span", ke, [
275
+ h(" "),
276
+ d(i.$slots, "date")
293
277
  ])
294
- ])) : g("", !0),
295
- t("div", {
278
+ ])) : f("", !0),
279
+ e("div", {
296
280
  class: "m-star-rating",
297
281
  role: "img",
298
- "aria-label": `Bewertung: ${i.rating} von ${b} Sternen`
282
+ "aria-label": `Bewertung: ${i.rating} von ${A} Sternen`
299
283
  }, [
300
- (o(!0), r(M, null, S(h.value.fullStars, (v) => (o(), r("div", {
301
- key: v,
284
+ (a(!0), r(B, null, L(p.value.fullStars, (g) => (a(), r("div", {
285
+ key: g,
302
286
  class: "m-star-rating__item m-star-rating__item--full"
303
- }, bt))), 128)),
304
- h.value.isHalfStar ? (o(), r("div", kt, Mt)) : g("", !0),
305
- (o(!0), r(M, null, S(h.value.emptyStars, (v) => (o(), r("div", {
306
- key: v,
287
+ }, [
288
+ S($(b), { icon: "solid-star" })
289
+ ]))), 128)),
290
+ p.value.isHalfStar ? (a(), r("div", we, [
291
+ S($(b), { icon: "half-star" })
292
+ ])) : f("", !0),
293
+ (a(!0), r(B, null, L(p.value.emptyStars, (g) => (a(), r("div", {
294
+ key: g,
307
295
  class: "m-star-rating__item"
308
- }, wt))), 128)),
309
- t("div", It, _(d.value), 1)
310
- ], 8, $t)
296
+ }, [
297
+ S($(b), { icon: "solid-star" })
298
+ ]))), 128)),
299
+ e("div", Se, m(_.value), 1)
300
+ ], 8, Me)
311
301
  ])
312
302
  ]),
313
- t("div", Et, [
314
- t("div", At, [
315
- c(i.$slots, "headline")
303
+ e("div", Ie, [
304
+ e("div", Ee, [
305
+ d(i.$slots, "headline")
316
306
  ]),
317
- t("div", Bt, [
318
- c(i.$slots, "text")
307
+ e("div", Ae, [
308
+ d(i.$slots, "text")
319
309
  ])
320
310
  ])
321
311
  ], 2));
322
312
  }
323
- }), Lt = " ", Pt = /* @__PURE__ */ m({
313
+ }), Ve = " ", Re = /* @__PURE__ */ v({
324
314
  __name: "MucCommentText",
325
315
  props: {
326
316
  datePrefix: { default: "am" },
@@ -332,115 +322,196 @@ const P = ["role", "aria-label"], D = { class: "container-fluid" }, H = { class:
332
322
  rating: {},
333
323
  variant: { default: "listing" }
334
324
  },
335
- setup(a) {
336
- const e = a, s = l(() => ((e.initials ?? e.author.split(Lt).map((n) => n.charAt(0)).join("")).match(/^.|.$/g) ?? [""]).join(""));
337
- return (n, u) => (o(), O(R(I), {
338
- rating: n.rating,
339
- variant: n.variant
340
- }, T({
341
- initials: f(() => [
342
- p(_(s.value), 1)
325
+ setup(o) {
326
+ const t = o, n = c(() => ((t.initials ?? t.author.split(Ve).map((s) => s.charAt(0)).join("")).match(/^.|.$/g) ?? [""]).join(""));
327
+ return (s, l) => (a(), R($(D), {
328
+ rating: s.rating,
329
+ variant: s.variant
330
+ }, N({
331
+ initials: C(() => [
332
+ h(m(n.value), 1)
343
333
  ]),
344
- datePrefix: f(() => [
345
- p("am")
334
+ datePrefix: C(() => [
335
+ h("am")
346
336
  ]),
347
- author: f(() => [
348
- p(_(n.author), 1)
337
+ author: C(() => [
338
+ h(m(s.author), 1)
349
339
  ]),
350
- headline: f(() => [
351
- p(_(n.headline), 1)
340
+ headline: C(() => [
341
+ h(m(s.headline), 1)
352
342
  ]),
353
- text: f(() => [
354
- p(_(n.text), 1)
343
+ text: C(() => [
344
+ h(m(s.text), 1)
355
345
  ]),
356
346
  _: 2
357
347
  }, [
358
- n.date ? {
348
+ s.date ? {
359
349
  name: "date",
360
- fn: f(() => [
361
- p(_(n.date), 1)
350
+ fn: C(() => [
351
+ h(m(s.date), 1)
362
352
  ]),
363
353
  key: "0"
364
354
  } : void 0
365
355
  ]), 1032, ["rating", "variant"]));
366
356
  }
367
- }), Dt = ["href"], Ht = /* @__PURE__ */ m({
368
- __name: "MucIcon",
369
- props: {
370
- icon: {},
371
- color: {}
372
- },
373
- setup(a) {
374
- return (e, s) => (o(), r("svg", {
375
- "aria-hidden": "true",
376
- class: "m-button__icon",
377
- style: L({ color: e.color })
357
+ }), Te = {
358
+ for: "search-input",
359
+ class: "m-label"
360
+ }, De = {
361
+ key: 0,
362
+ "aria-hidden": "true",
363
+ class: "mandatory"
364
+ }, Pe = /* @__PURE__ */ e("span", { class: "visually-hidden" }, "(erforderlich)", -1), He = {
365
+ id: "text-input-error",
366
+ class: "m-error-message"
367
+ }, qe = { class: "m-input-wrapper m-autocomplete" }, Fe = {
368
+ key: 0,
369
+ class: "m-input__prefix"
370
+ }, Ne = ["type", "aria-describedby", "placeholder", "required"], We = {
371
+ key: 1,
372
+ class: "autocomplete-result-list autocomplete-result-list--location"
373
+ }, je = ["onClick"], ze = {
374
+ "aria-hidden": "true",
375
+ class: "icon"
376
+ }, Ue = ["xlink:href"], Xe = /* @__PURE__ */ e("span", { class: "visually-hidden" }, "Suchen", -1), Ge = {
377
+ class: "m-hint",
378
+ id: "text-input-hint"
379
+ }, Je = /* @__PURE__ */ v({
380
+ __name: "MucInput",
381
+ props: /* @__PURE__ */ O({
382
+ errorMsg: {},
383
+ placeholder: {},
384
+ required: { type: Boolean, default: !1 },
385
+ label: {},
386
+ hint: {},
387
+ type: { default: "text" },
388
+ datalist: {},
389
+ suffixIcon: {}
390
+ }, {
391
+ modelValue: { default: "" },
392
+ modelModifiers: {}
393
+ }),
394
+ emits: /* @__PURE__ */ O(["suffixClick"], ["update:modelValue"]),
395
+ setup(o, { emit: t }) {
396
+ const n = W(o, "modelValue"), s = o, l = T(), _ = t, p = c(() => s.errorMsg ? "has-error" : ""), i = c(() => s.type === "search"), y = c(() => {
397
+ if (n.value === "") return [];
398
+ const u = n.value.toLowerCase();
399
+ return s.datalist.filter(
400
+ (M) => M.toLowerCase().startsWith(u) && M.toLowerCase() !== u
401
+ );
402
+ }), g = (u) => n.value = u, E = () => _("suffixClick");
403
+ return (u, M) => (a(), r("div", {
404
+ class: k(["m-form-group", p.value])
378
405
  }, [
379
- t("use", {
380
- href: "#icon-" + e.icon
381
- }, null, 8, Dt)
382
- ], 4));
406
+ e("label", Te, [
407
+ h(m(u.label) + " ", 1),
408
+ u.required ? (a(), r("span", De, [
409
+ h(" * "),
410
+ Pe
411
+ ])) : f("", !0)
412
+ ]),
413
+ e("p", He, m(u.errorMsg), 1),
414
+ e("div", qe, [
415
+ l.prefix ? (a(), r("div", Fe, [
416
+ e("span", null, [
417
+ d(u.$slots, "prefix")
418
+ ])
419
+ ])) : f("", !0),
420
+ j(e("input", {
421
+ class: "m-input autocomplete-input",
422
+ type: u.type,
423
+ "onUpdate:modelValue": M[0] || (M[0] = (w) => n.value = w),
424
+ "aria-describedby": u.type + "-input",
425
+ placeholder: u.placeholder,
426
+ required: u.required
427
+ }, null, 8, Ne), [
428
+ [z, n.value]
429
+ ]),
430
+ i.value && y.value.length !== 0 ? (a(), r("ul", We, [
431
+ (a(!0), r(B, null, L(y.value, (w) => (a(), r("li", {
432
+ class: "autocomplete-result",
433
+ key: w,
434
+ onClick: (rt) => g(w)
435
+ }, m(w), 9, je))), 128))
436
+ ])) : f("", !0),
437
+ u.suffixIcon ? (a(), r("button", {
438
+ key: 2,
439
+ class: "m-input__suffix",
440
+ onClick: E
441
+ }, [
442
+ (a(), r("svg", ze, [
443
+ e("use", {
444
+ "xlink:href": "#icon-" + u.suffixIcon
445
+ }, null, 8, Ue)
446
+ ])),
447
+ Xe
448
+ ])) : f("", !0)
449
+ ]),
450
+ e("p", Ge, m(u.hint), 1)
451
+ ], 2));
383
452
  }
384
- }), jt = {
453
+ }), Ke = {
385
454
  class: "m-intro m-intro-static-image",
386
455
  style: { "background-color": "var(--color-neutrals-blue-xlight)" }
387
- }, Nt = { class: "container" }, Vt = { style: { width: "66.6%" } }, Wt = {
456
+ }, Qe = { class: "container" }, Ye = { style: { width: "66.6%" } }, Ze = {
388
457
  key: 0,
389
458
  class: "m-intro-vertical__tagline"
390
- }, zt = { class: "m-intro-vertical__title" }, Ft = {
459
+ }, xe = { class: "m-intro-vertical__title" }, et = {
391
460
  key: 0,
392
461
  class: "muc-divider"
393
- }, Ut = { class: "m-intro-vertical__content" }, xt = { style: { "padding-bottom": "32px" } }, Xt = /* @__PURE__ */ m({
462
+ }, tt = { class: "m-intro-vertical__content" }, st = { style: { "padding-bottom": "32px" } }, nt = /* @__PURE__ */ v({
394
463
  __name: "MucIntro",
395
464
  props: {
396
465
  title: {},
397
466
  tagline: {},
398
467
  divider: { type: Boolean }
399
468
  },
400
- setup(a) {
401
- return (e, s) => (o(), r("div", jt, [
402
- t("div", Nt, [
403
- t("div", Vt, [
404
- t("div", null, [
405
- e.tagline ? (o(), r("p", Wt, _(e.tagline), 1)) : g("", !0),
406
- t("h1", zt, _(e.title), 1)
469
+ setup(o) {
470
+ return (t, n) => (a(), r("div", Ke, [
471
+ e("div", Qe, [
472
+ e("div", Ye, [
473
+ e("div", null, [
474
+ t.tagline ? (a(), r("p", Ze, m(t.tagline), 1)) : f("", !0),
475
+ e("h1", xe, m(t.title), 1)
407
476
  ]),
408
- e.divider ? (o(), r("div", Ft)) : g("", !0),
409
- t("div", Ut, [
410
- t("p", xt, [
411
- c(e.$slots, "default", {}, void 0, !0)
477
+ t.divider ? (a(), r("div", et)) : f("", !0),
478
+ e("div", tt, [
479
+ e("p", st, [
480
+ d(t.$slots, "default", {}, void 0, !0)
412
481
  ])
413
482
  ])
414
483
  ])
415
484
  ])
416
485
  ]));
417
486
  }
418
- }), qt = /* @__PURE__ */ $(Xt, [["__scopeId", "data-v-3957c1bd"]]), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
487
+ }), at = /* @__PURE__ */ I(nt, [["__scopeId", "data-v-9ad3adc7"]]), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
419
488
  __proto__: null,
420
- MucBanner: V,
421
- MucButton: U,
422
- MucCallout: et,
423
- MucCard: ct,
424
- MucCardContainer: dt,
425
- MucComment: I,
426
- MucCommentText: Pt,
427
- MucIcon: Ht,
428
- MucIntro: qt
489
+ MucBanner: K,
490
+ MucButton: Y,
491
+ MucCallout: re,
492
+ MucCard: _e,
493
+ MucCardContainer: fe,
494
+ MucComment: D,
495
+ MucCommentText: Re,
496
+ MucForm: Je,
497
+ MucIcon: b,
498
+ MucIntro: at
429
499
  }, Symbol.toStringTag, { value: "Module" }));
430
- function Gt(a) {
431
- for (const e in w)
432
- a.component(e, w[e]);
500
+ function ot(o) {
501
+ for (const t in V)
502
+ o.component(t, V[t]);
433
503
  }
434
- const Kt = { install: Gt };
504
+ const ct = { install: ot };
435
505
  export {
436
- V as MucBanner,
437
- U as MucButton,
438
- et as MucCallout,
439
- ct as MucCard,
440
- dt as MucCardContainer,
441
- I as MucComment,
442
- Pt as MucCommentText,
443
- Ht as MucIcon,
444
- qt as MucIntro,
445
- Kt as default
506
+ K as MucBanner,
507
+ Y as MucButton,
508
+ re as MucCallout,
509
+ _e as MucCard,
510
+ fe as MucCardContainer,
511
+ D as MucComment,
512
+ Re as MucCommentText,
513
+ Je as MucForm,
514
+ b as MucIcon,
515
+ at as MucIntro,
516
+ ct as default
446
517
  };