@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.
- package/README.md +1 -4
- package/dist/components/Form/MucCheckbox.stories.d.ts +34 -0
- package/dist/components/Form/MucCheckbox.vue.d.ts +18 -0
- package/dist/components/Form/MucCheckboxGroup.stories.d.ts +223 -0
- package/dist/components/Form/MucCheckboxGroup.vue.d.ts +46 -0
- package/dist/components/Form/MucErrorList.stories.d.ts +41 -0
- package/dist/components/Form/MucErrorList.vue.d.ts +17 -0
- package/dist/components/Form/MucInput.stories.d.ts +225 -0
- package/dist/components/Form/MucInput.vue.d.ts +86 -0
- package/dist/components/Form/MucRadioButton.stories.d.ts +154 -0
- package/dist/components/Form/MucRadioButton.vue.d.ts +59 -0
- package/dist/components/Form/MucRadioButtonGroup.vue.d.ts +37 -0
- package/dist/components/Form/MucSelect.stories.d.ts +64 -0
- package/dist/components/Form/MucSelect.vue.d.ts +36 -0
- package/dist/components/Form/MucTextArea.stories.d.ts +86 -0
- package/dist/components/Form/MucTextArea.vue.d.ts +49 -0
- package/dist/components/Form/RadioButtonTypes.d.ts +30 -0
- package/dist/components/Form/index.d.ts +10 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/muc-patternlab-vue.es.js +311 -240
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Banner/MucBanner.vue +6 -6
- package/src/components/BuisnessHours/MucBusinessHours.vue +7 -11
- package/src/components/Button/MucButton.vue +5 -5
- package/src/components/Callout/MucCallout.vue +3 -6
- package/src/components/Comment/MucComment.vue +7 -21
- package/src/components/Form/MucCheckbox.stories.ts +25 -0
- package/src/components/Form/MucCheckbox.vue +47 -0
- package/src/components/Form/MucCheckboxGroup.stories.ts +43 -0
- package/src/components/Form/MucCheckboxGroup.vue +80 -0
- package/src/components/Form/MucErrorList.stories.ts +31 -0
- package/src/components/Form/MucErrorList.vue +34 -0
- package/src/components/Form/MucInput.stories.ts +90 -0
- package/src/components/Form/MucInput.vue +198 -0
- package/src/components/Form/MucRadioButton.stories.ts +32 -0
- package/src/components/Form/MucRadioButton.vue +81 -0
- package/src/components/Form/MucRadioButtonGroup.vue +62 -0
- package/src/components/Form/MucSelect.stories.ts +34 -0
- package/src/components/Form/MucSelect.vue +201 -0
- package/src/components/Form/MucTextArea.stories.ts +47 -0
- package/src/components/Form/MucTextArea.vue +80 -0
- package/src/components/Form/RadioButtonTypes.ts +41 -0
- package/src/components/Form/index.ts +23 -0
- package/src/components/Icon/MucIcon.vue +7 -1
- package/src/components/Intro/MucIntro.vue +2 -2
- package/src/components/index.ts +2 -0
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
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(
|
|
8
|
-
const
|
|
9
|
-
switch (
|
|
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
|
-
}),
|
|
22
|
-
switch (
|
|
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
|
-
}),
|
|
35
|
-
switch (
|
|
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
|
-
}),
|
|
48
|
-
switch (
|
|
65
|
+
}), _ = c(() => {
|
|
66
|
+
switch (t.type) {
|
|
49
67
|
case "success":
|
|
50
|
-
return "
|
|
68
|
+
return "check";
|
|
51
69
|
case "warning":
|
|
52
70
|
case "emergency":
|
|
53
|
-
return "
|
|
71
|
+
return "warning";
|
|
54
72
|
case "info":
|
|
55
73
|
default:
|
|
56
|
-
return "
|
|
74
|
+
return "information";
|
|
57
75
|
}
|
|
58
76
|
});
|
|
59
|
-
return (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
class: k(["m-banner",
|
|
63
|
-
role:
|
|
64
|
-
"aria-label":
|
|
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
|
-
|
|
67
|
-
(
|
|
68
|
-
|
|
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,
|
|
88
|
+
], 10, X)
|
|
73
89
|
])
|
|
74
90
|
]));
|
|
75
91
|
}
|
|
76
|
-
}),
|
|
77
|
-
const
|
|
78
|
-
for (const [
|
|
79
|
-
s
|
|
80
|
-
return
|
|
81
|
-
},
|
|
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(
|
|
95
|
-
const
|
|
96
|
-
switch (
|
|
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
|
-
}),
|
|
105
|
-
() =>
|
|
106
|
-
),
|
|
107
|
-
|
|
116
|
+
}), _ = c(
|
|
117
|
+
() => n.iconAnimated ? "m-button--animated-right" : ""
|
|
118
|
+
), p = () => {
|
|
119
|
+
s("click");
|
|
108
120
|
};
|
|
109
|
-
return (i, y) => (
|
|
110
|
-
onClick:
|
|
121
|
+
return (i, y) => (a(), r("button", {
|
|
122
|
+
onClick: p,
|
|
111
123
|
disabled: i.disabled,
|
|
112
|
-
class: k(["m-button", [
|
|
124
|
+
class: k(["m-button", [l.value, _.value]])
|
|
113
125
|
}, [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
i.icon ? (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
])) :
|
|
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,
|
|
134
|
+
], 10, Q));
|
|
123
135
|
}
|
|
124
|
-
}),
|
|
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(
|
|
133
|
-
const
|
|
134
|
-
switch (
|
|
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
|
-
}),
|
|
143
|
-
switch (
|
|
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
|
-
}),
|
|
154
|
-
switch (
|
|
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 (
|
|
166
|
-
class: k(["m-callout",
|
|
167
|
-
"aria-label":
|
|
174
|
+
return (_, p) => (a(), r("div", {
|
|
175
|
+
class: k(["m-callout", s.value]),
|
|
176
|
+
"aria-label": l.value
|
|
168
177
|
}, [
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
(
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
184
|
+
e("div", te, [
|
|
185
|
+
e("div", se, [
|
|
186
|
+
e("div", ne, [
|
|
187
|
+
d(_.$slots, "header", {}, void 0, !0)
|
|
183
188
|
]),
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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,
|
|
197
|
+
], 10, Z));
|
|
193
198
|
}
|
|
194
|
-
}),
|
|
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
|
-
},
|
|
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(
|
|
205
|
-
const
|
|
206
|
-
return (
|
|
209
|
+
setup(o, { emit: t }) {
|
|
210
|
+
const n = t;
|
|
211
|
+
return (s, l) => (a(), r("div", {
|
|
207
212
|
class: "card",
|
|
208
|
-
onClick:
|
|
213
|
+
onClick: l[0] || (l[0] = (_) => n("click", _))
|
|
209
214
|
}, [
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
|
|
221
|
-
|
|
225
|
+
de,
|
|
226
|
+
d(s.$slots, "content", {}, void 0, !0)
|
|
222
227
|
])
|
|
223
228
|
]));
|
|
224
229
|
}
|
|
225
|
-
}),
|
|
230
|
+
}), _e = /* @__PURE__ */ I(me, [["__scopeId", "data-v-acf0a1dd"]]), pe = { class: "container card-container" }, he = /* @__PURE__ */ v({
|
|
226
231
|
__name: "MucCardContainer",
|
|
227
|
-
setup(
|
|
228
|
-
return (
|
|
229
|
-
|
|
232
|
+
setup(o) {
|
|
233
|
+
return (t, n) => (a(), r("div", pe, [
|
|
234
|
+
d(t.$slots, "default", {}, void 0, !0)
|
|
230
235
|
]));
|
|
231
236
|
}
|
|
232
|
-
}),
|
|
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
|
-
},
|
|
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(
|
|
263
|
-
const
|
|
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
|
-
})),
|
|
266
|
-
const i = +(
|
|
267
|
-
let y = Math.min(Math.floor(
|
|
268
|
-
return
|
|
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:
|
|
271
|
-
isHalfStar:
|
|
254
|
+
emptyStars: g,
|
|
255
|
+
isHalfStar: E
|
|
272
256
|
};
|
|
273
257
|
});
|
|
274
|
-
return (i, y) => (
|
|
275
|
-
class: k(["m-comment",
|
|
258
|
+
return (i, y) => (a(), r("div", {
|
|
259
|
+
class: k(["m-comment", l.value])
|
|
276
260
|
}, [
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
261
|
+
e("div", ve, [
|
|
262
|
+
e("div", ge, [
|
|
263
|
+
d(i.$slots, "initials")
|
|
280
264
|
]),
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
265
|
+
e("div", ye, [
|
|
266
|
+
e("span", $e, [
|
|
267
|
+
d(i.$slots, "author")
|
|
284
268
|
]),
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
269
|
+
s.value ? (a(), r("span", be, [
|
|
270
|
+
e("span", Ce, [
|
|
271
|
+
h(" "),
|
|
272
|
+
d(i.$slots, "datePrefix")
|
|
289
273
|
]),
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
274
|
+
e("span", ke, [
|
|
275
|
+
h(" "),
|
|
276
|
+
d(i.$slots, "date")
|
|
293
277
|
])
|
|
294
|
-
])) :
|
|
295
|
-
|
|
278
|
+
])) : f("", !0),
|
|
279
|
+
e("div", {
|
|
296
280
|
class: "m-star-rating",
|
|
297
281
|
role: "img",
|
|
298
|
-
"aria-label": `Bewertung: ${i.rating} von ${
|
|
282
|
+
"aria-label": `Bewertung: ${i.rating} von ${A} Sternen`
|
|
299
283
|
}, [
|
|
300
|
-
(
|
|
301
|
-
key:
|
|
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
|
-
},
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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
|
-
},
|
|
309
|
-
|
|
310
|
-
|
|
296
|
+
}, [
|
|
297
|
+
S($(b), { icon: "solid-star" })
|
|
298
|
+
]))), 128)),
|
|
299
|
+
e("div", Se, m(_.value), 1)
|
|
300
|
+
], 8, Me)
|
|
311
301
|
])
|
|
312
302
|
]),
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
303
|
+
e("div", Ie, [
|
|
304
|
+
e("div", Ee, [
|
|
305
|
+
d(i.$slots, "headline")
|
|
316
306
|
]),
|
|
317
|
-
|
|
318
|
-
|
|
307
|
+
e("div", Ae, [
|
|
308
|
+
d(i.$slots, "text")
|
|
319
309
|
])
|
|
320
310
|
])
|
|
321
311
|
], 2));
|
|
322
312
|
}
|
|
323
|
-
}),
|
|
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(
|
|
336
|
-
const
|
|
337
|
-
return (
|
|
338
|
-
rating:
|
|
339
|
-
variant:
|
|
340
|
-
},
|
|
341
|
-
initials:
|
|
342
|
-
|
|
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:
|
|
345
|
-
|
|
334
|
+
datePrefix: C(() => [
|
|
335
|
+
h("am")
|
|
346
336
|
]),
|
|
347
|
-
author:
|
|
348
|
-
|
|
337
|
+
author: C(() => [
|
|
338
|
+
h(m(s.author), 1)
|
|
349
339
|
]),
|
|
350
|
-
headline:
|
|
351
|
-
|
|
340
|
+
headline: C(() => [
|
|
341
|
+
h(m(s.headline), 1)
|
|
352
342
|
]),
|
|
353
|
-
text:
|
|
354
|
-
|
|
343
|
+
text: C(() => [
|
|
344
|
+
h(m(s.text), 1)
|
|
355
345
|
]),
|
|
356
346
|
_: 2
|
|
357
347
|
}, [
|
|
358
|
-
|
|
348
|
+
s.date ? {
|
|
359
349
|
name: "date",
|
|
360
|
-
fn:
|
|
361
|
-
|
|
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
|
-
}),
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
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
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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
|
-
}),
|
|
453
|
+
}), Ke = {
|
|
385
454
|
class: "m-intro m-intro-static-image",
|
|
386
455
|
style: { "background-color": "var(--color-neutrals-blue-xlight)" }
|
|
387
|
-
},
|
|
456
|
+
}, Qe = { class: "container" }, Ye = { style: { width: "66.6%" } }, Ze = {
|
|
388
457
|
key: 0,
|
|
389
458
|
class: "m-intro-vertical__tagline"
|
|
390
|
-
},
|
|
459
|
+
}, xe = { class: "m-intro-vertical__title" }, et = {
|
|
391
460
|
key: 0,
|
|
392
461
|
class: "muc-divider"
|
|
393
|
-
},
|
|
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(
|
|
401
|
-
return (
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
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
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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
|
-
}),
|
|
487
|
+
}), at = /* @__PURE__ */ I(nt, [["__scopeId", "data-v-9ad3adc7"]]), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
419
488
|
__proto__: null,
|
|
420
|
-
MucBanner:
|
|
421
|
-
MucButton:
|
|
422
|
-
MucCallout:
|
|
423
|
-
MucCard:
|
|
424
|
-
MucCardContainer:
|
|
425
|
-
MucComment:
|
|
426
|
-
MucCommentText:
|
|
427
|
-
|
|
428
|
-
|
|
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
|
|
431
|
-
for (const
|
|
432
|
-
|
|
500
|
+
function ot(o) {
|
|
501
|
+
for (const t in V)
|
|
502
|
+
o.component(t, V[t]);
|
|
433
503
|
}
|
|
434
|
-
const
|
|
504
|
+
const ct = { install: ot };
|
|
435
505
|
export {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
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
|
};
|