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