@muenchen/muc-patternlab-vue 1.13.0-beta.6 → 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/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/muc-patternlab-vue.es.js +375 -339
- package/dist/style.css +1 -1
- package/package.json +1 -1
- 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
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as v, useAttrs as
|
|
2
|
-
const be = ["href"],
|
|
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-" +
|
|
16
|
+
href: "#icon-" + a.icon
|
|
17
17
|
}, null, 8, be)
|
|
18
18
|
], 6));
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
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 be = ["href"], w = /* @__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 be = ["href"], w = /* @__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 be = ["href"], w = /* @__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 be = ["href"], w = /* @__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
|
-
], 10,
|
|
88
|
+
], 10, ge)
|
|
89
89
|
])
|
|
90
90
|
]));
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
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
|
-
}, ke = /* @__PURE__ */
|
|
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 be = ["href"], w = /* @__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 be = ["href"], w = /* @__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
132
|
}, null, 8, ["icon"])) : b("", !0)
|
|
133
133
|
])
|
|
134
134
|
], 10, Me));
|
|
135
135
|
}
|
|
136
|
-
}), Ce = ["aria-label"],
|
|
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 be = ["href"], w = /* @__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 be = ["href"], w = /* @__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,24 +171,24 @@ const be = ["href"], w = /* @__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",
|
|
179
|
-
t("div",
|
|
180
|
-
h(
|
|
181
|
-
|
|
178
|
+
t("div", Ie, [
|
|
179
|
+
t("div", we, [
|
|
180
|
+
h(i.$slots, "icon", {}, () => [
|
|
181
|
+
M($(S), { icon: e.value }, null, 8, ["icon"])
|
|
182
182
|
], !0)
|
|
183
183
|
]),
|
|
184
184
|
t("div", Se, [
|
|
185
185
|
t("div", Be, [
|
|
186
|
-
t("div",
|
|
187
|
-
h(
|
|
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
|
])
|
|
@@ -196,69 +196,69 @@ const be = ["href"], w = /* @__PURE__ */ v({
|
|
|
196
196
|
])
|
|
197
197
|
], 10, Ce));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
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
|
-
}, Pe = /* @__PURE__ */
|
|
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
225
|
Pe,
|
|
226
|
-
h(
|
|
226
|
+
h(a.$slots, "content", {}, void 0, !0)
|
|
227
227
|
])
|
|
228
228
|
]));
|
|
229
229
|
}
|
|
230
|
-
}), Ge = /* @__PURE__ */
|
|
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
|
-
}), He = /* @__PURE__ */
|
|
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
|
-
}, Ye = { class: "m-star-rating__numeric" }, Ze = { class: "m-comment__body" }, et = { class: "m-comment__headline" }, tt = { class: "m-comment__text" }, st = "de-DE",
|
|
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 = D(), e =
|
|
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
263
|
t("div", Ne, [
|
|
264
264
|
t("div", Fe, [
|
|
@@ -268,37 +268,37 @@ const be = ["href"], w = /* @__PURE__ */ v({
|
|
|
268
268
|
t("span", We, [
|
|
269
269
|
h(f.$slots, "author")
|
|
270
270
|
]),
|
|
271
|
-
|
|
271
|
+
a.value ? (l(), n("span", ze, [
|
|
272
272
|
t("span", Ke, [
|
|
273
|
-
|
|
273
|
+
y(" "),
|
|
274
274
|
h(f.$slots, "datePrefix")
|
|
275
275
|
]),
|
|
276
276
|
t("span", Xe, [
|
|
277
|
-
|
|
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
|
-
|
|
292
|
+
r.value.isHalfStar ? (l(), n("div", Qe, [
|
|
293
|
+
M($(S), { icon: "half-star" })
|
|
294
294
|
])) : b("", !0),
|
|
295
|
-
(
|
|
296
|
-
key:
|
|
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", Ye,
|
|
301
|
+
t("div", Ye, m(_.value), 1)
|
|
302
302
|
], 8, Je)
|
|
303
303
|
])
|
|
304
304
|
]),
|
|
@@ -312,7 +312,7 @@ const be = ["href"], w = /* @__PURE__ */ v({
|
|
|
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,104 +324,104 @@ const be = ["href"], w = /* @__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 ut = /* @__PURE__ */
|
|
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: W(
|
|
385
|
+
onClick: W(u, ["stop"])
|
|
386
386
|
}, null, 8, dt),
|
|
387
|
-
t("label",
|
|
387
|
+
t("label", mt, m(i.label), 1)
|
|
388
388
|
]));
|
|
389
389
|
}
|
|
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" },
|
|
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
|
-
},
|
|
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 (
|
|
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
401
|
t("fieldset", ht, [
|
|
402
402
|
t("legend", vt, [
|
|
403
|
-
t("h3", ft,
|
|
403
|
+
t("h3", ft, m(i.heading), 1)
|
|
404
404
|
]),
|
|
405
405
|
t("div", bt, [
|
|
406
|
-
h(
|
|
407
|
-
|
|
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(
|
|
411
|
+
h(i.$slots, "collapsableCheckboxes")
|
|
412
412
|
], 2)) : b("", !0),
|
|
413
|
-
|
|
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:
|
|
420
|
-
|
|
421
|
-
(
|
|
419
|
+
default: B(() => [
|
|
420
|
+
gt,
|
|
421
|
+
(l(), n("svg", yt, [
|
|
422
422
|
t("use", {
|
|
423
|
-
href: "#icon-chevron-" +
|
|
424
|
-
}, null, 8,
|
|
423
|
+
href: "#icon-chevron-" + a.value
|
|
424
|
+
}, null, 8, $t)
|
|
425
425
|
]))
|
|
426
426
|
]),
|
|
427
427
|
_: 1
|
|
@@ -439,31 +439,31 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
|
|
|
439
439
|
target: { default: "_blank" },
|
|
440
440
|
noUnderline: { type: Boolean, default: !1 }
|
|
441
441
|
},
|
|
442
|
-
setup(
|
|
443
|
-
const s =
|
|
442
|
+
setup(o) {
|
|
443
|
+
const s = o, e = d(
|
|
444
444
|
() => s.noUnderline ? "m-link--reversed-underline" : ""
|
|
445
445
|
);
|
|
446
|
-
return (
|
|
447
|
-
href:
|
|
448
|
-
target:
|
|
449
|
-
class:
|
|
446
|
+
return (a, u) => (l(), n("a", {
|
|
447
|
+
href: a.href,
|
|
448
|
+
target: a.target,
|
|
449
|
+
class: C(["m-link", e.value])
|
|
450
450
|
}, [
|
|
451
|
-
|
|
452
|
-
h(
|
|
453
|
-
|
|
451
|
+
y(m(a.label) + " ", 1),
|
|
452
|
+
h(a.$slots, "icon", {}, () => [
|
|
453
|
+
a.icon ? (l(), U($(S), {
|
|
454
454
|
key: 0,
|
|
455
|
-
icon:
|
|
455
|
+
icon: a.icon,
|
|
456
456
|
class: "icon icon--after"
|
|
457
457
|
}, null, 8, ["icon"])) : b("", !0)
|
|
458
458
|
])
|
|
459
459
|
], 10, Mt));
|
|
460
460
|
}
|
|
461
|
-
}), Ct = { class: "wrapper" },
|
|
461
|
+
}), Ct = { class: "wrapper" }, It = {
|
|
462
462
|
class: "centered-text",
|
|
463
463
|
style: { color: "var(--color-brand-main-blue)" }
|
|
464
|
-
},
|
|
464
|
+
}, wt = { key: 0 }, St = { class: "centered-text" }, Bt = { key: 1 }, Tt = { class: "centered-text" }, At = /* @__PURE__ */ v({
|
|
465
465
|
__name: "MucCounter",
|
|
466
|
-
props: /* @__PURE__ */
|
|
466
|
+
props: /* @__PURE__ */ T({
|
|
467
467
|
label: {},
|
|
468
468
|
min: {},
|
|
469
469
|
max: {},
|
|
@@ -474,68 +474,68 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
|
|
|
474
474
|
modelModifiers: {}
|
|
475
475
|
}),
|
|
476
476
|
emits: ["update:modelValue"],
|
|
477
|
-
setup(
|
|
478
|
-
const s =
|
|
477
|
+
setup(o) {
|
|
478
|
+
const s = E(o, "modelValue"), e = o, a = () => s.value++, u = () => s.value--, i = d(
|
|
479
479
|
() => !!e.max && !(s.value < e.max) || e.disabled
|
|
480
|
-
), _ =
|
|
480
|
+
), _ = d(
|
|
481
481
|
() => s.value == 0 || !!e.min && !(s.value > e.min) || e.disabled
|
|
482
482
|
);
|
|
483
|
-
return (
|
|
484
|
-
|
|
485
|
-
onClick:
|
|
483
|
+
return (r, f) => (l(), n("div", Ct, [
|
|
484
|
+
M($(G), {
|
|
485
|
+
onClick: u,
|
|
486
486
|
variant: "secondary",
|
|
487
487
|
disabled: _.value
|
|
488
488
|
}, {
|
|
489
|
-
default:
|
|
490
|
-
|
|
489
|
+
default: B(() => [
|
|
490
|
+
M($(S), { icon: "minus" })
|
|
491
491
|
]),
|
|
492
492
|
_: 1
|
|
493
493
|
}, 8, ["disabled"]),
|
|
494
494
|
t("p", null, [
|
|
495
|
-
t("strong",
|
|
495
|
+
t("strong", It, m(s.value), 1)
|
|
496
496
|
]),
|
|
497
|
-
|
|
498
|
-
onClick:
|
|
497
|
+
M($(G), {
|
|
498
|
+
onClick: a,
|
|
499
499
|
variant: "secondary",
|
|
500
|
-
disabled:
|
|
500
|
+
disabled: i.value
|
|
501
501
|
}, {
|
|
502
|
-
default:
|
|
503
|
-
|
|
502
|
+
default: B(() => [
|
|
503
|
+
M($(S), { icon: "plus" })
|
|
504
504
|
]),
|
|
505
505
|
_: 1
|
|
506
506
|
}, 8, ["disabled"]),
|
|
507
|
-
|
|
507
|
+
r.link ? (l(), n("p", wt, [
|
|
508
508
|
t("label", St, [
|
|
509
|
-
|
|
510
|
-
label:
|
|
511
|
-
href:
|
|
509
|
+
M($(X), {
|
|
510
|
+
label: r.label,
|
|
511
|
+
href: r.link
|
|
512
512
|
}, null, 8, ["label", "href"])
|
|
513
513
|
])
|
|
514
|
-
])) : (
|
|
515
|
-
t("label",
|
|
514
|
+
])) : (l(), n("p", Bt, [
|
|
515
|
+
t("label", Tt, m(r.label), 1)
|
|
516
516
|
]))
|
|
517
517
|
]));
|
|
518
518
|
}
|
|
519
|
-
}),
|
|
519
|
+
}), Lt = /* @__PURE__ */ L(At, [["__scopeId", "data-v-a20e4a10"]]), xt = {
|
|
520
520
|
class: "m-error-list",
|
|
521
521
|
role: "alert",
|
|
522
522
|
tabindex: "-1"
|
|
523
|
-
},
|
|
523
|
+
}, Vt = { class: "m-error-list__title" }, Rt = { class: "m-error-list__body" }, Et = { class: "m-list m-error-list__list" }, Ot = /* @__PURE__ */ v({
|
|
524
524
|
__name: "MucErrorList",
|
|
525
525
|
props: {
|
|
526
526
|
title: {},
|
|
527
527
|
errors: {}
|
|
528
528
|
},
|
|
529
|
-
setup(
|
|
530
|
-
const s =
|
|
529
|
+
setup(o) {
|
|
530
|
+
const s = o, e = d(
|
|
531
531
|
() => typeof s.errors == "string" ? [s.errors] : s.errors
|
|
532
532
|
);
|
|
533
|
-
return (
|
|
534
|
-
t("h2",
|
|
535
|
-
t("div",
|
|
536
|
-
t("ul",
|
|
537
|
-
(
|
|
538
|
-
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)
|
|
539
539
|
]))), 128))
|
|
540
540
|
])
|
|
541
541
|
])
|
|
@@ -565,7 +565,7 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
|
|
|
565
565
|
id: "text-input-hint"
|
|
566
566
|
}, Jt = /* @__PURE__ */ v({
|
|
567
567
|
__name: "MucInput",
|
|
568
|
-
props: /* @__PURE__ */
|
|
568
|
+
props: /* @__PURE__ */ T({
|
|
569
569
|
errorMsg: {},
|
|
570
570
|
placeholder: {},
|
|
571
571
|
required: { type: Boolean, default: !1 },
|
|
@@ -578,28 +578,28 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
|
|
|
578
578
|
modelValue: { default: "" },
|
|
579
579
|
modelModifiers: {}
|
|
580
580
|
}),
|
|
581
|
-
emits: /* @__PURE__ */
|
|
582
|
-
setup(
|
|
583
|
-
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(() => {
|
|
584
584
|
if (e.value === "") return [];
|
|
585
585
|
const p = e.value.toLowerCase();
|
|
586
|
-
return
|
|
587
|
-
(
|
|
586
|
+
return a.datalist.filter(
|
|
587
|
+
(V) => V.toLowerCase().startsWith(p) && V.toLowerCase() !== p
|
|
588
588
|
);
|
|
589
|
-
}),
|
|
590
|
-
return (p,
|
|
591
|
-
class:
|
|
589
|
+
}), x = (p) => e.value = p, I = () => i("suffixClick");
|
|
590
|
+
return (p, V) => (l(), n("div", {
|
|
591
|
+
class: C(["m-form-group", _.value])
|
|
592
592
|
}, [
|
|
593
593
|
t("label", Pt, [
|
|
594
|
-
|
|
595
|
-
p.required ? (
|
|
596
|
-
|
|
594
|
+
y(m(p.label) + " ", 1),
|
|
595
|
+
p.required ? (l(), n("span", jt, [
|
|
596
|
+
y(" * "),
|
|
597
597
|
Gt
|
|
598
598
|
])) : b("", !0)
|
|
599
599
|
]),
|
|
600
|
-
t("p", Ut,
|
|
600
|
+
t("p", Ut, m(p.errorMsg), 1),
|
|
601
601
|
t("div", qt, [
|
|
602
|
-
|
|
602
|
+
u.prefix ? (l(), n("div", Ht, [
|
|
603
603
|
t("span", null, [
|
|
604
604
|
h(p.$slots, "prefix")
|
|
605
605
|
])
|
|
@@ -607,26 +607,26 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
|
|
|
607
607
|
q(t("input", {
|
|
608
608
|
class: "m-input autocomplete-input",
|
|
609
609
|
type: p.type,
|
|
610
|
-
"onUpdate:modelValue":
|
|
610
|
+
"onUpdate:modelValue": V[0] || (V[0] = (w) => e.value = w),
|
|
611
611
|
"aria-describedby": p.type + "-input",
|
|
612
612
|
placeholder: p.placeholder,
|
|
613
613
|
required: p.required
|
|
614
614
|
}, null, 8, Nt), [
|
|
615
615
|
[ue, e.value]
|
|
616
616
|
]),
|
|
617
|
-
|
|
618
|
-
(
|
|
617
|
+
r.value && f.value.length !== 0 ? (l(), n("ul", Ft, [
|
|
618
|
+
(l(!0), n(P, null, j(f.value, (w) => (l(), n("li", {
|
|
619
619
|
class: "autocomplete-result",
|
|
620
|
-
key:
|
|
621
|
-
onClick: (
|
|
622
|
-
},
|
|
620
|
+
key: w,
|
|
621
|
+
onClick: (A) => x(w)
|
|
622
|
+
}, m(w), 9, Dt))), 128))
|
|
623
623
|
])) : b("", !0),
|
|
624
|
-
p.suffixIcon ? (
|
|
624
|
+
p.suffixIcon ? (l(), n("button", {
|
|
625
625
|
key: 2,
|
|
626
626
|
class: "m-input__suffix",
|
|
627
|
-
onClick:
|
|
627
|
+
onClick: I
|
|
628
628
|
}, [
|
|
629
|
-
(
|
|
629
|
+
(l(), n("svg", Wt, [
|
|
630
630
|
t("use", {
|
|
631
631
|
"xlink:href": "#icon-" + p.suffixIcon
|
|
632
632
|
}, null, 8, zt)
|
|
@@ -634,7 +634,7 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
|
|
|
634
634
|
Kt
|
|
635
635
|
])) : b("", !0)
|
|
636
636
|
]),
|
|
637
|
-
t("p", Xt,
|
|
637
|
+
t("p", Xt, m(p.hint), 1)
|
|
638
638
|
], 2));
|
|
639
639
|
}
|
|
640
640
|
}), J = Symbol("mucRadioGroup"), Qt = {
|
|
@@ -648,59 +648,59 @@ const ut = /* @__PURE__ */ x(ct, [["render", rt], ["__scopeId", "data-v-a2b37f5b
|
|
|
648
648
|
hint: {},
|
|
649
649
|
disabled: { type: Boolean, default: !1 }
|
|
650
650
|
},
|
|
651
|
-
setup(
|
|
652
|
-
const s =
|
|
653
|
-
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, [
|
|
654
654
|
t("input", {
|
|
655
655
|
class: "m-radios__input",
|
|
656
656
|
type: "radio",
|
|
657
|
-
checked:
|
|
658
|
-
disabled:
|
|
659
|
-
onClick: W(
|
|
657
|
+
checked: u.value,
|
|
658
|
+
disabled: i.value,
|
|
659
|
+
onClick: W(a, ["stop"])
|
|
660
660
|
}, null, 8, Yt),
|
|
661
661
|
t("label", {
|
|
662
662
|
class: "m-label m-radios__label",
|
|
663
|
-
onClick:
|
|
663
|
+
onClick: a
|
|
664
664
|
}, [
|
|
665
|
-
|
|
666
|
-
t("span", Zt,
|
|
665
|
+
y(m(r.label) + " ", 1),
|
|
666
|
+
t("span", Zt, m(r.hint), 1)
|
|
667
667
|
])
|
|
668
668
|
])) : b("", !0);
|
|
669
669
|
}
|
|
670
|
-
}), ts = { class: "m-form-group" }, ss = { class: "m-radio-group" },
|
|
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({
|
|
671
671
|
__name: "MucRadioButtonGroup",
|
|
672
|
-
props: /* @__PURE__ */
|
|
672
|
+
props: /* @__PURE__ */ T({
|
|
673
673
|
heading: {},
|
|
674
674
|
disabled: { type: Boolean, default: !1 }
|
|
675
675
|
}, {
|
|
676
676
|
modelValue: { type: [Boolean, String, Array, Object, Number, null] },
|
|
677
677
|
modelModifiers: {}
|
|
678
678
|
}),
|
|
679
|
-
emits: /* @__PURE__ */
|
|
680
|
-
setup(
|
|
681
|
-
const e =
|
|
682
|
-
return
|
|
683
|
-
set: (
|
|
684
|
-
|
|
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;
|
|
685
685
|
},
|
|
686
686
|
modelValue: e,
|
|
687
|
-
disabled:
|
|
688
|
-
}), (
|
|
687
|
+
disabled: _e(pe(a.disabled))
|
|
688
|
+
}), (i, _) => (l(), n("div", ts, [
|
|
689
689
|
t("fieldset", ss, [
|
|
690
|
-
t("legend",
|
|
691
|
-
t("h3",
|
|
690
|
+
t("legend", as, [
|
|
691
|
+
t("h3", os, m(i.heading), 1)
|
|
692
692
|
]),
|
|
693
|
-
t("div",
|
|
694
|
-
h(
|
|
693
|
+
t("div", ls, [
|
|
694
|
+
h(i.$slots, "default")
|
|
695
695
|
])
|
|
696
696
|
])
|
|
697
697
|
]));
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
|
-
function
|
|
701
|
-
if (!
|
|
702
|
-
const e = (
|
|
703
|
-
|
|
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();
|
|
704
704
|
};
|
|
705
705
|
return he(() => {
|
|
706
706
|
window.addEventListener("click", e);
|
|
@@ -708,28 +708,41 @@ function cs(a, s) {
|
|
|
708
708
|
window.removeEventListener("click", e);
|
|
709
709
|
}), { listener: e };
|
|
710
710
|
}
|
|
711
|
-
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", {
|
|
712
724
|
"aria-hidden": "true",
|
|
713
725
|
class: "icon"
|
|
714
726
|
}, [
|
|
715
727
|
/* @__PURE__ */ t("use", { "xlink:href": "#icon-chevron-down" })
|
|
716
|
-
], -1)),
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
], _s = ["onMouseenter", "onClick"],
|
|
728
|
+
], -1)), ds = /* @__PURE__ */ Q(() => /* @__PURE__ */ t("span", { class: "visually-hidden" }, "Auswahlliste öffnen", -1)), ms = [
|
|
729
|
+
us,
|
|
730
|
+
ds
|
|
731
|
+
], _s = ["onMouseenter", "onClick"], ps = {
|
|
720
732
|
key: 0,
|
|
721
733
|
class: "option"
|
|
722
|
-
},
|
|
734
|
+
}, hs = {
|
|
723
735
|
key: 0,
|
|
724
736
|
class: "m-hint"
|
|
725
|
-
},
|
|
737
|
+
}, vs = /* @__PURE__ */ v({
|
|
726
738
|
__name: "MucSelect",
|
|
727
|
-
props: /* @__PURE__ */
|
|
739
|
+
props: /* @__PURE__ */ T({
|
|
728
740
|
items: {},
|
|
729
741
|
label: {},
|
|
730
742
|
hint: {},
|
|
731
743
|
multiple: { type: Boolean, default: !1 },
|
|
732
|
-
noItemFoundMessage: { default: "No items found." }
|
|
744
|
+
noItemFoundMessage: { default: "No items found." },
|
|
745
|
+
itemTitle: { default: "title" }
|
|
733
746
|
}, {
|
|
734
747
|
modelValue: {
|
|
735
748
|
default: []
|
|
@@ -737,83 +750,106 @@ const Q = (a) => (N("data-v-0f229e1b"), a = a(), F(), a), is = { class: "m-label
|
|
|
737
750
|
modelModifiers: {}
|
|
738
751
|
}),
|
|
739
752
|
emits: ["update:modelValue"],
|
|
740
|
-
setup(
|
|
741
|
-
const s =
|
|
742
|
-
o
|
|
743
|
-
|
|
744
|
-
|
|
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 = "";
|
|
745
761
|
};
|
|
746
|
-
|
|
747
|
-
|
|
762
|
+
is(s, () => {
|
|
763
|
+
a.value = !1, A.value = w.value;
|
|
748
764
|
});
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
-
}, p = (
|
|
752
|
-
|
|
753
|
-
},
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
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;
|
|
758
776
|
});
|
|
759
|
-
const
|
|
760
|
-
() =>
|
|
761
|
-
), Z = (
|
|
762
|
-
|
|
763
|
-
const
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
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"
|
|
769
800
|
);
|
|
770
|
-
return (
|
|
801
|
+
return (c, g) => (l(), n("div", {
|
|
771
802
|
class: "m-form-group",
|
|
772
803
|
ref_key: "selectComponentRef",
|
|
773
804
|
ref: s
|
|
774
805
|
}, [
|
|
775
|
-
t("label",
|
|
806
|
+
t("label", cs, m(c.label), 1),
|
|
776
807
|
t("div", {
|
|
777
|
-
class:
|
|
808
|
+
class: C(["m-input-wrapper", oe.value])
|
|
778
809
|
}, [
|
|
779
810
|
q(t("input", {
|
|
780
811
|
type: "text",
|
|
781
812
|
class: "m-input m-combobox m-combobox--single",
|
|
782
|
-
"onUpdate:modelValue":
|
|
783
|
-
onClick:
|
|
813
|
+
"onUpdate:modelValue": g[0] || (g[0] = (k) => A.value = k),
|
|
814
|
+
onClick: x
|
|
784
815
|
}, null, 512), [
|
|
785
|
-
[z,
|
|
816
|
+
[z, A.value]
|
|
786
817
|
]),
|
|
787
818
|
t("span", {
|
|
788
819
|
class: "m-input__trigger",
|
|
789
820
|
onClick: f
|
|
790
|
-
},
|
|
821
|
+
}, ms),
|
|
791
822
|
t("ul", {
|
|
792
|
-
class:
|
|
823
|
+
class: C(["listbox", ae.value]),
|
|
793
824
|
onMouseleave: se
|
|
794
825
|
}, [
|
|
795
|
-
(
|
|
796
|
-
key:
|
|
797
|
-
class:
|
|
798
|
-
onMouseenter: (
|
|
799
|
-
onClick: (
|
|
800
|
-
},
|
|
801
|
-
|
|
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)
|
|
802
838
|
], 34)
|
|
803
839
|
], 2),
|
|
804
|
-
|
|
840
|
+
c.hint ? (l(), n("p", hs, m(c.hint), 1)) : b("", !0)
|
|
805
841
|
], 512));
|
|
806
842
|
}
|
|
807
|
-
}),
|
|
843
|
+
}), fs = /* @__PURE__ */ L(vs, [["__scopeId", "data-v-e39e3aae"]]), bs = { class: "m-form-group has-error" }, gs = {
|
|
808
844
|
for: "textarea",
|
|
809
845
|
class: "m-label"
|
|
810
|
-
},
|
|
846
|
+
}, ys = {
|
|
811
847
|
key: 0,
|
|
812
848
|
"aria-hidden": "true",
|
|
813
849
|
class: "mandatory"
|
|
814
|
-
},
|
|
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({
|
|
815
851
|
__name: "MucTextArea",
|
|
816
|
-
props: /* @__PURE__ */
|
|
852
|
+
props: /* @__PURE__ */ T({
|
|
817
853
|
errorMsg: {},
|
|
818
854
|
rows: { default: 3 },
|
|
819
855
|
placeholder: {},
|
|
@@ -825,58 +861,58 @@ const Q = (a) => (N("data-v-0f229e1b"), a = a(), F(), a), is = { class: "m-label
|
|
|
825
861
|
modelModifiers: {}
|
|
826
862
|
}),
|
|
827
863
|
emits: ["update:modelValue"],
|
|
828
|
-
setup(
|
|
829
|
-
const s =
|
|
830
|
-
return (e,
|
|
831
|
-
t("label",
|
|
832
|
-
|
|
833
|
-
e.required ? (
|
|
834
|
-
|
|
835
|
-
|
|
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
|
|
836
872
|
])) : b("", !0)
|
|
837
873
|
]),
|
|
838
|
-
t("p",
|
|
839
|
-
t("div",
|
|
874
|
+
t("p", ks, m(e.errorMsg), 1),
|
|
875
|
+
t("div", Ms, [
|
|
840
876
|
q(t("textarea", {
|
|
841
877
|
class: "m-textarea",
|
|
842
878
|
rows: e.rows,
|
|
843
879
|
"aria-describedby": "textarea input",
|
|
844
880
|
placeholder: e.placeholder,
|
|
845
|
-
"onUpdate:modelValue":
|
|
846
|
-
}, null, 8,
|
|
881
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => s.value = u)
|
|
882
|
+
}, null, 8, Cs), [
|
|
847
883
|
[z, s.value]
|
|
848
884
|
])
|
|
849
885
|
]),
|
|
850
|
-
t("p",
|
|
886
|
+
t("p", Is, m(e.hint), 1)
|
|
851
887
|
]));
|
|
852
888
|
}
|
|
853
|
-
}),
|
|
889
|
+
}), Ss = {
|
|
854
890
|
class: "m-intro m-intro-static-image",
|
|
855
891
|
style: { "background-color": "var(--color-neutrals-blue-xlight)" }
|
|
856
|
-
},
|
|
892
|
+
}, Bs = { class: "container" }, Ts = { class: "muc-intro-content" }, As = {
|
|
857
893
|
key: 0,
|
|
858
894
|
class: "m-intro-vertical__tagline"
|
|
859
|
-
},
|
|
895
|
+
}, Ls = { class: "m-intro-vertical__title" }, xs = {
|
|
860
896
|
key: 0,
|
|
861
897
|
class: "muc-divider"
|
|
862
|
-
},
|
|
898
|
+
}, Vs = { class: "m-intro-vertical__content" }, Rs = { style: { "padding-bottom": "32px" } }, Es = /* @__PURE__ */ v({
|
|
863
899
|
__name: "MucIntro",
|
|
864
900
|
props: {
|
|
865
901
|
title: {},
|
|
866
902
|
tagline: {},
|
|
867
903
|
divider: { type: Boolean }
|
|
868
904
|
},
|
|
869
|
-
setup(
|
|
870
|
-
return (s, e) => (
|
|
871
|
-
t("div",
|
|
872
|
-
t("div",
|
|
905
|
+
setup(o) {
|
|
906
|
+
return (s, e) => (l(), n("div", Ss, [
|
|
907
|
+
t("div", Bs, [
|
|
908
|
+
t("div", Ts, [
|
|
873
909
|
t("div", null, [
|
|
874
|
-
s.tagline ? (
|
|
875
|
-
t("h1",
|
|
910
|
+
s.tagline ? (l(), n("p", As, m(s.tagline), 1)) : b("", !0),
|
|
911
|
+
t("h1", Ls, m(s.title), 1)
|
|
876
912
|
]),
|
|
877
|
-
s.divider ? (
|
|
878
|
-
t("div",
|
|
879
|
-
t("p",
|
|
913
|
+
s.divider ? (l(), n("div", xs)) : b("", !0),
|
|
914
|
+
t("div", Vs, [
|
|
915
|
+
t("p", Rs, [
|
|
880
916
|
h(s.$slots, "default", {}, void 0, !0)
|
|
881
917
|
])
|
|
882
918
|
])
|
|
@@ -884,54 +920,54 @@ const Q = (a) => (N("data-v-0f229e1b"), a = a(), F(), a), is = { class: "m-label
|
|
|
884
920
|
])
|
|
885
921
|
]));
|
|
886
922
|
}
|
|
887
|
-
}), Os = /* @__PURE__ */
|
|
923
|
+
}), Os = /* @__PURE__ */ L(Es, [["__scopeId", "data-v-5c768acc"]]), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
888
924
|
__proto__: null,
|
|
889
925
|
MucBanner: ke,
|
|
890
926
|
MucButton: G,
|
|
891
|
-
MucCallout:
|
|
927
|
+
MucCallout: xe,
|
|
892
928
|
MucCard: Ge,
|
|
893
929
|
MucCardContainer: He,
|
|
894
|
-
MucCheckbox:
|
|
930
|
+
MucCheckbox: _t,
|
|
895
931
|
MucCheckboxGroup: kt,
|
|
896
932
|
MucComment: K,
|
|
897
|
-
MucCommentText:
|
|
898
|
-
MucCounter:
|
|
933
|
+
MucCommentText: nt,
|
|
934
|
+
MucCounter: Lt,
|
|
899
935
|
MucDivider: ut,
|
|
900
|
-
MucErrorList:
|
|
901
|
-
MucIcon:
|
|
936
|
+
MucErrorList: Ot,
|
|
937
|
+
MucIcon: S,
|
|
902
938
|
MucInput: Jt,
|
|
903
939
|
MucIntro: Os,
|
|
904
940
|
MucLink: X,
|
|
905
941
|
MucRadioButton: es,
|
|
906
|
-
MucRadioButtonGroup:
|
|
907
|
-
MucSelect:
|
|
942
|
+
MucRadioButtonGroup: ns,
|
|
943
|
+
MucSelect: fs,
|
|
908
944
|
MucTextArea: ws
|
|
909
945
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
910
|
-
function
|
|
946
|
+
function Ps(o) {
|
|
911
947
|
for (const s in H)
|
|
912
|
-
|
|
948
|
+
o.component(s, H[s]);
|
|
913
949
|
}
|
|
914
|
-
const
|
|
950
|
+
const Gs = { install: Ps };
|
|
915
951
|
export {
|
|
916
952
|
ke as MucBanner,
|
|
917
953
|
G as MucButton,
|
|
918
|
-
|
|
954
|
+
xe as MucCallout,
|
|
919
955
|
Ge as MucCard,
|
|
920
956
|
He as MucCardContainer,
|
|
921
|
-
|
|
957
|
+
_t as MucCheckbox,
|
|
922
958
|
kt as MucCheckboxGroup,
|
|
923
959
|
K as MucComment,
|
|
924
|
-
|
|
925
|
-
|
|
960
|
+
nt as MucCommentText,
|
|
961
|
+
Lt as MucCounter,
|
|
926
962
|
ut as MucDivider,
|
|
927
|
-
|
|
928
|
-
|
|
963
|
+
Ot as MucErrorList,
|
|
964
|
+
S as MucIcon,
|
|
929
965
|
Jt as MucInput,
|
|
930
966
|
Os as MucIntro,
|
|
931
967
|
X as MucLink,
|
|
932
968
|
es as MucRadioButton,
|
|
933
|
-
|
|
934
|
-
|
|
969
|
+
ns as MucRadioButtonGroup,
|
|
970
|
+
fs as MucSelect,
|
|
935
971
|
ws as MucTextArea,
|
|
936
|
-
|
|
972
|
+
Gs as default
|
|
937
973
|
};
|