@muenchen/muc-patternlab-vue 1.8.0-beta.5 → 1.8.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BuisnessHours/BusinessHourType.d.ts +25 -0
- package/dist/components/BuisnessHours/BusinessHours.stories.d.ts +116 -0
- package/dist/components/Button/MucButton.stories.d.ts +26 -0
- package/dist/components/Button/MucButton.vue.d.ts +15 -0
- package/dist/muc-patternlab-vue.es.js +98 -97
- package/dist/types/components/BuisnessHours/BusinessHourType.d.ts +25 -0
- package/dist/types/components/BuisnessHours/BusinessHours.stories.d.ts +116 -0
- package/dist/types/components/BuisnessHours/MucBusinessHours.vue.d.ts +72 -0
- package/dist/types/components/Button/MucButton.stories.d.ts +26 -0
- package/dist/types/components/Button/MucButton.vue.d.ts +15 -0
- package/package.json +1 -1
- package/src/components/BuisnessHours/BusinessHourType.ts +28 -0
- package/src/components/BuisnessHours/BusinessHours.stories.ts +108 -0
- package/src/components/BuisnessHours/MucBusinessHours.vue +166 -0
- package/src/components/Button/MucButton.stories.ts +8 -0
- package/src/components/Button/MucButton.vue +12 -3
- package/src/components/Card/MucCard.stories.ts +1 -1
- package/src/components/Card/MucCardContainer.stories.ts +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, computed as d, openBlock as o, createElementBlock as i, createElementVNode as t, normalizeClass as b, renderSlot as c, createCommentVNode as g, toDisplayString as _, pushScopeId as I, popScopeId as B, useSlots as A, createTextVNode as m, Fragment as M, renderList as S, createBlock as O, unref as R, createSlots as T, withCtx as f } from "vue";
|
|
2
2
|
const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PURE__ */ t("svg", { class: "icon" }, [
|
|
3
3
|
/* @__PURE__ */ t("use", { href: "#icon-information" })
|
|
4
|
-
], -1), H = /* @__PURE__ */
|
|
4
|
+
], -1), H = /* @__PURE__ */ h({
|
|
5
5
|
__name: "MucBanner",
|
|
6
6
|
props: {
|
|
7
7
|
type: { default: "info" }
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
const e = a, s =
|
|
10
|
+
const e = a, s = d(() => {
|
|
11
11
|
switch (e.type) {
|
|
12
12
|
case "info":
|
|
13
13
|
return "m-banner--info";
|
|
@@ -18,7 +18,7 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
18
18
|
default:
|
|
19
19
|
return "m-banner--info";
|
|
20
20
|
}
|
|
21
|
-
}), n =
|
|
21
|
+
}), n = d(() => {
|
|
22
22
|
switch (e.type) {
|
|
23
23
|
case "info":
|
|
24
24
|
return "dialog";
|
|
@@ -29,7 +29,7 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
29
29
|
default:
|
|
30
30
|
return "dialog";
|
|
31
31
|
}
|
|
32
|
-
}),
|
|
32
|
+
}), l = d(() => {
|
|
33
33
|
switch (e.type) {
|
|
34
34
|
case "info":
|
|
35
35
|
return "Information";
|
|
@@ -41,17 +41,17 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
41
41
|
return "Information";
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
return (
|
|
44
|
+
return (u, p) => (o(), i("div", null, [
|
|
45
45
|
t("div", null, [
|
|
46
46
|
t("div", {
|
|
47
|
-
class:
|
|
47
|
+
class: b(["m-banner", s.value]),
|
|
48
48
|
role: n.value,
|
|
49
|
-
"aria-label":
|
|
49
|
+
"aria-label": l.value
|
|
50
50
|
}, [
|
|
51
51
|
t("div", P, [
|
|
52
52
|
D,
|
|
53
53
|
t("p", null, [
|
|
54
|
-
|
|
54
|
+
c(u.$slots, "default")
|
|
55
55
|
])
|
|
56
56
|
])
|
|
57
57
|
], 10, L)
|
|
@@ -62,16 +62,17 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
62
62
|
key: 0,
|
|
63
63
|
"aria-hidden": "true",
|
|
64
64
|
class: "m-button__icon"
|
|
65
|
-
},
|
|
65
|
+
}, V = ["xlink:href"], W = /* @__PURE__ */ h({
|
|
66
66
|
__name: "MucButton",
|
|
67
67
|
props: {
|
|
68
68
|
variant: { default: "primary" },
|
|
69
69
|
disabled: { type: Boolean, default: !1 },
|
|
70
|
-
icon: {}
|
|
70
|
+
icon: {},
|
|
71
|
+
iconAnimated: { type: Boolean, default: !1 }
|
|
71
72
|
},
|
|
72
73
|
emits: ["click"],
|
|
73
74
|
setup(a, { emit: e }) {
|
|
74
|
-
const s = a, n = e,
|
|
75
|
+
const s = a, n = e, l = d(() => {
|
|
75
76
|
switch (s.variant) {
|
|
76
77
|
case "secondary":
|
|
77
78
|
return "m-button--secondary";
|
|
@@ -80,34 +81,34 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
80
81
|
default:
|
|
81
82
|
return "m-button--primary";
|
|
82
83
|
}
|
|
83
|
-
}), d = () => {
|
|
84
|
+
}), u = d(() => s.iconAnimated ? "m-button--animated-right" : ""), p = () => {
|
|
84
85
|
n("click");
|
|
85
86
|
};
|
|
86
|
-
return (
|
|
87
|
-
onClick:
|
|
88
|
-
disabled:
|
|
89
|
-
class:
|
|
87
|
+
return (r, $) => (o(), i("button", {
|
|
88
|
+
onClick: p,
|
|
89
|
+
disabled: r.disabled,
|
|
90
|
+
class: b(["m-button", [l.value, u.value]])
|
|
90
91
|
}, [
|
|
91
92
|
t("span", null, [
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
c(r.$slots, "default"),
|
|
94
|
+
r.icon ? (o(), i("svg", N, [
|
|
94
95
|
t("use", {
|
|
95
|
-
"xlink:href": "#icon-" +
|
|
96
|
-
}, null, 8,
|
|
96
|
+
"xlink:href": "#icon-" + r.icon
|
|
97
|
+
}, null, 8, V)
|
|
97
98
|
])) : g("", !0)
|
|
98
99
|
])
|
|
99
100
|
], 10, j));
|
|
100
101
|
}
|
|
101
|
-
}),
|
|
102
|
+
}), F = ["aria-label"], x = { class: "m-callout__inner" }, z = { class: "m-callout__icon" }, U = {
|
|
102
103
|
"aria-hidden": "true",
|
|
103
104
|
class: "icon"
|
|
104
|
-
}, X = ["xlink:href"], q = { class: "m-callout__body" }, G = { class: "m-callout__body__inner" }, J = { class: "m-callout__headline" }, K = { class: "m-callout__content" }, Q = /* @__PURE__ */
|
|
105
|
+
}, X = ["xlink:href"], q = { class: "m-callout__body" }, G = { class: "m-callout__body__inner" }, J = { class: "m-callout__headline" }, K = { class: "m-callout__content" }, Q = /* @__PURE__ */ h({
|
|
105
106
|
__name: "MucCallout",
|
|
106
107
|
props: {
|
|
107
108
|
type: { default: "info" }
|
|
108
109
|
},
|
|
109
110
|
setup(a) {
|
|
110
|
-
const e = a, s =
|
|
111
|
+
const e = a, s = d(() => {
|
|
111
112
|
switch (e.type) {
|
|
112
113
|
case "error":
|
|
113
114
|
return "warning";
|
|
@@ -116,7 +117,7 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
116
117
|
default:
|
|
117
118
|
return "information";
|
|
118
119
|
}
|
|
119
|
-
}), n =
|
|
120
|
+
}), n = d(() => {
|
|
120
121
|
switch (e.type) {
|
|
121
122
|
case "error":
|
|
122
123
|
return "m-callout--error";
|
|
@@ -127,7 +128,7 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
127
128
|
default:
|
|
128
129
|
return "m-callout--default";
|
|
129
130
|
}
|
|
130
|
-
}),
|
|
131
|
+
}), l = d(() => {
|
|
131
132
|
switch (e.type) {
|
|
132
133
|
case "success":
|
|
133
134
|
return "Erfolgreich";
|
|
@@ -139,14 +140,14 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
139
140
|
return "Information";
|
|
140
141
|
}
|
|
141
142
|
});
|
|
142
|
-
return (
|
|
143
|
-
class:
|
|
144
|
-
"aria-label":
|
|
143
|
+
return (u, p) => (o(), i("div", {
|
|
144
|
+
class: b(["m-callout", n.value]),
|
|
145
|
+
"aria-label": l.value
|
|
145
146
|
}, [
|
|
146
147
|
t("div", x, [
|
|
147
148
|
t("div", z, [
|
|
148
|
-
|
|
149
|
-
(o(),
|
|
149
|
+
c(u.$slots, "icon", {}, () => [
|
|
150
|
+
(o(), i("svg", U, [
|
|
150
151
|
t("use", {
|
|
151
152
|
"xlink:href": `#icon-${s.value}`
|
|
152
153
|
}, null, 8, X)
|
|
@@ -156,27 +157,27 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
156
157
|
t("div", q, [
|
|
157
158
|
t("div", G, [
|
|
158
159
|
t("div", J, [
|
|
159
|
-
|
|
160
|
+
c(u.$slots, "header", {}, void 0, !0)
|
|
160
161
|
]),
|
|
161
162
|
t("div", K, [
|
|
162
163
|
t("p", null, [
|
|
163
|
-
|
|
164
|
+
c(u.$slots, "content", { class: "m-callout__content" }, void 0, !0)
|
|
164
165
|
])
|
|
165
166
|
])
|
|
166
167
|
])
|
|
167
168
|
])
|
|
168
169
|
])
|
|
169
|
-
], 10,
|
|
170
|
+
], 10, F));
|
|
170
171
|
}
|
|
171
|
-
}),
|
|
172
|
+
}), k = (a, e) => {
|
|
172
173
|
const s = a.__vccOpts || a;
|
|
173
|
-
for (const [n,
|
|
174
|
-
s[n] =
|
|
174
|
+
for (const [n, l] of e)
|
|
175
|
+
s[n] = l;
|
|
175
176
|
return s;
|
|
176
|
-
}, Y = /* @__PURE__ */
|
|
177
|
+
}, Y = /* @__PURE__ */ k(Q, [["__scopeId", "data-v-efad4956"]]), Z = (a) => (I("data-v-acf0a1dd"), a = a(), B(), a), tt = { class: "card-content" }, et = { class: "card-header" }, nt = {
|
|
177
178
|
key: 0,
|
|
178
179
|
class: "card-tagline"
|
|
179
|
-
}, st = /* @__PURE__ */ Z(() => /* @__PURE__ */ t("div", { class: "muc-divider" }, null, -1)), at = /* @__PURE__ */
|
|
180
|
+
}, st = /* @__PURE__ */ Z(() => /* @__PURE__ */ t("div", { class: "muc-divider" }, null, -1)), at = /* @__PURE__ */ h({
|
|
180
181
|
__name: "MucCard",
|
|
181
182
|
props: {
|
|
182
183
|
title: {},
|
|
@@ -185,33 +186,33 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
185
186
|
emits: ["click"],
|
|
186
187
|
setup(a, { emit: e }) {
|
|
187
188
|
const s = e;
|
|
188
|
-
return (n,
|
|
189
|
+
return (n, l) => (o(), i("div", {
|
|
189
190
|
class: "card",
|
|
190
|
-
onClick:
|
|
191
|
+
onClick: l[0] || (l[0] = (u) => s("click", u))
|
|
191
192
|
}, [
|
|
192
193
|
t("div", tt, [
|
|
193
194
|
t("div", et, [
|
|
194
|
-
|
|
195
|
+
c(n.$slots, "headerPrefix", {}, void 0, !0),
|
|
195
196
|
t("div", null, [
|
|
196
|
-
n.tagline ? (o(),
|
|
197
|
+
n.tagline ? (o(), i("div", nt, _(n.tagline), 1)) : g("", !0),
|
|
197
198
|
t("div", null, [
|
|
198
|
-
t("h3", null,
|
|
199
|
+
t("h3", null, _(n.title), 1)
|
|
199
200
|
])
|
|
200
201
|
])
|
|
201
202
|
]),
|
|
202
203
|
st,
|
|
203
|
-
|
|
204
|
+
c(n.$slots, "content", {}, void 0, !0)
|
|
204
205
|
])
|
|
205
206
|
]));
|
|
206
207
|
}
|
|
207
|
-
}), ot = /* @__PURE__ */
|
|
208
|
+
}), ot = /* @__PURE__ */ k(at, [["__scopeId", "data-v-acf0a1dd"]]), it = { class: "container card-container" }, rt = /* @__PURE__ */ h({
|
|
208
209
|
__name: "MucCardContainer",
|
|
209
210
|
setup(a) {
|
|
210
|
-
return (e, s) => (o(),
|
|
211
|
-
|
|
211
|
+
return (e, s) => (o(), i("div", it, [
|
|
212
|
+
c(e.$slots, "default", {}, void 0, !0)
|
|
212
213
|
]));
|
|
213
214
|
}
|
|
214
|
-
}), ct = /* @__PURE__ */
|
|
215
|
+
}), ct = /* @__PURE__ */ k(rt, [["__scopeId", "data-v-6740df8f"]]), lt = { class: "m-comment__head" }, dt = { class: "m-comment__initials" }, ut = { class: "m-comment__info" }, _t = { class: "m-comment__author" }, mt = { key: 0 }, ht = { class: "m-comment__author" }, pt = { class: "m-comment__date" }, vt = ["aria-label"], ft = /* @__PURE__ */ t("svg", {
|
|
215
216
|
"aria-hidden": "true",
|
|
216
217
|
class: "icon"
|
|
217
218
|
}, [
|
|
@@ -235,74 +236,74 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
235
236
|
/* @__PURE__ */ t("use", { "xlink:href": "#icon-solid-star" })
|
|
236
237
|
], -1), Ct = [
|
|
237
238
|
kt
|
|
238
|
-
], Mt = { class: "m-star-rating__numeric" }, St = { class: "m-comment__body" }, wt = { class: "m-comment__headline" }, Et = { class: "m-comment__text" }, It = "de-DE", Bt = 0.2,
|
|
239
|
+
], Mt = { class: "m-star-rating__numeric" }, St = { class: "m-comment__body" }, wt = { class: "m-comment__headline" }, Et = { class: "m-comment__text" }, It = "de-DE", Bt = 0.2, At = 0.8, y = 5, E = /* @__PURE__ */ h({
|
|
239
240
|
__name: "MucComment",
|
|
240
241
|
props: {
|
|
241
242
|
rating: {},
|
|
242
243
|
variant: { default: "listing" }
|
|
243
244
|
},
|
|
244
245
|
setup(a) {
|
|
245
|
-
const e =
|
|
246
|
+
const e = A(), s = a, n = d(() => !!e.date), l = d(() => s.variant === "slider" ? "m-comment--slider" : "m-comment--listing"), u = d(() => s.rating.toLocaleString(It.valueOf(), {
|
|
246
247
|
minimumFractionDigits: 1
|
|
247
|
-
})),
|
|
248
|
-
const
|
|
249
|
-
let
|
|
250
|
-
return s.rating !== 0 && s.rating !==
|
|
251
|
-
fullStars:
|
|
248
|
+
})), p = d(() => {
|
|
249
|
+
const r = +(s.rating % 1).toFixed(1);
|
|
250
|
+
let $ = Math.min(Math.floor(s.rating), y), v = Math.floor(y - s.rating), C = !1;
|
|
251
|
+
return s.rating !== 0 && s.rating !== y && (r <= Bt ? v++ : r >= At ? $++ : C = !0), {
|
|
252
|
+
fullStars: $,
|
|
252
253
|
emptyStars: v,
|
|
253
254
|
isHalfStar: C
|
|
254
255
|
};
|
|
255
256
|
});
|
|
256
|
-
return (
|
|
257
|
-
class:
|
|
257
|
+
return (r, $) => (o(), i("div", {
|
|
258
|
+
class: b(["m-comment", l.value])
|
|
258
259
|
}, [
|
|
259
260
|
t("div", lt, [
|
|
260
261
|
t("div", dt, [
|
|
261
|
-
|
|
262
|
+
c(r.$slots, "initials")
|
|
262
263
|
]),
|
|
263
264
|
t("div", ut, [
|
|
264
265
|
t("span", _t, [
|
|
265
|
-
|
|
266
|
+
c(r.$slots, "author")
|
|
266
267
|
]),
|
|
267
|
-
n.value ? (o(),
|
|
268
|
+
n.value ? (o(), i("span", mt, [
|
|
268
269
|
t("span", ht, [
|
|
269
|
-
|
|
270
|
-
|
|
270
|
+
m(" "),
|
|
271
|
+
c(r.$slots, "datePrefix")
|
|
271
272
|
]),
|
|
272
273
|
t("span", pt, [
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
m(" "),
|
|
275
|
+
c(r.$slots, "date")
|
|
275
276
|
])
|
|
276
277
|
])) : g("", !0),
|
|
277
278
|
t("div", {
|
|
278
279
|
class: "m-star-rating",
|
|
279
280
|
role: "img",
|
|
280
|
-
"aria-label": `Bewertung: ${
|
|
281
|
+
"aria-label": `Bewertung: ${r.rating} von ${y} Sternen`
|
|
281
282
|
}, [
|
|
282
|
-
(o(!0),
|
|
283
|
+
(o(!0), i(M, null, S(p.value.fullStars, (v) => (o(), i("div", {
|
|
283
284
|
key: v,
|
|
284
285
|
class: "m-star-rating__item m-star-rating__item--full"
|
|
285
286
|
}, gt))), 128)),
|
|
286
|
-
|
|
287
|
-
(o(!0),
|
|
287
|
+
p.value.isHalfStar ? (o(), i("div", $t, bt)) : g("", !0),
|
|
288
|
+
(o(!0), i(M, null, S(p.value.emptyStars, (v) => (o(), i("div", {
|
|
288
289
|
key: v,
|
|
289
290
|
class: "m-star-rating__item"
|
|
290
291
|
}, Ct))), 128)),
|
|
291
|
-
t("div", Mt,
|
|
292
|
+
t("div", Mt, _(u.value), 1)
|
|
292
293
|
], 8, vt)
|
|
293
294
|
])
|
|
294
295
|
]),
|
|
295
296
|
t("div", St, [
|
|
296
297
|
t("div", wt, [
|
|
297
|
-
|
|
298
|
+
c(r.$slots, "headline")
|
|
298
299
|
]),
|
|
299
300
|
t("div", Et, [
|
|
300
|
-
|
|
301
|
+
c(r.$slots, "text")
|
|
301
302
|
])
|
|
302
303
|
])
|
|
303
304
|
], 2));
|
|
304
305
|
}
|
|
305
|
-
}),
|
|
306
|
+
}), Ot = " ", Rt = /* @__PURE__ */ h({
|
|
306
307
|
__name: "MucCommentText",
|
|
307
308
|
props: {
|
|
308
309
|
datePrefix: { default: "am" },
|
|
@@ -315,38 +316,38 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
315
316
|
variant: { default: "listing" }
|
|
316
317
|
},
|
|
317
318
|
setup(a) {
|
|
318
|
-
const e = a, s =
|
|
319
|
-
return (n,
|
|
319
|
+
const e = a, s = d(() => ((e.initials ?? e.author.split(Ot).map((n) => n.charAt(0)).join("")).match(/^.|.$/g) ?? [""]).join(""));
|
|
320
|
+
return (n, l) => (o(), O(R(E), {
|
|
320
321
|
rating: n.rating,
|
|
321
322
|
variant: n.variant
|
|
322
|
-
},
|
|
323
|
+
}, T({
|
|
323
324
|
initials: f(() => [
|
|
324
|
-
|
|
325
|
+
m(_(s.value), 1)
|
|
325
326
|
]),
|
|
326
327
|
datePrefix: f(() => [
|
|
327
|
-
|
|
328
|
+
m("am")
|
|
328
329
|
]),
|
|
329
330
|
author: f(() => [
|
|
330
|
-
|
|
331
|
+
m(_(n.author), 1)
|
|
331
332
|
]),
|
|
332
333
|
headline: f(() => [
|
|
333
|
-
|
|
334
|
+
m(_(n.headline), 1)
|
|
334
335
|
]),
|
|
335
336
|
text: f(() => [
|
|
336
|
-
|
|
337
|
+
m(_(n.text), 1)
|
|
337
338
|
]),
|
|
338
339
|
_: 2
|
|
339
340
|
}, [
|
|
340
341
|
n.date ? {
|
|
341
342
|
name: "date",
|
|
342
343
|
fn: f(() => [
|
|
343
|
-
|
|
344
|
+
m(_(n.date), 1)
|
|
344
345
|
]),
|
|
345
346
|
key: "0"
|
|
346
347
|
} : void 0
|
|
347
348
|
]), 1032, ["rating", "variant"]));
|
|
348
349
|
}
|
|
349
|
-
}),
|
|
350
|
+
}), Tt = {
|
|
350
351
|
class: "m-intro m-intro-static-image",
|
|
351
352
|
style: { "background-color": "var(--color-neutrals-blue-xlight)" }
|
|
352
353
|
}, Lt = { class: "container" }, Pt = { style: { width: "66.6%" } }, Dt = {
|
|
@@ -355,7 +356,7 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
355
356
|
}, Ht = { class: "m-intro-vertical__title" }, jt = {
|
|
356
357
|
key: 0,
|
|
357
358
|
class: "muc-divider"
|
|
358
|
-
}, Nt = { class: "m-intro-vertical__content" },
|
|
359
|
+
}, Nt = { class: "m-intro-vertical__content" }, Vt = { style: { "padding-bottom": "32px" } }, Wt = /* @__PURE__ */ h({
|
|
359
360
|
__name: "MucIntro",
|
|
360
361
|
props: {
|
|
361
362
|
title: {},
|
|
@@ -363,33 +364,33 @@ const L = ["role", "aria-label"], P = { class: "container-fluid" }, D = /* @__PU
|
|
|
363
364
|
divider: { type: Boolean }
|
|
364
365
|
},
|
|
365
366
|
setup(a) {
|
|
366
|
-
return (e, s) => (o(),
|
|
367
|
+
return (e, s) => (o(), i("div", Tt, [
|
|
367
368
|
t("div", Lt, [
|
|
368
369
|
t("div", Pt, [
|
|
369
370
|
t("div", null, [
|
|
370
|
-
e.tagline ? (o(),
|
|
371
|
-
t("h1", Ht,
|
|
371
|
+
e.tagline ? (o(), i("p", Dt, _(e.tagline), 1)) : g("", !0),
|
|
372
|
+
t("h1", Ht, _(e.title), 1)
|
|
372
373
|
]),
|
|
373
|
-
e.divider ? (o(),
|
|
374
|
+
e.divider ? (o(), i("div", jt)) : g("", !0),
|
|
374
375
|
t("div", Nt, [
|
|
375
|
-
t("p",
|
|
376
|
-
|
|
376
|
+
t("p", Vt, [
|
|
377
|
+
c(e.$slots, "default", {}, void 0, !0)
|
|
377
378
|
])
|
|
378
379
|
])
|
|
379
380
|
])
|
|
380
381
|
])
|
|
381
382
|
]));
|
|
382
383
|
}
|
|
383
|
-
}),
|
|
384
|
+
}), Ft = /* @__PURE__ */ k(Wt, [["__scopeId", "data-v-3957c1bd"]]), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
384
385
|
__proto__: null,
|
|
385
386
|
MucBanner: H,
|
|
386
|
-
MucButton:
|
|
387
|
+
MucButton: W,
|
|
387
388
|
MucCallout: Y,
|
|
388
389
|
MucCard: ot,
|
|
389
390
|
MucCardContainer: ct,
|
|
390
391
|
MucComment: E,
|
|
391
|
-
MucCommentText:
|
|
392
|
-
MucIntro:
|
|
392
|
+
MucCommentText: Rt,
|
|
393
|
+
MucIntro: Ft
|
|
393
394
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
394
395
|
function xt(a) {
|
|
395
396
|
for (const e in w)
|
|
@@ -398,12 +399,12 @@ function xt(a) {
|
|
|
398
399
|
const Ut = { install: xt };
|
|
399
400
|
export {
|
|
400
401
|
H as MucBanner,
|
|
401
|
-
|
|
402
|
+
W as MucButton,
|
|
402
403
|
Y as MucCallout,
|
|
403
404
|
ot as MucCard,
|
|
404
405
|
ct as MucCardContainer,
|
|
405
406
|
E as MucComment,
|
|
406
|
-
|
|
407
|
-
|
|
407
|
+
Rt as MucCommentText,
|
|
408
|
+
Ft as MucIntro,
|
|
408
409
|
Ut as default
|
|
409
410
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shorthand notation of all seven days in german.
|
|
3
|
+
*
|
|
4
|
+
* @typedef {"Mo" | "Di" | "Mi" | "Do" | "Fr" | "Sa" | "So"} WeekDays
|
|
5
|
+
*/
|
|
6
|
+
type WeekDays = "Mo" | "Di" | "Mi" | "Do" | "Fr" | "Sa" | "So";
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {Object} OpeningHour
|
|
9
|
+
* @property {string} from - The start time of the opening period (in 'HH:mm' format).
|
|
10
|
+
* @property {string} to - The end time of the opening period (in 'HH:mm' format).
|
|
11
|
+
*/
|
|
12
|
+
type OpeningHour = {
|
|
13
|
+
from: string;
|
|
14
|
+
to: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {Object} BusinessHourType
|
|
18
|
+
* @property {WeekDays} weekDay - The day of the week for which the opening hours apply.
|
|
19
|
+
* @property {OpeningHour[]} openingHours - A list of opening hours for the specified day of the week.
|
|
20
|
+
*/
|
|
21
|
+
type BusinessHourType = {
|
|
22
|
+
weekDay: WeekDays;
|
|
23
|
+
openingHours: OpeningHour[];
|
|
24
|
+
};
|
|
25
|
+
export type { BusinessHourType, OpeningHour, WeekDays };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: {
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
icon: {
|
|
5
|
+
type: import("vue").PropType<string>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
businessHours: {
|
|
9
|
+
type: import("vue").PropType<import("./BusinessHourType.js").BusinessHourType[]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
toggleable: {
|
|
13
|
+
type: import("vue").PropType<boolean>;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
icon: {
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
businessHours: {
|
|
22
|
+
type: import("vue").PropType<import("./BusinessHourType.js").BusinessHourType[]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
toggleable: {
|
|
26
|
+
type: import("vue").PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
icon: string;
|
|
31
|
+
toggleable: boolean;
|
|
32
|
+
}, true, {}, {}, {
|
|
33
|
+
P: {};
|
|
34
|
+
B: {};
|
|
35
|
+
D: {};
|
|
36
|
+
C: {};
|
|
37
|
+
M: {};
|
|
38
|
+
Defaults: {};
|
|
39
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
icon: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
businessHours: {
|
|
45
|
+
type: import("vue").PropType<import("./BusinessHourType.js").BusinessHourType[]>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
toggleable: {
|
|
49
|
+
type: import("vue").PropType<boolean>;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}>>, {}, {}, {}, {}, {
|
|
53
|
+
icon: string;
|
|
54
|
+
toggleable: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
__isFragment?: undefined;
|
|
57
|
+
__isTeleport?: undefined;
|
|
58
|
+
__isSuspense?: undefined;
|
|
59
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
icon: {
|
|
61
|
+
type: import("vue").PropType<string>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
businessHours: {
|
|
65
|
+
type: import("vue").PropType<import("./BusinessHourType.js").BusinessHourType[]>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
toggleable: {
|
|
69
|
+
type: import("vue").PropType<boolean>;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
73
|
+
icon: string;
|
|
74
|
+
toggleable: boolean;
|
|
75
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
76
|
+
$slots: Readonly<{
|
|
77
|
+
hint(): any;
|
|
78
|
+
}> & {
|
|
79
|
+
hint(): any;
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
title: string;
|
|
83
|
+
tags: string[];
|
|
84
|
+
parameters: {
|
|
85
|
+
docs: {
|
|
86
|
+
description: {
|
|
87
|
+
component: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export default _default;
|
|
93
|
+
export declare const Default: {
|
|
94
|
+
args: {
|
|
95
|
+
businessHours: {
|
|
96
|
+
weekDay: string;
|
|
97
|
+
openingHours: {
|
|
98
|
+
from: string;
|
|
99
|
+
to: string;
|
|
100
|
+
}[];
|
|
101
|
+
}[];
|
|
102
|
+
toggleable: boolean;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export declare const Fixed: {
|
|
106
|
+
args: {
|
|
107
|
+
toggleable: boolean;
|
|
108
|
+
businessHours: {
|
|
109
|
+
weekDay: string;
|
|
110
|
+
openingHours: {
|
|
111
|
+
from: string;
|
|
112
|
+
to: string;
|
|
113
|
+
}[];
|
|
114
|
+
}[];
|
|
115
|
+
};
|
|
116
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { BusinessHourType } from "./BusinessHourType";
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
+
/**
|
|
4
|
+
* This array includes all the opening hours for all days of the week.
|
|
5
|
+
*/
|
|
6
|
+
businessHours: BusinessHourType[];
|
|
7
|
+
/**
|
|
8
|
+
* Lets you choose between the toggleable and fixed state of the component.
|
|
9
|
+
* In the fixed state, no toggle button will be shown.
|
|
10
|
+
*/
|
|
11
|
+
toggleable?: boolean | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Choose an icon for the toggle button. The default if none is given is the time icon.
|
|
14
|
+
*/
|
|
15
|
+
icon?: string | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
icon: string;
|
|
18
|
+
toggleable: boolean;
|
|
19
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
20
|
+
/**
|
|
21
|
+
* This array includes all the opening hours for all days of the week.
|
|
22
|
+
*/
|
|
23
|
+
businessHours: BusinessHourType[];
|
|
24
|
+
/**
|
|
25
|
+
* Lets you choose between the toggleable and fixed state of the component.
|
|
26
|
+
* In the fixed state, no toggle button will be shown.
|
|
27
|
+
*/
|
|
28
|
+
toggleable?: boolean | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Choose an icon for the toggle button. The default if none is given is the time icon.
|
|
31
|
+
*/
|
|
32
|
+
icon?: string | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
icon: string;
|
|
35
|
+
toggleable: boolean;
|
|
36
|
+
}>>>, {
|
|
37
|
+
icon: string;
|
|
38
|
+
toggleable: boolean;
|
|
39
|
+
}, {}>, Readonly<{
|
|
40
|
+
/**
|
|
41
|
+
* Display a hint beneath all the opening hours.
|
|
42
|
+
*/
|
|
43
|
+
hint(): any;
|
|
44
|
+
}> & {
|
|
45
|
+
/**
|
|
46
|
+
* Display a hint beneath all the opening hours.
|
|
47
|
+
*/
|
|
48
|
+
hint(): any;
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_WithDefaults<P, D> = {
|
|
52
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
53
|
+
default: D[K];
|
|
54
|
+
}> : P[K];
|
|
55
|
+
};
|
|
56
|
+
type __VLS_Prettify<T> = {
|
|
57
|
+
[K in keyof T]: T[K];
|
|
58
|
+
} & {};
|
|
59
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
65
|
+
type __VLS_TypePropsToOption<T> = {
|
|
66
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
+
} : {
|
|
69
|
+
type: import('vue').PropType<T[K]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
};
|