@mirweb/mir-web-components 0.17.50 → 0.17.52
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/molecules/card/card.vue.d.ts +1 -1
- package/dist/components/molecules/modal/modal.vue.d.ts +1 -1
- package/dist/mir-web-components.cjs.js +1 -1
- package/dist/mir-web-components.css +1 -1
- package/dist/mir-web-components.es.js +49 -42
- package/dist/mir-web-components.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, computed as L, openBlock as s, createElementBlock as i, normalizeClass as h, toDisplayString as n, createElementVNode as t, renderSlot as _, pushScopeId as E, popScopeId as R, createTextVNode as K, ref as I, withDirectives as
|
|
1
|
+
import { defineComponent as g, computed as L, openBlock as s, createElementBlock as i, normalizeClass as h, toDisplayString as n, createElementVNode as t, renderSlot as _, pushScopeId as E, popScopeId as R, createTextVNode as K, ref as I, withDirectives as Y, Fragment as M, renderList as O, vShow as Z, normalizeProps as P, guardReactiveProps as F, toRefs as ye, mergeProps as te, createVNode as w, Transition as $e, withCtx as k, withModifiers as ne, createBlock as C, createCommentVNode as m, watchEffect as de, withKeys as ke, useSlots as we, normalizeStyle as ae, isRef as ie, unref as V, onMounted as ce, watch as re, onUnmounted as Se } from "vue";
|
|
2
2
|
const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
3
3
|
__name: "button",
|
|
4
4
|
props: {
|
|
@@ -24,7 +24,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
24
24
|
for (const [o, l] of a)
|
|
25
25
|
r[o] = l;
|
|
26
26
|
return r;
|
|
27
|
-
},
|
|
27
|
+
}, X = /* @__PURE__ */ v(Ie, [["__scopeId", "data-v-a3e038ec"]]), qe = (e) => (E("data-v-42c44141"), e = e(), R(), e), Te = ["id", "name", "value", "disabled", "required"], Le = ["for"], Ve = /* @__PURE__ */ qe(() => /* @__PURE__ */ t("span", { class: "checkmark" }, null, -1)), Ce = /* @__PURE__ */ g({
|
|
28
28
|
__name: "checkbox",
|
|
29
29
|
props: {
|
|
30
30
|
name: { default: "checkbox" },
|
|
@@ -104,7 +104,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
104
104
|
const r = {
|
|
105
105
|
primary: "dropdown-dark-bg-primary",
|
|
106
106
|
dark: "dropdown-dark dropdown-dark-bg-dark"
|
|
107
|
-
}, o = e, l = L(() => r[o.variant]), u = I(null), c = I(null), p = I([]), S = I(0), f = I(""), y = I(!0), q = I(0),
|
|
107
|
+
}, o = e, l = L(() => r[o.variant]), u = I(null), c = I(null), p = I([]), S = I(0), f = I(""), y = I(!0), q = I(0), x = a, B = L(() => {
|
|
108
108
|
const d = o.options.find(
|
|
109
109
|
(b) => b.value === o.modelValue
|
|
110
110
|
);
|
|
@@ -119,13 +119,13 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
119
119
|
document.body.removeEventListener("click", d.clickOutsideEvent);
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function ee(d) {
|
|
123
|
+
x("update:modelValue", d);
|
|
124
124
|
}
|
|
125
125
|
function H(d) {
|
|
126
126
|
var $;
|
|
127
127
|
const b = d.target;
|
|
128
|
-
b.getAttribute("role") === "option" && (W(b),
|
|
128
|
+
b.getAttribute("role") === "option" && (W(b), Q(), ($ = u.value) == null || $.focus());
|
|
129
129
|
}
|
|
130
130
|
function le(d) {
|
|
131
131
|
var $;
|
|
@@ -151,7 +151,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
151
151
|
break;
|
|
152
152
|
case "Enter":
|
|
153
153
|
case "Escape":
|
|
154
|
-
d.preventDefault(),
|
|
154
|
+
d.preventDefault(), Q(), ($ = u.value) == null || $.focus();
|
|
155
155
|
break;
|
|
156
156
|
default: {
|
|
157
157
|
const T = me(b);
|
|
@@ -209,7 +209,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
209
209
|
if (d.setAttribute("aria-selected", "true"), ($ = c.value) == null || $.setAttribute(
|
|
210
210
|
"aria-activedescendant",
|
|
211
211
|
b || ""
|
|
212
|
-
),
|
|
212
|
+
), ee(b || ""), c.value && c.value.scrollHeight > c.value.clientHeight) {
|
|
213
213
|
const N = c.value.clientHeight + c.value.scrollTop, U = d.offsetTop + d.offsetHeight;
|
|
214
214
|
U > N ? c.value.scrollTop = U - ((T = c.value) == null ? void 0 : T.clientHeight) : d.offsetTop < c.value.scrollTop && (c.value.scrollTop = d.offsetTop);
|
|
215
215
|
}
|
|
@@ -219,7 +219,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
219
219
|
const d = (b = p.value) == null ? void 0 : b[o.options.length - 1];
|
|
220
220
|
W(d);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Q() {
|
|
223
223
|
var d;
|
|
224
224
|
y.value = !0, (d = u.value) == null || d.removeAttribute("aria-expanded");
|
|
225
225
|
}
|
|
@@ -228,7 +228,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
228
228
|
y.value = !1, (d = u.value) == null || d.setAttribute("aria-expanded", "true"), (b = c.value) == null || b.focus();
|
|
229
229
|
}
|
|
230
230
|
function ge() {
|
|
231
|
-
o.disabled || (y.value ? se() :
|
|
231
|
+
o.disabled || (y.value ? se() : Q());
|
|
232
232
|
}
|
|
233
233
|
return (d, b) => (s(), i("div", {
|
|
234
234
|
ref: "listbox",
|
|
@@ -243,7 +243,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
243
243
|
"is-required": d.required
|
|
244
244
|
}, "listbox__label"])
|
|
245
245
|
}, n(d.label), 11, Re),
|
|
246
|
-
|
|
246
|
+
Y((s(), i("div", Ne, [
|
|
247
247
|
t("button", {
|
|
248
248
|
id: `${d.name}-button-label`,
|
|
249
249
|
ref_key: "listboxButton",
|
|
@@ -256,7 +256,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
256
256
|
onClick: ge,
|
|
257
257
|
onKeydown: _e
|
|
258
258
|
}, n(d.modelValue ? B.value : d.placeholder), 43, He),
|
|
259
|
-
|
|
259
|
+
Y(t("ul", {
|
|
260
260
|
ref_key: "listboxNode",
|
|
261
261
|
ref: c,
|
|
262
262
|
"aria-labelledby": `${d.name}-label`,
|
|
@@ -278,10 +278,10 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
278
278
|
role: "option"
|
|
279
279
|
}, n($.label), 9, je))), 128))
|
|
280
280
|
], 40, ze), [
|
|
281
|
-
[
|
|
281
|
+
[Z, !y.value]
|
|
282
282
|
])
|
|
283
283
|
])), [
|
|
284
|
-
[j,
|
|
284
|
+
[j, Q]
|
|
285
285
|
])
|
|
286
286
|
], 8, Ee));
|
|
287
287
|
}
|
|
@@ -446,8 +446,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
446
446
|
name: "nested"
|
|
447
447
|
}, {
|
|
448
448
|
default: k(() => [
|
|
449
|
-
|
|
450
|
-
key: 0,
|
|
449
|
+
Y(t("div", {
|
|
451
450
|
class: h(["overlay", u.searchBar ? "overlay-search" : "overlay-default"]),
|
|
452
451
|
ariaLabel: "modal",
|
|
453
452
|
role: "dialog",
|
|
@@ -460,7 +459,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
460
459
|
}, ["stop"]))
|
|
461
460
|
}, [
|
|
462
461
|
t("div", null, [
|
|
463
|
-
u.searchBar ? m("", !0) : (s(), C(
|
|
462
|
+
u.searchBar ? m("", !0) : (s(), C(X, {
|
|
464
463
|
key: 0,
|
|
465
464
|
"aria-label": "close",
|
|
466
465
|
variant: "close",
|
|
@@ -469,13 +468,15 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
469
468
|
]),
|
|
470
469
|
_(u.$slots, "default", {}, void 0, !0)
|
|
471
470
|
], 2)
|
|
472
|
-
], 2)
|
|
471
|
+
], 2), [
|
|
472
|
+
[Z, u.show]
|
|
473
|
+
])
|
|
473
474
|
]),
|
|
474
475
|
_: 3
|
|
475
476
|
})
|
|
476
477
|
]));
|
|
477
478
|
}
|
|
478
|
-
}), ue = /* @__PURE__ */ v(ut, [["__scopeId", "data-v-
|
|
479
|
+
}), ue = /* @__PURE__ */ v(ut, [["__scopeId", "data-v-80f0fb08"]]), _t = { class: "slider__wrapper" }, pt = { class: "slider__label" }, ht = ["for"], mt = ["aria-label"], vt = { class: "slider__content" }, ft = ["id", "name", "value", "min", "step", "max"], gt = /* @__PURE__ */ g({
|
|
479
480
|
__name: "slider",
|
|
480
481
|
props: {
|
|
481
482
|
label: {},
|
|
@@ -752,7 +753,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
752
753
|
}, null, 8, Ht))
|
|
753
754
|
]));
|
|
754
755
|
}
|
|
755
|
-
}),
|
|
756
|
+
}), J = /* @__PURE__ */ v(zt, [["__scopeId", "data-v-c6a0feb6"]]), jt = { class: "address__wrapper" }, Ut = { class: "address__content" }, Kt = { class: "address__flag" }, Gt = { class: "address__address" }, Wt = { class: "address__name" }, Yt = { key: 0 }, Jt = { class: "address__contact" }, Qt = ["href"], Zt = ["href"], Xt = /* @__PURE__ */ g({
|
|
756
757
|
__name: "address",
|
|
757
758
|
props: {
|
|
758
759
|
name: {},
|
|
@@ -904,7 +905,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
904
905
|
key: 1,
|
|
905
906
|
class: h(["video-card__wrapper", V(r) === !0 ? "vimeoPlaying" : ""])
|
|
906
907
|
}, [
|
|
907
|
-
w(
|
|
908
|
+
w(J, {
|
|
908
909
|
play: V(r),
|
|
909
910
|
"local-video": !0,
|
|
910
911
|
src: c.videoSrc,
|
|
@@ -921,19 +922,25 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
921
922
|
V(a)["card-label"] ? (s(), i("div", ia, [
|
|
922
923
|
_(c.$slots, "card-label")
|
|
923
924
|
])) : m("", !0),
|
|
924
|
-
c.variant === "product" ? (s(), i("
|
|
925
|
+
c.variant === "product" ? (s(), i("div", {
|
|
925
926
|
key: 3,
|
|
926
|
-
class: h(
|
|
927
|
+
class: h([
|
|
928
|
+
"card__headline",
|
|
929
|
+
c.theme === "dark" ? "regular-dark" : "regular-blue"
|
|
930
|
+
]),
|
|
927
931
|
style: { "font-weight": "700" }
|
|
928
|
-
}, n(c.headline), 3)) : (s(), i("
|
|
932
|
+
}, n(c.headline), 3)) : (s(), i("div", {
|
|
929
933
|
key: 4,
|
|
930
|
-
class: h(
|
|
934
|
+
class: h([
|
|
935
|
+
"card__headline",
|
|
936
|
+
c.theme === "dark" ? "regular-dark" : "regular-dark-blue"
|
|
937
|
+
])
|
|
931
938
|
}, n(c.headline), 3)),
|
|
932
939
|
c.variant === "product" ? (s(), i("p", ra, n(c.paragraph), 1)) : m("", !0)
|
|
933
940
|
], 38)
|
|
934
941
|
]));
|
|
935
942
|
}
|
|
936
|
-
}), da = /* @__PURE__ */ v(na, [["__scopeId", "data-v-
|
|
943
|
+
}), da = /* @__PURE__ */ v(na, [["__scopeId", "data-v-fef1c63d"]]), ca = (e) => (E("data-v-bc91c976"), e = e(), R(), e), ua = { class: "event__wrapper" }, _a = { class: "event__headline" }, pa = { class: "event__date-location" }, ha = /* @__PURE__ */ ca(() => /* @__PURE__ */ t("br", null, null, -1)), ma = { class: "event__exhibitor" }, va = /* @__PURE__ */ g({
|
|
937
944
|
__name: "event-card",
|
|
938
945
|
props: {
|
|
939
946
|
eventType: {
|
|
@@ -1210,7 +1217,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
|
|
|
1210
1217
|
})
|
|
1211
1218
|
])) : m("", !0),
|
|
1212
1219
|
l.mediaLarge && l.mediaType === "video" ? (s(), i("div", al, [
|
|
1213
|
-
w(
|
|
1220
|
+
w(J, {
|
|
1214
1221
|
src: l.mediaLarge.src,
|
|
1215
1222
|
"local-video": "",
|
|
1216
1223
|
"aria-label": l.mediaLarge.alt,
|
|
@@ -1515,7 +1522,7 @@ const Hl = /* @__PURE__ */ v(Fl, [["render", Nl], ["__scopeId", "data-v-9d5712e7
|
|
|
1515
1522
|
l.reverse ? "promo__video--reverse" : "promo__video--default"
|
|
1516
1523
|
])
|
|
1517
1524
|
}, [
|
|
1518
|
-
w(
|
|
1525
|
+
w(J, {
|
|
1519
1526
|
src: l.src,
|
|
1520
1527
|
"local-video": "",
|
|
1521
1528
|
"aria-label": l.alt,
|
|
@@ -1990,11 +1997,11 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
|
|
|
1990
1997
|
u.value = !u.value, p("update:burgerState", u.value);
|
|
1991
1998
|
}
|
|
1992
1999
|
let y = I(null), q = I(null);
|
|
1993
|
-
function
|
|
2000
|
+
function x() {
|
|
1994
2001
|
y.value && y.value.blur();
|
|
1995
2002
|
}
|
|
1996
2003
|
return a({
|
|
1997
|
-
defocusSearchButton:
|
|
2004
|
+
defocusSearchButton: x
|
|
1998
2005
|
}), (B, j) => (s(), i("div", gs, [
|
|
1999
2006
|
t("nav", null, [
|
|
2000
2007
|
t("div", bs, [
|
|
@@ -2012,10 +2019,10 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
|
|
|
2012
2019
|
_(B.$slots, "dropdown-title", {}, void 0, !0),
|
|
2013
2020
|
V(c) === !1 ? (s(), i("img", ws)) : (s(), i("img", Ss))
|
|
2014
2021
|
]),
|
|
2015
|
-
|
|
2022
|
+
Y(t("div", Bs, [
|
|
2016
2023
|
_(B.$slots, "dropdown-links", {}, void 0, !0)
|
|
2017
2024
|
], 512), [
|
|
2018
|
-
[
|
|
2025
|
+
[Z, V(c)]
|
|
2019
2026
|
])
|
|
2020
2027
|
], 512),
|
|
2021
2028
|
t("div", Is, [
|
|
@@ -2023,7 +2030,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
|
|
|
2023
2030
|
ref_key: "navSearchButton",
|
|
2024
2031
|
ref: y,
|
|
2025
2032
|
class: "search-icon",
|
|
2026
|
-
onClick: j[0] || (j[0] = (
|
|
2033
|
+
onClick: j[0] || (j[0] = (ee) => {
|
|
2027
2034
|
var H;
|
|
2028
2035
|
return B.$emit("clickSearch"), (H = V(y)) == null ? void 0 : H.blur();
|
|
2029
2036
|
})
|
|
@@ -2050,7 +2057,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
|
|
|
2050
2057
|
ref: q,
|
|
2051
2058
|
class: "search-icon",
|
|
2052
2059
|
"aria-label": "Toggle search",
|
|
2053
|
-
onClick: j[1] || (j[1] = (
|
|
2060
|
+
onClick: j[1] || (j[1] = (ee) => {
|
|
2054
2061
|
var H;
|
|
2055
2062
|
return B.$emit("clickSearch"), (H = V(q)) == null ? void 0 : H.blur();
|
|
2056
2063
|
})
|
|
@@ -2076,7 +2083,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
|
|
|
2076
2083
|
}, null, 8, As)
|
|
2077
2084
|
])
|
|
2078
2085
|
]),
|
|
2079
|
-
|
|
2086
|
+
Y(t("div", Ds, [
|
|
2080
2087
|
t("ul", null, [
|
|
2081
2088
|
_(B.$slots, "mobile-main-nav-items", {}, void 0, !0)
|
|
2082
2089
|
]),
|
|
@@ -2085,7 +2092,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
|
|
|
2085
2092
|
_(B.$slots, "mobile-dropdown-links", {}, void 0, !0)
|
|
2086
2093
|
])
|
|
2087
2094
|
], 512), [
|
|
2088
|
-
[
|
|
2095
|
+
[Z, V(u)]
|
|
2089
2096
|
])
|
|
2090
2097
|
], 2)
|
|
2091
2098
|
])
|
|
@@ -2130,14 +2137,14 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
|
|
|
2130
2137
|
setup(e) {
|
|
2131
2138
|
return (a, r) => (s(), i("div", Us, [
|
|
2132
2139
|
t("div", Ks, [
|
|
2133
|
-
w(
|
|
2140
|
+
w(X, {
|
|
2134
2141
|
disabled: e.isPreviousDisabled,
|
|
2135
2142
|
variant: "previous",
|
|
2136
2143
|
"aria-label": "previous",
|
|
2137
2144
|
onClick: r[0] || (r[0] = (o) => a.$emit("previous"))
|
|
2138
2145
|
}, null, 8, ["disabled"]),
|
|
2139
2146
|
_(a.$slots, "pagination-numbers"),
|
|
2140
|
-
w(
|
|
2147
|
+
w(X, {
|
|
2141
2148
|
disabled: e.isNextDisabled,
|
|
2142
2149
|
variant: "next",
|
|
2143
2150
|
"aria-label": "next",
|
|
@@ -2191,7 +2198,7 @@ const Zs = /* @__PURE__ */ v(Ys, [["render", Qs], ["__scopeId", "data-v-623adb82
|
|
|
2191
2198
|
t("h3", null, n(e.headline), 1)
|
|
2192
2199
|
]),
|
|
2193
2200
|
t("div", ti, [
|
|
2194
|
-
e.videoSrc !== "" ? (s(), C(
|
|
2201
|
+
e.videoSrc !== "" ? (s(), C(J, {
|
|
2195
2202
|
key: 0,
|
|
2196
2203
|
play: "",
|
|
2197
2204
|
"local-video": !0,
|
|
@@ -2308,11 +2315,11 @@ const Zs = /* @__PURE__ */ v(Ys, [["render", Qs], ["__scopeId", "data-v-623adb82
|
|
|
2308
2315
|
}
|
|
2309
2316
|
}), _i = /* @__PURE__ */ v(ui, [["__scopeId", "data-v-8fdfddf2"]]), hi = {
|
|
2310
2317
|
install: (e) => {
|
|
2311
|
-
e.component("AtomButton",
|
|
2318
|
+
e.component("AtomButton", X), e.component("AtomCheckbox", Ae), e.component("AtomChip", Fe), e.component("AtomDropdown", Ke), e.component("AtomImage", A), e.component("AtomLabel", G), e.component("AtomLink", D), e.component("AtomRadioButton", lt), e.component("AtomSelect", dt), e.component("AtomSlider", bt), e.component("AtomTextarea", qt), e.component("AtomTextField", Et), e.component("AtomVideo", J), e.component("MoleculeAddress", xt), e.component("MoleculeBulletList", oa), e.component("MoleculeCard", da), e.component("MoleculeEventCard", fa), e.component("MoleculeModal", ue), e.component("MoleculeTextCard", ka), e.component("BlockFacts", Ca), e.component("BlockFeatures", Ra), e.component("BlockFormScript", Wa), e.component("BlockHeadline", dl), e.component("BlockHero", kl), e.component("BlockImage", xa), e.component("BlockImageGallery", sl), e.component("BlockLogoWall", Cl), e.component("BlockMicroStories", Pl), e.component("BlockPolicy", Hl), e.component("BlockProductHero", oi), e.component("BlockPromo", Zl), e.component("BlockQuote", uo), e.component("BlockRichText", vo), e.component("BlockRichTextColumns", wo), e.component("BlockTimeline", Do), e.component("BlockCardDisplay", Yl), e.component("BlockVimeo", Ro), e.component("BlockPalletJack", _i), e.component("Organism404", Ko), e.component("OrganismFilter", Zo), e.component("OrganismFooter", fs), e.component("OrganismHeader", Ps), e.component("OrganismLanguageSwitcher", js), e.component("OrganismPagination", Ws), e.component("OrganismSearch", Zs);
|
|
2312
2319
|
}
|
|
2313
2320
|
};
|
|
2314
2321
|
export {
|
|
2315
|
-
|
|
2322
|
+
X as AtomButton,
|
|
2316
2323
|
Ae as AtomCheckbox,
|
|
2317
2324
|
Fe as AtomChip,
|
|
2318
2325
|
Ke as AtomDropdown,
|
|
@@ -2324,7 +2331,7 @@ export {
|
|
|
2324
2331
|
bt as AtomSlider,
|
|
2325
2332
|
Et as AtomTextField,
|
|
2326
2333
|
qt as AtomTextarea,
|
|
2327
|
-
|
|
2334
|
+
J as AtomVideo,
|
|
2328
2335
|
Yl as BlockCardDisplay,
|
|
2329
2336
|
Ca as BlockFacts,
|
|
2330
2337
|
Ra as BlockFeatures,
|