@mirweb/mir-web-components 0.15.107 → 0.15.108

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 v, openBlock as a, createElementBlock as s, normalizeClass as u, toDisplayString as n, createElementVNode as t, renderSlot as c, pushScopeId as O, popScopeId as z, computed as E, createTextVNode as j, ref as w, withDirectives as Y, Fragment as I, renderList as T, vShow as Z, normalizeProps as A, guardReactiveProps as M, mergeProps as ee, createVNode as p, Transition as ge, withCtx as $, withModifiers as re, createBlock as D, createCommentVNode as m, watchEffect as ne, withKeys as ye, useSlots as be, normalizeStyle as te, isRef as ie, unref as B, onMounted as oe, watch as se, onUnmounted as pe } from "vue";
1
+ import { defineComponent as v, openBlock as a, createElementBlock as s, normalizeClass as u, toDisplayString as n, createElementVNode as t, renderSlot as c, pushScopeId as O, popScopeId as z, computed as E, createTextVNode as j, ref as w, withDirectives as Y, Fragment as I, renderList as T, vShow as Z, normalizeProps as A, guardReactiveProps as M, mergeProps as ee, createVNode as p, Transition as fe, withCtx as $, withModifiers as re, createBlock as D, createCommentVNode as m, watchEffect as ne, withKeys as ye, useSlots as be, normalizeStyle as te, isRef as ie, unref as B, onMounted as oe, watch as se, onUnmounted as pe } from "vue";
2
2
  const $e = ["aria-label"], ke = /* @__PURE__ */ v({
3
3
  __name: "button",
4
4
  props: {
@@ -168,15 +168,15 @@ const Ae = /* @__PURE__ */ h(Ve, [["__scopeId", "data-v-b61be596"]]), De = ["val
168
168
  },
169
169
  emits: ["update:modelValue"],
170
170
  setup(e, { emit: i }) {
171
- const r = e, l = w(null), o = w(null), _ = w([]), b = w(0), C = w(""), S = w(!0), g = w(0), q = E(() => {
171
+ const r = e, l = w(null), o = w(null), _ = w([]), b = w(0), C = w(""), S = w(!0), f = w(0), q = E(() => {
172
172
  const d = r.options.find(
173
- (f) => f.value === r.modelValue
173
+ (g) => g.value === r.modelValue
174
174
  );
175
175
  return d && d.label;
176
176
  }), X = {
177
- beforeMount(d, f) {
177
+ beforeMount(d, g) {
178
178
  d.clickOutsideEvent = function(y) {
179
- d === y.target || d.contains(y.target) || f.value(y);
179
+ d === y.target || d.contains(y.target) || g.value(y);
180
180
  }, document.body.addEventListener("click", d.clickOutsideEvent);
181
181
  },
182
182
  unmounted(d) {
@@ -188,13 +188,13 @@ const Ae = /* @__PURE__ */ h(Ve, [["__scopeId", "data-v-b61be596"]]), De = ["val
188
188
  }
189
189
  function H(d) {
190
190
  var y;
191
- const f = d.target;
192
- f.getAttribute("role") === "option" && (U(f), Q(), (y = l.value) == null || y.focus());
191
+ const g = d.target;
192
+ g.getAttribute("role") === "option" && (U(g), Q(), (y = l.value) == null || y.focus());
193
193
  }
194
194
  function W(d) {
195
195
  var y;
196
- const f = d.key;
197
- switch (f) {
196
+ const g = d.key;
197
+ switch (g) {
198
198
  case "ArrowUp":
199
199
  case "ArrowDown": {
200
200
  d.preventDefault();
@@ -202,7 +202,7 @@ const Ae = /* @__PURE__ */ h(Ve, [["__scopeId", "data-v-b61be596"]]), De = ["val
202
202
  (R) => R.value === r.modelValue
203
203
  );
204
204
  let P = x ? _.value[x] : _.value[0];
205
- f === "ArrowUp" ? x - 1 >= 0 && (P = _.value[x - 1]) : x + 1 <= r.options.length && (P = _.value[x + 1]), P && U(P);
205
+ g === "ArrowUp" ? x - 1 >= 0 && (P = _.value[x - 1]) : x + 1 <= r.options.length && (P = _.value[x + 1]), P && U(P);
206
206
  break;
207
207
  }
208
208
  case "Home":
@@ -218,7 +218,7 @@ const Ae = /* @__PURE__ */ h(Ve, [["__scopeId", "data-v-b61be596"]]), De = ["val
218
218
  d.preventDefault(), Q(), (y = l.value) == null || y.focus();
219
219
  break;
220
220
  default: {
221
- const x = _e(f);
221
+ const x = _e(g);
222
222
  x && U(x);
223
223
  break;
224
224
  }
@@ -242,18 +242,18 @@ const Ae = /* @__PURE__ */ h(Ve, [["__scopeId", "data-v-b61be596"]]), De = ["val
242
242
  }, 500);
243
243
  }
244
244
  function _e(d) {
245
- let f = "";
246
- (C.value === "" || f !== d) && (g.value = r.options.findIndex(
245
+ let g = "";
246
+ (C.value === "" || g !== d) && (f.value = r.options.findIndex(
247
247
  (x) => x.value === r.modelValue
248
- )), C.value = f === d ? d : C.value + d, f = d, ue();
248
+ )), C.value = g === d ? d : C.value + d, g = d, ue();
249
249
  let y = ae(
250
- g.value + 1,
250
+ f.value + 1,
251
251
  r.options.length
252
252
  );
253
- return !y && C.value.length === 1 && (y = ae(0, g.value)), g.value = (g.value + 1) % r.options.length, y;
253
+ return !y && C.value.length === 1 && (y = ae(0, f.value)), f.value = (f.value + 1) % r.options.length, y;
254
254
  }
255
- function ae(d, f) {
256
- for (let y = d; y < f; y++)
255
+ function ae(d, g) {
256
+ for (let y = d; y < g; y++)
257
257
  if (r.options[y].label && r.options[y].label.toUpperCase().indexOf(C.value.toUpperCase()) === 0)
258
258
  return _.value[y];
259
259
  return null;
@@ -263,24 +263,24 @@ const Ae = /* @__PURE__ */ h(Ve, [["__scopeId", "data-v-b61be596"]]), De = ["val
263
263
  }
264
264
  function U(d) {
265
265
  var y, x;
266
- const f = d.getAttribute("data-value");
266
+ const g = d.getAttribute("data-value");
267
267
  if (r.modelValue) {
268
268
  const P = r.options.findIndex(
269
- (fe) => fe.value === r.modelValue
269
+ (ge) => ge.value === r.modelValue
270
270
  ), R = _.value[P];
271
271
  ce(R);
272
272
  }
273
273
  if (d.setAttribute("aria-selected", "true"), (y = o.value) == null || y.setAttribute(
274
274
  "aria-activedescendant",
275
- f || ""
276
- ), k(f || ""), o.value && o.value.scrollHeight > o.value.clientHeight) {
275
+ g || ""
276
+ ), k(g || ""), o.value && o.value.scrollHeight > o.value.clientHeight) {
277
277
  const P = o.value.clientHeight + o.value.scrollTop, R = d.offsetTop + d.offsetHeight;
278
278
  R > P ? o.value.scrollTop = R - ((x = o.value) == null ? void 0 : x.clientHeight) : d.offsetTop < o.value.scrollTop && (o.value.scrollTop = d.offsetTop);
279
279
  }
280
280
  }
281
281
  function ve() {
282
- var f;
283
- const d = (f = _.value) == null ? void 0 : f[r.options.length - 1];
282
+ var g;
283
+ const d = (g = _.value) == null ? void 0 : g[r.options.length - 1];
284
284
  U(d);
285
285
  }
286
286
  function Q() {
@@ -288,13 +288,13 @@ const Ae = /* @__PURE__ */ h(Ve, [["__scopeId", "data-v-b61be596"]]), De = ["val
288
288
  S.value = !0, (d = l.value) == null || d.removeAttribute("aria-expanded");
289
289
  }
290
290
  function le() {
291
- var d, f;
292
- S.value = !1, (d = l.value) == null || d.setAttribute("aria-expanded", "true"), (f = o.value) == null || f.focus();
291
+ var d, g;
292
+ S.value = !1, (d = l.value) == null || d.setAttribute("aria-expanded", "true"), (g = o.value) == null || g.focus();
293
293
  }
294
294
  function me() {
295
295
  r.disabled || (S.value ? le() : Q());
296
296
  }
297
- return (d, f) => (a(), s("div", {
297
+ return (d, g) => (a(), s("div", {
298
298
  class: "listbox__wrapper",
299
299
  value: e.modelValue,
300
300
  ref: "listbox"
@@ -610,7 +610,7 @@ const st = /* @__PURE__ */ h(it, [["__scopeId", "data-v-500637d5"]]), rt = { cla
610
610
  i("update:show", !r.show);
611
611
  };
612
612
  return (o, _) => (a(), s("div", rt, [
613
- p(ge, {
613
+ p(fe, {
614
614
  duration: 300,
615
615
  name: "nested"
616
616
  }, {
@@ -698,18 +698,18 @@ const de = /* @__PURE__ */ h(nt, [["__scopeId", "data-v-e18c70fd"]]), ot = { cla
698
698
  },
699
699
  emits: ["update:modelValue"],
700
700
  setup(e, { emit: i }) {
701
- const r = e, l = w(r.modelValue), o = w(), _ = w(!1), b = (S, g, q) => (S - g) / (q - g) * 100, C = (S) => {
702
- var g;
703
- (g = o.value) == null || g.style.setProperty("--ProgressPercent", `${S}%`);
701
+ const r = e, l = w(r.modelValue), o = w(), _ = w(!1), b = (S, f, q) => (S - f) / (q - f) * 100, C = (S) => {
702
+ var f;
703
+ (f = o.value) == null || f.style.setProperty("--ProgressPercent", `${S}%`);
704
704
  };
705
705
  return ne(() => {
706
706
  if (o.value) {
707
707
  i("update:modelValue", l.value);
708
708
  const S = b(l.value, r.min, r.max);
709
- let g = (50 - S) / 100;
710
- C(S + g);
709
+ let f = (50 - S) / 100;
710
+ C(S + f);
711
711
  }
712
- }), (S, g) => (a(), s("div", null, [
712
+ }), (S, f) => (a(), s("div", null, [
713
713
  t("div", ot, [
714
714
  t("div", dt, [
715
715
  t("label", {
@@ -720,8 +720,8 @@ const de = /* @__PURE__ */ h(nt, [["__scopeId", "data-v-e18c70fd"]]), ot = { cla
720
720
  key: 0,
721
721
  role: "button",
722
722
  class: u([e.variant, "slider__information"]),
723
- onClick: g[0] || (g[0] = (q) => _.value = !_.value),
724
- onKeyup: g[1] || (g[1] = ye((q) => _.value = !_.value, ["enter"])),
723
+ onClick: f[0] || (f[0] = (q) => _.value = !_.value),
724
+ onKeyup: f[1] || (f[1] = ye((q) => _.value = !_.value, ["enter"])),
725
725
  "aria-label": e.informationLabel,
726
726
  tabindex: "0",
727
727
  "aria-haspopup": "dialog"
@@ -742,7 +742,7 @@ const de = /* @__PURE__ */ h(nt, [["__scopeId", "data-v-e18c70fd"]]), ot = { cla
742
742
  class: u(e.variant),
743
743
  ref_key: "slider",
744
744
  ref: o,
745
- onInput: g[2] || (g[2] = ({ target: q }) => l.value = parseFloat(q.value))
745
+ onInput: f[2] || (f[2] = ({ target: q }) => l.value = parseFloat(q.value))
746
746
  }, null, 42, ht),
747
747
  t("span", {
748
748
  class: u([e.variant, "slider__minmax"])
@@ -755,7 +755,7 @@ const de = /* @__PURE__ */ h(nt, [["__scopeId", "data-v-e18c70fd"]]), ot = { cla
755
755
  e.information ? (a(), D(de, {
756
756
  key: 0,
757
757
  show: _.value,
758
- "onUpdate:show": g[3] || (g[3] = (q) => _.value = q)
758
+ "onUpdate:show": f[3] || (f[3] = (q) => _.value = q)
759
759
  }, {
760
760
  default: $(() => [
761
761
  j(n(e.information), 1)
@@ -765,7 +765,7 @@ const de = /* @__PURE__ */ h(nt, [["__scopeId", "data-v-e18c70fd"]]), ot = { cla
765
765
  ]));
766
766
  }
767
767
  });
768
- const mt = /* @__PURE__ */ h(vt, [["__scopeId", "data-v-6dbb2648"]]), ft = { id: "textarea-wrapper" }, gt = ["for"], yt = ["id"], bt = ["id", "name", "placeholder", "required", "disabled", "maxlength", "value"], pt = { class: "textarea-info" }, $t = { key: 0 }, kt = /* @__PURE__ */ v({
768
+ const mt = /* @__PURE__ */ h(vt, [["__scopeId", "data-v-6dbb2648"]]), gt = { id: "textarea-wrapper" }, ft = ["for"], yt = ["id"], bt = ["id", "name", "placeholder", "required", "disabled", "maxlength", "value"], pt = { class: "textarea-info" }, $t = { key: 0 }, kt = /* @__PURE__ */ v({
769
769
  __name: "textarea",
770
770
  props: {
771
771
  id: {
@@ -805,11 +805,11 @@ const mt = /* @__PURE__ */ h(vt, [["__scopeId", "data-v-6dbb2648"]]), ft = { id:
805
805
  },
806
806
  emits: ["update:modelValue"],
807
807
  setup(e) {
808
- return (i, r) => (a(), s("div", ft, [
808
+ return (i, r) => (a(), s("div", gt, [
809
809
  t("label", {
810
810
  for: e.id,
811
811
  class: u({ required: e.required })
812
- }, n(e.labelText) + n(e.required ? " *" : ""), 11, gt),
812
+ }, n(e.labelText) + n(e.required ? " *" : ""), 11, ft),
813
813
  t("div", {
814
814
  id: e.modelValue !== void 0 && e.modelValue.length == e.maxLength ? "textarea-wrapper__inner" : ""
815
815
  }, [
@@ -1332,7 +1332,7 @@ const sa = /* @__PURE__ */ h(ia, [["__scopeId", "data-v-ed5d7a87"]]), ra = (e) =
1332
1332
  ]));
1333
1333
  }
1334
1334
  });
1335
- const ha = /* @__PURE__ */ h(_a, [["__scopeId", "data-v-b0f9972c"]]), va = { class: "text__wrapper" }, ma = { class: "text__headline" }, fa = { class: "text__paragraph" }, ga = /* @__PURE__ */ v({
1335
+ const ha = /* @__PURE__ */ h(_a, [["__scopeId", "data-v-b0f9972c"]]), va = { class: "text__wrapper" }, ma = { class: "text__headline" }, ga = { class: "text__paragraph" }, fa = /* @__PURE__ */ v({
1336
1336
  __name: "text-card",
1337
1337
  props: {
1338
1338
  label: {
@@ -1355,13 +1355,13 @@ const ha = /* @__PURE__ */ h(_a, [["__scopeId", "data-v-b0f9972c"]]), va = { cla
1355
1355
  text: e.label ? e.label : ""
1356
1356
  }, null, 8, ["text"]),
1357
1357
  t("div", ma, n(e.headline), 1),
1358
- t("div", fa, [
1358
+ t("div", ga, [
1359
1359
  t("p", null, n(e.paragraph), 1)
1360
1360
  ])
1361
1361
  ]));
1362
1362
  }
1363
1363
  });
1364
- const ya = /* @__PURE__ */ h(ga, [["__scopeId", "data-v-b07d352b"]]), ba = { class: "facts__wrapper" }, pa = { class: "facts__content" }, $a = { class: "facts__headline" }, ka = { class: "facts" }, wa = { class: "fact" }, xa = { class: "fact__value" }, Sa = { class: "fact__metric" }, qa = {
1364
+ const ya = /* @__PURE__ */ h(fa, [["__scopeId", "data-v-b07d352b"]]), ba = { class: "facts__wrapper" }, pa = { class: "facts__content" }, $a = { class: "facts__headline" }, ka = { class: "facts" }, wa = { class: "fact" }, xa = { class: "fact__value" }, Sa = { class: "fact__metric" }, qa = {
1365
1365
  key: 0,
1366
1366
  class: "facts__link"
1367
1367
  }, Ba = /* @__PURE__ */ v({
@@ -1699,7 +1699,7 @@ const el = /* @__PURE__ */ h(Za, [["__scopeId", "data-v-080238bd"]]), tl = (e) =
1699
1699
  const ul = /* @__PURE__ */ h(cl, [["__scopeId", "data-v-de757e46"]]), _l = { class: "logo-wall__wrapper" }, hl = { class: "logo-wall__content" }, vl = {
1700
1700
  key: 0,
1701
1701
  class: "logo-wall__text"
1702
- }, ml = { key: 0 }, fl = { key: 1 }, gl = { class: "logo-wall__logos" }, yl = { class: "logo-wall__logo" }, bl = { class: "logo-wall__link" }, pl = /* @__PURE__ */ v({
1702
+ }, ml = { key: 0 }, gl = { key: 1 }, fl = { class: "logo-wall__logos" }, yl = { class: "logo-wall__logo" }, bl = { class: "logo-wall__link" }, pl = /* @__PURE__ */ v({
1703
1703
  __name: "logo-wall",
1704
1704
  props: {
1705
1705
  headline: {
@@ -1719,9 +1719,9 @@ const ul = /* @__PURE__ */ h(cl, [["__scopeId", "data-v-de757e46"]]), _l = { cla
1719
1719
  t("div", hl, [
1720
1720
  e.headline || e.body ? (a(), s("div", vl, [
1721
1721
  e.headline ? (a(), s("h2", ml, n(e.headline), 1)) : m("", !0),
1722
- e.body ? (a(), s("p", fl, n(e.body), 1)) : m("", !0)
1722
+ e.body ? (a(), s("p", gl, n(e.body), 1)) : m("", !0)
1723
1723
  ])) : m("", !0),
1724
- t("div", gl, [
1724
+ t("div", fl, [
1725
1725
  (a(!0), s(I, null, T(e.logos, (l) => (a(), s("div", yl, [
1726
1726
  p(L, null, {
1727
1727
  default: $(() => [
@@ -2146,7 +2146,7 @@ function ni(e, i) {
2146
2146
  const oi = /* @__PURE__ */ h(ai, [["render", ni], ["__scopeId", "data-v-86986bf2"]]), di = (e) => (O("data-v-df182fbb"), e = e(), z(), e), ci = { class: "timeline__wrapper" }, ui = { class: "timeline__content" }, _i = { class: "timeline__items" }, hi = { class: "timeline__item faded" }, vi = { class: "item__left" }, mi = /* @__PURE__ */ di(() => /* @__PURE__ */ t("div", { class: "item__elements" }, [
2147
2147
  /* @__PURE__ */ t("div", { class: "circle" }),
2148
2148
  /* @__PURE__ */ t("div", { class: "line" })
2149
- ], -1)), fi = { class: "item__right" }, gi = ["innerHTML"], yi = /* @__PURE__ */ v({
2149
+ ], -1)), gi = { class: "item__right" }, fi = ["innerHTML"], yi = /* @__PURE__ */ v({
2150
2150
  __name: "timeline",
2151
2151
  props: {
2152
2152
  timelineItems: {
@@ -2175,7 +2175,7 @@ const oi = /* @__PURE__ */ h(ai, [["render", ni], ["__scopeId", "data-v-86986bf2
2175
2175
  (a(!0), s(I, null, T(e.timelineItems, (l) => (a(), s("div", hi, [
2176
2176
  t("div", vi, n(l.year), 1),
2177
2177
  mi,
2178
- t("div", fi, [
2178
+ t("div", gi, [
2179
2179
  p(L, null, {
2180
2180
  default: $(() => [
2181
2181
  l.media.type === "image" ? c(i.$slots, "timeline-image", A(ee({ key: 0 }, { src: l.media.src, alt: l.media.alt })), void 0, !0) : m("", !0)
@@ -2186,7 +2186,7 @@ const oi = /* @__PURE__ */ h(ai, [["render", ni], ["__scopeId", "data-v-86986bf2
2186
2186
  style: te([l.media.type === "none" ? "margin-top: 0px" : ""]),
2187
2187
  class: "rich-text",
2188
2188
  innerHTML: l.text
2189
- }, null, 12, gi)
2189
+ }, null, 12, fi)
2190
2190
  ])
2191
2191
  ]))), 256))
2192
2192
  ])
@@ -2277,7 +2277,7 @@ const Vi = /* @__PURE__ */ h(Ci, [["__scopeId", "data-v-59fa125d"]]), Ai = { cla
2277
2277
  ]));
2278
2278
  }
2279
2279
  });
2280
- const Pi = /* @__PURE__ */ h(zi, [["__scopeId", "data-v-0c1f0902"]]), Fi = { class: "filter__wrapper" }, Ei = { class: "filter__content" }, Ni = { class: "filter__dropdowns" }, Hi = { class: "filter__chips" }, Ri = /* @__PURE__ */ v({
2280
+ const Pi = /* @__PURE__ */ h(zi, [["__scopeId", "data-v-dc0a59da"]]), Fi = { class: "filter__wrapper" }, Ei = { class: "filter__content" }, Ni = { class: "filter__dropdowns" }, Hi = { class: "filter__chips" }, Ri = /* @__PURE__ */ v({
2281
2281
  __name: "filter",
2282
2282
  props: {
2283
2283
  hasChips: {
@@ -2418,7 +2418,7 @@ const ji = /* @__PURE__ */ h(Ri, [["__scopeId", "data-v-73ba9888"]]), N = (e) =>
2418
2418
  ]));
2419
2419
  }
2420
2420
  });
2421
- const _s = /* @__PURE__ */ h(us, [["__scopeId", "data-v-d2cab33d"]]), hs = { class: "header__wrapper" }, vs = { class: "nav-wrapper" }, ms = { class: "mir-link-logo" }, fs = { class: "main-nav-items" }, gs = {
2421
+ const _s = /* @__PURE__ */ h(us, [["__scopeId", "data-v-d2cab33d"]]), hs = { class: "header__wrapper" }, vs = { class: "nav-wrapper" }, ms = { class: "mir-link-logo" }, gs = { class: "main-nav-items" }, fs = {
2422
2422
  id: "menu-dropdown",
2423
2423
  ref: "dropdownDiv"
2424
2424
  }, ys = {
@@ -2470,9 +2470,9 @@ const _s = /* @__PURE__ */ h(us, [["__scopeId", "data-v-d2cab33d"]]), hs = { cla
2470
2470
  function S() {
2471
2471
  _.value = !_.value, r("update:burgerState", _.value);
2472
2472
  }
2473
- let g = w(null), q = w(null);
2473
+ let f = w(null), q = w(null);
2474
2474
  function X() {
2475
- g.value && g.value.blur();
2475
+ f.value && f.value.blur();
2476
2476
  }
2477
2477
  return i({
2478
2478
  defocusSearchButton: X
@@ -2482,10 +2482,10 @@ const _s = /* @__PURE__ */ h(us, [["__scopeId", "data-v-d2cab33d"]]), hs = { cla
2482
2482
  t("div", ms, [
2483
2483
  c(k.$slots, "link-logo", {}, void 0, !0)
2484
2484
  ]),
2485
- t("ul", fs, [
2485
+ t("ul", gs, [
2486
2486
  c(k.$slots, "main-nav-items", {}, void 0, !0)
2487
2487
  ]),
2488
- t("div", gs, [
2488
+ t("div", fs, [
2489
2489
  t("button", {
2490
2490
  onClick: C,
2491
2491
  class: "nav-dropdown-btn"
@@ -2504,10 +2504,10 @@ const _s = /* @__PURE__ */ h(us, [["__scopeId", "data-v-d2cab33d"]]), hs = { cla
2504
2504
  class: "search-icon",
2505
2505
  onClick: H[0] || (H[0] = (W) => {
2506
2506
  var F;
2507
- return k.$emit("clickSearch"), (F = B(g)) == null ? void 0 : F.blur();
2507
+ return k.$emit("clickSearch"), (F = B(f)) == null ? void 0 : F.blur();
2508
2508
  }),
2509
2509
  ref_key: "navSearchButton",
2510
- ref: g
2510
+ ref: f
2511
2511
  }, [
2512
2512
  t("img", {
2513
2513
  src: B(_) == !0 ? "https://a.storyblok.com/f/230581/21x21/13f4ac189d/search-icon-white.svg?cv=1695125826080" : "https://a.storyblok.com/f/230581/21x21/ebbdca38d3/search-icon.svg?cv=1695125825901",