@mirweb/mir-web-components 0.17.48 → 0.17.50

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.
@@ -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 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";
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 Q, Fragment as M, renderList as O, vShow as ee, 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
- }, 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({
27
+ }, Z = /* @__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), x = a, B = L(() => {
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 ee(d) {
123
- x("update:modelValue", d);
122
+ function x(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), Q(), ($ = u.value) == null || $.focus());
128
+ b.getAttribute("role") === "option" && (W(b), J(), ($ = 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(), Q(), ($ = u.value) == null || $.focus();
154
+ d.preventDefault(), J(), ($ = 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
- ), ee(b || ""), c.value && c.value.scrollHeight > c.value.clientHeight) {
212
+ ), x(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 Q() {
222
+ function J() {
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() : Q());
231
+ o.disabled || (y.value ? se() : J());
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
- Y((s(), i("div", Ne, [
246
+ Q((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
- Y(t("ul", {
259
+ Q(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
- [Z, !y.value]
281
+ [ee, !y.value]
282
282
  ])
283
283
  ])), [
284
- [j, Q]
284
+ [j, J]
285
285
  ])
286
286
  ], 8, Ee));
287
287
  }
@@ -446,7 +446,8 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
446
446
  name: "nested"
447
447
  }, {
448
448
  default: k(() => [
449
- Y(t("div", {
449
+ u.show ? (s(), i("div", {
450
+ key: 0,
450
451
  class: h(["overlay", u.searchBar ? "overlay-search" : "overlay-default"]),
451
452
  ariaLabel: "modal",
452
453
  role: "dialog",
@@ -459,7 +460,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
459
460
  }, ["stop"]))
460
461
  }, [
461
462
  t("div", null, [
462
- u.searchBar ? m("", !0) : (s(), C(X, {
463
+ u.searchBar ? m("", !0) : (s(), C(Z, {
463
464
  key: 0,
464
465
  "aria-label": "close",
465
466
  variant: "close",
@@ -468,15 +469,13 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
468
469
  ]),
469
470
  _(u.$slots, "default", {}, void 0, !0)
470
471
  ], 2)
471
- ], 2), [
472
- [Z, u.show]
473
- ])
472
+ ], 2)) : m("", !0)
474
473
  ]),
475
474
  _: 3
476
475
  })
477
476
  ]));
478
477
  }
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({
478
+ }), ue = /* @__PURE__ */ v(ut, [["__scopeId", "data-v-cc647ee6"]]), _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({
480
479
  __name: "slider",
481
480
  props: {
482
481
  label: {},
@@ -753,7 +752,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
753
752
  }, null, 8, Ht))
754
753
  ]));
755
754
  }
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({
755
+ }), Y = /* @__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({
757
756
  __name: "address",
758
757
  props: {
759
758
  name: {},
@@ -905,7 +904,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
905
904
  key: 1,
906
905
  class: h(["video-card__wrapper", V(r) === !0 ? "vimeoPlaying" : ""])
907
906
  }, [
908
- w(J, {
907
+ w(Y, {
909
908
  play: V(r),
910
909
  "local-video": !0,
911
910
  src: c.videoSrc,
@@ -1211,7 +1210,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
1211
1210
  })
1212
1211
  ])) : m("", !0),
1213
1212
  l.mediaLarge && l.mediaType === "video" ? (s(), i("div", al, [
1214
- w(J, {
1213
+ w(Y, {
1215
1214
  src: l.mediaLarge.src,
1216
1215
  "local-video": "",
1217
1216
  "aria-label": l.mediaLarge.alt,
@@ -1516,7 +1515,7 @@ const Hl = /* @__PURE__ */ v(Fl, [["render", Nl], ["__scopeId", "data-v-9d5712e7
1516
1515
  l.reverse ? "promo__video--reverse" : "promo__video--default"
1517
1516
  ])
1518
1517
  }, [
1519
- w(J, {
1518
+ w(Y, {
1520
1519
  src: l.src,
1521
1520
  "local-video": "",
1522
1521
  "aria-label": l.alt,
@@ -1568,7 +1567,7 @@ const Hl = /* @__PURE__ */ v(Fl, [["render", Nl], ["__scopeId", "data-v-9d5712e7
1568
1567
  ])
1569
1568
  ], 2));
1570
1569
  }
1571
- }), Zl = /* @__PURE__ */ v(Ql, [["__scopeId", "data-v-7e80a0f0"]]), Xl = (e) => (E("data-v-e3cc8e27"), e = e(), R(), e), xl = { class: "quote__wrapper" }, eo = { class: "quote__content" }, to = /* @__PURE__ */ Xl(() => /* @__PURE__ */ t("p", { class: "quote__quote-mark" }, "“", -1)), ao = { class: "quote__quote" }, lo = { class: "quote__quote-text" }, oo = { class: "quote__author" }, so = {
1570
+ }), Zl = /* @__PURE__ */ v(Ql, [["__scopeId", "data-v-85afa492"]]), Xl = (e) => (E("data-v-e3cc8e27"), e = e(), R(), e), xl = { class: "quote__wrapper" }, eo = { class: "quote__content" }, to = /* @__PURE__ */ Xl(() => /* @__PURE__ */ t("p", { class: "quote__quote-mark" }, "“", -1)), ao = { class: "quote__quote" }, lo = { class: "quote__quote-text" }, oo = { class: "quote__author" }, so = {
1572
1571
  key: 0,
1573
1572
  class: "quote__image"
1574
1573
  }, io = { class: "quote__text" }, ro = { class: "quote__author-name" }, no = { class: "quote__author-title" }, co = /* @__PURE__ */ g({
@@ -1991,11 +1990,11 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
1991
1990
  u.value = !u.value, p("update:burgerState", u.value);
1992
1991
  }
1993
1992
  let y = I(null), q = I(null);
1994
- function x() {
1993
+ function X() {
1995
1994
  y.value && y.value.blur();
1996
1995
  }
1997
1996
  return a({
1998
- defocusSearchButton: x
1997
+ defocusSearchButton: X
1999
1998
  }), (B, j) => (s(), i("div", gs, [
2000
1999
  t("nav", null, [
2001
2000
  t("div", bs, [
@@ -2013,10 +2012,10 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2013
2012
  _(B.$slots, "dropdown-title", {}, void 0, !0),
2014
2013
  V(c) === !1 ? (s(), i("img", ws)) : (s(), i("img", Ss))
2015
2014
  ]),
2016
- Y(t("div", Bs, [
2015
+ Q(t("div", Bs, [
2017
2016
  _(B.$slots, "dropdown-links", {}, void 0, !0)
2018
2017
  ], 512), [
2019
- [Z, V(c)]
2018
+ [ee, V(c)]
2020
2019
  ])
2021
2020
  ], 512),
2022
2021
  t("div", Is, [
@@ -2024,7 +2023,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2024
2023
  ref_key: "navSearchButton",
2025
2024
  ref: y,
2026
2025
  class: "search-icon",
2027
- onClick: j[0] || (j[0] = (ee) => {
2026
+ onClick: j[0] || (j[0] = (x) => {
2028
2027
  var H;
2029
2028
  return B.$emit("clickSearch"), (H = V(y)) == null ? void 0 : H.blur();
2030
2029
  })
@@ -2051,7 +2050,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2051
2050
  ref: q,
2052
2051
  class: "search-icon",
2053
2052
  "aria-label": "Toggle search",
2054
- onClick: j[1] || (j[1] = (ee) => {
2053
+ onClick: j[1] || (j[1] = (x) => {
2055
2054
  var H;
2056
2055
  return B.$emit("clickSearch"), (H = V(q)) == null ? void 0 : H.blur();
2057
2056
  })
@@ -2077,7 +2076,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2077
2076
  }, null, 8, As)
2078
2077
  ])
2079
2078
  ]),
2080
- Y(t("div", Ds, [
2079
+ Q(t("div", Ds, [
2081
2080
  t("ul", null, [
2082
2081
  _(B.$slots, "mobile-main-nav-items", {}, void 0, !0)
2083
2082
  ]),
@@ -2086,7 +2085,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2086
2085
  _(B.$slots, "mobile-dropdown-links", {}, void 0, !0)
2087
2086
  ])
2088
2087
  ], 512), [
2089
- [Z, V(u)]
2088
+ [ee, V(u)]
2090
2089
  ])
2091
2090
  ], 2)
2092
2091
  ])
@@ -2131,14 +2130,14 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2131
2130
  setup(e) {
2132
2131
  return (a, r) => (s(), i("div", Us, [
2133
2132
  t("div", Ks, [
2134
- w(X, {
2133
+ w(Z, {
2135
2134
  disabled: e.isPreviousDisabled,
2136
2135
  variant: "previous",
2137
2136
  "aria-label": "previous",
2138
2137
  onClick: r[0] || (r[0] = (o) => a.$emit("previous"))
2139
2138
  }, null, 8, ["disabled"]),
2140
2139
  _(a.$slots, "pagination-numbers"),
2141
- w(X, {
2140
+ w(Z, {
2142
2141
  disabled: e.isNextDisabled,
2143
2142
  variant: "next",
2144
2143
  "aria-label": "next",
@@ -2192,7 +2191,7 @@ const Zs = /* @__PURE__ */ v(Ys, [["render", Qs], ["__scopeId", "data-v-623adb82
2192
2191
  t("h3", null, n(e.headline), 1)
2193
2192
  ]),
2194
2193
  t("div", ti, [
2195
- e.videoSrc !== "" ? (s(), C(J, {
2194
+ e.videoSrc !== "" ? (s(), C(Y, {
2196
2195
  key: 0,
2197
2196
  play: "",
2198
2197
  "local-video": !0,
@@ -2309,11 +2308,11 @@ const Zs = /* @__PURE__ */ v(Ys, [["render", Qs], ["__scopeId", "data-v-623adb82
2309
2308
  }
2310
2309
  }), _i = /* @__PURE__ */ v(ui, [["__scopeId", "data-v-8fdfddf2"]]), hi = {
2311
2310
  install: (e) => {
2312
- 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);
2311
+ e.component("AtomButton", Z), 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", Y), 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);
2313
2312
  }
2314
2313
  };
2315
2314
  export {
2316
- X as AtomButton,
2315
+ Z as AtomButton,
2317
2316
  Ae as AtomCheckbox,
2318
2317
  Fe as AtomChip,
2319
2318
  Ke as AtomDropdown,
@@ -2325,7 +2324,7 @@ export {
2325
2324
  bt as AtomSlider,
2326
2325
  Et as AtomTextField,
2327
2326
  qt as AtomTextarea,
2328
- J as AtomVideo,
2327
+ Y as AtomVideo,
2329
2328
  Yl as BlockCardDisplay,
2330
2329
  Ca as BlockFacts,
2331
2330
  Ra as BlockFeatures,