@mirweb/mir-web-components 1.4.7 → 1.4.8
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 C, openBlock as l, createElementBlock as i, normalizeClass as m, toDisplayString as n, createElementVNode as t, renderSlot as d, pushScopeId as H, popScopeId as R, createTextVNode as J, ref as q, resolveDirective as _e, withDirectives as K, Fragment as A, renderList as P, vShow as Z, normalizeProps as F, guardReactiveProps as N, toRefs as ke, mergeProps as
|
|
1
|
+
import { defineComponent as g, computed as C, openBlock as l, createElementBlock as i, normalizeClass as m, toDisplayString as n, createElementVNode as t, renderSlot as d, pushScopeId as H, popScopeId as R, createTextVNode as J, ref as q, resolveDirective as _e, withDirectives as K, Fragment as A, renderList as P, vShow as Z, normalizeProps as F, guardReactiveProps as N, toRefs as ke, mergeProps as ce, createVNode as B, Transition as we, withCtx as $, withModifiers as pe, createBlock as T, createCommentVNode as h, watchEffect as he, withKeys as Se, useSlots as Be, normalizeStyle as le, isRef as de, unref as I, onMounted as me, watch as Q, onUnmounted as Ie } from "vue";
|
|
2
2
|
const qe = ["aria-label"], Le = /* @__PURE__ */ g({
|
|
3
3
|
__name: "button",
|
|
4
4
|
props: {
|
|
@@ -107,16 +107,16 @@ const qe = ["aria-label"], Le = /* @__PURE__ */ g({
|
|
|
107
107
|
const r = {
|
|
108
108
|
primary: "dropdown-dark-bg-primary",
|
|
109
109
|
dark: "dropdown-dark dropdown-dark-bg-dark"
|
|
110
|
-
}, s = e, o = C(() => r[s.variant]), c = q(null), _ = q(null), u = q([]), b = q(0), v = q(""), k = q(!0), w = q(0), ee = a,
|
|
110
|
+
}, s = e, o = C(() => r[s.variant]), c = q(null), _ = q(null), u = q([]), b = q(0), v = q(""), k = q(!0), w = q(0), ee = a, se = C(() => {
|
|
111
111
|
const p = s.options.find(
|
|
112
112
|
(S) => S.value === s.modelValue
|
|
113
113
|
);
|
|
114
114
|
return p && p.label;
|
|
115
115
|
});
|
|
116
|
-
function
|
|
116
|
+
function ie(p) {
|
|
117
117
|
ee("update:modelValue", p);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function re(p) {
|
|
120
120
|
var L;
|
|
121
121
|
const S = p.target;
|
|
122
122
|
S.getAttribute("role") === "option" && (W(S), ae(), (L = c.value) == null || L.focus());
|
|
@@ -163,7 +163,7 @@ const qe = ["aria-label"], Le = /* @__PURE__ */ g({
|
|
|
163
163
|
break;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function ne(p) {
|
|
167
167
|
p && p.removeAttribute("aria-selected");
|
|
168
168
|
}
|
|
169
169
|
function y() {
|
|
@@ -198,12 +198,12 @@ const qe = ["aria-label"], Le = /* @__PURE__ */ g({
|
|
|
198
198
|
const O = s.options.findIndex(
|
|
199
199
|
($e) => $e.value === s.modelValue
|
|
200
200
|
), Y = u.value[O];
|
|
201
|
-
|
|
201
|
+
ne(Y);
|
|
202
202
|
}
|
|
203
203
|
if (p.setAttribute("aria-selected", "true"), (L = _.value) == null || L.setAttribute(
|
|
204
204
|
"aria-activedescendant",
|
|
205
205
|
S || ""
|
|
206
|
-
),
|
|
206
|
+
), ie(S || ""), _.value && _.value.scrollHeight > _.value.clientHeight) {
|
|
207
207
|
const O = _.value.clientHeight + _.value.scrollTop, Y = p.offsetTop + p.offsetHeight;
|
|
208
208
|
Y > O ? _.value.scrollTop = Y - ((D = _.value) == null ? void 0 : D.clientHeight) : p.offsetTop < _.value.scrollTop && (_.value.scrollTop = p.offsetTop);
|
|
209
209
|
}
|
|
@@ -251,7 +251,7 @@ const qe = ["aria-label"], Le = /* @__PURE__ */ g({
|
|
|
251
251
|
class: m(["listbox__button", o.value]),
|
|
252
252
|
onClick: ye,
|
|
253
253
|
onKeydown: te
|
|
254
|
-
}, n(p.modelValue ?
|
|
254
|
+
}, n(p.modelValue ? se.value : p.placeholder), 43, ze),
|
|
255
255
|
K(t("ul", {
|
|
256
256
|
ref_key: "listboxNode",
|
|
257
257
|
ref: _,
|
|
@@ -261,7 +261,7 @@ const qe = ["aria-label"], Le = /* @__PURE__ */ g({
|
|
|
261
261
|
role: "listbox",
|
|
262
262
|
class: "listbox__list",
|
|
263
263
|
onKeydown: G,
|
|
264
|
-
onClick:
|
|
264
|
+
onClick: re
|
|
265
265
|
}, [
|
|
266
266
|
(l(!0), i(A, null, P(p.options, (D, O) => (l(), i("li", {
|
|
267
267
|
key: `${p.name}-option-${O}`,
|
|
@@ -341,7 +341,7 @@ const qe = ["aria-label"], Le = /* @__PURE__ */ g({
|
|
|
341
341
|
return u;
|
|
342
342
|
});
|
|
343
343
|
return (u, b) => (l(), i("div", Xe, [
|
|
344
|
-
t("div",
|
|
344
|
+
t("div", ce(_.value, {
|
|
345
345
|
class: ["mir-link", [
|
|
346
346
|
o.value,
|
|
347
347
|
u.disabled ? "disabled" : "",
|
|
@@ -894,13 +894,13 @@ const qe = ["aria-label"], Le = /* @__PURE__ */ g({
|
|
|
894
894
|
_.size === "large" && _.variant === "article" ? "card--large-article" : "",
|
|
895
895
|
_.variant === "product" ? "card--product" : "card--article"
|
|
896
896
|
]]),
|
|
897
|
-
style:
|
|
898
|
-
onMouseover: u[0] || (u[0] = (b) =>
|
|
899
|
-
onMouseout: u[1] || (u[1] = (b) =>
|
|
897
|
+
style: le([_.variant === "product" ? "font-weight: 700" : "font-weight: 300"]),
|
|
898
|
+
onMouseover: u[0] || (u[0] = (b) => de(r) ? r.value = !0 : r = !0),
|
|
899
|
+
onMouseout: u[1] || (u[1] = (b) => de(r) ? r.value = !1 : r = !1)
|
|
900
900
|
}, [
|
|
901
901
|
_.mediaType === "image" ? (l(), T(M, { key: 0 }, {
|
|
902
902
|
default: $(() => [
|
|
903
|
-
d(_.$slots, "card-image",
|
|
903
|
+
d(_.$slots, "card-image", ce({
|
|
904
904
|
src: _.imgSrc,
|
|
905
905
|
width: "596",
|
|
906
906
|
height: "335",
|
|
@@ -1360,7 +1360,7 @@ const qe = ["aria-label"], Le = /* @__PURE__ */ g({
|
|
|
1360
1360
|
])) : h("", !0)
|
|
1361
1361
|
]),
|
|
1362
1362
|
t("div", {
|
|
1363
|
-
style:
|
|
1363
|
+
style: le([o.mediaSmall.length === 2 ? "grid-gap: 38px;" : ""]),
|
|
1364
1364
|
class: m([
|
|
1365
1365
|
"gallery__small",
|
|
1366
1366
|
o.flipVertical ? "gallery__small--reverse" : "gallery__small--default"
|
|
@@ -1864,12 +1864,12 @@ const Ml = /* @__PURE__ */ f(Dl, [["render", Pl], ["__scopeId", "data-v-449f3040
|
|
|
1864
1864
|
t("div", zl, [
|
|
1865
1865
|
B(M, null, {
|
|
1866
1866
|
default: $(() => [
|
|
1867
|
-
s.media.src ? d(a.$slots, "timeline-image", F(
|
|
1867
|
+
s.media.src ? d(a.$slots, "timeline-image", F(ce({ key: 0 }, { src: s.media.src, alt: s.media.alt })), void 0, !0) : h("", !0)
|
|
1868
1868
|
]),
|
|
1869
1869
|
_: 2
|
|
1870
1870
|
}, 1024),
|
|
1871
1871
|
t("div", {
|
|
1872
|
-
style:
|
|
1872
|
+
style: le([s.media.src ? "" : "margin-top: 0px"]),
|
|
1873
1873
|
class: "rich-text",
|
|
1874
1874
|
innerHTML: s.text
|
|
1875
1875
|
}, null, 12, jl)
|
|
@@ -2259,21 +2259,21 @@ const Ml = /* @__PURE__ */ f(Dl, [["render", Pl], ["__scopeId", "data-v-449f3040
|
|
|
2259
2259
|
function ee() {
|
|
2260
2260
|
u.value = !u.value, w("update:showDropDown", u.value);
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function se() {
|
|
2263
2263
|
b.value = !b.value, w("update:showPortalSwitcherDropDown", b.value);
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2265
|
+
function ie() {
|
|
2266
2266
|
v.value = !v.value, w("update:showProfileDropDown", v.value);
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function re() {
|
|
2269
2269
|
c.value = !c.value, w("update:burgerState", c.value);
|
|
2270
2270
|
}
|
|
2271
2271
|
let G = q(null), te = q(null);
|
|
2272
|
-
function
|
|
2272
|
+
function ne() {
|
|
2273
2273
|
G.value && G.value.blur();
|
|
2274
2274
|
}
|
|
2275
2275
|
return a({
|
|
2276
|
-
defocusSearchButton:
|
|
2276
|
+
defocusSearchButton: ne
|
|
2277
2277
|
}), (y, z) => (l(), i("div", Xs, [
|
|
2278
2278
|
t("nav", null, [
|
|
2279
2279
|
t("div", xs, [
|
|
@@ -2318,7 +2318,7 @@ const Ml = /* @__PURE__ */ f(Dl, [["render", Pl], ["__scopeId", "data-v-449f3040
|
|
|
2318
2318
|
e.usePortalSwitcher ? (l(), i("div", ni, [
|
|
2319
2319
|
t("button", {
|
|
2320
2320
|
class: "nav-portal-switcher-btn",
|
|
2321
|
-
onClick:
|
|
2321
|
+
onClick: se
|
|
2322
2322
|
}, ci),
|
|
2323
2323
|
K(t("div", ui, [
|
|
2324
2324
|
t("ul", _i, [
|
|
@@ -2330,7 +2330,7 @@ const Ml = /* @__PURE__ */ f(Dl, [["render", Pl], ["__scopeId", "data-v-449f3040
|
|
|
2330
2330
|
default: $(() => [
|
|
2331
2331
|
t("a", {
|
|
2332
2332
|
href: j.link,
|
|
2333
|
-
onClick: z[1] || (z[1] = (W) =>
|
|
2333
|
+
onClick: z[1] || (z[1] = (W) => de(u) ? u.value = !1 : u = !1)
|
|
2334
2334
|
}, [
|
|
2335
2335
|
t("img", {
|
|
2336
2336
|
src: j.icon
|
|
@@ -2353,7 +2353,7 @@ const Ml = /* @__PURE__ */ f(Dl, [["render", Pl], ["__scopeId", "data-v-449f3040
|
|
|
2353
2353
|
I(k) ? (l(), i("button", {
|
|
2354
2354
|
key: 1,
|
|
2355
2355
|
class: "nav-profile-dropdown-btn",
|
|
2356
|
-
onClick:
|
|
2356
|
+
onClick: ie
|
|
2357
2357
|
}, gi)) : h("", !0),
|
|
2358
2358
|
K(t("div", bi, [
|
|
2359
2359
|
d(y.$slots, "profile-dropdown-links", {}, void 0, !0)
|
|
@@ -2391,7 +2391,7 @@ const Ml = /* @__PURE__ */ f(Dl, [["render", Pl], ["__scopeId", "data-v-449f3040
|
|
|
2391
2391
|
t("button", {
|
|
2392
2392
|
class: "mobile-burger-wrapper",
|
|
2393
2393
|
"aria-label": "Toggle menu",
|
|
2394
|
-
onClick: pe(
|
|
2394
|
+
onClick: pe(re, ["prevent"])
|
|
2395
2395
|
}, [
|
|
2396
2396
|
t("img", {
|
|
2397
2397
|
width: "20",
|
|
@@ -2499,13 +2499,14 @@ const ji = /* @__PURE__ */ f(Ei, [["render", zi], ["__scopeId", "data-v-c07a6cf3
|
|
|
2499
2499
|
return K((l(), i("div", Ki, [
|
|
2500
2500
|
t("button", {
|
|
2501
2501
|
class: "dropdown-button",
|
|
2502
|
+
style: le({ "z-index": r.value ? 2 : 0 }),
|
|
2502
2503
|
"aria-expanded": r.value ? "true" : "false",
|
|
2503
2504
|
onClick: v[0] || (v[0] = (w) => r.value = !r.value)
|
|
2504
2505
|
}, [
|
|
2505
2506
|
d(b.$slots, "button", {}, () => [
|
|
2506
2507
|
J(n(b.label), 1)
|
|
2507
2508
|
], !0)
|
|
2508
|
-
],
|
|
2509
|
+
], 12, Ui),
|
|
2509
2510
|
t("div", {
|
|
2510
2511
|
class: m([{ hidden: !r.value, "adjust-height": u.value }, "dropdown-content"])
|
|
2511
2512
|
}, [
|
|
@@ -2530,7 +2531,7 @@ const ji = /* @__PURE__ */ f(Ei, [["render", zi], ["__scopeId", "data-v-c07a6cf3
|
|
|
2530
2531
|
]);
|
|
2531
2532
|
};
|
|
2532
2533
|
}
|
|
2533
|
-
}), Ji = /* @__PURE__ */ f(Gi, [["__scopeId", "data-v-
|
|
2534
|
+
}), Ji = /* @__PURE__ */ f(Gi, [["__scopeId", "data-v-164647da"]]), Wi = { class: "promo__content" }, Yi = { class: "pallet-jack__media-wrap" }, Qi = { class: "pallet-jack-link" }, Zi = { class: "pallet-jack__media-wrap__inner-wrap" }, Xi = { class: "pallet-jack__media-wrap__content-wrap" }, xi = { class: "regular-blue" }, er = /* @__PURE__ */ g({
|
|
2534
2535
|
__name: "pallet-jack",
|
|
2535
2536
|
props: {
|
|
2536
2537
|
label: { default: "" },
|