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