@muenchen/muc-patternlab-vue 1.15.0-beta.2 → 1.15.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Stepper/MucStepper.stories.d.ts +33 -0
- package/components/Stepper/MucStepper.vue.d.ts +25 -0
- package/components/Stepper/MucStepperItem.vue.d.ts +33 -0
- package/components/Stepper/MucStepperTypes.d.ts +5 -0
- package/components/Stepper/index.d.ts +2 -0
- package/components/index.d.ts +3 -1
- package/muc-patternlab-vue.es.js +986 -602
- package/package.json +1 -1
- package/style.css +1 -1
package/muc-patternlab-vue.es.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as g, useAttrs as _e, computed as m, openBlock as s, createElementBlock as o, normalizeClass as I, normalizeStyle as ge, createElementVNode as n, createVNode as b, unref as $, renderSlot as w, createBlock as j, createCommentVNode as M, inject as te, toDisplayString as v, Fragment as z, renderList as O, mergeModels as V, ref as L, useModel as H, provide as ae, readonly as Z, toRef as X, withCtx as T, Transition as K, useSlots as ne, createTextVNode as D, createSlots as ye, createStaticVNode as le, onMounted as se, onUpdated as ke, withModifiers as N, watch as G, withDirectives as Q, vModelDynamic as be, onBeforeUnmount as Me, useTemplateRef as $e, vModelText as ie } from "vue";
|
|
2
|
+
const we = ["href"], B = /* @__PURE__ */ g({
|
|
3
3
|
__name: "MucIcon",
|
|
4
4
|
props: {
|
|
5
5
|
icon: {},
|
|
6
6
|
color: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
return (
|
|
8
|
+
setup(t) {
|
|
9
|
+
const a = _e(), e = m(() => a.class ?? "icon");
|
|
10
|
+
return (i, l) => (s(), o("svg", {
|
|
11
11
|
"aria-hidden": "true",
|
|
12
|
-
class:
|
|
13
|
-
style:
|
|
12
|
+
class: I(e.value),
|
|
13
|
+
style: ge({ color: i.color })
|
|
14
14
|
}, [
|
|
15
|
-
|
|
16
|
-
href: "#icon-" +
|
|
17
|
-
}, null, 8,
|
|
15
|
+
n("use", {
|
|
16
|
+
href: "#icon-" + i.icon
|
|
17
|
+
}, null, 8, we)
|
|
18
18
|
], 6));
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), Ae = ["role", "aria-label"], Ce = { class: "container-fluid" }, De = /* @__PURE__ */ g({
|
|
21
21
|
__name: "MucBanner",
|
|
22
22
|
props: {
|
|
23
23
|
type: { default: "info" }
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
switch (
|
|
25
|
+
setup(t) {
|
|
26
|
+
const a = m(() => {
|
|
27
|
+
switch (t.type) {
|
|
28
28
|
case "info":
|
|
29
29
|
return "m-banner--info";
|
|
30
30
|
case "success":
|
|
@@ -36,8 +36,8 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
36
36
|
default:
|
|
37
37
|
return "m-banner--info";
|
|
38
38
|
}
|
|
39
|
-
}),
|
|
40
|
-
switch (
|
|
39
|
+
}), e = m(() => {
|
|
40
|
+
switch (t.type) {
|
|
41
41
|
case "info":
|
|
42
42
|
return "dialog";
|
|
43
43
|
case "success":
|
|
@@ -49,8 +49,8 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
49
49
|
default:
|
|
50
50
|
return "dialog";
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
53
|
-
switch (
|
|
52
|
+
}), i = m(() => {
|
|
53
|
+
switch (t.type) {
|
|
54
54
|
case "info":
|
|
55
55
|
return "Information";
|
|
56
56
|
case "success":
|
|
@@ -62,8 +62,8 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
62
62
|
default:
|
|
63
63
|
return "Information";
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
66
|
-
switch (
|
|
65
|
+
}), l = m(() => {
|
|
66
|
+
switch (t.type) {
|
|
67
67
|
case "success":
|
|
68
68
|
return "check";
|
|
69
69
|
case "warning":
|
|
@@ -74,27 +74,27 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
74
74
|
return "information";
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
return (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
class:
|
|
81
|
-
role:
|
|
82
|
-
"aria-label":
|
|
77
|
+
return (u, r) => (s(), o("div", null, [
|
|
78
|
+
n("div", null, [
|
|
79
|
+
n("div", {
|
|
80
|
+
class: I(["m-banner", a.value]),
|
|
81
|
+
role: e.value,
|
|
82
|
+
"aria-label": i.value
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
n("div", Ce, [
|
|
85
|
+
b($(B), { icon: l.value }, null, 8, ["icon"]),
|
|
86
|
+
w(u.$slots, "default", {}, void 0, !0)
|
|
87
87
|
])
|
|
88
|
-
], 10,
|
|
88
|
+
], 10, Ae)
|
|
89
89
|
])
|
|
90
90
|
]));
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
93
|
-
const
|
|
94
|
-
for (const [
|
|
95
|
-
|
|
96
|
-
return
|
|
97
|
-
},
|
|
92
|
+
}), F = (t, a) => {
|
|
93
|
+
const e = t.__vccOpts || t;
|
|
94
|
+
for (const [i, l] of a)
|
|
95
|
+
e[i] = l;
|
|
96
|
+
return e;
|
|
97
|
+
}, Se = /* @__PURE__ */ F(De, [["__scopeId", "data-v-01cbc1dd"]]), Ie = ["disabled"], Y = /* @__PURE__ */ g({
|
|
98
98
|
__name: "MucButton",
|
|
99
99
|
props: {
|
|
100
100
|
variant: { default: "primary" },
|
|
@@ -103,9 +103,9 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
103
103
|
iconAnimated: { type: Boolean, default: !1 }
|
|
104
104
|
},
|
|
105
105
|
emits: ["click"],
|
|
106
|
-
setup(
|
|
107
|
-
const
|
|
108
|
-
switch (
|
|
106
|
+
setup(t, { emit: a }) {
|
|
107
|
+
const e = a, i = m(() => {
|
|
108
|
+
switch (t.variant) {
|
|
109
109
|
case "secondary":
|
|
110
110
|
return "m-button--secondary";
|
|
111
111
|
case "ghost":
|
|
@@ -113,34 +113,346 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
113
113
|
default:
|
|
114
114
|
return "m-button--primary";
|
|
115
115
|
}
|
|
116
|
-
}),
|
|
117
|
-
() =>
|
|
118
|
-
),
|
|
119
|
-
|
|
116
|
+
}), l = m(
|
|
117
|
+
() => t.iconAnimated ? "m-button--animated-right" : ""
|
|
118
|
+
), u = () => {
|
|
119
|
+
e("click");
|
|
120
120
|
};
|
|
121
|
-
return (
|
|
122
|
-
onClick:
|
|
123
|
-
disabled:
|
|
124
|
-
class:
|
|
121
|
+
return (r, d) => (s(), o("button", {
|
|
122
|
+
onClick: u,
|
|
123
|
+
disabled: r.disabled,
|
|
124
|
+
class: I(["m-button", [i.value, l.value]])
|
|
125
125
|
}, [
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
n("span", null, [
|
|
127
|
+
w(r.$slots, "default"),
|
|
128
|
+
r.icon ? (s(), j($(B), {
|
|
129
129
|
key: 0,
|
|
130
|
-
icon:
|
|
130
|
+
icon: r.icon,
|
|
131
131
|
class: "m-button__icon"
|
|
132
|
-
}, null, 8, ["icon"])) :
|
|
132
|
+
}, null, 8, ["icon"])) : M("", !0)
|
|
133
|
+
])
|
|
134
|
+
], 10, Ie));
|
|
135
|
+
}
|
|
136
|
+
}), oe = "de-DE", re = 12, ce = Symbol("mucCalendar"), P = (t, a) => t.getDate() === a.getDate() && t.getMonth() === a.getMonth() && t.getFullYear() === a.getFullYear(), J = (t, a) => t > a, U = (t) => t !== null && t.from !== void 0 && t.to !== void 0, Fe = /* @__PURE__ */ g({
|
|
137
|
+
__name: "MucDayTile",
|
|
138
|
+
props: {
|
|
139
|
+
date: {},
|
|
140
|
+
showAdjacentMonths: { type: Boolean, default: !1 }
|
|
141
|
+
},
|
|
142
|
+
emits: ["click"],
|
|
143
|
+
setup(t, { emit: a }) {
|
|
144
|
+
const e = te(ce), i = a, l = m(() => {
|
|
145
|
+
if ((e == null ? void 0 : e.selectedDate.value) === null)
|
|
146
|
+
return !1;
|
|
147
|
+
if ((e == null ? void 0 : e.selectedDate.value) instanceof Date)
|
|
148
|
+
return P(e == null ? void 0 : e.selectedDate.value, t.date);
|
|
149
|
+
if (Array.isArray(e == null ? void 0 : e.selectedDate.value))
|
|
150
|
+
return e == null ? void 0 : e.selectedDate.value.some(
|
|
151
|
+
(h) => P(h, t.date)
|
|
152
|
+
);
|
|
153
|
+
if (U(e.selectedDate.value)) {
|
|
154
|
+
const { from: h, to: _ } = e.selectedDate.value;
|
|
155
|
+
return h && P(h, t.date) || _ && P(_, t.date);
|
|
156
|
+
}
|
|
157
|
+
}), u = m(() => (e == null ? void 0 : e.variant.value) === "range" && U(e.selectedDate.value) ? (e == null ? void 0 : e.selectedDate.value.from) !== null && (e == null ? void 0 : e.selectedDate.value.to) !== null && J(t.date, e.selectedDate.value.from) && J(e.selectedDate.value.to, t.date) : !1), r = m(
|
|
158
|
+
() => t.date.getMonth() === (e == null ? void 0 : e.viewDate.value.getMonth())
|
|
159
|
+
), d = () => {
|
|
160
|
+
e != null && e.allowedDates(t.date) && i("click", t.date);
|
|
161
|
+
};
|
|
162
|
+
return (h, _) => {
|
|
163
|
+
var f;
|
|
164
|
+
return r.value || h.showAdjacentMonths ? (s(), o("div", {
|
|
165
|
+
key: 0,
|
|
166
|
+
onClick: d,
|
|
167
|
+
class: I({
|
|
168
|
+
"disabled-tile": !((f = $(e)) != null && f.allowedDates(h.date)),
|
|
169
|
+
"off-month": !r.value,
|
|
170
|
+
selected: l.value,
|
|
171
|
+
"selected-range": u.value
|
|
172
|
+
})
|
|
173
|
+
}, v(h.date.getDate()), 3)) : M("", !0);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
}), Te = /* @__PURE__ */ F(Fe, [["__scopeId", "data-v-a7631835"]]), Le = { class: "muc-calendar-view-full-size" }, Be = { class: "muc-calendar-container table-header" }, xe = { class: "muc-calendar-container" }, Ee = 7, ze = /* @__PURE__ */ g({
|
|
177
|
+
__name: "MucCalendarDay",
|
|
178
|
+
props: {
|
|
179
|
+
viewDate: {},
|
|
180
|
+
variant: {},
|
|
181
|
+
disabled: { type: Boolean },
|
|
182
|
+
showAdjacentMonths: { type: Boolean }
|
|
183
|
+
},
|
|
184
|
+
emits: ["clicked"],
|
|
185
|
+
setup(t, { emit: a }) {
|
|
186
|
+
const e = 6 * Ee, i = ["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"], l = t, u = a, r = m(
|
|
187
|
+
() => new Date(l.viewDate.getFullYear(), l.viewDate.getMonth(), 1)
|
|
188
|
+
), d = m(
|
|
189
|
+
() => l.showAdjacentMonths ? 0 : (r.value.getDay() || 7) - 1
|
|
190
|
+
), h = m(
|
|
191
|
+
() => f(r.value, -r.value.getDay() || -7)
|
|
192
|
+
), _ = (k) => {
|
|
193
|
+
u("clicked", k);
|
|
194
|
+
}, f = (k, A) => new Date(new Date(k).setDate(k.getDate() + A));
|
|
195
|
+
return (k, A) => (s(), o("div", Le, [
|
|
196
|
+
n("div", Be, [
|
|
197
|
+
(s(), o(z, null, O(i, (C, R) => n("div", {
|
|
198
|
+
class: "header-item",
|
|
199
|
+
key: R
|
|
200
|
+
}, [
|
|
201
|
+
n("strong", null, v(C), 1)
|
|
202
|
+
])), 64))
|
|
203
|
+
]),
|
|
204
|
+
n("div", xe, [
|
|
205
|
+
(s(!0), o(z, null, O(d.value, (C) => (s(), o("div", { key: C }))), 128)),
|
|
206
|
+
(s(), o(z, null, O(e, (C) => b(Te, {
|
|
207
|
+
class: "muc-calendar-item",
|
|
208
|
+
date: f(h.value, C),
|
|
209
|
+
"show-adjacent-months": k.showAdjacentMonths,
|
|
210
|
+
onClick: _,
|
|
211
|
+
key: C
|
|
212
|
+
}, null, 8, ["date", "show-adjacent-months"])), 64))
|
|
133
213
|
])
|
|
134
|
-
]
|
|
214
|
+
]));
|
|
135
215
|
}
|
|
136
|
-
}),
|
|
216
|
+
}), Oe = /* @__PURE__ */ F(ze, [["__scopeId", "data-v-e7805970"]]), Ve = { class: "muc-calendar-container muc-calendar-view-full-size" }, je = ["onClick"], Ye = "short", Re = /* @__PURE__ */ g({
|
|
217
|
+
__name: "MucCalendarMonth",
|
|
218
|
+
props: {
|
|
219
|
+
viewDate: {}
|
|
220
|
+
},
|
|
221
|
+
emits: ["clicked"],
|
|
222
|
+
setup(t, { emit: a }) {
|
|
223
|
+
const e = t, i = a, l = m(
|
|
224
|
+
() => Array.from(
|
|
225
|
+
{ length: re },
|
|
226
|
+
(d, h) => new Date(e.viewDate.getFullYear(), h)
|
|
227
|
+
)
|
|
228
|
+
), u = (d) => d.toLocaleDateString(oe, { month: Ye }), r = (d) => i("clicked", d);
|
|
229
|
+
return (d, h) => (s(), o("div", Ve, [
|
|
230
|
+
(s(!0), o(z, null, O(l.value, (_, f) => (s(), o("div", {
|
|
231
|
+
key: f,
|
|
232
|
+
class: I([{
|
|
233
|
+
"muc-calendar-current-item": (/* @__PURE__ */ new Date()).getMonth() === _.getMonth() && (/* @__PURE__ */ new Date()).getFullYear() === _.getFullYear()
|
|
234
|
+
}, "muc-calendar-item"]),
|
|
235
|
+
onClick: (k) => r(_)
|
|
236
|
+
}, [
|
|
237
|
+
n("p", null, v(u(_)), 1)
|
|
238
|
+
], 10, je))), 128))
|
|
239
|
+
]));
|
|
240
|
+
}
|
|
241
|
+
}), He = /* @__PURE__ */ F(Re, [["__scopeId", "data-v-61bf5bda"]]), Pe = { class: "muc-calendar-container muc-calendar-view-full-size" }, Ne = ["onClick"], Ue = "numeric", We = /* @__PURE__ */ g({
|
|
242
|
+
__name: "MucCalendarYear",
|
|
243
|
+
props: {
|
|
244
|
+
viewDate: {}
|
|
245
|
+
},
|
|
246
|
+
emits: ["clicked"],
|
|
247
|
+
setup(t, { emit: a }) {
|
|
248
|
+
const e = t, i = a, l = m(
|
|
249
|
+
() => Array.from(
|
|
250
|
+
{ length: re },
|
|
251
|
+
(d, h) => new Date(
|
|
252
|
+
e.viewDate.getFullYear() - e.viewDate.getFullYear() % 10 + h,
|
|
253
|
+
e.viewDate.getMonth()
|
|
254
|
+
)
|
|
255
|
+
)
|
|
256
|
+
), u = (d) => d.toLocaleDateString(oe, { year: Ue }), r = (d) => i("clicked", d);
|
|
257
|
+
return (d, h) => (s(), o("div", Pe, [
|
|
258
|
+
(s(!0), o(z, null, O(l.value, (_, f) => (s(), o("div", {
|
|
259
|
+
key: f,
|
|
260
|
+
class: I(["muc-calendar-item", {
|
|
261
|
+
"muc-calendar-current-item": (/* @__PURE__ */ new Date()).getFullYear() === _.getFullYear()
|
|
262
|
+
}]),
|
|
263
|
+
onClick: (k) => r(_)
|
|
264
|
+
}, v(u(_)), 11, Ne))), 128))
|
|
265
|
+
]));
|
|
266
|
+
}
|
|
267
|
+
}), Ge = /* @__PURE__ */ F(We, [["__scopeId", "data-v-67492bc8"]]), qe = { class: "container-wrapper" }, Ke = { class: "caption" }, Ze = { class: "container-view-size" }, Xe = /* @__PURE__ */ g({
|
|
268
|
+
__name: "MucCalendar",
|
|
269
|
+
props: /* @__PURE__ */ V({
|
|
270
|
+
viewMonth: {},
|
|
271
|
+
showAdjacentMonths: { type: Boolean, default: !1 },
|
|
272
|
+
variant: { default: "single" },
|
|
273
|
+
disabled: { type: Boolean, default: !1 },
|
|
274
|
+
noAnimation: { type: Boolean, default: !1 },
|
|
275
|
+
allowedDates: { type: Function, default: () => !0 }
|
|
276
|
+
}, {
|
|
277
|
+
modelValue: {
|
|
278
|
+
default: null
|
|
279
|
+
},
|
|
280
|
+
modelModifiers: {}
|
|
281
|
+
}),
|
|
282
|
+
emits: ["update:modelValue"],
|
|
283
|
+
setup(t) {
|
|
284
|
+
const a = L(
|
|
285
|
+
t.viewMonth || new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1)
|
|
286
|
+
), e = L("day"), i = L(), l = H(t, "modelValue"), u = m(() => {
|
|
287
|
+
switch (e.value) {
|
|
288
|
+
case "day":
|
|
289
|
+
return a.value.toLocaleDateString("de-De", {
|
|
290
|
+
month: "long",
|
|
291
|
+
year: "numeric"
|
|
292
|
+
});
|
|
293
|
+
case "month":
|
|
294
|
+
return a.value.toLocaleDateString("de-De", {
|
|
295
|
+
year: "numeric"
|
|
296
|
+
});
|
|
297
|
+
case "year": {
|
|
298
|
+
const c = a.value.getFullYear() - a.value.getFullYear() % 10;
|
|
299
|
+
return `${c} - ${c + 11}`;
|
|
300
|
+
}
|
|
301
|
+
default:
|
|
302
|
+
return "";
|
|
303
|
+
}
|
|
304
|
+
}), r = () => {
|
|
305
|
+
switch (e.value) {
|
|
306
|
+
case "day":
|
|
307
|
+
a.value = new Date(
|
|
308
|
+
a.value.setMonth(a.value.getMonth() - 1)
|
|
309
|
+
);
|
|
310
|
+
break;
|
|
311
|
+
case "month":
|
|
312
|
+
a.value = new Date(
|
|
313
|
+
a.value.setFullYear(a.value.getFullYear() - 1)
|
|
314
|
+
);
|
|
315
|
+
break;
|
|
316
|
+
case "year":
|
|
317
|
+
a.value = new Date(
|
|
318
|
+
a.value.setFullYear(a.value.getFullYear() - 12)
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
}, d = () => {
|
|
322
|
+
switch (e.value) {
|
|
323
|
+
case "day":
|
|
324
|
+
a.value = new Date(
|
|
325
|
+
a.value.setMonth(a.value.getMonth() + 1)
|
|
326
|
+
);
|
|
327
|
+
break;
|
|
328
|
+
case "month":
|
|
329
|
+
a.value = new Date(
|
|
330
|
+
a.value.setFullYear(a.value.getFullYear() + 1)
|
|
331
|
+
);
|
|
332
|
+
break;
|
|
333
|
+
case "year":
|
|
334
|
+
a.value = new Date(
|
|
335
|
+
a.value.setFullYear(a.value.getFullYear() + 12)
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
}, h = (c) => {
|
|
339
|
+
console.log(U(l.value)), (Array.isArray(l.value) || U(l.value)) && (l.value = Object.values(l.value)[0]), l.value = l.value === null || !P(l.value, c) ? c : null;
|
|
340
|
+
}, _ = (c) => {
|
|
341
|
+
l.value === null ? l.value = [] : l.value instanceof Date ? l.value = [l.value] : U(l.value) && (l.value = [
|
|
342
|
+
l.value.from,
|
|
343
|
+
l.value.to
|
|
344
|
+
].filter((y) => y !== null)), l.value = l.value.includes(c) ? l.value.filter((y) => y !== c) : [...l.value, c];
|
|
345
|
+
}, f = (c) => {
|
|
346
|
+
l.value === null || Array.isArray(l.value) ? l.value = { from: null, to: null } : l.value instanceof Date && (l.value = { from: l.value, to: null }), l.value = !l.value.from || l.value.to ? { from: c, to: null } : J(l.value.from, c) ? { from: c, to: l.value.from } : { from: l.value.from, to: c };
|
|
347
|
+
}, k = (c) => {
|
|
348
|
+
if (!t.disabled)
|
|
349
|
+
switch (t.variant) {
|
|
350
|
+
case "single":
|
|
351
|
+
h(c);
|
|
352
|
+
break;
|
|
353
|
+
case "multiple":
|
|
354
|
+
_(c);
|
|
355
|
+
break;
|
|
356
|
+
case "range":
|
|
357
|
+
f(c);
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
360
|
+
}, A = (c) => {
|
|
361
|
+
i.value = "view-detail", a.value = new Date(c.getFullYear(), c.getMonth()), R();
|
|
362
|
+
}, C = () => {
|
|
363
|
+
i.value = "view-broad", e.value === "day" ? e.value = "month" : e.value === "month" && (e.value = "year");
|
|
364
|
+
}, R = () => {
|
|
365
|
+
e.value === "year" ? e.value = "month" : e.value === "month" && (e.value = "day");
|
|
366
|
+
};
|
|
367
|
+
return ae(ce, {
|
|
368
|
+
viewDate: a,
|
|
369
|
+
selectedDate: l,
|
|
370
|
+
variant: Z(X(() => t.variant)),
|
|
371
|
+
showAdjacentMonths: Z(X(() => t.showAdjacentMonths)),
|
|
372
|
+
allowedDates: t.allowedDates
|
|
373
|
+
}), (c, y) => (s(), o("div", null, [
|
|
374
|
+
n("div", qe, [
|
|
375
|
+
n("div", Ke, [
|
|
376
|
+
b($(Y), {
|
|
377
|
+
onClick: r,
|
|
378
|
+
variant: "ghost",
|
|
379
|
+
icon: "chevron-left"
|
|
380
|
+
}),
|
|
381
|
+
b($(Y), {
|
|
382
|
+
class: "header",
|
|
383
|
+
variant: "ghost",
|
|
384
|
+
onClick: C
|
|
385
|
+
}, {
|
|
386
|
+
default: T(() => [
|
|
387
|
+
n("h3", null, v(u.value), 1)
|
|
388
|
+
]),
|
|
389
|
+
_: 1
|
|
390
|
+
}),
|
|
391
|
+
b($(Y), {
|
|
392
|
+
onClick: d,
|
|
393
|
+
variant: "ghost",
|
|
394
|
+
icon: "chevron-right"
|
|
395
|
+
})
|
|
396
|
+
]),
|
|
397
|
+
n("div", Ze, [
|
|
398
|
+
b(K, {
|
|
399
|
+
class: "transition",
|
|
400
|
+
css: !c.noAnimation,
|
|
401
|
+
name: i.value
|
|
402
|
+
}, {
|
|
403
|
+
default: T(() => [
|
|
404
|
+
e.value === "year" ? (s(), j(Ge, {
|
|
405
|
+
key: 0,
|
|
406
|
+
"view-date": a.value,
|
|
407
|
+
onClicked: A
|
|
408
|
+
}, null, 8, ["view-date"])) : M("", !0)
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
}, 8, ["css", "name"]),
|
|
412
|
+
b(K, {
|
|
413
|
+
class: "transition",
|
|
414
|
+
css: !c.noAnimation,
|
|
415
|
+
name: i.value
|
|
416
|
+
}, {
|
|
417
|
+
default: T(() => [
|
|
418
|
+
e.value === "month" ? (s(), j(He, {
|
|
419
|
+
key: 0,
|
|
420
|
+
"view-date": a.value,
|
|
421
|
+
onClicked: A
|
|
422
|
+
}, null, 8, ["view-date"])) : M("", !0)
|
|
423
|
+
]),
|
|
424
|
+
_: 1
|
|
425
|
+
}, 8, ["css", "name"]),
|
|
426
|
+
b(K, {
|
|
427
|
+
class: "transition",
|
|
428
|
+
css: !c.noAnimation,
|
|
429
|
+
name: i.value
|
|
430
|
+
}, {
|
|
431
|
+
default: T(() => [
|
|
432
|
+
e.value === "day" ? (s(), j(Oe, {
|
|
433
|
+
key: 0,
|
|
434
|
+
variant: c.variant,
|
|
435
|
+
disabled: c.disabled,
|
|
436
|
+
"show-adjacent-months": c.showAdjacentMonths,
|
|
437
|
+
"selected-date": l.value,
|
|
438
|
+
"view-date": a.value,
|
|
439
|
+
onClicked: k
|
|
440
|
+
}, null, 8, ["variant", "disabled", "show-adjacent-months", "selected-date", "view-date"])) : M("", !0)
|
|
441
|
+
]),
|
|
442
|
+
_: 1
|
|
443
|
+
}, 8, ["css", "name"])
|
|
444
|
+
])
|
|
445
|
+
])
|
|
446
|
+
]));
|
|
447
|
+
}
|
|
448
|
+
}), Je = /* @__PURE__ */ F(Xe, [["__scopeId", "data-v-9744d6fd"]]), Qe = ["aria-label"], et = { class: "m-callout__inner" }, tt = { class: "m-callout__icon" }, at = { class: "m-callout__body" }, nt = { class: "m-callout__body__inner" }, lt = { class: "m-callout__headline" }, st = { class: "m-callout__content" }, it = /* @__PURE__ */ g({
|
|
137
449
|
__name: "MucCallout",
|
|
138
450
|
props: {
|
|
139
451
|
type: { default: "info" }
|
|
140
452
|
},
|
|
141
|
-
setup(
|
|
142
|
-
const
|
|
143
|
-
switch (
|
|
453
|
+
setup(t) {
|
|
454
|
+
const a = m(() => {
|
|
455
|
+
switch (t.type) {
|
|
144
456
|
case "error":
|
|
145
457
|
case "warning":
|
|
146
458
|
return "warning";
|
|
@@ -149,8 +461,8 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
149
461
|
default:
|
|
150
462
|
return "information";
|
|
151
463
|
}
|
|
152
|
-
}),
|
|
153
|
-
switch (
|
|
464
|
+
}), e = m(() => {
|
|
465
|
+
switch (t.type) {
|
|
154
466
|
case "error":
|
|
155
467
|
return "m-callout--error";
|
|
156
468
|
case "warning":
|
|
@@ -160,8 +472,8 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
160
472
|
default:
|
|
161
473
|
return "m-callout--default";
|
|
162
474
|
}
|
|
163
|
-
}),
|
|
164
|
-
switch (
|
|
475
|
+
}), i = m(() => {
|
|
476
|
+
switch (t.type) {
|
|
165
477
|
case "success":
|
|
166
478
|
return "Erfolgreich";
|
|
167
479
|
case "warning":
|
|
@@ -172,146 +484,146 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
172
484
|
return "Information";
|
|
173
485
|
}
|
|
174
486
|
});
|
|
175
|
-
return (
|
|
176
|
-
class:
|
|
177
|
-
"aria-label":
|
|
487
|
+
return (l, u) => (s(), o("div", {
|
|
488
|
+
class: I(["m-callout", e.value]),
|
|
489
|
+
"aria-label": i.value
|
|
178
490
|
}, [
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
491
|
+
n("div", et, [
|
|
492
|
+
n("div", tt, [
|
|
493
|
+
w(l.$slots, "icon", {}, () => [
|
|
494
|
+
b($(B), { icon: a.value }, null, 8, ["icon"])
|
|
183
495
|
], !0)
|
|
184
496
|
]),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
497
|
+
n("div", at, [
|
|
498
|
+
n("div", nt, [
|
|
499
|
+
n("div", lt, [
|
|
500
|
+
w(l.$slots, "header", {}, void 0, !0)
|
|
189
501
|
]),
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
502
|
+
n("div", st, [
|
|
503
|
+
n("p", null, [
|
|
504
|
+
w(l.$slots, "content", { class: "m-callout__content" }, void 0, !0)
|
|
193
505
|
])
|
|
194
506
|
])
|
|
195
507
|
])
|
|
196
508
|
])
|
|
197
509
|
])
|
|
198
|
-
], 10,
|
|
510
|
+
], 10, Qe));
|
|
199
511
|
}
|
|
200
|
-
}),
|
|
512
|
+
}), ot = /* @__PURE__ */ F(it, [["__scopeId", "data-v-71a5ca15"]]), rt = { class: "card-content" }, ct = { class: "card-header" }, ut = {
|
|
201
513
|
key: 0,
|
|
202
514
|
class: "card-tagline"
|
|
203
|
-
},
|
|
515
|
+
}, dt = /* @__PURE__ */ g({
|
|
204
516
|
__name: "MucCard",
|
|
205
517
|
props: {
|
|
206
518
|
title: {},
|
|
207
519
|
tagline: {}
|
|
208
520
|
},
|
|
209
521
|
emits: ["click"],
|
|
210
|
-
setup(
|
|
211
|
-
const
|
|
212
|
-
return (
|
|
522
|
+
setup(t, { emit: a }) {
|
|
523
|
+
const e = a;
|
|
524
|
+
return (i, l) => (s(), o("div", {
|
|
213
525
|
class: "card",
|
|
214
|
-
onClick:
|
|
526
|
+
onClick: l[0] || (l[0] = (u) => e("click", u))
|
|
215
527
|
}, [
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
528
|
+
n("div", rt, [
|
|
529
|
+
n("div", ct, [
|
|
530
|
+
w(i.$slots, "headerPrefix", {}, void 0, !0),
|
|
531
|
+
n("div", null, [
|
|
532
|
+
i.tagline ? (s(), o("div", ut, v(i.tagline), 1)) : M("", !0),
|
|
533
|
+
n("div", null, [
|
|
534
|
+
n("h3", null, v(i.title), 1)
|
|
223
535
|
])
|
|
224
536
|
])
|
|
225
537
|
]),
|
|
226
|
-
|
|
227
|
-
|
|
538
|
+
l[1] || (l[1] = n("div", { class: "muc-divider" }, null, -1)),
|
|
539
|
+
w(i.$slots, "content", {}, void 0, !0)
|
|
228
540
|
])
|
|
229
541
|
]));
|
|
230
542
|
}
|
|
231
|
-
}),
|
|
543
|
+
}), mt = /* @__PURE__ */ F(dt, [["__scopeId", "data-v-6dbe63e1"]]), vt = { class: "container card-container" }, ht = /* @__PURE__ */ g({
|
|
232
544
|
__name: "MucCardContainer",
|
|
233
|
-
setup(
|
|
234
|
-
return (
|
|
235
|
-
|
|
545
|
+
setup(t) {
|
|
546
|
+
return (a, e) => (s(), o("div", vt, [
|
|
547
|
+
w(a.$slots, "default", {}, void 0, !0)
|
|
236
548
|
]));
|
|
237
549
|
}
|
|
238
|
-
}),
|
|
550
|
+
}), ft = /* @__PURE__ */ F(ht, [["__scopeId", "data-v-6740df8f"]]), pt = { class: "m-comment__head" }, _t = { class: "m-comment__initials" }, gt = { class: "m-comment__info" }, yt = { class: "m-comment__author" }, kt = { key: 0 }, bt = { class: "m-comment__author" }, Mt = { class: "m-comment__date" }, $t = ["aria-label"], wt = {
|
|
239
551
|
key: 0,
|
|
240
552
|
class: "m-star-rating__item m-star-rating__item--half"
|
|
241
|
-
},
|
|
553
|
+
}, At = { class: "m-star-rating__numeric" }, Ct = { class: "m-comment__body" }, Dt = { class: "m-comment__headline" }, St = { class: "m-comment__text" }, It = "de-DE", Ft = 0.2, Tt = 0.8, W = 5, ue = /* @__PURE__ */ g({
|
|
242
554
|
__name: "MucComment",
|
|
243
555
|
props: {
|
|
244
556
|
rating: {},
|
|
245
557
|
variant: { default: "listing" }
|
|
246
558
|
},
|
|
247
|
-
setup(
|
|
248
|
-
const
|
|
559
|
+
setup(t) {
|
|
560
|
+
const a = ne(), e = m(() => !!a.date), i = m(() => t.variant === "slider" ? "m-comment--slider" : "m-comment--listing"), l = m(() => Math.min(Math.max(t.rating, 0), W)), u = m(() => l.value.toLocaleString(It.valueOf(), {
|
|
249
561
|
minimumFractionDigits: 1
|
|
250
|
-
})),
|
|
251
|
-
const
|
|
252
|
-
let
|
|
253
|
-
return
|
|
254
|
-
fullStars:
|
|
255
|
-
emptyStars:
|
|
256
|
-
isHalfStar:
|
|
562
|
+
})), r = m(() => {
|
|
563
|
+
const d = +(l.value % 1).toFixed(1);
|
|
564
|
+
let h = Math.min(Math.floor(l.value), W), _ = Math.floor(W - l.value), f = !1;
|
|
565
|
+
return d !== 0 && (d <= Ft ? _++ : d >= Tt ? h++ : f = !0), {
|
|
566
|
+
fullStars: h,
|
|
567
|
+
emptyStars: _,
|
|
568
|
+
isHalfStar: f
|
|
257
569
|
};
|
|
258
570
|
});
|
|
259
|
-
return (
|
|
260
|
-
class:
|
|
571
|
+
return (d, h) => (s(), o("div", {
|
|
572
|
+
class: I(["m-comment", i.value])
|
|
261
573
|
}, [
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
574
|
+
n("div", pt, [
|
|
575
|
+
n("div", _t, [
|
|
576
|
+
w(d.$slots, "initials")
|
|
265
577
|
]),
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
578
|
+
n("div", gt, [
|
|
579
|
+
n("span", yt, [
|
|
580
|
+
w(d.$slots, "author")
|
|
269
581
|
]),
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
582
|
+
e.value ? (s(), o("span", kt, [
|
|
583
|
+
n("span", bt, [
|
|
584
|
+
h[0] || (h[0] = D(" ")),
|
|
585
|
+
w(d.$slots, "datePrefix")
|
|
274
586
|
]),
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
587
|
+
n("span", Mt, [
|
|
588
|
+
h[1] || (h[1] = D(" ")),
|
|
589
|
+
w(d.$slots, "date")
|
|
278
590
|
])
|
|
279
|
-
])) :
|
|
280
|
-
|
|
591
|
+
])) : M("", !0),
|
|
592
|
+
n("div", {
|
|
281
593
|
class: "m-star-rating",
|
|
282
594
|
role: "img",
|
|
283
|
-
"aria-label": `Bewertung: ${
|
|
595
|
+
"aria-label": `Bewertung: ${d.rating} von ${W} Sternen`
|
|
284
596
|
}, [
|
|
285
|
-
(
|
|
286
|
-
key:
|
|
597
|
+
(s(!0), o(z, null, O(r.value.fullStars, (_) => (s(), o("div", {
|
|
598
|
+
key: _,
|
|
287
599
|
class: "m-star-rating__item m-star-rating__item--full"
|
|
288
600
|
}, [
|
|
289
|
-
|
|
601
|
+
b($(B), { icon: "solid-star" })
|
|
290
602
|
]))), 128)),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
])) :
|
|
294
|
-
(
|
|
295
|
-
key:
|
|
603
|
+
r.value.isHalfStar ? (s(), o("div", wt, [
|
|
604
|
+
b($(B), { icon: "half-star" })
|
|
605
|
+
])) : M("", !0),
|
|
606
|
+
(s(!0), o(z, null, O(r.value.emptyStars, (_) => (s(), o("div", {
|
|
607
|
+
key: _,
|
|
296
608
|
class: "m-star-rating__item"
|
|
297
609
|
}, [
|
|
298
|
-
|
|
610
|
+
b($(B), { icon: "solid-star" })
|
|
299
611
|
]))), 128)),
|
|
300
|
-
|
|
301
|
-
], 8,
|
|
612
|
+
n("div", At, v(u.value), 1)
|
|
613
|
+
], 8, $t)
|
|
302
614
|
])
|
|
303
615
|
]),
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
616
|
+
n("div", Ct, [
|
|
617
|
+
n("div", Dt, [
|
|
618
|
+
w(d.$slots, "headline")
|
|
307
619
|
]),
|
|
308
|
-
|
|
309
|
-
|
|
620
|
+
n("div", St, [
|
|
621
|
+
w(d.$slots, "text")
|
|
310
622
|
])
|
|
311
623
|
])
|
|
312
624
|
], 2));
|
|
313
625
|
}
|
|
314
|
-
}),
|
|
626
|
+
}), Lt = " ", Bt = /* @__PURE__ */ g({
|
|
315
627
|
__name: "MucCommentText",
|
|
316
628
|
props: {
|
|
317
629
|
datePrefix: { default: "am" },
|
|
@@ -323,43 +635,43 @@ const _e = ["href"], T = /* @__PURE__ */ p({
|
|
|
323
635
|
rating: {},
|
|
324
636
|
variant: { default: "listing" }
|
|
325
637
|
},
|
|
326
|
-
setup(
|
|
327
|
-
const
|
|
328
|
-
return (
|
|
329
|
-
rating:
|
|
330
|
-
variant:
|
|
331
|
-
},
|
|
332
|
-
initials:
|
|
333
|
-
|
|
638
|
+
setup(t) {
|
|
639
|
+
const a = m(() => ((t.initials ?? t.author.split(Lt).map((e) => e.charAt(0)).join("")).match(/^.|.$/g) ?? [""]).join(""));
|
|
640
|
+
return (e, i) => (s(), j($(ue), {
|
|
641
|
+
rating: e.rating,
|
|
642
|
+
variant: e.variant
|
|
643
|
+
}, ye({
|
|
644
|
+
initials: T(() => [
|
|
645
|
+
D(v(a.value), 1)
|
|
334
646
|
]),
|
|
335
|
-
datePrefix:
|
|
336
|
-
|
|
647
|
+
datePrefix: T(() => [
|
|
648
|
+
D(v(e.datePrefix), 1)
|
|
337
649
|
]),
|
|
338
|
-
author:
|
|
339
|
-
|
|
650
|
+
author: T(() => [
|
|
651
|
+
D(v(e.author), 1)
|
|
340
652
|
]),
|
|
341
|
-
headline:
|
|
342
|
-
|
|
653
|
+
headline: T(() => [
|
|
654
|
+
D(v(e.headline), 1)
|
|
343
655
|
]),
|
|
344
|
-
text:
|
|
345
|
-
|
|
656
|
+
text: T(() => [
|
|
657
|
+
D(v(e.text), 1)
|
|
346
658
|
]),
|
|
347
659
|
_: 2
|
|
348
660
|
}, [
|
|
349
|
-
|
|
661
|
+
e.date ? {
|
|
350
662
|
name: "date",
|
|
351
|
-
fn:
|
|
352
|
-
|
|
663
|
+
fn: T(() => [
|
|
664
|
+
D(v(e.date), 1)
|
|
353
665
|
]),
|
|
354
666
|
key: "0"
|
|
355
667
|
} : void 0
|
|
356
668
|
]), 1032, ["rating", "variant"]));
|
|
357
669
|
}
|
|
358
|
-
}),
|
|
359
|
-
function
|
|
360
|
-
return
|
|
670
|
+
}), xt = {}, Et = { class: "divider-border" };
|
|
671
|
+
function zt(t, a) {
|
|
672
|
+
return s(), o("hr", Et);
|
|
361
673
|
}
|
|
362
|
-
const
|
|
674
|
+
const Ot = /* @__PURE__ */ F(xt, [["render", zt], ["__scopeId", "data-v-a2b37f5b"]]), Vt = {}, jt = {
|
|
363
675
|
"aria-hidden": "true",
|
|
364
676
|
width: "108",
|
|
365
677
|
height: "56",
|
|
@@ -367,21 +679,21 @@ const ot = /* @__PURE__ */ z(lt, [["render", it], ["__scopeId", "data-v-a2b37f5b
|
|
|
367
679
|
fill: "none",
|
|
368
680
|
xmlns: "http://www.w3.org/2000/svg"
|
|
369
681
|
};
|
|
370
|
-
function
|
|
371
|
-
return
|
|
372
|
-
|
|
682
|
+
function Yt(t, a) {
|
|
683
|
+
return s(), o("svg", jt, a[0] || (a[0] = [
|
|
684
|
+
le('<g clip-path="url(#clip0_875_841)"><path d="M107.655 18.699L106.594 11.0435L98.9873 12.1173" stroke="#005A9F" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M106.594 11.0435C106.594 11.0435 94.1981 33.255 58.2578 27.2483" stroke="#005A9F" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M85.5371 32.8255C92.2897 31.142 97.5195 28.1144 101.261 25.2393" stroke="#005A9F" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M0.344727 45.982C0.344727 45.982 13.4778 24.2 49.1976 31.426" stroke="#005A9F" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M22.1184 24.9275C15.3107 26.3755 9.98438 29.2299 6.15332 31.9734" stroke="#005A9F" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M68.3603 2.69507H37.1055V55.6536H77.5314V11.9164L68.3603 2.69507Z" fill="#005A9F" stroke="#005A9F" stroke-linecap="round" stroke-linejoin="round"></path><path d="M73.7345 53.3119H33.3086V0.346436H64.5634L73.7345 9.57469V53.3119Z" fill="white" stroke="#005A9F" stroke-linejoin="round"></path><path d="M38.5039 14.4868H45.3667" stroke="#005A9F" stroke-linejoin="round"></path><path d="M38.5039 21.1584H68.5391" stroke="#005A9F" stroke-linejoin="round"></path><path d="M38.5039 27.8372H68.5391" stroke="#005A9F" stroke-linejoin="round"></path><path d="M38.5039 34.509H68.5391" stroke="#005A9F" stroke-linejoin="round"></path><path d="M38.5039 41.1877H68.5391" stroke="#005A9F" stroke-linejoin="round"></path><path d="M73.7346 9.57469H64.5635V0.346436L73.7346 9.57469Z" fill="white" stroke="#005A9F" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_875_841"><rect width="108" height="56" fill="white"></rect></clipPath></defs>', 2)
|
|
373
685
|
]));
|
|
374
686
|
}
|
|
375
|
-
const
|
|
687
|
+
const Rt = /* @__PURE__ */ F(Vt, [["render", Yt]]), Ht = {
|
|
376
688
|
key: 0,
|
|
377
689
|
class: "m-error-message"
|
|
378
|
-
},
|
|
690
|
+
}, Pt = {
|
|
379
691
|
key: 1,
|
|
380
692
|
class: "m-error-message"
|
|
381
|
-
},
|
|
693
|
+
}, Nt = {
|
|
382
694
|
key: 2,
|
|
383
695
|
class: "m-error-message"
|
|
384
|
-
},
|
|
696
|
+
}, Ut = /* @__PURE__ */ g({
|
|
385
697
|
__name: "MucFileDropzone",
|
|
386
698
|
props: {
|
|
387
699
|
buttonText: { default: "Upload file" },
|
|
@@ -400,160 +712,160 @@ const dt = /* @__PURE__ */ z(rt, [["render", ut]]), mt = {
|
|
|
400
712
|
*/
|
|
401
713
|
"files"
|
|
402
714
|
],
|
|
403
|
-
setup(
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
const
|
|
408
|
-
if (
|
|
409
|
-
const
|
|
410
|
-
A(
|
|
715
|
+
setup(t, { emit: a }) {
|
|
716
|
+
const e = a, i = L(!0), l = L(!0), u = L(!0), r = L(!1), d = document.createElement("input");
|
|
717
|
+
se(() => {
|
|
718
|
+
d.type = "file", d.multiple = t.multiple, d.onchange = (c) => {
|
|
719
|
+
const y = c.target;
|
|
720
|
+
if (y != null && y.files && y.files.length > 0) {
|
|
721
|
+
const E = Array.from(y.files);
|
|
722
|
+
A(E);
|
|
411
723
|
}
|
|
412
724
|
};
|
|
413
|
-
}),
|
|
414
|
-
|
|
725
|
+
}), ke(() => {
|
|
726
|
+
d.multiple = t.multiple;
|
|
415
727
|
});
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
},
|
|
419
|
-
var
|
|
420
|
-
if (!
|
|
421
|
-
if (!(
|
|
422
|
-
const
|
|
423
|
-
if (((
|
|
424
|
-
|
|
728
|
+
const h = () => {
|
|
729
|
+
t.disabled || d.click();
|
|
730
|
+
}, _ = (c) => {
|
|
731
|
+
var y;
|
|
732
|
+
if (!t.disabled) {
|
|
733
|
+
if (!(d != null && d.multiple)) {
|
|
734
|
+
const E = c.dataTransfer;
|
|
735
|
+
if (((y = E == null ? void 0 : E.items) == null ? void 0 : y.length) > 1) {
|
|
736
|
+
u.value = !1;
|
|
425
737
|
return;
|
|
426
738
|
}
|
|
427
739
|
}
|
|
428
|
-
|
|
740
|
+
r.value = !0;
|
|
429
741
|
}
|
|
430
|
-
},
|
|
431
|
-
|
|
432
|
-
},
|
|
433
|
-
var
|
|
434
|
-
if (
|
|
435
|
-
if (!
|
|
436
|
-
|
|
742
|
+
}, f = () => {
|
|
743
|
+
r.value = !1, u.value = !0;
|
|
744
|
+
}, k = (c) => {
|
|
745
|
+
var E;
|
|
746
|
+
if (t.disabled) return;
|
|
747
|
+
if (!u.value) {
|
|
748
|
+
u.value = !0;
|
|
437
749
|
return;
|
|
438
750
|
}
|
|
439
|
-
|
|
440
|
-
const
|
|
441
|
-
if (((
|
|
442
|
-
const
|
|
443
|
-
A(
|
|
751
|
+
r.value = !1;
|
|
752
|
+
const y = c.dataTransfer;
|
|
753
|
+
if (((E = y == null ? void 0 : y.files) == null ? void 0 : E.length) > 0) {
|
|
754
|
+
const q = Array.from(y.files);
|
|
755
|
+
A(q);
|
|
444
756
|
}
|
|
445
|
-
}, A = (
|
|
446
|
-
|
|
447
|
-
},
|
|
448
|
-
return (
|
|
449
|
-
|
|
450
|
-
class:
|
|
451
|
-
"is-dragover":
|
|
452
|
-
"is-not-disabled": !
|
|
757
|
+
}, A = (c) => {
|
|
758
|
+
i.value = C(c), l.value = R(c), !(!i.value || !l.value) && e("files", c);
|
|
759
|
+
}, C = (c) => t.maxFileSize ? !c.some((y) => y.size > t.maxFileSize * 1024 * 1024) : !0, R = (c) => t.maxTotalFileSize ? c.reduce((y, E) => y + (E.size || 0), 0) <= t.maxTotalFileSize * 1024 * 1024 : !0;
|
|
760
|
+
return (c, y) => (s(), o(z, null, [
|
|
761
|
+
n("div", {
|
|
762
|
+
class: I(["drop-zone", {
|
|
763
|
+
"is-dragover": r.value,
|
|
764
|
+
"is-not-disabled": !c.disabled
|
|
453
765
|
}]),
|
|
454
|
-
onDragover:
|
|
455
|
-
onDragleave:
|
|
456
|
-
onDrop:
|
|
457
|
-
onClick:
|
|
766
|
+
onDragover: N(_, ["prevent"]),
|
|
767
|
+
onDragleave: N(f, ["prevent"]),
|
|
768
|
+
onDrop: N(k, ["prevent"]),
|
|
769
|
+
onClick: h
|
|
458
770
|
}, [
|
|
459
|
-
|
|
460
|
-
|
|
771
|
+
b(Rt),
|
|
772
|
+
b($(Y), {
|
|
461
773
|
variant: "secondary",
|
|
462
774
|
icon: "upload",
|
|
463
|
-
disabled:
|
|
775
|
+
disabled: c.disabled
|
|
464
776
|
}, {
|
|
465
|
-
default:
|
|
466
|
-
|
|
777
|
+
default: T(() => [
|
|
778
|
+
D(v(c.buttonText), 1)
|
|
467
779
|
]),
|
|
468
780
|
_: 1
|
|
469
781
|
}, 8, ["disabled"]),
|
|
470
|
-
|
|
782
|
+
n("small", null, v(c.additionalInformation), 1)
|
|
471
783
|
], 34),
|
|
472
|
-
!
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
])) :
|
|
476
|
-
!
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
])) :
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
784
|
+
!i.value && c.maxFileSizeWarning ? (s(), o("span", Ht, [
|
|
785
|
+
b($(B), { icon: "warning" }),
|
|
786
|
+
D(" " + v(c.maxFileSizeWarning), 1)
|
|
787
|
+
])) : M("", !0),
|
|
788
|
+
!l.value && c.maxTotalFileSizeWarning ? (s(), o("span", Pt, [
|
|
789
|
+
b($(B), { icon: "warning" }),
|
|
790
|
+
D(" " + v(c.maxTotalFileSizeWarning), 1)
|
|
791
|
+
])) : M("", !0),
|
|
792
|
+
u.value ? M("", !0) : (s(), o("span", Nt, [
|
|
793
|
+
b($(B), { icon: "warning" }),
|
|
794
|
+
D(" " + v(c.invalidAmountWarning), 1)
|
|
483
795
|
]))
|
|
484
796
|
], 64));
|
|
485
797
|
}
|
|
486
|
-
}),
|
|
798
|
+
}), Wt = /* @__PURE__ */ F(Ut, [["__scopeId", "data-v-8c3a02f8"]]), Gt = ["checked"], qt = { class: "m-label m-checkboxes__label" }, Kt = /* @__PURE__ */ g({
|
|
487
799
|
__name: "MucCheckbox",
|
|
488
|
-
props: /* @__PURE__ */
|
|
800
|
+
props: /* @__PURE__ */ V({
|
|
489
801
|
label: {}
|
|
490
802
|
}, {
|
|
491
803
|
modelValue: { type: Boolean, default: !1 },
|
|
492
804
|
modelModifiers: {}
|
|
493
805
|
}),
|
|
494
|
-
emits: /* @__PURE__ */
|
|
495
|
-
setup(
|
|
496
|
-
const
|
|
497
|
-
|
|
806
|
+
emits: /* @__PURE__ */ V(["click"], ["update:modelValue"]),
|
|
807
|
+
setup(t, { emit: a }) {
|
|
808
|
+
const e = H(t, "modelValue"), i = a, l = () => {
|
|
809
|
+
e.value = !e.value, i("click");
|
|
498
810
|
};
|
|
499
|
-
return (
|
|
811
|
+
return (u, r) => (s(), o("div", {
|
|
500
812
|
class: "m-checkboxes__item",
|
|
501
|
-
onClick:
|
|
813
|
+
onClick: l
|
|
502
814
|
}, [
|
|
503
|
-
|
|
815
|
+
n("input", {
|
|
504
816
|
class: "m-checkboxes__input",
|
|
505
817
|
name: "checkbox",
|
|
506
818
|
type: "checkbox",
|
|
507
|
-
checked:
|
|
508
|
-
onClick:
|
|
509
|
-
}, null, 8,
|
|
510
|
-
|
|
819
|
+
checked: e.value,
|
|
820
|
+
onClick: N(l, ["stop"])
|
|
821
|
+
}, null, 8, Gt),
|
|
822
|
+
n("label", qt, v(u.label), 1)
|
|
511
823
|
]));
|
|
512
824
|
}
|
|
513
|
-
}),
|
|
825
|
+
}), Zt = { class: "m-form-group" }, Xt = { class: "m-checkbox-group" }, Jt = { class: "m-checkbox-group__legend" }, Qt = { class: "m-checkbox-group__heading" }, ea = { class: "m-checkboxes m-checkboxes--collapse" }, ta = {
|
|
514
826
|
"aria-hidden": "true",
|
|
515
827
|
class: "icon icon--after"
|
|
516
|
-
},
|
|
828
|
+
}, aa = ["href"], na = /* @__PURE__ */ g({
|
|
517
829
|
__name: "MucCheckboxGroup",
|
|
518
830
|
props: {
|
|
519
831
|
heading: {}
|
|
520
832
|
},
|
|
521
|
-
setup(
|
|
522
|
-
const
|
|
523
|
-
return (
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
833
|
+
setup(t) {
|
|
834
|
+
const a = L(!0), e = m(() => a.value ? "collapse" : ""), i = m(() => a.value ? "down" : "up"), l = () => a.value = !a.value;
|
|
835
|
+
return (u, r) => (s(), o("div", Zt, [
|
|
836
|
+
n("fieldset", Xt, [
|
|
837
|
+
n("legend", Jt, [
|
|
838
|
+
n("h3", Qt, v(u.heading), 1)
|
|
527
839
|
]),
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
840
|
+
n("div", ea, [
|
|
841
|
+
w(u.$slots, "checkboxes"),
|
|
842
|
+
u.$slots.collapsableCheckboxes ? (s(), o("div", {
|
|
531
843
|
key: 0,
|
|
532
|
-
class:
|
|
844
|
+
class: I(["m-checkboxes__collapse__container", e.value])
|
|
533
845
|
}, [
|
|
534
|
-
|
|
535
|
-
], 2)) :
|
|
536
|
-
|
|
846
|
+
w(u.$slots, "collapsableCheckboxes")
|
|
847
|
+
], 2)) : M("", !0),
|
|
848
|
+
u.$slots.collapsableCheckboxes ? (s(), j($(Y), {
|
|
537
849
|
key: 1,
|
|
538
850
|
variant: "ghost",
|
|
539
|
-
onClick:
|
|
540
|
-
"aria-expanded": !
|
|
851
|
+
onClick: l,
|
|
852
|
+
"aria-expanded": !a.value
|
|
541
853
|
}, {
|
|
542
|
-
default:
|
|
543
|
-
|
|
544
|
-
(
|
|
545
|
-
|
|
546
|
-
href: "#icon-chevron-" +
|
|
547
|
-
}, null, 8,
|
|
854
|
+
default: T(() => [
|
|
855
|
+
r[0] || (r[0] = n("span", null, "Mehr ", -1)),
|
|
856
|
+
(s(), o("svg", ta, [
|
|
857
|
+
n("use", {
|
|
858
|
+
href: "#icon-chevron-" + i.value
|
|
859
|
+
}, null, 8, aa)
|
|
548
860
|
]))
|
|
549
861
|
]),
|
|
550
862
|
_: 1
|
|
551
|
-
}, 8, ["aria-expanded"])) :
|
|
863
|
+
}, 8, ["aria-expanded"])) : M("", !0)
|
|
552
864
|
])
|
|
553
865
|
])
|
|
554
866
|
]));
|
|
555
867
|
}
|
|
556
|
-
}),
|
|
868
|
+
}), la = ["href", "target"], de = /* @__PURE__ */ g({
|
|
557
869
|
__name: "MucLink",
|
|
558
870
|
props: {
|
|
559
871
|
label: {},
|
|
@@ -562,31 +874,31 @@ const dt = /* @__PURE__ */ z(rt, [["render", ut]]), mt = {
|
|
|
562
874
|
target: { default: "_blank" },
|
|
563
875
|
noUnderline: { type: Boolean, default: !1 }
|
|
564
876
|
},
|
|
565
|
-
setup(
|
|
566
|
-
const
|
|
567
|
-
() =>
|
|
877
|
+
setup(t) {
|
|
878
|
+
const a = m(
|
|
879
|
+
() => t.noUnderline ? "m-link--reversed-underline" : ""
|
|
568
880
|
);
|
|
569
|
-
return (
|
|
570
|
-
href:
|
|
571
|
-
target:
|
|
572
|
-
class:
|
|
881
|
+
return (e, i) => (s(), o("a", {
|
|
882
|
+
href: e.href,
|
|
883
|
+
target: e.target,
|
|
884
|
+
class: I(["m-link", a.value])
|
|
573
885
|
}, [
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
886
|
+
D(v(e.label) + " ", 1),
|
|
887
|
+
w(e.$slots, "icon", {}, () => [
|
|
888
|
+
e.icon ? (s(), j($(B), {
|
|
577
889
|
key: 0,
|
|
578
|
-
icon:
|
|
890
|
+
icon: e.icon,
|
|
579
891
|
class: "icon icon--after"
|
|
580
|
-
}, null, 8, ["icon"])) :
|
|
892
|
+
}, null, 8, ["icon"])) : M("", !0)
|
|
581
893
|
])
|
|
582
|
-
], 10,
|
|
894
|
+
], 10, la));
|
|
583
895
|
}
|
|
584
|
-
}),
|
|
896
|
+
}), sa = { class: "grid" }, ia = { class: "grid-item" }, oa = { tabindex: "0" }, ra = {
|
|
585
897
|
class: "centered-text-number",
|
|
586
898
|
style: { color: "var(--color-brand-main-blue)" }
|
|
587
|
-
},
|
|
899
|
+
}, ca = { class: "visually-hidden" }, ua = { class: "grid-item centered-text-label" }, da = { key: 0 }, ma = { key: 1 }, va = /* @__PURE__ */ g({
|
|
588
900
|
__name: "MucCounter",
|
|
589
|
-
props: /* @__PURE__ */
|
|
901
|
+
props: /* @__PURE__ */ V({
|
|
590
902
|
label: {},
|
|
591
903
|
min: {},
|
|
592
904
|
max: {},
|
|
@@ -597,120 +909,120 @@ const dt = /* @__PURE__ */ z(rt, [["render", ut]]), mt = {
|
|
|
597
909
|
modelModifiers: {}
|
|
598
910
|
}),
|
|
599
911
|
emits: ["update:modelValue"],
|
|
600
|
-
setup(
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
() =>
|
|
912
|
+
setup(t) {
|
|
913
|
+
const a = H(t, "modelValue");
|
|
914
|
+
G(
|
|
915
|
+
() => t.min,
|
|
604
916
|
() => {
|
|
605
|
-
|
|
917
|
+
t.min && a.value < t.min && (a.value = t.min);
|
|
606
918
|
}
|
|
607
|
-
),
|
|
608
|
-
() =>
|
|
919
|
+
), G(
|
|
920
|
+
() => t.max,
|
|
609
921
|
() => {
|
|
610
|
-
|
|
922
|
+
t.max && a.value > t.max && (a.value = t.max);
|
|
611
923
|
}
|
|
612
924
|
);
|
|
613
|
-
const
|
|
614
|
-
() => !!
|
|
615
|
-
),
|
|
616
|
-
() =>
|
|
925
|
+
const e = () => a.value++, i = () => a.value--, l = m(
|
|
926
|
+
() => !!t.max && !(a.value < t.max) || t.disabled
|
|
927
|
+
), u = m(
|
|
928
|
+
() => a.value == 0 || !!t.min && !(a.value > t.min) || t.disabled
|
|
617
929
|
);
|
|
618
|
-
return (
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
onClick:
|
|
930
|
+
return (r, d) => (s(), o("div", sa, [
|
|
931
|
+
n("div", ia, [
|
|
932
|
+
b($(Y), {
|
|
933
|
+
onClick: i,
|
|
622
934
|
variant: "secondary",
|
|
623
|
-
disabled:
|
|
624
|
-
"aria-label": "Anzahl " +
|
|
935
|
+
disabled: u.value,
|
|
936
|
+
"aria-label": "Anzahl " + r.label + " reduzieren auf " + (a.value - 1)
|
|
625
937
|
}, {
|
|
626
|
-
default:
|
|
627
|
-
|
|
938
|
+
default: T(() => [
|
|
939
|
+
b($(B), { icon: "minus" })
|
|
628
940
|
]),
|
|
629
941
|
_: 1
|
|
630
942
|
}, 8, ["disabled", "aria-label"]),
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
943
|
+
n("p", oa, [
|
|
944
|
+
n("strong", ra, [
|
|
945
|
+
n("span", ca, " Aktuell ausgewählte Anzahl für " + v(r.label) + " ist", 1),
|
|
946
|
+
D(" " + v(a.value), 1)
|
|
635
947
|
])
|
|
636
948
|
]),
|
|
637
|
-
|
|
638
|
-
onClick:
|
|
949
|
+
b($(Y), {
|
|
950
|
+
onClick: e,
|
|
639
951
|
variant: "secondary",
|
|
640
|
-
disabled:
|
|
641
|
-
"aria-label": "Anzahl " +
|
|
952
|
+
disabled: l.value,
|
|
953
|
+
"aria-label": "Anzahl " + r.label + " erhöhen auf " + (a.value + 1)
|
|
642
954
|
}, {
|
|
643
|
-
default:
|
|
644
|
-
|
|
955
|
+
default: T(() => [
|
|
956
|
+
b($(B), { icon: "plus" })
|
|
645
957
|
]),
|
|
646
958
|
_: 1
|
|
647
959
|
}, 8, ["disabled", "aria-label"])
|
|
648
960
|
]),
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
961
|
+
n("div", ua, [
|
|
962
|
+
r.link ? (s(), o("p", da, [
|
|
963
|
+
n("label", null, [
|
|
964
|
+
b($(de), {
|
|
653
965
|
tabindex: "0",
|
|
654
|
-
label:
|
|
655
|
-
href:
|
|
966
|
+
label: r.label,
|
|
967
|
+
href: r.link
|
|
656
968
|
}, null, 8, ["label", "href"])
|
|
657
969
|
])
|
|
658
|
-
])) : (
|
|
659
|
-
|
|
970
|
+
])) : (s(), o("p", ma, [
|
|
971
|
+
n("label", null, v(r.label), 1)
|
|
660
972
|
]))
|
|
661
973
|
])
|
|
662
974
|
]));
|
|
663
975
|
}
|
|
664
|
-
}),
|
|
976
|
+
}), ha = /* @__PURE__ */ F(va, [["__scopeId", "data-v-e3bbeec7"]]), fa = {
|
|
665
977
|
class: "m-error-list",
|
|
666
978
|
role: "alert",
|
|
667
979
|
tabindex: "-1"
|
|
668
|
-
},
|
|
980
|
+
}, pa = { class: "m-error-list__title" }, _a = { class: "m-error-list__body" }, ga = { class: "m-list m-error-list__list" }, ya = "Ein Fehler ist aufgetreten!", ka = /* @__PURE__ */ g({
|
|
669
981
|
__name: "MucErrorList",
|
|
670
982
|
props: {
|
|
671
|
-
title: { default: () =>
|
|
983
|
+
title: { default: () => ya },
|
|
672
984
|
errors: {}
|
|
673
985
|
},
|
|
674
|
-
setup(
|
|
675
|
-
const
|
|
676
|
-
() => typeof
|
|
986
|
+
setup(t) {
|
|
987
|
+
const a = m(
|
|
988
|
+
() => typeof t.errors == "string" ? [t.errors] : t.errors
|
|
677
989
|
);
|
|
678
|
-
return (
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
(
|
|
683
|
-
|
|
990
|
+
return (e, i) => (s(), o("div", fa, [
|
|
991
|
+
n("h2", pa, v(e.title), 1),
|
|
992
|
+
n("div", _a, [
|
|
993
|
+
n("ul", ga, [
|
|
994
|
+
(s(!0), o(z, null, O(a.value, (l, u) => (s(), o("li", { key: u }, [
|
|
995
|
+
n("a", null, v(l), 1)
|
|
684
996
|
]))), 128))
|
|
685
997
|
])
|
|
686
998
|
])
|
|
687
999
|
]));
|
|
688
1000
|
}
|
|
689
|
-
}),
|
|
1001
|
+
}), ba = {
|
|
690
1002
|
for: "search-input",
|
|
691
1003
|
class: "m-label"
|
|
692
|
-
},
|
|
1004
|
+
}, Ma = {
|
|
693
1005
|
key: 0,
|
|
694
1006
|
"aria-hidden": "true",
|
|
695
1007
|
class: "mandatory"
|
|
696
|
-
},
|
|
1008
|
+
}, $a = {
|
|
697
1009
|
id: "text-input-error",
|
|
698
1010
|
class: "m-error-message"
|
|
699
|
-
},
|
|
1011
|
+
}, wa = { class: "m-input-wrapper m-autocomplete" }, Aa = {
|
|
700
1012
|
key: 0,
|
|
701
1013
|
class: "m-input__prefix"
|
|
702
|
-
},
|
|
1014
|
+
}, Ca = ["type", "aria-describedby", "placeholder", "required"], Da = {
|
|
703
1015
|
key: 1,
|
|
704
1016
|
class: "autocomplete-result-list autocomplete-result-list--location"
|
|
705
|
-
},
|
|
1017
|
+
}, Sa = ["onClick"], Ia = {
|
|
706
1018
|
"aria-hidden": "true",
|
|
707
1019
|
class: "icon"
|
|
708
|
-
},
|
|
1020
|
+
}, Fa = ["xlink:href"], Ta = {
|
|
709
1021
|
class: "m-hint",
|
|
710
1022
|
id: "text-input-hint"
|
|
711
|
-
},
|
|
1023
|
+
}, La = /* @__PURE__ */ g({
|
|
712
1024
|
__name: "MucInput",
|
|
713
|
-
props: /* @__PURE__ */
|
|
1025
|
+
props: /* @__PURE__ */ V({
|
|
714
1026
|
errorMsg: {},
|
|
715
1027
|
placeholder: {},
|
|
716
1028
|
required: { type: Boolean, default: !1 },
|
|
@@ -723,69 +1035,69 @@ const dt = /* @__PURE__ */ z(rt, [["render", ut]]), mt = {
|
|
|
723
1035
|
modelValue: { default: "" },
|
|
724
1036
|
modelModifiers: {}
|
|
725
1037
|
}),
|
|
726
|
-
emits: /* @__PURE__ */
|
|
727
|
-
setup(
|
|
728
|
-
const
|
|
729
|
-
if (
|
|
730
|
-
const
|
|
731
|
-
return
|
|
732
|
-
(
|
|
1038
|
+
emits: /* @__PURE__ */ V(["suffixClick"], ["update:modelValue"]),
|
|
1039
|
+
setup(t, { emit: a }) {
|
|
1040
|
+
const e = H(t, "modelValue"), i = ne(), l = a, u = m(() => t.errorMsg ? "has-error" : ""), r = m(() => t.type === "search"), d = m(() => {
|
|
1041
|
+
if (e.value === "") return [];
|
|
1042
|
+
const f = e.value.toLowerCase();
|
|
1043
|
+
return t.dataList.filter(
|
|
1044
|
+
(k) => k.toLowerCase().startsWith(f) && k.toLowerCase() !== f
|
|
733
1045
|
);
|
|
734
|
-
}),
|
|
735
|
-
return (
|
|
736
|
-
class:
|
|
1046
|
+
}), h = (f) => e.value = f, _ = () => l("suffixClick");
|
|
1047
|
+
return (f, k) => (s(), o("div", {
|
|
1048
|
+
class: I(["m-form-group", u.value])
|
|
737
1049
|
}, [
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
]))) :
|
|
1050
|
+
n("label", ba, [
|
|
1051
|
+
D(v(f.label) + " ", 1),
|
|
1052
|
+
f.required ? (s(), o("span", Ma, k[1] || (k[1] = [
|
|
1053
|
+
D(" * "),
|
|
1054
|
+
n("span", { class: "visually-hidden" }, "(erforderlich)", -1)
|
|
1055
|
+
]))) : M("", !0)
|
|
744
1056
|
]),
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
1057
|
+
n("p", $a, v(f.errorMsg), 1),
|
|
1058
|
+
n("div", wa, [
|
|
1059
|
+
i.prefix ? (s(), o("div", Aa, [
|
|
1060
|
+
n("span", null, [
|
|
1061
|
+
w(f.$slots, "prefix")
|
|
750
1062
|
])
|
|
751
|
-
])) :
|
|
752
|
-
|
|
1063
|
+
])) : M("", !0),
|
|
1064
|
+
Q(n("input", {
|
|
753
1065
|
class: "m-input autocomplete-input",
|
|
754
|
-
type:
|
|
755
|
-
"onUpdate:modelValue":
|
|
756
|
-
"aria-describedby":
|
|
757
|
-
placeholder:
|
|
758
|
-
required:
|
|
759
|
-
}, null, 8,
|
|
760
|
-
[
|
|
1066
|
+
type: f.type,
|
|
1067
|
+
"onUpdate:modelValue": k[0] || (k[0] = (A) => e.value = A),
|
|
1068
|
+
"aria-describedby": f.type + "-input",
|
|
1069
|
+
placeholder: f.placeholder,
|
|
1070
|
+
required: f.required
|
|
1071
|
+
}, null, 8, Ca), [
|
|
1072
|
+
[be, e.value]
|
|
761
1073
|
]),
|
|
762
|
-
|
|
763
|
-
(
|
|
1074
|
+
r.value && d.value.length !== 0 ? (s(), o("ul", Da, [
|
|
1075
|
+
(s(!0), o(z, null, O(d.value, (A) => (s(), o("li", {
|
|
764
1076
|
class: "autocomplete-result",
|
|
765
1077
|
key: A,
|
|
766
|
-
onClick: (
|
|
767
|
-
},
|
|
768
|
-
])) :
|
|
769
|
-
|
|
1078
|
+
onClick: (C) => h(A)
|
|
1079
|
+
}, v(A), 9, Sa))), 128))
|
|
1080
|
+
])) : M("", !0),
|
|
1081
|
+
f.suffixIcon ? (s(), o("button", {
|
|
770
1082
|
key: 2,
|
|
771
1083
|
class: "m-input__suffix",
|
|
772
|
-
onClick:
|
|
1084
|
+
onClick: _
|
|
773
1085
|
}, [
|
|
774
|
-
(
|
|
775
|
-
|
|
776
|
-
"xlink:href": "#icon-" +
|
|
777
|
-
}, null, 8,
|
|
1086
|
+
(s(), o("svg", Ia, [
|
|
1087
|
+
n("use", {
|
|
1088
|
+
"xlink:href": "#icon-" + f.suffixIcon
|
|
1089
|
+
}, null, 8, Fa)
|
|
778
1090
|
])),
|
|
779
|
-
|
|
780
|
-
])) :
|
|
1091
|
+
k[2] || (k[2] = n("span", { class: "visually-hidden" }, "Suchen", -1))
|
|
1092
|
+
])) : M("", !0)
|
|
781
1093
|
]),
|
|
782
|
-
|
|
1094
|
+
n("p", Ta, v(f.hint), 1)
|
|
783
1095
|
], 2));
|
|
784
1096
|
}
|
|
785
|
-
}),
|
|
1097
|
+
}), me = Symbol("mucRadioGroup"), Ba = {
|
|
786
1098
|
key: 0,
|
|
787
1099
|
class: "m-radios__item"
|
|
788
|
-
},
|
|
1100
|
+
}, xa = ["checked", "disabled"], Ea = { class: "m-hint" }, za = /* @__PURE__ */ g({
|
|
789
1101
|
__name: "MucRadioButton",
|
|
790
1102
|
props: {
|
|
791
1103
|
value: {},
|
|
@@ -793,87 +1105,87 @@ const dt = /* @__PURE__ */ z(rt, [["render", ut]]), mt = {
|
|
|
793
1105
|
hint: {},
|
|
794
1106
|
disabled: { type: Boolean, default: !1 }
|
|
795
1107
|
},
|
|
796
|
-
setup(
|
|
797
|
-
const
|
|
798
|
-
return (
|
|
799
|
-
|
|
1108
|
+
setup(t) {
|
|
1109
|
+
const a = te(me), e = () => a == null ? void 0 : a.set(t.value), i = m(() => (a == null ? void 0 : a.modelValue.value) === t.value), l = m(() => t.disabled || (a == null ? void 0 : a.disabled.value)), u = m(() => (a == null ? void 0 : a.disabled) ?? !1);
|
|
1110
|
+
return (r, d) => u.value ? (s(), o("div", Ba, [
|
|
1111
|
+
n("input", {
|
|
800
1112
|
class: "m-radios__input",
|
|
801
1113
|
type: "radio",
|
|
802
|
-
checked:
|
|
803
|
-
disabled:
|
|
804
|
-
onClick:
|
|
805
|
-
}, null, 8,
|
|
806
|
-
|
|
1114
|
+
checked: i.value,
|
|
1115
|
+
disabled: l.value,
|
|
1116
|
+
onClick: N(e, ["stop"])
|
|
1117
|
+
}, null, 8, xa),
|
|
1118
|
+
n("label", {
|
|
807
1119
|
class: "m-label m-radios__label",
|
|
808
|
-
onClick:
|
|
1120
|
+
onClick: e
|
|
809
1121
|
}, [
|
|
810
|
-
|
|
811
|
-
|
|
1122
|
+
D(v(r.label) + " ", 1),
|
|
1123
|
+
n("span", Ea, v(r.hint), 1)
|
|
812
1124
|
])
|
|
813
|
-
])) :
|
|
1125
|
+
])) : M("", !0);
|
|
814
1126
|
}
|
|
815
|
-
}),
|
|
1127
|
+
}), Oa = { class: "m-form-group" }, Va = { class: "m-radio-group" }, ja = { class: "m-radio-group__legend" }, Ya = { class: "m-radio-group__heading" }, Ra = { class: "m-radios" }, Ha = /* @__PURE__ */ g({
|
|
816
1128
|
__name: "MucRadioButtonGroup",
|
|
817
|
-
props: /* @__PURE__ */
|
|
1129
|
+
props: /* @__PURE__ */ V({
|
|
818
1130
|
heading: {},
|
|
819
1131
|
disabled: { type: Boolean, default: !1 }
|
|
820
1132
|
}, {
|
|
821
1133
|
modelValue: { type: [Boolean, String, Array, Object, Number, null] },
|
|
822
1134
|
modelModifiers: {}
|
|
823
1135
|
}),
|
|
824
|
-
emits: /* @__PURE__ */
|
|
825
|
-
setup(
|
|
826
|
-
const
|
|
827
|
-
return me
|
|
828
|
-
set: (
|
|
829
|
-
|
|
1136
|
+
emits: /* @__PURE__ */ V(["change"], ["update:modelValue"]),
|
|
1137
|
+
setup(t, { emit: a }) {
|
|
1138
|
+
const e = H(t, "modelValue"), i = a;
|
|
1139
|
+
return ae(me, {
|
|
1140
|
+
set: (l) => {
|
|
1141
|
+
i("change", l), e.value = l;
|
|
830
1142
|
},
|
|
831
|
-
modelValue:
|
|
832
|
-
disabled:
|
|
833
|
-
}), (
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
1143
|
+
modelValue: e,
|
|
1144
|
+
disabled: Z(X(() => t.disabled))
|
|
1145
|
+
}), (l, u) => (s(), o("div", Oa, [
|
|
1146
|
+
n("fieldset", Va, [
|
|
1147
|
+
n("legend", ja, [
|
|
1148
|
+
n("h3", Ya, v(l.heading), 1)
|
|
837
1149
|
]),
|
|
838
|
-
|
|
839
|
-
|
|
1150
|
+
n("div", Ra, [
|
|
1151
|
+
w(l.$slots, "default")
|
|
840
1152
|
])
|
|
841
1153
|
])
|
|
842
1154
|
]));
|
|
843
1155
|
}
|
|
844
1156
|
});
|
|
845
|
-
function
|
|
846
|
-
if (!
|
|
847
|
-
const
|
|
848
|
-
|
|
1157
|
+
function Pa(t, a) {
|
|
1158
|
+
if (!t) return;
|
|
1159
|
+
const e = (i) => {
|
|
1160
|
+
i.target !== t.value && i.composedPath().includes(t.value) || typeof a == "function" && a();
|
|
849
1161
|
};
|
|
850
|
-
return
|
|
851
|
-
window.addEventListener("click",
|
|
852
|
-
}),
|
|
853
|
-
window.removeEventListener("click",
|
|
854
|
-
}), { listener:
|
|
1162
|
+
return se(() => {
|
|
1163
|
+
window.addEventListener("click", e);
|
|
1164
|
+
}), Me(() => {
|
|
1165
|
+
window.removeEventListener("click", e);
|
|
1166
|
+
}), { listener: e };
|
|
855
1167
|
}
|
|
856
|
-
const
|
|
1168
|
+
const Na = /* @__PURE__ */ g({
|
|
857
1169
|
__name: "MucSelectItem",
|
|
858
1170
|
props: {
|
|
859
1171
|
item: {},
|
|
860
1172
|
itemLabel: {}
|
|
861
1173
|
},
|
|
862
|
-
setup(
|
|
863
|
-
const
|
|
864
|
-
() => typeof
|
|
1174
|
+
setup(t) {
|
|
1175
|
+
const a = m(
|
|
1176
|
+
() => typeof t.item == "string" ? t.item : t.item[t.itemLabel].toString()
|
|
865
1177
|
);
|
|
866
|
-
return (
|
|
1178
|
+
return (e, i) => (s(), o("span", null, v(a.value), 1));
|
|
867
1179
|
}
|
|
868
|
-
}),
|
|
1180
|
+
}), Ua = { class: "m-label" }, Wa = ["onMouseenter", "onClick"], Ga = {
|
|
869
1181
|
key: 0,
|
|
870
1182
|
class: "option"
|
|
871
|
-
},
|
|
1183
|
+
}, qa = {
|
|
872
1184
|
key: 0,
|
|
873
1185
|
class: "m-hint"
|
|
874
|
-
},
|
|
1186
|
+
}, Ka = /* @__PURE__ */ g({
|
|
875
1187
|
__name: "MucSelect",
|
|
876
|
-
props: /* @__PURE__ */
|
|
1188
|
+
props: /* @__PURE__ */ V({
|
|
877
1189
|
items: {},
|
|
878
1190
|
label: {},
|
|
879
1191
|
hint: {},
|
|
@@ -887,110 +1199,110 @@ const hs = /* @__PURE__ */ p({
|
|
|
887
1199
|
modelModifiers: {}
|
|
888
1200
|
}),
|
|
889
1201
|
emits: ["update:modelValue"],
|
|
890
|
-
setup(
|
|
891
|
-
const
|
|
892
|
-
|
|
1202
|
+
setup(t) {
|
|
1203
|
+
const a = $e("selectComponent"), e = H(
|
|
1204
|
+
t,
|
|
893
1205
|
"modelValue"
|
|
894
|
-
),
|
|
895
|
-
|
|
896
|
-
},
|
|
897
|
-
|
|
1206
|
+
), i = L(!1), l = L(), u = L(!1), r = L(), d = () => {
|
|
1207
|
+
i.value = !i.value, r.value = l.value;
|
|
1208
|
+
}, h = () => {
|
|
1209
|
+
i.value = !0, r.value = l.value, C.value = "";
|
|
898
1210
|
};
|
|
899
|
-
|
|
900
|
-
|
|
1211
|
+
Pa(a, () => {
|
|
1212
|
+
i.value = !1, C.value = A.value;
|
|
901
1213
|
});
|
|
902
|
-
const
|
|
903
|
-
|
|
904
|
-
},
|
|
905
|
-
Array.isArray(
|
|
906
|
-
},
|
|
907
|
-
Array.isArray(
|
|
908
|
-
(
|
|
909
|
-
) : [...
|
|
910
|
-
}, A = m(() => typeof
|
|
911
|
-
|
|
912
|
-
|
|
1214
|
+
const _ = (p) => {
|
|
1215
|
+
l.value = p, t.multiple ? k(p) : f(p), t.multiple || (i.value = !1);
|
|
1216
|
+
}, f = (p) => {
|
|
1217
|
+
Array.isArray(e.value) && (e.value = e.value.join(" ")), typeof e.value != "string" && typeof p != "string" ? e.value = e.value[t.itemTitle] === p[t.itemTitle] ? "" : p : e.value = e.value === p ? "" : p;
|
|
1218
|
+
}, k = (p) => {
|
|
1219
|
+
Array.isArray(e.value) || (e.value = [e.value]), Array.isArray(e.value) && (typeof p == "string" ? e.value = e.value.map((S) => S).includes(p) ? e.value.filter((S) => S !== p) : [...e.value, p] : e.value = e.value.map((S) => S[t.itemTitle]).includes(p[t.itemTitle]) ? e.value.filter(
|
|
1220
|
+
(S) => S[t.itemTitle] !== p[t.itemTitle]
|
|
1221
|
+
) : [...e.value, p]);
|
|
1222
|
+
}, A = m(() => typeof e.value == "string" ? e.value : Array.isArray(e.value) ? e.value.every((p) => typeof p == "string") ? e.value.join(t.multiple ? ", " : " ") : e.value.map((p) => p[t.itemTitle].toString()).join(t.multiple ? ", " : " ") : e.value[t.itemTitle].toString());
|
|
1223
|
+
G(A, (p) => {
|
|
1224
|
+
C.value = p;
|
|
913
1225
|
});
|
|
914
|
-
const
|
|
915
|
-
() =>
|
|
916
|
-
),
|
|
917
|
-
|
|
918
|
-
const
|
|
919
|
-
(
|
|
1226
|
+
const C = L(A.value), R = m(
|
|
1227
|
+
() => C.value == A.value ? t.items : c(C.value)
|
|
1228
|
+
), c = (p) => {
|
|
1229
|
+
u.value = !1;
|
|
1230
|
+
const S = t.items.every((x) => typeof x == "string") ? t.items.filter((x) => x.toLowerCase().includes(p.toLowerCase())) : t.items.filter(
|
|
1231
|
+
(x) => x[t.itemTitle].toString().toLowerCase().includes(p.toLowerCase())
|
|
920
1232
|
);
|
|
921
|
-
return
|
|
922
|
-
},
|
|
923
|
-
if (typeof
|
|
924
|
-
return
|
|
925
|
-
if (Array.isArray(
|
|
926
|
-
return
|
|
927
|
-
if (typeof
|
|
928
|
-
return
|
|
929
|
-
},
|
|
930
|
-
() =>
|
|
931
|
-
),
|
|
932
|
-
() =>
|
|
1233
|
+
return S.length === 0 && (u.value = !0), S;
|
|
1234
|
+
}, y = (p) => p === r.value ? "active" : "", E = (p) => {
|
|
1235
|
+
if (typeof p == "string")
|
|
1236
|
+
return e.value.includes(p) ? "selected" : "";
|
|
1237
|
+
if (Array.isArray(e.value))
|
|
1238
|
+
return e.value.map((S) => S[t.itemTitle]).includes(p[t.itemTitle]) ? "selected" : "";
|
|
1239
|
+
if (typeof e.value != "string")
|
|
1240
|
+
return e.value[t.itemTitle] === p[t.itemTitle] ? "selected" : "";
|
|
1241
|
+
}, q = () => r.value = "", ve = m(
|
|
1242
|
+
() => i.value ? "display-listbox" : ""
|
|
1243
|
+
), he = m(
|
|
1244
|
+
() => t.multiple && !u.value ? "m-input-wrapper--multiselect multiselect" : "m-input-wrapper--select"
|
|
933
1245
|
);
|
|
934
|
-
return (
|
|
1246
|
+
return (p, S) => (s(), o("div", {
|
|
935
1247
|
class: "m-form-group",
|
|
936
1248
|
ref_key: "selectComponent",
|
|
937
|
-
ref:
|
|
1249
|
+
ref: a
|
|
938
1250
|
}, [
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
class:
|
|
1251
|
+
n("label", Ua, v(p.label), 1),
|
|
1252
|
+
n("div", {
|
|
1253
|
+
class: I(["m-input-wrapper", he.value])
|
|
942
1254
|
}, [
|
|
943
|
-
|
|
1255
|
+
Q(n("input", {
|
|
944
1256
|
type: "text",
|
|
945
1257
|
class: "m-input m-combobox m-combobox--single",
|
|
946
|
-
"onUpdate:modelValue":
|
|
947
|
-
onClick:
|
|
1258
|
+
"onUpdate:modelValue": S[0] || (S[0] = (x) => C.value = x),
|
|
1259
|
+
onClick: h
|
|
948
1260
|
}, null, 512), [
|
|
949
|
-
[
|
|
1261
|
+
[ie, C.value]
|
|
950
1262
|
]),
|
|
951
|
-
|
|
1263
|
+
n("span", {
|
|
952
1264
|
class: "m-input__trigger",
|
|
953
|
-
onClick:
|
|
954
|
-
},
|
|
955
|
-
|
|
1265
|
+
onClick: d
|
|
1266
|
+
}, S[1] || (S[1] = [
|
|
1267
|
+
n("svg", {
|
|
956
1268
|
"aria-hidden": "true",
|
|
957
1269
|
class: "icon"
|
|
958
1270
|
}, [
|
|
959
|
-
|
|
1271
|
+
n("use", { "xlink:href": "#icon-chevron-down" })
|
|
960
1272
|
], -1),
|
|
961
|
-
|
|
1273
|
+
n("span", { class: "visually-hidden" }, "Auswahlliste öffnen", -1)
|
|
962
1274
|
])),
|
|
963
|
-
|
|
964
|
-
class:
|
|
965
|
-
onMouseleave:
|
|
1275
|
+
n("ul", {
|
|
1276
|
+
class: I(["listbox", ve.value]),
|
|
1277
|
+
onMouseleave: q
|
|
966
1278
|
}, [
|
|
967
|
-
(
|
|
968
|
-
key:
|
|
969
|
-
class:
|
|
970
|
-
onMouseenter: (
|
|
971
|
-
onClick: (
|
|
1279
|
+
(s(!0), o(z, null, O(R.value, (x, fe) => (s(), o("li", {
|
|
1280
|
+
key: fe,
|
|
1281
|
+
class: I(["option", [y(x), E(x)]]),
|
|
1282
|
+
onMouseenter: (pe) => r.value = x,
|
|
1283
|
+
onClick: (pe) => _(x)
|
|
972
1284
|
}, [
|
|
973
|
-
|
|
974
|
-
item:
|
|
975
|
-
"item-label":
|
|
1285
|
+
b(Na, {
|
|
1286
|
+
item: x,
|
|
1287
|
+
"item-label": p.itemTitle
|
|
976
1288
|
}, null, 8, ["item", "item-label"])
|
|
977
|
-
], 42,
|
|
978
|
-
|
|
1289
|
+
], 42, Wa))), 128)),
|
|
1290
|
+
u.value ? (s(), o("li", Ga, v(p.noItemFoundMessage), 1)) : M("", !0)
|
|
979
1291
|
], 34)
|
|
980
1292
|
], 2),
|
|
981
|
-
|
|
1293
|
+
p.hint ? (s(), o("p", qa, v(p.hint), 1)) : M("", !0)
|
|
982
1294
|
], 512));
|
|
983
1295
|
}
|
|
984
|
-
}),
|
|
1296
|
+
}), Za = /* @__PURE__ */ F(Ka, [["__scopeId", "data-v-a65ab70d"]]), Xa = { class: "m-form-group has-error" }, Ja = {
|
|
985
1297
|
for: "textarea",
|
|
986
1298
|
class: "m-label"
|
|
987
|
-
},
|
|
1299
|
+
}, Qa = {
|
|
988
1300
|
key: 0,
|
|
989
1301
|
"aria-hidden": "true",
|
|
990
1302
|
class: "mandatory"
|
|
991
|
-
},
|
|
1303
|
+
}, en = { class: "m-error-message" }, tn = { class: "m-input-wrapper" }, an = ["rows", "placeholder"], nn = { class: "m-hint" }, ln = /* @__PURE__ */ g({
|
|
992
1304
|
__name: "MucTextArea",
|
|
993
|
-
props: /* @__PURE__ */
|
|
1305
|
+
props: /* @__PURE__ */ V({
|
|
994
1306
|
errorMsg: {},
|
|
995
1307
|
rows: { default: 3 },
|
|
996
1308
|
placeholder: {},
|
|
@@ -1002,144 +1314,216 @@ const hs = /* @__PURE__ */ p({
|
|
|
1002
1314
|
modelModifiers: {}
|
|
1003
1315
|
}),
|
|
1004
1316
|
emits: ["update:modelValue"],
|
|
1005
|
-
setup(
|
|
1006
|
-
const
|
|
1007
|
-
return (
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
]))) :
|
|
1317
|
+
setup(t) {
|
|
1318
|
+
const a = H(t, "modelValue");
|
|
1319
|
+
return (e, i) => (s(), o("div", Xa, [
|
|
1320
|
+
n("label", Ja, [
|
|
1321
|
+
D(v(e.label) + " ", 1),
|
|
1322
|
+
e.required ? (s(), o("span", Qa, i[1] || (i[1] = [
|
|
1323
|
+
D(" * "),
|
|
1324
|
+
n("span", { class: "visually-hidden" }, "(erforderlich)", -1)
|
|
1325
|
+
]))) : M("", !0)
|
|
1014
1326
|
]),
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1327
|
+
n("p", en, v(e.errorMsg), 1),
|
|
1328
|
+
n("div", tn, [
|
|
1329
|
+
Q(n("textarea", {
|
|
1018
1330
|
class: "m-textarea",
|
|
1019
|
-
rows:
|
|
1331
|
+
rows: e.rows,
|
|
1020
1332
|
"aria-describedby": "textarea input",
|
|
1021
|
-
placeholder:
|
|
1022
|
-
"onUpdate:modelValue":
|
|
1023
|
-
}, null, 8,
|
|
1024
|
-
[
|
|
1333
|
+
placeholder: e.placeholder,
|
|
1334
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => a.value = l)
|
|
1335
|
+
}, null, 8, an), [
|
|
1336
|
+
[ie, a.value]
|
|
1025
1337
|
])
|
|
1026
1338
|
]),
|
|
1027
|
-
|
|
1339
|
+
n("p", nn, v(e.hint), 1)
|
|
1028
1340
|
]));
|
|
1029
1341
|
}
|
|
1030
|
-
}),
|
|
1342
|
+
}), sn = {
|
|
1031
1343
|
class: "m-intro m-intro-static-image",
|
|
1032
1344
|
style: { "background-color": "var(--color-neutrals-blue-xlight)" }
|
|
1033
|
-
},
|
|
1345
|
+
}, on = { class: "container" }, rn = { class: "muc-intro-content" }, cn = {
|
|
1034
1346
|
key: 0,
|
|
1035
1347
|
class: "m-intro-vertical__tagline"
|
|
1036
|
-
},
|
|
1348
|
+
}, un = { class: "m-intro-vertical__title" }, dn = {
|
|
1037
1349
|
key: 0,
|
|
1038
1350
|
class: "muc-divider"
|
|
1039
|
-
},
|
|
1351
|
+
}, mn = { class: "m-intro-vertical__content" }, vn = { style: { "padding-bottom": "32px" } }, hn = /* @__PURE__ */ g({
|
|
1040
1352
|
__name: "MucIntro",
|
|
1041
1353
|
props: {
|
|
1042
1354
|
title: {},
|
|
1043
1355
|
tagline: {},
|
|
1044
1356
|
divider: { type: Boolean }
|
|
1045
1357
|
},
|
|
1046
|
-
setup(
|
|
1047
|
-
return (
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1358
|
+
setup(t) {
|
|
1359
|
+
return (a, e) => (s(), o("div", sn, [
|
|
1360
|
+
n("div", on, [
|
|
1361
|
+
n("div", rn, [
|
|
1362
|
+
n("div", null, [
|
|
1363
|
+
a.tagline ? (s(), o("p", cn, v(a.tagline), 1)) : M("", !0),
|
|
1364
|
+
n("h1", un, v(a.title), 1)
|
|
1053
1365
|
]),
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1366
|
+
a.divider ? (s(), o("div", dn)) : M("", !0),
|
|
1367
|
+
n("div", mn, [
|
|
1368
|
+
n("p", vn, [
|
|
1369
|
+
w(a.$slots, "default", {}, void 0, !0)
|
|
1058
1370
|
])
|
|
1059
1371
|
])
|
|
1060
1372
|
])
|
|
1061
1373
|
])
|
|
1062
1374
|
]));
|
|
1063
1375
|
}
|
|
1064
|
-
}),
|
|
1376
|
+
}), fn = /* @__PURE__ */ F(hn, [["__scopeId", "data-v-5c768acc"]]), pn = ["width", "height"], _n = {
|
|
1065
1377
|
x: "100",
|
|
1066
1378
|
y: "108",
|
|
1067
1379
|
"text-anchor": "middle",
|
|
1068
1380
|
fill: "#3a5368",
|
|
1069
1381
|
"font-size": "24",
|
|
1070
1382
|
"font-weight": "bold"
|
|
1071
|
-
},
|
|
1383
|
+
}, gn = /* @__PURE__ */ g({
|
|
1072
1384
|
__name: "MucPercentageSpinner",
|
|
1073
1385
|
props: {
|
|
1074
1386
|
size: { default: "300" },
|
|
1075
1387
|
percentage: {}
|
|
1076
1388
|
},
|
|
1077
|
-
setup(
|
|
1078
|
-
const
|
|
1079
|
-
return (
|
|
1389
|
+
setup(t) {
|
|
1390
|
+
const a = m(() => t.percentage || t.percentage === 0 ? t.percentage < 0 ? "0%" : t.percentage > 100 ? "100%" : Math.round(t.percentage) + "%" : "");
|
|
1391
|
+
return (e, i) => (s(), o("svg", {
|
|
1080
1392
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1081
|
-
width:
|
|
1082
|
-
height:
|
|
1393
|
+
width: e.size,
|
|
1394
|
+
height: e.size,
|
|
1083
1395
|
viewBox: "-10 -10 220 220",
|
|
1084
1396
|
fill: "none",
|
|
1085
1397
|
color: "#005a9f"
|
|
1086
1398
|
}, [
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
], 8,
|
|
1399
|
+
i[0] || (i[0] = le('<defs><linearGradient id="spinner-firstHalf"><stop offset="0%" stop-opacity="1" stop-color="currentColor"></stop><stop offset="100%" stop-opacity="0.5" stop-color="currentColor"></stop></linearGradient><linearGradient id="spinner-secondHalf"><stop offset="0%" stop-opacity="0" stop-color="currentColor"></stop><stop offset="100%" stop-opacity="0.5" stop-color="currentColor"></stop></linearGradient></defs><g stroke-width="12"><path stroke="url(#spinner-firstHalf)" d="M 4 100 A 96 96 0 0 1 196 100"></path><path stroke="url(#spinner-secondHalf)" d="M 196 100 A 96 96 0 0 1 4 100"></path><animateTransform from="90 100 100" to="450 100 100" attributeName="transform" type="rotate" repeatCount="indefinite" dur="2300ms"></animateTransform></g>', 2)),
|
|
1400
|
+
n("text", _n, v(a.value), 1)
|
|
1401
|
+
], 8, pn));
|
|
1402
|
+
}
|
|
1403
|
+
}), yn = ["tabindex", "aria-label"], kn = { class: "m-form-step__title" }, bn = { "aria-disabled": "true" }, Mn = /* @__PURE__ */ g({
|
|
1404
|
+
__name: "MucStepperItem",
|
|
1405
|
+
props: {
|
|
1406
|
+
item: {},
|
|
1407
|
+
isActive: { type: Boolean },
|
|
1408
|
+
isDone: { type: Boolean }
|
|
1409
|
+
},
|
|
1410
|
+
emits: ["click"],
|
|
1411
|
+
setup(t, { emit: a }) {
|
|
1412
|
+
const e = a, i = m(
|
|
1413
|
+
() => t.isActive ? "m-form-step m-form-step--current" : "m-form-step" + l.value
|
|
1414
|
+
), l = m(() => t.isDone ? " show-cursor" : ""), u = m(() => t.isDone ? "check" : t.item.icon), r = m(() => t.isActive || t.isDone ? 0 : -1), d = m(
|
|
1415
|
+
() => t.isActive ? "Aktueller Schritt: " + t.item.label : "Zurück zu Schritt: " + t.item.label
|
|
1416
|
+
), h = () => {
|
|
1417
|
+
t.isDone && e("click", t.item.id);
|
|
1418
|
+
};
|
|
1419
|
+
return (_, f) => (s(), o("li", {
|
|
1420
|
+
class: I(i.value),
|
|
1421
|
+
onClick: h
|
|
1422
|
+
}, [
|
|
1423
|
+
n("div", {
|
|
1424
|
+
class: "m-form-step__icon",
|
|
1425
|
+
tabindex: r.value,
|
|
1426
|
+
"aria-label": d.value
|
|
1427
|
+
}, [
|
|
1428
|
+
b($(B), { icon: u.value }, null, 8, ["icon"])
|
|
1429
|
+
], 8, yn),
|
|
1430
|
+
n("div", kn, [
|
|
1431
|
+
n("span", bn, v(_.item.label), 1)
|
|
1432
|
+
])
|
|
1433
|
+
], 2));
|
|
1434
|
+
}
|
|
1435
|
+
}), $n = /* @__PURE__ */ F(Mn, [["__scopeId", "data-v-279142f9"]]), wn = { class: "m-component m-component-form-progress" }, An = { class: "container" }, Cn = { class: "m-component__grid" }, Dn = { class: "m-component__column" }, Sn = { class: "m-form-steps" }, In = /* @__PURE__ */ g({
|
|
1436
|
+
__name: "MucStepper",
|
|
1437
|
+
props: {
|
|
1438
|
+
stepItems: {},
|
|
1439
|
+
activeItem: {}
|
|
1440
|
+
},
|
|
1441
|
+
emits: ["changeStep"],
|
|
1442
|
+
setup(t, { emit: a }) {
|
|
1443
|
+
const e = a;
|
|
1444
|
+
G(
|
|
1445
|
+
() => t.activeItem,
|
|
1446
|
+
() => {
|
|
1447
|
+
l.value = i(t.activeItem);
|
|
1448
|
+
}
|
|
1449
|
+
);
|
|
1450
|
+
const i = (h) => t.stepItems.findIndex((_) => _.id === h), l = L(i(t.activeItem)), u = (h) => h === t.activeItem, r = (h) => i(h) < l.value, d = (h) => {
|
|
1451
|
+
e("changeStep", h);
|
|
1452
|
+
};
|
|
1453
|
+
return (h, _) => (s(), o("div", wn, [
|
|
1454
|
+
n("div", An, [
|
|
1455
|
+
n("div", Cn, [
|
|
1456
|
+
n("div", Dn, [
|
|
1457
|
+
n("ol", Sn, [
|
|
1458
|
+
(s(!0), o(z, null, O(h.stepItems, (f) => (s(), j($n, {
|
|
1459
|
+
key: f.id,
|
|
1460
|
+
item: f,
|
|
1461
|
+
"is-active": u(f.id),
|
|
1462
|
+
"is-done": r(f.id),
|
|
1463
|
+
onClick: d
|
|
1464
|
+
}, null, 8, ["item", "is-active", "is-done"]))), 128))
|
|
1465
|
+
])
|
|
1466
|
+
])
|
|
1467
|
+
])
|
|
1468
|
+
])
|
|
1469
|
+
]));
|
|
1090
1470
|
}
|
|
1091
|
-
}),
|
|
1471
|
+
}), ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1092
1472
|
__proto__: null,
|
|
1093
|
-
MucBanner:
|
|
1094
|
-
MucButton:
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1473
|
+
MucBanner: Se,
|
|
1474
|
+
MucButton: Y,
|
|
1475
|
+
MucCalendar: Je,
|
|
1476
|
+
MucCallout: ot,
|
|
1477
|
+
MucCard: mt,
|
|
1478
|
+
MucCardContainer: ft,
|
|
1479
|
+
MucCheckbox: Kt,
|
|
1480
|
+
MucCheckboxGroup: na,
|
|
1481
|
+
MucComment: ue,
|
|
1482
|
+
MucCommentText: Bt,
|
|
1483
|
+
MucCounter: ha,
|
|
1484
|
+
MucDivider: Ot,
|
|
1485
|
+
MucErrorList: ka,
|
|
1486
|
+
MucFileDropzone: Wt,
|
|
1487
|
+
MucIcon: B,
|
|
1488
|
+
MucInput: La,
|
|
1489
|
+
MucIntro: fn,
|
|
1490
|
+
MucLink: de,
|
|
1491
|
+
MucPercentageSpinner: gn,
|
|
1492
|
+
MucRadioButton: za,
|
|
1493
|
+
MucRadioButtonGroup: Ha,
|
|
1494
|
+
MucSelect: Za,
|
|
1495
|
+
MucStepper: In,
|
|
1496
|
+
MucTextArea: ln
|
|
1115
1497
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1116
|
-
function
|
|
1117
|
-
for (const
|
|
1118
|
-
|
|
1498
|
+
function Fn(t) {
|
|
1499
|
+
for (const a in ee)
|
|
1500
|
+
t.component(a, ee[a]);
|
|
1119
1501
|
}
|
|
1120
|
-
const
|
|
1502
|
+
const Ln = { install: Fn };
|
|
1121
1503
|
export {
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1504
|
+
Se as MucBanner,
|
|
1505
|
+
Y as MucButton,
|
|
1506
|
+
Je as MucCalendar,
|
|
1507
|
+
ot as MucCallout,
|
|
1508
|
+
mt as MucCard,
|
|
1509
|
+
ft as MucCardContainer,
|
|
1510
|
+
Kt as MucCheckbox,
|
|
1511
|
+
na as MucCheckboxGroup,
|
|
1512
|
+
ue as MucComment,
|
|
1513
|
+
Bt as MucCommentText,
|
|
1514
|
+
ha as MucCounter,
|
|
1515
|
+
Ot as MucDivider,
|
|
1516
|
+
ka as MucErrorList,
|
|
1517
|
+
Wt as MucFileDropzone,
|
|
1518
|
+
B as MucIcon,
|
|
1519
|
+
La as MucInput,
|
|
1520
|
+
fn as MucIntro,
|
|
1521
|
+
de as MucLink,
|
|
1522
|
+
gn as MucPercentageSpinner,
|
|
1523
|
+
za as MucRadioButton,
|
|
1524
|
+
Ha as MucRadioButtonGroup,
|
|
1525
|
+
Za as MucSelect,
|
|
1526
|
+
In as MucStepper,
|
|
1527
|
+
ln as MucTextArea,
|
|
1528
|
+
Ln as default
|
|
1145
1529
|
};
|