@mirweb/mir-web-components 0.17.46 → 0.17.47

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 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";
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
- }, 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({
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), 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 x(d) {
123
- X("update:modelValue", d);
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), J(), ($ = u.value) == null || $.focus());
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(), J(), ($ = u.value) == null || $.focus();
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
- ), x(b || ""), c.value && c.value.scrollHeight > c.value.clientHeight) {
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 J() {
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() : J());
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
- Q((s(), i("div", Ne, [
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
- Q(t("ul", {
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
- [ee, !y.value]
281
+ [Z, !y.value]
282
282
  ])
283
283
  ])), [
284
- [j, 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
- u.show ? (s(), i("div", {
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(Z, {
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)) : m("", !0)
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-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({
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
- }), 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({
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(Y, {
908
+ w(J, {
908
909
  play: V(r),
909
910
  "local-video": !0,
910
911
  src: c.videoSrc,
@@ -1210,7 +1211,7 @@ const Be = ["aria-label"], Ie = /* @__PURE__ */ g({
1210
1211
  })
1211
1212
  ])) : m("", !0),
1212
1213
  l.mediaLarge && l.mediaType === "video" ? (s(), i("div", al, [
1213
- w(Y, {
1214
+ w(J, {
1214
1215
  src: l.mediaLarge.src,
1215
1216
  "local-video": "",
1216
1217
  "aria-label": l.mediaLarge.alt,
@@ -1515,7 +1516,7 @@ const Hl = /* @__PURE__ */ v(Fl, [["render", Nl], ["__scopeId", "data-v-9d5712e7
1515
1516
  l.reverse ? "promo__video--reverse" : "promo__video--default"
1516
1517
  ])
1517
1518
  }, [
1518
- w(Y, {
1519
+ w(J, {
1519
1520
  src: l.src,
1520
1521
  "local-video": "",
1521
1522
  "aria-label": l.alt,
@@ -1990,11 +1991,11 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
1990
1991
  u.value = !u.value, p("update:burgerState", u.value);
1991
1992
  }
1992
1993
  let y = I(null), q = I(null);
1993
- function X() {
1994
+ function x() {
1994
1995
  y.value && y.value.blur();
1995
1996
  }
1996
1997
  return a({
1997
- defocusSearchButton: X
1998
+ defocusSearchButton: x
1998
1999
  }), (B, j) => (s(), i("div", gs, [
1999
2000
  t("nav", null, [
2000
2001
  t("div", bs, [
@@ -2012,10 +2013,10 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2012
2013
  _(B.$slots, "dropdown-title", {}, void 0, !0),
2013
2014
  V(c) === !1 ? (s(), i("img", ws)) : (s(), i("img", Ss))
2014
2015
  ]),
2015
- Q(t("div", Bs, [
2016
+ Y(t("div", Bs, [
2016
2017
  _(B.$slots, "dropdown-links", {}, void 0, !0)
2017
2018
  ], 512), [
2018
- [ee, V(c)]
2019
+ [Z, V(c)]
2019
2020
  ])
2020
2021
  ], 512),
2021
2022
  t("div", Is, [
@@ -2023,7 +2024,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2023
2024
  ref_key: "navSearchButton",
2024
2025
  ref: y,
2025
2026
  class: "search-icon",
2026
- onClick: j[0] || (j[0] = (x) => {
2027
+ onClick: j[0] || (j[0] = (ee) => {
2027
2028
  var H;
2028
2029
  return B.$emit("clickSearch"), (H = V(y)) == null ? void 0 : H.blur();
2029
2030
  })
@@ -2050,7 +2051,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2050
2051
  ref: q,
2051
2052
  class: "search-icon",
2052
2053
  "aria-label": "Toggle search",
2053
- onClick: j[1] || (j[1] = (x) => {
2054
+ onClick: j[1] || (j[1] = (ee) => {
2054
2055
  var H;
2055
2056
  return B.$emit("clickSearch"), (H = V(q)) == null ? void 0 : H.blur();
2056
2057
  })
@@ -2076,7 +2077,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2076
2077
  }, null, 8, As)
2077
2078
  ])
2078
2079
  ]),
2079
- Q(t("div", Ds, [
2080
+ Y(t("div", Ds, [
2080
2081
  t("ul", null, [
2081
2082
  _(B.$slots, "mobile-main-nav-items", {}, void 0, !0)
2082
2083
  ]),
@@ -2085,7 +2086,7 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2085
2086
  _(B.$slots, "mobile-dropdown-links", {}, void 0, !0)
2086
2087
  ])
2087
2088
  ], 512), [
2088
- [ee, V(u)]
2089
+ [Z, V(u)]
2089
2090
  ])
2090
2091
  ], 2)
2091
2092
  ])
@@ -2130,14 +2131,14 @@ const wo = /* @__PURE__ */ v(fo, [["render", ko], ["__scopeId", "data-v-2881b194
2130
2131
  setup(e) {
2131
2132
  return (a, r) => (s(), i("div", Us, [
2132
2133
  t("div", Ks, [
2133
- w(Z, {
2134
+ w(X, {
2134
2135
  disabled: e.isPreviousDisabled,
2135
2136
  variant: "previous",
2136
2137
  "aria-label": "previous",
2137
2138
  onClick: r[0] || (r[0] = (o) => a.$emit("previous"))
2138
2139
  }, null, 8, ["disabled"]),
2139
2140
  _(a.$slots, "pagination-numbers"),
2140
- w(Z, {
2141
+ w(X, {
2141
2142
  disabled: e.isNextDisabled,
2142
2143
  variant: "next",
2143
2144
  "aria-label": "next",
@@ -2191,7 +2192,7 @@ const Zs = /* @__PURE__ */ v(Ys, [["render", Qs], ["__scopeId", "data-v-623adb82
2191
2192
  t("h3", null, n(e.headline), 1)
2192
2193
  ]),
2193
2194
  t("div", ti, [
2194
- e.videoSrc !== "" ? (s(), C(Y, {
2195
+ e.videoSrc !== "" ? (s(), C(J, {
2195
2196
  key: 0,
2196
2197
  play: "",
2197
2198
  "local-video": !0,
@@ -2308,11 +2309,11 @@ const Zs = /* @__PURE__ */ v(Ys, [["render", Qs], ["__scopeId", "data-v-623adb82
2308
2309
  }
2309
2310
  }), _i = /* @__PURE__ */ v(ui, [["__scopeId", "data-v-8fdfddf2"]]), hi = {
2310
2311
  install: (e) => {
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);
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);
2312
2313
  }
2313
2314
  };
2314
2315
  export {
2315
- Z as AtomButton,
2316
+ X as AtomButton,
2316
2317
  Ae as AtomCheckbox,
2317
2318
  Fe as AtomChip,
2318
2319
  Ke as AtomDropdown,
@@ -2324,7 +2325,7 @@ export {
2324
2325
  bt as AtomSlider,
2325
2326
  Et as AtomTextField,
2326
2327
  qt as AtomTextarea,
2327
- Y as AtomVideo,
2328
+ J as AtomVideo,
2328
2329
  Yl as BlockCardDisplay,
2329
2330
  Ca as BlockFacts,
2330
2331
  Ra as BlockFeatures,