@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
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as v, useAttrs as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as v, useAttrs as ie, computed as d, openBlock as l, createElementBlock as n, normalizeClass as C, normalizeStyle as re, createElementVNode as t, createVNode as M, unref as $, renderSlot as h, createBlock as U, createCommentVNode as b, toDisplayString as m, pushScopeId as N, popScopeId as F, useSlots as D, createTextVNode as y, Fragment as P, renderList as j, createSlots as ce, withCtx as B, mergeModels as T, useModel as E, withModifiers as W, ref as R, withDirectives as q, vModelDynamic as ue, inject as de, provide as me, readonly as _e, toRef as pe, onMounted as he, onBeforeUnmount as ve, watch as fe, vModelText as z } from "vue";
|
|
2
|
+
const be = ["href"], S = /* @__PURE__ */ v({
|
|
3
3
|
__name: "MucIcon",
|
|
4
4
|
props: {
|
|
5
5
|
icon: {},
|
|
6
6
|
color: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const s =
|
|
10
|
-
return (
|
|
8
|
+
setup(o) {
|
|
9
|
+
const s = ie(), e = d(() => s.class ?? "icon");
|
|
10
|
+
return (a, u) => (l(), n("svg", {
|
|
11
11
|
"aria-hidden": "true",
|
|
12
|
-
class:
|
|
13
|
-
style:
|
|
12
|
+
class: C(e.value),
|
|
13
|
+
style: re({ color: a.color })
|
|
14
14
|
}, [
|
|
15
15
|
t("use", {
|
|
16
|
-
href: "#icon-" +
|
|
17
|
-
}, null, 8,
|
|
16
|
+
href: "#icon-" + a.icon
|
|
17
|
+
}, null, 8, be)
|
|
18
18
|
], 6));
|
|
19
19
|
}
|
|
20
|
-
}), ge = ["role", "aria-label"],
|
|
20
|
+
}), ge = ["role", "aria-label"], ye = { class: "container-fluid" }, $e = /* @__PURE__ */ v({
|
|
21
21
|
__name: "MucBanner",
|
|
22
22
|
props: {
|
|
23
23
|
type: { default: "info" }
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const s =
|
|
25
|
+
setup(o) {
|
|
26
|
+
const s = o, e = d(() => {
|
|
27
27
|
switch (s.type) {
|
|
28
28
|
case "info":
|
|
29
29
|
return "m-banner--info";
|
|
@@ -36,7 +36,7 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
36
36
|
default:
|
|
37
37
|
return "m-banner--info";
|
|
38
38
|
}
|
|
39
|
-
}),
|
|
39
|
+
}), a = d(() => {
|
|
40
40
|
switch (s.type) {
|
|
41
41
|
case "info":
|
|
42
42
|
return "dialog";
|
|
@@ -49,7 +49,7 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
49
49
|
default:
|
|
50
50
|
return "dialog";
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
52
|
+
}), u = d(() => {
|
|
53
53
|
switch (s.type) {
|
|
54
54
|
case "info":
|
|
55
55
|
return "Information";
|
|
@@ -62,7 +62,7 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
62
62
|
default:
|
|
63
63
|
return "Information";
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), i = d(() => {
|
|
66
66
|
switch (s.type) {
|
|
67
67
|
case "success":
|
|
68
68
|
return "check";
|
|
@@ -74,27 +74,27 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
74
74
|
return "information";
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
return (_,
|
|
77
|
+
return (_, r) => (l(), n("div", null, [
|
|
78
78
|
t("div", null, [
|
|
79
79
|
t("div", {
|
|
80
|
-
class:
|
|
81
|
-
role:
|
|
82
|
-
"aria-label":
|
|
80
|
+
class: C(["m-banner", e.value]),
|
|
81
|
+
role: a.value,
|
|
82
|
+
"aria-label": u.value
|
|
83
83
|
}, [
|
|
84
|
-
t("div",
|
|
85
|
-
|
|
84
|
+
t("div", ye, [
|
|
85
|
+
M($(S), { icon: i.value }, null, 8, ["icon"]),
|
|
86
86
|
h(_.$slots, "default", {}, void 0, !0)
|
|
87
87
|
])
|
|
88
88
|
], 10, ge)
|
|
89
89
|
])
|
|
90
90
|
]));
|
|
91
91
|
}
|
|
92
|
-
}), L = (
|
|
93
|
-
const e =
|
|
94
|
-
for (const [
|
|
95
|
-
e[
|
|
92
|
+
}), L = (o, s) => {
|
|
93
|
+
const e = o.__vccOpts || o;
|
|
94
|
+
for (const [a, u] of s)
|
|
95
|
+
e[a] = u;
|
|
96
96
|
return e;
|
|
97
|
-
},
|
|
97
|
+
}, ke = /* @__PURE__ */ L($e, [["__scopeId", "data-v-53bc7eca"]]), Me = ["disabled"], G = /* @__PURE__ */ v({
|
|
98
98
|
__name: "MucButton",
|
|
99
99
|
props: {
|
|
100
100
|
variant: { default: "primary" },
|
|
@@ -103,8 +103,8 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
103
103
|
iconAnimated: { type: Boolean, default: !1 }
|
|
104
104
|
},
|
|
105
105
|
emits: ["click"],
|
|
106
|
-
setup(
|
|
107
|
-
const e =
|
|
106
|
+
setup(o, { emit: s }) {
|
|
107
|
+
const e = o, a = s, u = d(() => {
|
|
108
108
|
switch (e.variant) {
|
|
109
109
|
case "secondary":
|
|
110
110
|
return "m-button--secondary";
|
|
@@ -113,33 +113,33 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
113
113
|
default:
|
|
114
114
|
return "m-button--primary";
|
|
115
115
|
}
|
|
116
|
-
}),
|
|
116
|
+
}), i = d(
|
|
117
117
|
() => e.iconAnimated ? "m-button--animated-right" : ""
|
|
118
118
|
), _ = () => {
|
|
119
|
-
|
|
119
|
+
a("click");
|
|
120
120
|
};
|
|
121
|
-
return (
|
|
121
|
+
return (r, f) => (l(), n("button", {
|
|
122
122
|
onClick: _,
|
|
123
|
-
disabled:
|
|
124
|
-
class:
|
|
123
|
+
disabled: r.disabled,
|
|
124
|
+
class: C(["m-button", [u.value, i.value]])
|
|
125
125
|
}, [
|
|
126
126
|
t("span", null, [
|
|
127
|
-
h(
|
|
128
|
-
|
|
127
|
+
h(r.$slots, "default"),
|
|
128
|
+
r.icon ? (l(), U($(S), {
|
|
129
129
|
key: 0,
|
|
130
|
-
icon:
|
|
130
|
+
icon: r.icon,
|
|
131
131
|
class: "m-button__icon"
|
|
132
|
-
}, null, 8, ["icon"])) :
|
|
132
|
+
}, null, 8, ["icon"])) : b("", !0)
|
|
133
133
|
])
|
|
134
|
-
], 10,
|
|
134
|
+
], 10, Me));
|
|
135
135
|
}
|
|
136
|
-
}),
|
|
136
|
+
}), Ce = ["aria-label"], Ie = { class: "m-callout__inner" }, we = { class: "m-callout__icon" }, Se = { class: "m-callout__body" }, Be = { class: "m-callout__body__inner" }, Te = { class: "m-callout__headline" }, Ae = { class: "m-callout__content" }, Le = /* @__PURE__ */ v({
|
|
137
137
|
__name: "MucCallout",
|
|
138
138
|
props: {
|
|
139
139
|
type: { default: "info" }
|
|
140
140
|
},
|
|
141
|
-
setup(
|
|
142
|
-
const s =
|
|
141
|
+
setup(o) {
|
|
142
|
+
const s = o, e = d(() => {
|
|
143
143
|
switch (s.type) {
|
|
144
144
|
case "error":
|
|
145
145
|
return "warning";
|
|
@@ -148,7 +148,7 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
148
148
|
default:
|
|
149
149
|
return "information";
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
151
|
+
}), a = d(() => {
|
|
152
152
|
switch (s.type) {
|
|
153
153
|
case "error":
|
|
154
154
|
return "m-callout--error";
|
|
@@ -159,7 +159,7 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
159
159
|
default:
|
|
160
160
|
return "m-callout--default";
|
|
161
161
|
}
|
|
162
|
-
}),
|
|
162
|
+
}), u = d(() => {
|
|
163
163
|
switch (s.type) {
|
|
164
164
|
case "success":
|
|
165
165
|
return "Erfolgreich";
|
|
@@ -171,148 +171,148 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
171
171
|
return "Information";
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
|
-
return (
|
|
175
|
-
class:
|
|
176
|
-
"aria-label":
|
|
174
|
+
return (i, _) => (l(), n("div", {
|
|
175
|
+
class: C(["m-callout", a.value]),
|
|
176
|
+
"aria-label": u.value
|
|
177
177
|
}, [
|
|
178
|
-
t("div",
|
|
178
|
+
t("div", Ie, [
|
|
179
179
|
t("div", we, [
|
|
180
|
-
h(
|
|
181
|
-
|
|
180
|
+
h(i.$slots, "icon", {}, () => [
|
|
181
|
+
M($(S), { icon: e.value }, null, 8, ["icon"])
|
|
182
182
|
], !0)
|
|
183
183
|
]),
|
|
184
|
-
t("div",
|
|
185
|
-
t("div",
|
|
186
|
-
t("div",
|
|
187
|
-
h(
|
|
184
|
+
t("div", Se, [
|
|
185
|
+
t("div", Be, [
|
|
186
|
+
t("div", Te, [
|
|
187
|
+
h(i.$slots, "header", {}, void 0, !0)
|
|
188
188
|
]),
|
|
189
|
-
t("div",
|
|
189
|
+
t("div", Ae, [
|
|
190
190
|
t("p", null, [
|
|
191
|
-
h(
|
|
191
|
+
h(i.$slots, "content", { class: "m-callout__content" }, void 0, !0)
|
|
192
192
|
])
|
|
193
193
|
])
|
|
194
194
|
])
|
|
195
195
|
])
|
|
196
196
|
])
|
|
197
|
-
], 10,
|
|
197
|
+
], 10, Ce));
|
|
198
198
|
}
|
|
199
|
-
}), xe = /* @__PURE__ */ L(
|
|
199
|
+
}), xe = /* @__PURE__ */ L(Le, [["__scopeId", "data-v-e6cf4104"]]), Ve = (o) => (N("data-v-acf0a1dd"), o = o(), F(), o), Re = { class: "card-content" }, Ee = { class: "card-header" }, Oe = {
|
|
200
200
|
key: 0,
|
|
201
201
|
class: "card-tagline"
|
|
202
|
-
},
|
|
202
|
+
}, Pe = /* @__PURE__ */ Ve(() => /* @__PURE__ */ t("div", { class: "muc-divider" }, null, -1)), je = /* @__PURE__ */ v({
|
|
203
203
|
__name: "MucCard",
|
|
204
204
|
props: {
|
|
205
205
|
title: {},
|
|
206
206
|
tagline: {}
|
|
207
207
|
},
|
|
208
208
|
emits: ["click"],
|
|
209
|
-
setup(
|
|
209
|
+
setup(o, { emit: s }) {
|
|
210
210
|
const e = s;
|
|
211
|
-
return (
|
|
211
|
+
return (a, u) => (l(), n("div", {
|
|
212
212
|
class: "card",
|
|
213
|
-
onClick:
|
|
213
|
+
onClick: u[0] || (u[0] = (i) => e("click", i))
|
|
214
214
|
}, [
|
|
215
|
-
t("div",
|
|
216
|
-
t("div",
|
|
217
|
-
h(
|
|
215
|
+
t("div", Re, [
|
|
216
|
+
t("div", Ee, [
|
|
217
|
+
h(a.$slots, "headerPrefix", {}, void 0, !0),
|
|
218
218
|
t("div", null, [
|
|
219
|
-
|
|
219
|
+
a.tagline ? (l(), n("div", Oe, m(a.tagline), 1)) : b("", !0),
|
|
220
220
|
t("div", null, [
|
|
221
|
-
t("h3", null,
|
|
221
|
+
t("h3", null, m(a.title), 1)
|
|
222
222
|
])
|
|
223
223
|
])
|
|
224
224
|
]),
|
|
225
|
-
|
|
226
|
-
h(
|
|
225
|
+
Pe,
|
|
226
|
+
h(a.$slots, "content", {}, void 0, !0)
|
|
227
227
|
])
|
|
228
228
|
]));
|
|
229
229
|
}
|
|
230
|
-
}),
|
|
230
|
+
}), Ge = /* @__PURE__ */ L(je, [["__scopeId", "data-v-acf0a1dd"]]), Ue = { class: "container card-container" }, qe = /* @__PURE__ */ v({
|
|
231
231
|
__name: "MucCardContainer",
|
|
232
|
-
setup(
|
|
233
|
-
return (s, e) => (
|
|
232
|
+
setup(o) {
|
|
233
|
+
return (s, e) => (l(), n("div", Ue, [
|
|
234
234
|
h(s.$slots, "default", {}, void 0, !0)
|
|
235
235
|
]));
|
|
236
236
|
}
|
|
237
|
-
}),
|
|
237
|
+
}), He = /* @__PURE__ */ L(qe, [["__scopeId", "data-v-6740df8f"]]), Ne = { class: "m-comment__head" }, Fe = { class: "m-comment__initials" }, De = { class: "m-comment__info" }, We = { class: "m-comment__author" }, ze = { key: 0 }, Ke = { class: "m-comment__author" }, Xe = { class: "m-comment__date" }, Je = ["aria-label"], Qe = {
|
|
238
238
|
key: 0,
|
|
239
239
|
class: "m-star-rating__item m-star-rating__item--half"
|
|
240
|
-
},
|
|
240
|
+
}, Ye = { class: "m-star-rating__numeric" }, Ze = { class: "m-comment__body" }, et = { class: "m-comment__headline" }, tt = { class: "m-comment__text" }, st = "de-DE", at = 0.2, ot = 0.8, O = 5, K = /* @__PURE__ */ v({
|
|
241
241
|
__name: "MucComment",
|
|
242
242
|
props: {
|
|
243
243
|
rating: {},
|
|
244
244
|
variant: { default: "listing" }
|
|
245
245
|
},
|
|
246
|
-
setup(
|
|
247
|
-
const s =
|
|
248
|
-
() => Math.min(Math.max(e.rating, 0),
|
|
249
|
-
), _ =
|
|
246
|
+
setup(o) {
|
|
247
|
+
const s = D(), e = o, a = d(() => !!s.date), u = d(() => e.variant === "slider" ? "m-comment--slider" : "m-comment--listing"), i = d(
|
|
248
|
+
() => Math.min(Math.max(e.rating, 0), O)
|
|
249
|
+
), _ = d(() => i.value.toLocaleString(st.valueOf(), {
|
|
250
250
|
minimumFractionDigits: 1
|
|
251
|
-
})),
|
|
252
|
-
const f = +(
|
|
253
|
-
let
|
|
254
|
-
return
|
|
255
|
-
fullStars:
|
|
256
|
-
emptyStars:
|
|
251
|
+
})), r = d(() => {
|
|
252
|
+
const f = +(i.value % 1).toFixed(1);
|
|
253
|
+
let x = Math.min(Math.floor(i.value), O), I = Math.floor(O - i.value), p = !1;
|
|
254
|
+
return i.value !== 0 && i.value !== O && (f <= at ? I++ : f >= ot ? x++ : p = !0), {
|
|
255
|
+
fullStars: x,
|
|
256
|
+
emptyStars: I,
|
|
257
257
|
isHalfStar: p
|
|
258
258
|
};
|
|
259
259
|
});
|
|
260
|
-
return (f,
|
|
261
|
-
class:
|
|
260
|
+
return (f, x) => (l(), n("div", {
|
|
261
|
+
class: C(["m-comment", u.value])
|
|
262
262
|
}, [
|
|
263
|
-
t("div",
|
|
264
|
-
t("div",
|
|
263
|
+
t("div", Ne, [
|
|
264
|
+
t("div", Fe, [
|
|
265
265
|
h(f.$slots, "initials")
|
|
266
266
|
]),
|
|
267
|
-
t("div",
|
|
268
|
-
t("span",
|
|
267
|
+
t("div", De, [
|
|
268
|
+
t("span", We, [
|
|
269
269
|
h(f.$slots, "author")
|
|
270
270
|
]),
|
|
271
|
-
|
|
272
|
-
t("span",
|
|
273
|
-
|
|
271
|
+
a.value ? (l(), n("span", ze, [
|
|
272
|
+
t("span", Ke, [
|
|
273
|
+
y(" "),
|
|
274
274
|
h(f.$slots, "datePrefix")
|
|
275
275
|
]),
|
|
276
|
-
t("span",
|
|
277
|
-
|
|
276
|
+
t("span", Xe, [
|
|
277
|
+
y(" "),
|
|
278
278
|
h(f.$slots, "date")
|
|
279
279
|
])
|
|
280
|
-
])) :
|
|
280
|
+
])) : b("", !0),
|
|
281
281
|
t("div", {
|
|
282
282
|
class: "m-star-rating",
|
|
283
283
|
role: "img",
|
|
284
|
-
"aria-label": `Bewertung: ${f.rating} von ${
|
|
284
|
+
"aria-label": `Bewertung: ${f.rating} von ${O} Sternen`
|
|
285
285
|
}, [
|
|
286
|
-
(
|
|
287
|
-
key:
|
|
286
|
+
(l(!0), n(P, null, j(r.value.fullStars, (I) => (l(), n("div", {
|
|
287
|
+
key: I,
|
|
288
288
|
class: "m-star-rating__item m-star-rating__item--full"
|
|
289
289
|
}, [
|
|
290
|
-
|
|
290
|
+
M($(S), { icon: "solid-star" })
|
|
291
291
|
]))), 128)),
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
])) :
|
|
295
|
-
(
|
|
296
|
-
key:
|
|
292
|
+
r.value.isHalfStar ? (l(), n("div", Qe, [
|
|
293
|
+
M($(S), { icon: "half-star" })
|
|
294
|
+
])) : b("", !0),
|
|
295
|
+
(l(!0), n(P, null, j(r.value.emptyStars, (I) => (l(), n("div", {
|
|
296
|
+
key: I,
|
|
297
297
|
class: "m-star-rating__item"
|
|
298
298
|
}, [
|
|
299
|
-
|
|
299
|
+
M($(S), { icon: "solid-star" })
|
|
300
300
|
]))), 128)),
|
|
301
|
-
t("div",
|
|
302
|
-
], 8,
|
|
301
|
+
t("div", Ye, m(_.value), 1)
|
|
302
|
+
], 8, Je)
|
|
303
303
|
])
|
|
304
304
|
]),
|
|
305
|
-
t("div",
|
|
306
|
-
t("div",
|
|
305
|
+
t("div", Ze, [
|
|
306
|
+
t("div", et, [
|
|
307
307
|
h(f.$slots, "headline")
|
|
308
308
|
]),
|
|
309
|
-
t("div",
|
|
309
|
+
t("div", tt, [
|
|
310
310
|
h(f.$slots, "text")
|
|
311
311
|
])
|
|
312
312
|
])
|
|
313
313
|
], 2));
|
|
314
314
|
}
|
|
315
|
-
}),
|
|
315
|
+
}), lt = " ", nt = /* @__PURE__ */ v({
|
|
316
316
|
__name: "MucCommentText",
|
|
317
317
|
props: {
|
|
318
318
|
datePrefix: { default: "am" },
|
|
@@ -324,162 +324,248 @@ const fe = ["href"], I = /* @__PURE__ */ v({
|
|
|
324
324
|
rating: {},
|
|
325
325
|
variant: { default: "listing" }
|
|
326
326
|
},
|
|
327
|
-
setup(
|
|
328
|
-
const s =
|
|
329
|
-
return (
|
|
330
|
-
rating:
|
|
331
|
-
variant:
|
|
332
|
-
},
|
|
333
|
-
initials:
|
|
334
|
-
|
|
327
|
+
setup(o) {
|
|
328
|
+
const s = o, e = d(() => ((s.initials ?? s.author.split(lt).map((a) => a.charAt(0)).join("")).match(/^.|.$/g) ?? [""]).join(""));
|
|
329
|
+
return (a, u) => (l(), U($(K), {
|
|
330
|
+
rating: a.rating,
|
|
331
|
+
variant: a.variant
|
|
332
|
+
}, ce({
|
|
333
|
+
initials: B(() => [
|
|
334
|
+
y(m(e.value), 1)
|
|
335
335
|
]),
|
|
336
|
-
datePrefix:
|
|
337
|
-
|
|
336
|
+
datePrefix: B(() => [
|
|
337
|
+
y("am")
|
|
338
338
|
]),
|
|
339
|
-
author:
|
|
340
|
-
|
|
339
|
+
author: B(() => [
|
|
340
|
+
y(m(a.author), 1)
|
|
341
341
|
]),
|
|
342
|
-
headline:
|
|
343
|
-
|
|
342
|
+
headline: B(() => [
|
|
343
|
+
y(m(a.headline), 1)
|
|
344
344
|
]),
|
|
345
|
-
text:
|
|
346
|
-
|
|
345
|
+
text: B(() => [
|
|
346
|
+
y(m(a.text), 1)
|
|
347
347
|
]),
|
|
348
348
|
_: 2
|
|
349
349
|
}, [
|
|
350
|
-
|
|
350
|
+
a.date ? {
|
|
351
351
|
name: "date",
|
|
352
|
-
fn:
|
|
353
|
-
|
|
352
|
+
fn: B(() => [
|
|
353
|
+
y(m(a.date), 1)
|
|
354
354
|
]),
|
|
355
355
|
key: "0"
|
|
356
356
|
} : void 0
|
|
357
357
|
]), 1032, ["rating", "variant"]));
|
|
358
358
|
}
|
|
359
|
-
}),
|
|
360
|
-
function
|
|
361
|
-
return
|
|
359
|
+
}), it = {}, rt = { class: "divider-border" };
|
|
360
|
+
function ct(o, s) {
|
|
361
|
+
return l(), n("hr", rt);
|
|
362
362
|
}
|
|
363
|
-
const
|
|
363
|
+
const ut = /* @__PURE__ */ L(it, [["render", ct], ["__scopeId", "data-v-a2b37f5b"]]), dt = ["checked"], mt = { class: "m-label m-checkboxes__label" }, _t = /* @__PURE__ */ v({
|
|
364
364
|
__name: "MucCheckbox",
|
|
365
|
-
props: /* @__PURE__ */
|
|
365
|
+
props: /* @__PURE__ */ T({
|
|
366
366
|
label: {}
|
|
367
367
|
}, {
|
|
368
368
|
modelValue: { type: Boolean, default: !1 },
|
|
369
369
|
modelModifiers: {}
|
|
370
370
|
}),
|
|
371
|
-
emits: /* @__PURE__ */
|
|
372
|
-
setup(
|
|
373
|
-
const e =
|
|
374
|
-
e.value = !e.value,
|
|
371
|
+
emits: /* @__PURE__ */ T(["click"], ["update:modelValue"]),
|
|
372
|
+
setup(o, { emit: s }) {
|
|
373
|
+
const e = E(o, "modelValue"), a = s, u = () => {
|
|
374
|
+
e.value = !e.value, a("click");
|
|
375
375
|
};
|
|
376
|
-
return (
|
|
376
|
+
return (i, _) => (l(), n("div", {
|
|
377
377
|
class: "m-checkboxes__item",
|
|
378
|
-
onClick:
|
|
378
|
+
onClick: u
|
|
379
379
|
}, [
|
|
380
380
|
t("input", {
|
|
381
381
|
class: "m-checkboxes__input",
|
|
382
382
|
name: "checkbox",
|
|
383
383
|
type: "checkbox",
|
|
384
384
|
checked: e.value,
|
|
385
|
-
onClick:
|
|
386
|
-
}, null, 8,
|
|
387
|
-
t("label",
|
|
385
|
+
onClick: W(u, ["stop"])
|
|
386
|
+
}, null, 8, dt),
|
|
387
|
+
t("label", mt, m(i.label), 1)
|
|
388
388
|
]));
|
|
389
389
|
}
|
|
390
|
-
}),
|
|
390
|
+
}), pt = { class: "m-form-group" }, ht = { class: "m-checkbox-group" }, vt = { class: "m-checkbox-group__legend" }, ft = { class: "m-checkbox-group__heading" }, bt = { class: "m-checkboxes m-checkboxes--collapse" }, gt = /* @__PURE__ */ t("span", null, "Mehr ", -1), yt = {
|
|
391
391
|
"aria-hidden": "true",
|
|
392
392
|
class: "icon icon--after"
|
|
393
|
-
}, $t = ["href"],
|
|
393
|
+
}, $t = ["href"], kt = /* @__PURE__ */ v({
|
|
394
394
|
__name: "MucCheckboxGroup",
|
|
395
395
|
props: {
|
|
396
396
|
heading: {}
|
|
397
397
|
},
|
|
398
|
-
setup(
|
|
399
|
-
const s =
|
|
400
|
-
return (
|
|
401
|
-
t("fieldset",
|
|
402
|
-
t("legend",
|
|
403
|
-
t("h3",
|
|
398
|
+
setup(o) {
|
|
399
|
+
const s = R(!0), e = d(() => s.value ? "collapse" : ""), a = d(() => s.value ? "down" : "up"), u = () => s.value = !s.value;
|
|
400
|
+
return (i, _) => (l(), n("div", pt, [
|
|
401
|
+
t("fieldset", ht, [
|
|
402
|
+
t("legend", vt, [
|
|
403
|
+
t("h3", ft, m(i.heading), 1)
|
|
404
404
|
]),
|
|
405
|
-
t("div",
|
|
406
|
-
h(
|
|
407
|
-
|
|
405
|
+
t("div", bt, [
|
|
406
|
+
h(i.$slots, "checkboxes"),
|
|
407
|
+
i.$slots.collapsableCheckboxes ? (l(), n("div", {
|
|
408
408
|
key: 0,
|
|
409
|
-
class:
|
|
409
|
+
class: C(["m-checkboxes__collapse__container", e.value])
|
|
410
410
|
}, [
|
|
411
|
-
h(
|
|
412
|
-
], 2)) :
|
|
413
|
-
|
|
411
|
+
h(i.$slots, "collapsableCheckboxes")
|
|
412
|
+
], 2)) : b("", !0),
|
|
413
|
+
i.$slots.collapsableCheckboxes ? (l(), U($(G), {
|
|
414
414
|
key: 1,
|
|
415
415
|
variant: "ghost",
|
|
416
|
-
onClick:
|
|
416
|
+
onClick: u,
|
|
417
417
|
"aria-expanded": !s.value
|
|
418
418
|
}, {
|
|
419
|
-
default:
|
|
419
|
+
default: B(() => [
|
|
420
420
|
gt,
|
|
421
|
-
(
|
|
421
|
+
(l(), n("svg", yt, [
|
|
422
422
|
t("use", {
|
|
423
|
-
href: "#icon-chevron-" +
|
|
423
|
+
href: "#icon-chevron-" + a.value
|
|
424
424
|
}, null, 8, $t)
|
|
425
425
|
]))
|
|
426
426
|
]),
|
|
427
427
|
_: 1
|
|
428
|
-
}, 8, ["aria-expanded"])) :
|
|
428
|
+
}, 8, ["aria-expanded"])) : b("", !0)
|
|
429
429
|
])
|
|
430
430
|
])
|
|
431
431
|
]));
|
|
432
432
|
}
|
|
433
|
-
}),
|
|
433
|
+
}), Mt = ["href", "target"], X = /* @__PURE__ */ v({
|
|
434
|
+
__name: "MucLink",
|
|
435
|
+
props: {
|
|
436
|
+
label: {},
|
|
437
|
+
href: { default: "#" },
|
|
438
|
+
icon: {},
|
|
439
|
+
target: { default: "_blank" },
|
|
440
|
+
noUnderline: { type: Boolean, default: !1 }
|
|
441
|
+
},
|
|
442
|
+
setup(o) {
|
|
443
|
+
const s = o, e = d(
|
|
444
|
+
() => s.noUnderline ? "m-link--reversed-underline" : ""
|
|
445
|
+
);
|
|
446
|
+
return (a, u) => (l(), n("a", {
|
|
447
|
+
href: a.href,
|
|
448
|
+
target: a.target,
|
|
449
|
+
class: C(["m-link", e.value])
|
|
450
|
+
}, [
|
|
451
|
+
y(m(a.label) + " ", 1),
|
|
452
|
+
h(a.$slots, "icon", {}, () => [
|
|
453
|
+
a.icon ? (l(), U($(S), {
|
|
454
|
+
key: 0,
|
|
455
|
+
icon: a.icon,
|
|
456
|
+
class: "icon icon--after"
|
|
457
|
+
}, null, 8, ["icon"])) : b("", !0)
|
|
458
|
+
])
|
|
459
|
+
], 10, Mt));
|
|
460
|
+
}
|
|
461
|
+
}), Ct = { class: "wrapper" }, It = {
|
|
462
|
+
class: "centered-text",
|
|
463
|
+
style: { color: "var(--color-brand-main-blue)" }
|
|
464
|
+
}, wt = { key: 0 }, St = { class: "centered-text" }, Bt = { key: 1 }, Tt = { class: "centered-text" }, At = /* @__PURE__ */ v({
|
|
465
|
+
__name: "MucCounter",
|
|
466
|
+
props: /* @__PURE__ */ T({
|
|
467
|
+
label: {},
|
|
468
|
+
min: {},
|
|
469
|
+
max: {},
|
|
470
|
+
link: {},
|
|
471
|
+
disabled: { type: Boolean, default: !1 }
|
|
472
|
+
}, {
|
|
473
|
+
modelValue: { default: 0 },
|
|
474
|
+
modelModifiers: {}
|
|
475
|
+
}),
|
|
476
|
+
emits: ["update:modelValue"],
|
|
477
|
+
setup(o) {
|
|
478
|
+
const s = E(o, "modelValue"), e = o, a = () => s.value++, u = () => s.value--, i = d(
|
|
479
|
+
() => !!e.max && !(s.value < e.max) || e.disabled
|
|
480
|
+
), _ = d(
|
|
481
|
+
() => s.value == 0 || !!e.min && !(s.value > e.min) || e.disabled
|
|
482
|
+
);
|
|
483
|
+
return (r, f) => (l(), n("div", Ct, [
|
|
484
|
+
M($(G), {
|
|
485
|
+
onClick: u,
|
|
486
|
+
variant: "secondary",
|
|
487
|
+
disabled: _.value
|
|
488
|
+
}, {
|
|
489
|
+
default: B(() => [
|
|
490
|
+
M($(S), { icon: "minus" })
|
|
491
|
+
]),
|
|
492
|
+
_: 1
|
|
493
|
+
}, 8, ["disabled"]),
|
|
494
|
+
t("p", null, [
|
|
495
|
+
t("strong", It, m(s.value), 1)
|
|
496
|
+
]),
|
|
497
|
+
M($(G), {
|
|
498
|
+
onClick: a,
|
|
499
|
+
variant: "secondary",
|
|
500
|
+
disabled: i.value
|
|
501
|
+
}, {
|
|
502
|
+
default: B(() => [
|
|
503
|
+
M($(S), { icon: "plus" })
|
|
504
|
+
]),
|
|
505
|
+
_: 1
|
|
506
|
+
}, 8, ["disabled"]),
|
|
507
|
+
r.link ? (l(), n("p", wt, [
|
|
508
|
+
t("label", St, [
|
|
509
|
+
M($(X), {
|
|
510
|
+
label: r.label,
|
|
511
|
+
href: r.link
|
|
512
|
+
}, null, 8, ["label", "href"])
|
|
513
|
+
])
|
|
514
|
+
])) : (l(), n("p", Bt, [
|
|
515
|
+
t("label", Tt, m(r.label), 1)
|
|
516
|
+
]))
|
|
517
|
+
]));
|
|
518
|
+
}
|
|
519
|
+
}), Lt = /* @__PURE__ */ L(At, [["__scopeId", "data-v-a20e4a10"]]), xt = {
|
|
434
520
|
class: "m-error-list",
|
|
435
521
|
role: "alert",
|
|
436
522
|
tabindex: "-1"
|
|
437
|
-
},
|
|
523
|
+
}, Vt = { class: "m-error-list__title" }, Rt = { class: "m-error-list__body" }, Et = { class: "m-list m-error-list__list" }, Ot = /* @__PURE__ */ v({
|
|
438
524
|
__name: "MucErrorList",
|
|
439
525
|
props: {
|
|
440
526
|
title: {},
|
|
441
527
|
errors: {}
|
|
442
528
|
},
|
|
443
|
-
setup(
|
|
444
|
-
const s =
|
|
529
|
+
setup(o) {
|
|
530
|
+
const s = o, e = d(
|
|
445
531
|
() => typeof s.errors == "string" ? [s.errors] : s.errors
|
|
446
532
|
);
|
|
447
|
-
return (
|
|
448
|
-
t("h2",
|
|
449
|
-
t("div",
|
|
450
|
-
t("ul",
|
|
451
|
-
(
|
|
452
|
-
t("a", null,
|
|
533
|
+
return (a, u) => (l(), n("div", xt, [
|
|
534
|
+
t("h2", Vt, m(a.title), 1),
|
|
535
|
+
t("div", Rt, [
|
|
536
|
+
t("ul", Et, [
|
|
537
|
+
(l(!0), n(P, null, j(e.value, (i, _) => (l(), n("li", { key: _ }, [
|
|
538
|
+
t("a", null, m(i), 1)
|
|
453
539
|
]))), 128))
|
|
454
540
|
])
|
|
455
541
|
])
|
|
456
542
|
]));
|
|
457
543
|
}
|
|
458
|
-
}),
|
|
544
|
+
}), Pt = {
|
|
459
545
|
for: "search-input",
|
|
460
546
|
class: "m-label"
|
|
461
|
-
},
|
|
547
|
+
}, jt = {
|
|
462
548
|
key: 0,
|
|
463
549
|
"aria-hidden": "true",
|
|
464
550
|
class: "mandatory"
|
|
465
|
-
},
|
|
551
|
+
}, Gt = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "(erforderlich)", -1), Ut = {
|
|
466
552
|
id: "text-input-error",
|
|
467
553
|
class: "m-error-message"
|
|
468
|
-
},
|
|
554
|
+
}, qt = { class: "m-input-wrapper m-autocomplete" }, Ht = {
|
|
469
555
|
key: 0,
|
|
470
556
|
class: "m-input__prefix"
|
|
471
|
-
},
|
|
557
|
+
}, Nt = ["type", "aria-describedby", "placeholder", "required"], Ft = {
|
|
472
558
|
key: 1,
|
|
473
559
|
class: "autocomplete-result-list autocomplete-result-list--location"
|
|
474
|
-
},
|
|
560
|
+
}, Dt = ["onClick"], Wt = {
|
|
475
561
|
"aria-hidden": "true",
|
|
476
562
|
class: "icon"
|
|
477
|
-
},
|
|
563
|
+
}, zt = ["xlink:href"], Kt = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "Suchen", -1), Xt = {
|
|
478
564
|
class: "m-hint",
|
|
479
565
|
id: "text-input-hint"
|
|
480
|
-
},
|
|
566
|
+
}, Jt = /* @__PURE__ */ v({
|
|
481
567
|
__name: "MucInput",
|
|
482
|
-
props: /* @__PURE__ */
|
|
568
|
+
props: /* @__PURE__ */ T({
|
|
483
569
|
errorMsg: {},
|
|
484
570
|
placeholder: {},
|
|
485
571
|
required: { type: Boolean, default: !1 },
|
|
@@ -492,69 +578,69 @@ const rt = /* @__PURE__ */ L(lt, [["render", it], ["__scopeId", "data-v-a2b37f5b
|
|
|
492
578
|
modelValue: { default: "" },
|
|
493
579
|
modelModifiers: {}
|
|
494
580
|
}),
|
|
495
|
-
emits: /* @__PURE__ */
|
|
496
|
-
setup(
|
|
497
|
-
const e =
|
|
581
|
+
emits: /* @__PURE__ */ T(["suffixClick"], ["update:modelValue"]),
|
|
582
|
+
setup(o, { emit: s }) {
|
|
583
|
+
const e = E(o, "modelValue"), a = o, u = D(), i = s, _ = d(() => a.errorMsg ? "has-error" : ""), r = d(() => a.type === "search"), f = d(() => {
|
|
498
584
|
if (e.value === "") return [];
|
|
499
585
|
const p = e.value.toLowerCase();
|
|
500
|
-
return
|
|
586
|
+
return a.datalist.filter(
|
|
501
587
|
(V) => V.toLowerCase().startsWith(p) && V.toLowerCase() !== p
|
|
502
588
|
);
|
|
503
|
-
}),
|
|
504
|
-
return (p, V) => (
|
|
505
|
-
class:
|
|
589
|
+
}), x = (p) => e.value = p, I = () => i("suffixClick");
|
|
590
|
+
return (p, V) => (l(), n("div", {
|
|
591
|
+
class: C(["m-form-group", _.value])
|
|
506
592
|
}, [
|
|
507
|
-
t("label",
|
|
508
|
-
|
|
509
|
-
p.required ? (
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
])) :
|
|
593
|
+
t("label", Pt, [
|
|
594
|
+
y(m(p.label) + " ", 1),
|
|
595
|
+
p.required ? (l(), n("span", jt, [
|
|
596
|
+
y(" * "),
|
|
597
|
+
Gt
|
|
598
|
+
])) : b("", !0)
|
|
513
599
|
]),
|
|
514
|
-
t("p",
|
|
515
|
-
t("div",
|
|
516
|
-
|
|
600
|
+
t("p", Ut, m(p.errorMsg), 1),
|
|
601
|
+
t("div", qt, [
|
|
602
|
+
u.prefix ? (l(), n("div", Ht, [
|
|
517
603
|
t("span", null, [
|
|
518
604
|
h(p.$slots, "prefix")
|
|
519
605
|
])
|
|
520
|
-
])) :
|
|
521
|
-
|
|
606
|
+
])) : b("", !0),
|
|
607
|
+
q(t("input", {
|
|
522
608
|
class: "m-input autocomplete-input",
|
|
523
609
|
type: p.type,
|
|
524
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
610
|
+
"onUpdate:modelValue": V[0] || (V[0] = (w) => e.value = w),
|
|
525
611
|
"aria-describedby": p.type + "-input",
|
|
526
612
|
placeholder: p.placeholder,
|
|
527
613
|
required: p.required
|
|
528
|
-
}, null, 8,
|
|
529
|
-
[
|
|
614
|
+
}, null, 8, Nt), [
|
|
615
|
+
[ue, e.value]
|
|
530
616
|
]),
|
|
531
|
-
|
|
532
|
-
(
|
|
617
|
+
r.value && f.value.length !== 0 ? (l(), n("ul", Ft, [
|
|
618
|
+
(l(!0), n(P, null, j(f.value, (w) => (l(), n("li", {
|
|
533
619
|
class: "autocomplete-result",
|
|
534
|
-
key:
|
|
535
|
-
onClick: (
|
|
536
|
-
},
|
|
537
|
-
])) :
|
|
538
|
-
p.suffixIcon ? (
|
|
620
|
+
key: w,
|
|
621
|
+
onClick: (A) => x(w)
|
|
622
|
+
}, m(w), 9, Dt))), 128))
|
|
623
|
+
])) : b("", !0),
|
|
624
|
+
p.suffixIcon ? (l(), n("button", {
|
|
539
625
|
key: 2,
|
|
540
626
|
class: "m-input__suffix",
|
|
541
|
-
onClick:
|
|
627
|
+
onClick: I
|
|
542
628
|
}, [
|
|
543
|
-
(
|
|
629
|
+
(l(), n("svg", Wt, [
|
|
544
630
|
t("use", {
|
|
545
631
|
"xlink:href": "#icon-" + p.suffixIcon
|
|
546
|
-
}, null, 8,
|
|
632
|
+
}, null, 8, zt)
|
|
547
633
|
])),
|
|
548
|
-
|
|
549
|
-
])) :
|
|
634
|
+
Kt
|
|
635
|
+
])) : b("", !0)
|
|
550
636
|
]),
|
|
551
|
-
t("p",
|
|
637
|
+
t("p", Xt, m(p.hint), 1)
|
|
552
638
|
], 2));
|
|
553
639
|
}
|
|
554
|
-
}),
|
|
640
|
+
}), J = Symbol("mucRadioGroup"), Qt = {
|
|
555
641
|
key: 0,
|
|
556
642
|
class: "m-radios__item"
|
|
557
|
-
},
|
|
643
|
+
}, Yt = ["checked", "disabled"], Zt = { class: "m-hint" }, es = /* @__PURE__ */ v({
|
|
558
644
|
__name: "MucRadioButton",
|
|
559
645
|
props: {
|
|
560
646
|
value: {},
|
|
@@ -562,88 +648,101 @@ const rt = /* @__PURE__ */ L(lt, [["render", it], ["__scopeId", "data-v-a2b37f5b
|
|
|
562
648
|
hint: {},
|
|
563
649
|
disabled: { type: Boolean, default: !1 }
|
|
564
650
|
},
|
|
565
|
-
setup(
|
|
566
|
-
const s =
|
|
567
|
-
return (
|
|
651
|
+
setup(o) {
|
|
652
|
+
const s = o, e = de(J), a = () => e == null ? void 0 : e.set(s.value), u = d(() => (e == null ? void 0 : e.modelValue.value) === s.value), i = d(() => s.disabled || (e == null ? void 0 : e.disabled.value)), _ = d(() => !!(e != null && e.disabled));
|
|
653
|
+
return (r, f) => _.value ? (l(), n("div", Qt, [
|
|
568
654
|
t("input", {
|
|
569
655
|
class: "m-radios__input",
|
|
570
656
|
type: "radio",
|
|
571
|
-
checked:
|
|
572
|
-
disabled:
|
|
573
|
-
onClick:
|
|
574
|
-
}, null, 8,
|
|
657
|
+
checked: u.value,
|
|
658
|
+
disabled: i.value,
|
|
659
|
+
onClick: W(a, ["stop"])
|
|
660
|
+
}, null, 8, Yt),
|
|
575
661
|
t("label", {
|
|
576
662
|
class: "m-label m-radios__label",
|
|
577
|
-
onClick:
|
|
663
|
+
onClick: a
|
|
578
664
|
}, [
|
|
579
|
-
|
|
580
|
-
t("span",
|
|
665
|
+
y(m(r.label) + " ", 1),
|
|
666
|
+
t("span", Zt, m(r.hint), 1)
|
|
581
667
|
])
|
|
582
|
-
])) :
|
|
668
|
+
])) : b("", !0);
|
|
583
669
|
}
|
|
584
|
-
}),
|
|
670
|
+
}), ts = { class: "m-form-group" }, ss = { class: "m-radio-group" }, as = { class: "m-radio-group__legend" }, os = { class: "m-radio-group__heading" }, ls = { class: "m-radios" }, ns = /* @__PURE__ */ v({
|
|
585
671
|
__name: "MucRadioButtonGroup",
|
|
586
|
-
props: /* @__PURE__ */
|
|
672
|
+
props: /* @__PURE__ */ T({
|
|
587
673
|
heading: {},
|
|
588
674
|
disabled: { type: Boolean, default: !1 }
|
|
589
675
|
}, {
|
|
590
676
|
modelValue: { type: [Boolean, String, Array, Object, Number, null] },
|
|
591
677
|
modelModifiers: {}
|
|
592
678
|
}),
|
|
593
|
-
emits: /* @__PURE__ */
|
|
594
|
-
setup(
|
|
595
|
-
const e =
|
|
596
|
-
return
|
|
597
|
-
set: (
|
|
598
|
-
|
|
679
|
+
emits: /* @__PURE__ */ T(["change"], ["update:modelValue"]),
|
|
680
|
+
setup(o, { emit: s }) {
|
|
681
|
+
const e = E(o, "modelValue"), a = o, u = s;
|
|
682
|
+
return me(J, {
|
|
683
|
+
set: (i) => {
|
|
684
|
+
u("change", i), e.value = i;
|
|
599
685
|
},
|
|
600
686
|
modelValue: e,
|
|
601
|
-
disabled: _e(
|
|
602
|
-
}), (
|
|
603
|
-
t("fieldset",
|
|
604
|
-
t("legend",
|
|
605
|
-
t("h3",
|
|
687
|
+
disabled: _e(pe(a.disabled))
|
|
688
|
+
}), (i, _) => (l(), n("div", ts, [
|
|
689
|
+
t("fieldset", ss, [
|
|
690
|
+
t("legend", as, [
|
|
691
|
+
t("h3", os, m(i.heading), 1)
|
|
606
692
|
]),
|
|
607
|
-
t("div",
|
|
608
|
-
h(
|
|
693
|
+
t("div", ls, [
|
|
694
|
+
h(i.$slots, "default")
|
|
609
695
|
])
|
|
610
696
|
])
|
|
611
697
|
]));
|
|
612
698
|
}
|
|
613
699
|
});
|
|
614
|
-
function
|
|
615
|
-
if (!
|
|
616
|
-
const e = (
|
|
617
|
-
|
|
700
|
+
function is(o, s) {
|
|
701
|
+
if (!o) return;
|
|
702
|
+
const e = (a) => {
|
|
703
|
+
a.target !== o.value && a.composedPath().includes(o.value) || typeof s == "function" && s();
|
|
618
704
|
};
|
|
619
|
-
return
|
|
705
|
+
return he(() => {
|
|
620
706
|
window.addEventListener("click", e);
|
|
621
|
-
}),
|
|
707
|
+
}), ve(() => {
|
|
622
708
|
window.removeEventListener("click", e);
|
|
623
709
|
}), { listener: e };
|
|
624
710
|
}
|
|
625
|
-
const
|
|
711
|
+
const rs = /* @__PURE__ */ v({
|
|
712
|
+
__name: "MucSelectItem",
|
|
713
|
+
props: {
|
|
714
|
+
item: {},
|
|
715
|
+
itemLabel: {}
|
|
716
|
+
},
|
|
717
|
+
setup(o) {
|
|
718
|
+
const s = o, e = d(
|
|
719
|
+
() => typeof s.item == "string" ? s.item : s.item[s.itemLabel].toString()
|
|
720
|
+
);
|
|
721
|
+
return (a, u) => (l(), n("span", null, m(e.value), 1));
|
|
722
|
+
}
|
|
723
|
+
}), Q = (o) => (N("data-v-e39e3aae"), o = o(), F(), o), cs = { class: "m-label" }, us = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("svg", {
|
|
626
724
|
"aria-hidden": "true",
|
|
627
725
|
class: "icon"
|
|
628
726
|
}, [
|
|
629
727
|
/* @__PURE__ */ t("use", { "xlink:href": "#icon-chevron-down" })
|
|
630
|
-
], -1)),
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
],
|
|
728
|
+
], -1)), ds = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("span", { class: "visually-hidden" }, "Auswahlliste öffnen", -1)), ms = [
|
|
729
|
+
us,
|
|
730
|
+
ds
|
|
731
|
+
], _s = ["onMouseenter", "onClick"], ps = {
|
|
634
732
|
key: 0,
|
|
635
733
|
class: "option"
|
|
636
|
-
},
|
|
734
|
+
}, hs = {
|
|
637
735
|
key: 0,
|
|
638
736
|
class: "m-hint"
|
|
639
|
-
},
|
|
737
|
+
}, vs = /* @__PURE__ */ v({
|
|
640
738
|
__name: "MucSelect",
|
|
641
|
-
props: /* @__PURE__ */
|
|
739
|
+
props: /* @__PURE__ */ T({
|
|
642
740
|
items: {},
|
|
643
741
|
label: {},
|
|
644
742
|
hint: {},
|
|
645
743
|
multiple: { type: Boolean, default: !1 },
|
|
646
|
-
noItemFoundMessage: { default: "No items found." }
|
|
744
|
+
noItemFoundMessage: { default: "No items found." },
|
|
745
|
+
itemTitle: { default: "title" }
|
|
647
746
|
}, {
|
|
648
747
|
modelValue: {
|
|
649
748
|
default: []
|
|
@@ -651,83 +750,106 @@ const J = (a) => (H("data-v-0f229e1b"), a = a(), N(), a), Yt = { class: "m-label
|
|
|
651
750
|
modelModifiers: {}
|
|
652
751
|
}),
|
|
653
752
|
emits: ["update:modelValue"],
|
|
654
|
-
setup(
|
|
655
|
-
const s =
|
|
656
|
-
o
|
|
657
|
-
|
|
658
|
-
|
|
753
|
+
setup(o) {
|
|
754
|
+
const s = R(), e = E(
|
|
755
|
+
o,
|
|
756
|
+
"modelValue"
|
|
757
|
+
), a = R(!1), u = R(), i = R(!1), _ = R(), r = o, f = () => {
|
|
758
|
+
a.value = !a.value, _.value = u.value;
|
|
759
|
+
}, x = () => {
|
|
760
|
+
a.value = !0, _.value = u.value, A.value = "";
|
|
659
761
|
};
|
|
660
|
-
|
|
661
|
-
|
|
762
|
+
is(s, () => {
|
|
763
|
+
a.value = !1, A.value = w.value;
|
|
662
764
|
});
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
}, p = (
|
|
666
|
-
|
|
667
|
-
}, V = (
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
765
|
+
const I = (c) => {
|
|
766
|
+
u.value = c, r.multiple ? V(c) : p(c), r.multiple || (a.value = !1);
|
|
767
|
+
}, p = (c) => {
|
|
768
|
+
Array.isArray(e.value) && (e.value = e.value.join(" ")), typeof e.value != "string" && typeof c != "string" ? e.value = e.value[r.itemTitle] === c[r.itemTitle] ? "" : c : e.value = e.value === c ? "" : c;
|
|
769
|
+
}, V = (c) => {
|
|
770
|
+
Array.isArray(e.value) || (e.value = [e.value]), Array.isArray(e.value) && (typeof c == "string" ? e.value = e.value.map((g) => g).includes(c) ? e.value.filter((g) => g !== c) : [...e.value, c] : e.value = e.value.map((g) => g[r.itemTitle]).includes(c[r.itemTitle]) ? e.value.filter(
|
|
771
|
+
(g) => g[r.itemTitle] !== c[r.itemTitle]
|
|
772
|
+
) : [...e.value, c]);
|
|
773
|
+
}, w = d(() => typeof e.value == "string" ? e.value : Array.isArray(e.value) ? e.value.every((c) => typeof c == "string") ? e.value.join(r.multiple ? ", " : " ") : e.value.map((c) => c[r.itemTitle].toString()).join(r.multiple ? ", " : " ") : e.value[r.itemTitle].toString());
|
|
774
|
+
fe(w, (c) => {
|
|
775
|
+
A.value = c;
|
|
672
776
|
});
|
|
673
|
-
const
|
|
674
|
-
() =>
|
|
675
|
-
),
|
|
676
|
-
|
|
677
|
-
const
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
777
|
+
const A = R(w.value), Y = d(
|
|
778
|
+
() => A.value == w.value ? r.items : Z(A.value)
|
|
779
|
+
), Z = (c) => {
|
|
780
|
+
i.value = !1;
|
|
781
|
+
const g = r.items.every(
|
|
782
|
+
(k) => typeof k == "string"
|
|
783
|
+
) ? r.items.filter(
|
|
784
|
+
(k) => k.toLowerCase().includes(c.toLowerCase())
|
|
785
|
+
) : r.items.filter(
|
|
786
|
+
(k) => k[r.itemTitle].toString().toLowerCase().includes(c.toLowerCase())
|
|
787
|
+
);
|
|
788
|
+
return g.length === 0 && (i.value = !0), g;
|
|
789
|
+
}, ee = (c) => c === _.value ? "active" : "", te = (c) => {
|
|
790
|
+
if (typeof c == "string")
|
|
791
|
+
return e.value.includes(c) ? "selected" : "";
|
|
792
|
+
if (Array.isArray(e.value))
|
|
793
|
+
return e.value.map((g) => g[r.itemTitle]).includes(c[r.itemTitle]) ? "selected" : "";
|
|
794
|
+
if (typeof e.value != "string")
|
|
795
|
+
return e.value[r.itemTitle] === c[r.itemTitle] ? "selected" : "";
|
|
796
|
+
}, se = () => _.value = "", ae = d(
|
|
797
|
+
() => a.value ? "display-listbox" : ""
|
|
798
|
+
), oe = d(
|
|
799
|
+
() => r.multiple && !i.value ? "m-input-wrapper--multiselect multiselect" : "m-input-wrapper--select"
|
|
683
800
|
);
|
|
684
|
-
return (
|
|
801
|
+
return (c, g) => (l(), n("div", {
|
|
685
802
|
class: "m-form-group",
|
|
686
803
|
ref_key: "selectComponentRef",
|
|
687
804
|
ref: s
|
|
688
805
|
}, [
|
|
689
|
-
t("label",
|
|
806
|
+
t("label", cs, m(c.label), 1),
|
|
690
807
|
t("div", {
|
|
691
|
-
class:
|
|
808
|
+
class: C(["m-input-wrapper", oe.value])
|
|
692
809
|
}, [
|
|
693
|
-
|
|
810
|
+
q(t("input", {
|
|
694
811
|
type: "text",
|
|
695
812
|
class: "m-input m-combobox m-combobox--single",
|
|
696
|
-
"onUpdate:modelValue":
|
|
697
|
-
onClick:
|
|
813
|
+
"onUpdate:modelValue": g[0] || (g[0] = (k) => A.value = k),
|
|
814
|
+
onClick: x
|
|
698
815
|
}, null, 512), [
|
|
699
|
-
[
|
|
816
|
+
[z, A.value]
|
|
700
817
|
]),
|
|
701
818
|
t("span", {
|
|
702
819
|
class: "m-input__trigger",
|
|
703
820
|
onClick: f
|
|
704
|
-
},
|
|
821
|
+
}, ms),
|
|
705
822
|
t("ul", {
|
|
706
|
-
class:
|
|
707
|
-
onMouseleave:
|
|
823
|
+
class: C(["listbox", ae.value]),
|
|
824
|
+
onMouseleave: se
|
|
708
825
|
}, [
|
|
709
|
-
(
|
|
710
|
-
key:
|
|
711
|
-
class:
|
|
712
|
-
onMouseenter: (ne) => _.value =
|
|
713
|
-
onClick: (ne) =>
|
|
714
|
-
},
|
|
715
|
-
|
|
826
|
+
(l(!0), n(P, null, j(Y.value, (k, le) => (l(), n("li", {
|
|
827
|
+
key: le,
|
|
828
|
+
class: C(["option", [ee(k), te(k)]]),
|
|
829
|
+
onMouseenter: (ne) => _.value = k,
|
|
830
|
+
onClick: (ne) => I(k)
|
|
831
|
+
}, [
|
|
832
|
+
M(rs, {
|
|
833
|
+
item: k,
|
|
834
|
+
"item-label": c.itemTitle
|
|
835
|
+
}, null, 8, ["item", "item-label"])
|
|
836
|
+
], 42, _s))), 128)),
|
|
837
|
+
i.value ? (l(), n("li", ps, m(c.noItemFoundMessage), 1)) : b("", !0)
|
|
716
838
|
], 34)
|
|
717
839
|
], 2),
|
|
718
|
-
|
|
840
|
+
c.hint ? (l(), n("p", hs, m(c.hint), 1)) : b("", !0)
|
|
719
841
|
], 512));
|
|
720
842
|
}
|
|
721
|
-
}),
|
|
843
|
+
}), fs = /* @__PURE__ */ L(vs, [["__scopeId", "data-v-e39e3aae"]]), bs = { class: "m-form-group has-error" }, gs = {
|
|
722
844
|
for: "textarea",
|
|
723
845
|
class: "m-label"
|
|
724
|
-
},
|
|
846
|
+
}, ys = {
|
|
725
847
|
key: 0,
|
|
726
848
|
"aria-hidden": "true",
|
|
727
849
|
class: "mandatory"
|
|
728
|
-
},
|
|
850
|
+
}, $s = /* @__PURE__ */ t("span", { class: "visually-hidden" }, "(erforderlich)", -1), ks = { class: "m-error-message" }, Ms = { class: "m-input-wrapper" }, Cs = ["rows", "placeholder"], Is = { class: "m-hint" }, ws = /* @__PURE__ */ v({
|
|
729
851
|
__name: "MucTextArea",
|
|
730
|
-
props: /* @__PURE__ */
|
|
852
|
+
props: /* @__PURE__ */ T({
|
|
731
853
|
errorMsg: {},
|
|
732
854
|
rows: { default: 3 },
|
|
733
855
|
placeholder: {},
|
|
@@ -739,58 +861,58 @@ const J = (a) => (H("data-v-0f229e1b"), a = a(), N(), a), Yt = { class: "m-label
|
|
|
739
861
|
modelModifiers: {}
|
|
740
862
|
}),
|
|
741
863
|
emits: ["update:modelValue"],
|
|
742
|
-
setup(
|
|
743
|
-
const s =
|
|
744
|
-
return (e,
|
|
745
|
-
t("label",
|
|
746
|
-
|
|
747
|
-
e.required ? (
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
])) :
|
|
864
|
+
setup(o) {
|
|
865
|
+
const s = E(o, "modelValue");
|
|
866
|
+
return (e, a) => (l(), n("div", bs, [
|
|
867
|
+
t("label", gs, [
|
|
868
|
+
y(m(e.label) + " ", 1),
|
|
869
|
+
e.required ? (l(), n("span", ys, [
|
|
870
|
+
y(" * "),
|
|
871
|
+
$s
|
|
872
|
+
])) : b("", !0)
|
|
751
873
|
]),
|
|
752
|
-
t("p",
|
|
753
|
-
t("div",
|
|
754
|
-
|
|
874
|
+
t("p", ks, m(e.errorMsg), 1),
|
|
875
|
+
t("div", Ms, [
|
|
876
|
+
q(t("textarea", {
|
|
755
877
|
class: "m-textarea",
|
|
756
878
|
rows: e.rows,
|
|
757
879
|
"aria-describedby": "textarea input",
|
|
758
880
|
placeholder: e.placeholder,
|
|
759
|
-
"onUpdate:modelValue":
|
|
760
|
-
}, null, 8,
|
|
761
|
-
[
|
|
881
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => s.value = u)
|
|
882
|
+
}, null, 8, Cs), [
|
|
883
|
+
[z, s.value]
|
|
762
884
|
])
|
|
763
885
|
]),
|
|
764
|
-
t("p",
|
|
886
|
+
t("p", Is, m(e.hint), 1)
|
|
765
887
|
]));
|
|
766
888
|
}
|
|
767
|
-
}),
|
|
889
|
+
}), Ss = {
|
|
768
890
|
class: "m-intro m-intro-static-image",
|
|
769
891
|
style: { "background-color": "var(--color-neutrals-blue-xlight)" }
|
|
770
|
-
},
|
|
892
|
+
}, Bs = { class: "container" }, Ts = { class: "muc-intro-content" }, As = {
|
|
771
893
|
key: 0,
|
|
772
894
|
class: "m-intro-vertical__tagline"
|
|
773
|
-
},
|
|
895
|
+
}, Ls = { class: "m-intro-vertical__title" }, xs = {
|
|
774
896
|
key: 0,
|
|
775
897
|
class: "muc-divider"
|
|
776
|
-
},
|
|
898
|
+
}, Vs = { class: "m-intro-vertical__content" }, Rs = { style: { "padding-bottom": "32px" } }, Es = /* @__PURE__ */ v({
|
|
777
899
|
__name: "MucIntro",
|
|
778
900
|
props: {
|
|
779
901
|
title: {},
|
|
780
902
|
tagline: {},
|
|
781
903
|
divider: { type: Boolean }
|
|
782
904
|
},
|
|
783
|
-
setup(
|
|
784
|
-
return (s, e) => (
|
|
785
|
-
t("div",
|
|
786
|
-
t("div",
|
|
905
|
+
setup(o) {
|
|
906
|
+
return (s, e) => (l(), n("div", Ss, [
|
|
907
|
+
t("div", Bs, [
|
|
908
|
+
t("div", Ts, [
|
|
787
909
|
t("div", null, [
|
|
788
|
-
s.tagline ? (
|
|
789
|
-
t("h1",
|
|
910
|
+
s.tagline ? (l(), n("p", As, m(s.tagline), 1)) : b("", !0),
|
|
911
|
+
t("h1", Ls, m(s.title), 1)
|
|
790
912
|
]),
|
|
791
|
-
s.divider ? (
|
|
792
|
-
t("div",
|
|
793
|
-
t("p",
|
|
913
|
+
s.divider ? (l(), n("div", xs)) : b("", !0),
|
|
914
|
+
t("div", Vs, [
|
|
915
|
+
t("p", Rs, [
|
|
794
916
|
h(s.$slots, "default", {}, void 0, !0)
|
|
795
917
|
])
|
|
796
918
|
])
|
|
@@ -798,80 +920,54 @@ const J = (a) => (H("data-v-0f229e1b"), a = a(), N(), a), Yt = { class: "m-label
|
|
|
798
920
|
])
|
|
799
921
|
]));
|
|
800
922
|
}
|
|
801
|
-
}),
|
|
802
|
-
__name: "MucLink",
|
|
803
|
-
props: {
|
|
804
|
-
label: {},
|
|
805
|
-
href: { default: "#" },
|
|
806
|
-
icon: {},
|
|
807
|
-
target: { default: "_blank" },
|
|
808
|
-
noUnderline: { type: Boolean, default: !1 }
|
|
809
|
-
},
|
|
810
|
-
setup(a) {
|
|
811
|
-
const s = a, e = r(
|
|
812
|
-
() => s.noUnderline ? "m-link--reversed-underline" : ""
|
|
813
|
-
);
|
|
814
|
-
return (o, i) => (n(), l("a", {
|
|
815
|
-
href: o.href,
|
|
816
|
-
target: o.target,
|
|
817
|
-
class: $(["m-link", e.value])
|
|
818
|
-
}, [
|
|
819
|
-
b(u(o.label) + " ", 1),
|
|
820
|
-
h(o.$slots, "icon", {}, () => [
|
|
821
|
-
o.icon ? (n(), G(C(I), {
|
|
822
|
-
key: 0,
|
|
823
|
-
icon: o.icon,
|
|
824
|
-
class: "icon icon--after"
|
|
825
|
-
}, null, 8, ["icon"])) : g("", !0)
|
|
826
|
-
])
|
|
827
|
-
], 10, Is));
|
|
828
|
-
}
|
|
829
|
-
}), q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
923
|
+
}), Os = /* @__PURE__ */ L(Es, [["__scopeId", "data-v-5c768acc"]]), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
830
924
|
__proto__: null,
|
|
831
|
-
MucBanner:
|
|
832
|
-
MucButton:
|
|
925
|
+
MucBanner: ke,
|
|
926
|
+
MucButton: G,
|
|
833
927
|
MucCallout: xe,
|
|
834
|
-
MucCard:
|
|
835
|
-
MucCardContainer:
|
|
928
|
+
MucCard: Ge,
|
|
929
|
+
MucCardContainer: He,
|
|
836
930
|
MucCheckbox: _t,
|
|
837
|
-
MucCheckboxGroup:
|
|
931
|
+
MucCheckboxGroup: kt,
|
|
838
932
|
MucComment: K,
|
|
839
933
|
MucCommentText: nt,
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
934
|
+
MucCounter: Lt,
|
|
935
|
+
MucDivider: ut,
|
|
936
|
+
MucErrorList: Ot,
|
|
937
|
+
MucIcon: S,
|
|
938
|
+
MucInput: Jt,
|
|
939
|
+
MucIntro: Os,
|
|
940
|
+
MucLink: X,
|
|
941
|
+
MucRadioButton: es,
|
|
942
|
+
MucRadioButtonGroup: ns,
|
|
943
|
+
MucSelect: fs,
|
|
944
|
+
MucTextArea: ws
|
|
850
945
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
851
|
-
function
|
|
852
|
-
for (const s in
|
|
853
|
-
|
|
946
|
+
function Ps(o) {
|
|
947
|
+
for (const s in H)
|
|
948
|
+
o.component(s, H[s]);
|
|
854
949
|
}
|
|
855
|
-
const
|
|
950
|
+
const Gs = { install: Ps };
|
|
856
951
|
export {
|
|
857
|
-
|
|
858
|
-
|
|
952
|
+
ke as MucBanner,
|
|
953
|
+
G as MucButton,
|
|
859
954
|
xe as MucCallout,
|
|
860
|
-
|
|
861
|
-
|
|
955
|
+
Ge as MucCard,
|
|
956
|
+
He as MucCardContainer,
|
|
862
957
|
_t as MucCheckbox,
|
|
863
|
-
|
|
958
|
+
kt as MucCheckboxGroup,
|
|
864
959
|
K as MucComment,
|
|
865
960
|
nt as MucCommentText,
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
961
|
+
Lt as MucCounter,
|
|
962
|
+
ut as MucDivider,
|
|
963
|
+
Ot as MucErrorList,
|
|
964
|
+
S as MucIcon,
|
|
965
|
+
Jt as MucInput,
|
|
966
|
+
Os as MucIntro,
|
|
967
|
+
X as MucLink,
|
|
968
|
+
es as MucRadioButton,
|
|
969
|
+
ns as MucRadioButtonGroup,
|
|
970
|
+
fs as MucSelect,
|
|
971
|
+
ws as MucTextArea,
|
|
972
|
+
Gs as default
|
|
877
973
|
};
|