slippers-ui 3.1.18 → 3.1.19
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/slippers-ui.es.js +314 -314
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/slippers-ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as I, computed as k, openBlock as s, createElementBlock as r, mergeProps as j, renderSlot as b, normalizeClass as g, createElementVNode as v, createBlock as R, resolveDynamicComponent as K, normalizeStyle as Q, withCtx as N, createCommentVNode as B, ref as w, onMounted as D, nextTick as se, onUnmounted as X, createVNode as $, unref as G, Fragment as T, renderList as z, withModifiers as Z, toDisplayString as S, createTextVNode as V, resolveComponent as le, withDirectives as P, vShow as H, normalizeProps as ie, guardReactiveProps as re, onBeforeUnmount as Y, onBeforeMount as x, watch as J, vModelSelect as de } from "vue";
|
|
2
|
+
import { _ as C, C as ee, a as te, b as ae, c as ce } from "./chunks/ChevronLgUp-EczI5oF8.js";
|
|
3
|
+
const ue = ["href"], pe = /* @__PURE__ */ I({
|
|
4
4
|
__name: "SlpButton",
|
|
5
5
|
props: {
|
|
6
6
|
disabled: { type: Boolean },
|
|
@@ -8,135 +8,135 @@ const ce = ["href"], ue = /* @__PURE__ */ L({
|
|
|
8
8
|
href: {}
|
|
9
9
|
},
|
|
10
10
|
setup(u) {
|
|
11
|
-
const e = u, o =
|
|
12
|
-
|
|
13
|
-
const a =
|
|
14
|
-
let n = [`slp-btn-${
|
|
11
|
+
const e = u, o = k(() => e.disabled ?? !1), l = k(() => e.variant ?? "primary");
|
|
12
|
+
k(() => e.href ?? "");
|
|
13
|
+
const a = k(() => {
|
|
14
|
+
let n = [`slp-btn-${l.value}`];
|
|
15
15
|
return o.value && n.push("slp-btn-disabled"), n.join(" ");
|
|
16
16
|
});
|
|
17
|
-
return (n, d) => e.href ? (s(), r("a",
|
|
17
|
+
return (n, d) => e.href ? (s(), r("a", j({ key: 0 }, n.$attrs, {
|
|
18
18
|
class: ["slp-btn", a.value],
|
|
19
19
|
href: e.href
|
|
20
20
|
}), [
|
|
21
21
|
b(n.$slots, "default", {}, void 0, !0)
|
|
22
|
-
], 16,
|
|
22
|
+
], 16, ue)) : (s(), r("button", j({ key: 1 }, n.$attrs, {
|
|
23
23
|
class: ["slp-btn", a.value],
|
|
24
24
|
type: "button"
|
|
25
25
|
}), [
|
|
26
26
|
b(n.$slots, "default", {}, void 0, !0)
|
|
27
27
|
], 16));
|
|
28
28
|
}
|
|
29
|
-
}),
|
|
29
|
+
}), U = /* @__PURE__ */ C(pe, [["__scopeId", "data-v-56e2df5f"]]), fe = /* @__PURE__ */ I({
|
|
30
30
|
__name: "SlpColumn",
|
|
31
31
|
props: {
|
|
32
32
|
cols: {},
|
|
33
33
|
size: {}
|
|
34
34
|
},
|
|
35
35
|
setup(u) {
|
|
36
|
-
const e = u, o =
|
|
36
|
+
const e = u, o = k(() => e.cols ?? null), l = k(() => e.size ?? "md"), a = k(() => o.value ? `slp-col-${l.value}-${o.value}` : `slp-col-${l.value}`);
|
|
37
37
|
return (n, d) => (s(), r("div", {
|
|
38
|
-
class:
|
|
38
|
+
class: g(a.value)
|
|
39
39
|
}, [
|
|
40
40
|
b(n.$slots, "default", {}, void 0, !0)
|
|
41
41
|
], 2));
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
43
|
+
}), Tt = /* @__PURE__ */ C(fe, [["__scopeId", "data-v-00b68f22"]]), ve = {
|
|
44
44
|
key: 0,
|
|
45
45
|
class: "slp-full-light-purple-background"
|
|
46
|
-
},
|
|
46
|
+
}, he = {
|
|
47
47
|
key: 1,
|
|
48
48
|
class: "slp-charcoal-grey-background"
|
|
49
|
-
},
|
|
49
|
+
}, me = {
|
|
50
50
|
key: 2,
|
|
51
51
|
class: "slp-gradient-background"
|
|
52
|
-
},
|
|
52
|
+
}, ge = {
|
|
53
53
|
key: 3,
|
|
54
54
|
class: "slp-full-gradient-background"
|
|
55
|
-
},
|
|
55
|
+
}, _e = {
|
|
56
56
|
key: 4,
|
|
57
57
|
class: "slp-full-charcoal-background"
|
|
58
|
-
},
|
|
58
|
+
}, be = {
|
|
59
59
|
key: 5,
|
|
60
60
|
class: "slp-partial-charcoal-background"
|
|
61
|
-
},
|
|
61
|
+
}, ye = {
|
|
62
62
|
key: 6,
|
|
63
63
|
class: "slp-half-grey-background"
|
|
64
|
-
},
|
|
64
|
+
}, $e = {
|
|
65
65
|
key: 7,
|
|
66
66
|
class: "slp-partial-white-background"
|
|
67
|
-
},
|
|
67
|
+
}, ke = {
|
|
68
68
|
key: 8,
|
|
69
69
|
class: "slp-partial-grey-background"
|
|
70
|
-
},
|
|
70
|
+
}, we = /* @__PURE__ */ I({
|
|
71
71
|
__name: "SlpContainer",
|
|
72
72
|
props: {
|
|
73
73
|
fluid: { type: Boolean },
|
|
74
74
|
variant: {}
|
|
75
75
|
},
|
|
76
76
|
setup(u) {
|
|
77
|
-
const e = u, o =
|
|
78
|
-
return (n, d) =>
|
|
77
|
+
const e = u, o = k(() => e.fluid ?? !1), l = k(() => e.variant ?? "white"), a = k(() => o.value ? "fluid" : "");
|
|
78
|
+
return (n, d) => l.value === "light-purple-100" ? (s(), r("div", ve, [
|
|
79
79
|
v("div", {
|
|
80
|
-
class:
|
|
80
|
+
class: g(["slp-container", a.value])
|
|
81
81
|
}, [
|
|
82
82
|
b(n.$slots, "default", {}, void 0, !0)
|
|
83
83
|
], 2)
|
|
84
|
-
])) :
|
|
84
|
+
])) : l.value === "grey-100" ? (s(), r("div", he, [
|
|
85
85
|
v("div", {
|
|
86
|
-
class:
|
|
86
|
+
class: g(["slp-container", a.value])
|
|
87
87
|
}, [
|
|
88
88
|
b(n.$slots, "default", {}, void 0, !0)
|
|
89
89
|
], 2)
|
|
90
|
-
])) :
|
|
90
|
+
])) : l.value === "gradient" ? (s(), r("div", me, [
|
|
91
91
|
v("div", {
|
|
92
|
-
class:
|
|
92
|
+
class: g(["slp-container", a.value])
|
|
93
93
|
}, [
|
|
94
94
|
b(n.$slots, "default", {}, void 0, !0)
|
|
95
95
|
], 2)
|
|
96
|
-
])) :
|
|
96
|
+
])) : l.value === "gradient-full" ? (s(), r("div", ge, [
|
|
97
97
|
v("div", {
|
|
98
|
-
class:
|
|
98
|
+
class: g(["slp-container", a.value])
|
|
99
99
|
}, [
|
|
100
100
|
b(n.$slots, "default", {}, void 0, !0)
|
|
101
101
|
], 2)
|
|
102
|
-
])) :
|
|
102
|
+
])) : l.value === "charcoal-100" ? (s(), r("div", _e, [
|
|
103
103
|
v("div", {
|
|
104
|
-
class:
|
|
104
|
+
class: g(["slp-container", a.value])
|
|
105
105
|
}, [
|
|
106
106
|
b(n.$slots, "default", {}, void 0, !0)
|
|
107
107
|
], 2)
|
|
108
|
-
])) :
|
|
108
|
+
])) : l.value === "charcoal-75" ? (s(), r("div", be, [
|
|
109
109
|
v("div", {
|
|
110
|
-
class:
|
|
110
|
+
class: g(["slp-container", a.value])
|
|
111
111
|
}, [
|
|
112
112
|
b(n.$slots, "default", {}, void 0, !0)
|
|
113
113
|
], 2)
|
|
114
|
-
])) :
|
|
114
|
+
])) : l.value === "grey-50" ? (s(), r("div", ye, [
|
|
115
115
|
v("div", {
|
|
116
|
-
class:
|
|
116
|
+
class: g(["slp-container", a.value])
|
|
117
117
|
}, [
|
|
118
118
|
b(n.$slots, "default", {}, void 0, !0)
|
|
119
119
|
], 2)
|
|
120
|
-
])) :
|
|
120
|
+
])) : l.value === "white-75" ? (s(), r("div", $e, [
|
|
121
121
|
v("div", {
|
|
122
|
-
class:
|
|
122
|
+
class: g(["slp-container", a.value])
|
|
123
123
|
}, [
|
|
124
124
|
b(n.$slots, "default", {}, void 0, !0)
|
|
125
125
|
], 2)
|
|
126
|
-
])) :
|
|
126
|
+
])) : l.value === "grey-75" ? (s(), r("div", ke, [
|
|
127
127
|
v("div", {
|
|
128
|
-
class:
|
|
128
|
+
class: g(["slp-container", a.value])
|
|
129
129
|
}, [
|
|
130
130
|
b(n.$slots, "default", {}, void 0, !0)
|
|
131
131
|
], 2)
|
|
132
132
|
])) : (s(), r("div", {
|
|
133
133
|
key: 9,
|
|
134
|
-
class:
|
|
134
|
+
class: g(["slp-container", a.value])
|
|
135
135
|
}, [
|
|
136
136
|
b(n.$slots, "default", {}, void 0, !0)
|
|
137
137
|
], 2));
|
|
138
138
|
}
|
|
139
|
-
}),
|
|
139
|
+
}), oe = /* @__PURE__ */ C(we, [["__scopeId", "data-v-67a0761e"]]), Se = /* @__PURE__ */ I({
|
|
140
140
|
__name: "SlpIcon",
|
|
141
141
|
props: {
|
|
142
142
|
size: {
|
|
@@ -156,10 +156,10 @@ const ce = ["href"], ue = /* @__PURE__ */ L({
|
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
setup(u) {
|
|
159
|
-
const e = u, o =
|
|
159
|
+
const e = u, o = k(() => {
|
|
160
160
|
const a = ["slp-icon"];
|
|
161
161
|
return typeof e.size == "string" && isNaN(Number(e.size)) && a.push(`slp-icon--size-${e.size}`), e.color && !e.color.startsWith("#") && a.push(`slp-icon--color-${e.color}`), a;
|
|
162
|
-
}),
|
|
162
|
+
}), l = k(() => {
|
|
163
163
|
var n;
|
|
164
164
|
const a = {};
|
|
165
165
|
if ((n = e.color) != null && n.startsWith("#") && (a.color = e.color, a.fill = e.color), typeof e.size == "number" || !isNaN(Number(e.size))) {
|
|
@@ -169,26 +169,26 @@ const ce = ["href"], ue = /* @__PURE__ */ L({
|
|
|
169
169
|
return a;
|
|
170
170
|
});
|
|
171
171
|
return (a, n) => {
|
|
172
|
-
var d,
|
|
173
|
-
return s(),
|
|
174
|
-
class:
|
|
175
|
-
style:
|
|
172
|
+
var d, i;
|
|
173
|
+
return s(), R(K(u.icon), {
|
|
174
|
+
class: g(["slp-icon", o.value]),
|
|
175
|
+
style: Q(l.value),
|
|
176
176
|
role: "img",
|
|
177
177
|
"aria-hidden": "true",
|
|
178
|
-
"data-icon-name": ((
|
|
178
|
+
"data-icon-name": ((i = (d = u.icon) == null ? void 0 : d.__docgenInfo) == null ? void 0 : i.displayName) || ""
|
|
179
179
|
}, null, 8, ["class", "style", "data-icon-name"]);
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
}),
|
|
183
|
-
function
|
|
184
|
-
return s(), r("div",
|
|
182
|
+
}), A = /* @__PURE__ */ C(Se, [["__scopeId", "data-v-b82aeda9"]]), Ce = {}, Le = { class: "slp-row" };
|
|
183
|
+
function Ie(u, e) {
|
|
184
|
+
return s(), r("div", Le, [
|
|
185
185
|
b(u.$slots, "default", {}, void 0, !0)
|
|
186
186
|
]);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const zt = /* @__PURE__ */ C(Ce, [["render", Ie], ["__scopeId", "data-v-adc8d02f"]]), Ne = {
|
|
189
189
|
key: 0,
|
|
190
190
|
class: "arrow-symbol"
|
|
191
|
-
},
|
|
191
|
+
}, Te = /* @__PURE__ */ I({
|
|
192
192
|
__name: "SlpTypography",
|
|
193
193
|
props: {
|
|
194
194
|
variant: {},
|
|
@@ -217,21 +217,21 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
217
217
|
"arrow",
|
|
218
218
|
"quotes",
|
|
219
219
|
"emphasis"
|
|
220
|
-
], o = ["span", "h1", "h2", "h3", "h4", "p", "div"],
|
|
221
|
-
return (
|
|
222
|
-
class:
|
|
220
|
+
], o = ["span", "h1", "h2", "h3", "h4", "h5", "p", "div"], l = u, a = k(() => e.includes(l.variant || "") ? l.variant : "body1"), n = k(() => o.includes(l.tag || "") ? l.tag : "span"), d = k(() => `slp-text-${a.value}`);
|
|
221
|
+
return (i, c) => (s(), R(K(n.value), {
|
|
222
|
+
class: g(d.value)
|
|
223
223
|
}, {
|
|
224
224
|
default: N(() => [
|
|
225
|
-
b(
|
|
226
|
-
a.value === "arrow" ? (s(), r("span",
|
|
225
|
+
b(i.$slots, "default", {}, void 0, !0),
|
|
226
|
+
a.value === "arrow" ? (s(), r("span", Ne, "→")) : B("", !0)
|
|
227
227
|
]),
|
|
228
228
|
_: 3
|
|
229
229
|
}, 8, ["class"]));
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
231
|
+
}), F = /* @__PURE__ */ C(Te, [["__scopeId", "data-v-f601c702"]]), ze = {
|
|
232
232
|
key: 0,
|
|
233
233
|
class: "dropdown-menu"
|
|
234
|
-
},
|
|
234
|
+
}, Ee = ["onClick"], Me = { class: "side-navigation" }, Be = ["data-ga-name", "onClick"], Ge = /* @__PURE__ */ I({
|
|
235
235
|
__name: "SlpSideNavigation",
|
|
236
236
|
props: {
|
|
237
237
|
position: {
|
|
@@ -248,13 +248,13 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
setup(u) {
|
|
251
|
-
const e = u, o =
|
|
252
|
-
o.value && !o.value.contains(p.target) && (
|
|
253
|
-
}, a =
|
|
251
|
+
const e = u, o = w(null), l = (p) => {
|
|
252
|
+
o.value && !o.value.contains(p.target) && (i.value = !1);
|
|
253
|
+
}, a = w(null), n = w(null);
|
|
254
254
|
let d = null;
|
|
255
|
-
const
|
|
255
|
+
const i = w(!1), c = (p) => {
|
|
256
256
|
const h = document.getElementById(p);
|
|
257
|
-
h && h.scrollIntoView({ behavior: "smooth" }),
|
|
257
|
+
h && h.scrollIntoView({ behavior: "smooth" }), i.value = !1;
|
|
258
258
|
}, t = () => {
|
|
259
259
|
if (!n.value) return;
|
|
260
260
|
const p = e.navigationItems.map((h) => document.getElementById(h.id)).filter((h) => h !== null);
|
|
@@ -274,14 +274,14 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
274
274
|
}
|
|
275
275
|
), p.forEach((h) => d == null ? void 0 : d.observe(h));
|
|
276
276
|
};
|
|
277
|
-
return
|
|
278
|
-
document.addEventListener("click",
|
|
277
|
+
return D(() => {
|
|
278
|
+
document.addEventListener("click", l), se(() => {
|
|
279
279
|
t();
|
|
280
280
|
});
|
|
281
|
-
}),
|
|
282
|
-
d && d.disconnect(), document.removeEventListener("click",
|
|
281
|
+
}), X(() => {
|
|
282
|
+
d && d.disconnect(), document.removeEventListener("click", l);
|
|
283
283
|
}), (p, h) => (s(), r("div", {
|
|
284
|
-
class:
|
|
284
|
+
class: g([
|
|
285
285
|
"side-navigation-layout",
|
|
286
286
|
`side-navigation-layout--${e.position}`,
|
|
287
287
|
{ "side-navigation--dark": e.darkMode }
|
|
@@ -294,16 +294,16 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
294
294
|
}, [
|
|
295
295
|
v("button", {
|
|
296
296
|
class: "dropdown-toggle",
|
|
297
|
-
onClick: h[0] || (h[0] = (m) =>
|
|
297
|
+
onClick: h[0] || (h[0] = (m) => i.value = !i.value)
|
|
298
298
|
}, [
|
|
299
299
|
h[1] || (h[1] = v("span", null, "Jump to a section", -1)),
|
|
300
|
-
|
|
301
|
-
icon:
|
|
300
|
+
$(A, {
|
|
301
|
+
icon: i.value ? G(ee) : G(te),
|
|
302
302
|
color: "black",
|
|
303
303
|
size: "sm"
|
|
304
304
|
}, null, 8, ["icon"])
|
|
305
305
|
]),
|
|
306
|
-
|
|
306
|
+
i.value ? (s(), r("ul", ze, [
|
|
307
307
|
(s(!0), r(T, null, z(e.navigationItems, (m) => (s(), r("li", {
|
|
308
308
|
key: m.id,
|
|
309
309
|
class: "dropdown-item"
|
|
@@ -311,12 +311,12 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
311
311
|
v("a", {
|
|
312
312
|
href: "#",
|
|
313
313
|
class: "dropdown-link",
|
|
314
|
-
onClick:
|
|
315
|
-
},
|
|
314
|
+
onClick: Z((f) => c(m.id), ["prevent"])
|
|
315
|
+
}, S(m.text), 9, Ee)
|
|
316
316
|
]))), 128))
|
|
317
|
-
])) :
|
|
317
|
+
])) : B("", !0)
|
|
318
318
|
], 512),
|
|
319
|
-
v("nav",
|
|
319
|
+
v("nav", Me, [
|
|
320
320
|
v("ul", null, [
|
|
321
321
|
(s(!0), r(T, null, z(e.navigationItems, (m) => (s(), r("li", {
|
|
322
322
|
key: m.id,
|
|
@@ -324,11 +324,11 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
324
324
|
}, [
|
|
325
325
|
v("a", {
|
|
326
326
|
href: "#",
|
|
327
|
-
class:
|
|
327
|
+
class: g(["side-navigation__link", { "side-navigation__link--active": a.value === m.id }]),
|
|
328
328
|
"data-ga-name": m.text,
|
|
329
329
|
"data-ga-location": "side anchor",
|
|
330
|
-
onClick:
|
|
331
|
-
},
|
|
330
|
+
onClick: Z((f) => c(m.id), ["prevent"])
|
|
331
|
+
}, S(m.text), 11, Be)
|
|
332
332
|
]))), 128))
|
|
333
333
|
])
|
|
334
334
|
]),
|
|
@@ -341,7 +341,7 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
341
341
|
], 512)
|
|
342
342
|
], 2));
|
|
343
343
|
}
|
|
344
|
-
}),
|
|
344
|
+
}), Et = /* @__PURE__ */ C(Ge, [["__scopeId", "data-v-68f8d83f"]]), Ve = ["for"], Oe = ["name", "value", "id", "checked", "disabled"], Re = /* @__PURE__ */ I({
|
|
345
345
|
__name: "SlpRadioButton",
|
|
346
346
|
props: {
|
|
347
347
|
option: {},
|
|
@@ -350,31 +350,31 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
350
350
|
},
|
|
351
351
|
emits: ["update:modelValue"],
|
|
352
352
|
setup(u, { emit: e }) {
|
|
353
|
-
const o = e,
|
|
353
|
+
const o = e, l = (a) => {
|
|
354
354
|
const n = a.target;
|
|
355
355
|
o("update:modelValue", n.value);
|
|
356
356
|
};
|
|
357
357
|
return (a, n) => {
|
|
358
|
-
var d,
|
|
358
|
+
var d, i, c;
|
|
359
359
|
return s(), r("label", {
|
|
360
360
|
for: a.option,
|
|
361
|
-
class:
|
|
361
|
+
class: g(["slp-radio", { disabled: (d = a.config) == null ? void 0 : d.disabled }])
|
|
362
362
|
}, [
|
|
363
|
-
|
|
363
|
+
V(S(a.option) + " ", 1),
|
|
364
364
|
v("input", {
|
|
365
365
|
type: "radio",
|
|
366
366
|
name: a.name,
|
|
367
367
|
value: a.option,
|
|
368
368
|
id: a.option,
|
|
369
|
-
onInput:
|
|
370
|
-
checked: (
|
|
369
|
+
onInput: l,
|
|
370
|
+
checked: (i = a.config) == null ? void 0 : i.checked,
|
|
371
371
|
disabled: (c = a.config) == null ? void 0 : c.disabled
|
|
372
|
-
}, null, 40,
|
|
372
|
+
}, null, 40, Oe),
|
|
373
373
|
n[0] || (n[0] = v("span", { class: "slp-radio__checkmark" }, null, -1))
|
|
374
|
-
], 10,
|
|
374
|
+
], 10, Ve);
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
}),
|
|
377
|
+
}), Ae = /* @__PURE__ */ C(Re, [["__scopeId", "data-v-f37e970e"]]), Fe = /* @__PURE__ */ I({
|
|
378
378
|
__name: "SlpRadioButtonGroup",
|
|
379
379
|
props: {
|
|
380
380
|
options: {},
|
|
@@ -389,19 +389,19 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
389
389
|
const o = {
|
|
390
390
|
VERTICAL: "vertical",
|
|
391
391
|
HORIZONTAL: "horizontal"
|
|
392
|
-
},
|
|
393
|
-
|
|
392
|
+
}, l = e, a = (n) => {
|
|
393
|
+
l("update:modelValue", n);
|
|
394
394
|
};
|
|
395
395
|
return (n, d) => {
|
|
396
|
-
var
|
|
397
|
-
return s(),
|
|
398
|
-
class:
|
|
399
|
-
"slp-radio-group--vertical": ((
|
|
396
|
+
var i, c;
|
|
397
|
+
return s(), R(oe, {
|
|
398
|
+
class: g(["slp-radio-group", {
|
|
399
|
+
"slp-radio-group--vertical": ((i = n.config) == null ? void 0 : i.orientation) === o.VERTICAL,
|
|
400
400
|
"slp-radio-group--horizontal": ((c = n.config) == null ? void 0 : c.orientation) === o.HORIZONTAL
|
|
401
401
|
}])
|
|
402
402
|
}, {
|
|
403
403
|
default: N(() => [
|
|
404
|
-
(s(!0), r(T, null, z(n.options, (t) => (s(),
|
|
404
|
+
(s(!0), r(T, null, z(n.options, (t) => (s(), R(Ae, {
|
|
405
405
|
key: t.value,
|
|
406
406
|
option: t.value,
|
|
407
407
|
name: n.name,
|
|
@@ -416,13 +416,13 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
416
416
|
}, 8, ["class"]);
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
|
-
}),
|
|
419
|
+
}), Mt = /* @__PURE__ */ C(Fe, [["__scopeId", "data-v-ae31ec89"]]), Pe = {
|
|
420
420
|
key: 0,
|
|
421
421
|
class: "slp-loading-round"
|
|
422
|
-
},
|
|
422
|
+
}, De = {
|
|
423
423
|
key: 1,
|
|
424
424
|
class: "slp-loading-linear"
|
|
425
|
-
},
|
|
425
|
+
}, We = /* @__PURE__ */ I({
|
|
426
426
|
name: "SlpLoader",
|
|
427
427
|
__name: "SlpLoader",
|
|
428
428
|
props: {
|
|
@@ -430,12 +430,12 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
430
430
|
},
|
|
431
431
|
setup(u) {
|
|
432
432
|
const e = u;
|
|
433
|
-
return (o,
|
|
433
|
+
return (o, l) => {
|
|
434
434
|
var a;
|
|
435
|
-
return ((a = e.config) == null ? void 0 : a.variant) === "round" ? (s(), r("div",
|
|
435
|
+
return ((a = e.config) == null ? void 0 : a.variant) === "round" ? (s(), r("div", Pe)) : (s(), r("div", De));
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
}),
|
|
438
|
+
}), Bt = /* @__PURE__ */ C(We, [["__scopeId", "data-v-ee32411b"]]), qe = ["href", "data-ga-name", "data-ga-location"], He = /* @__PURE__ */ I({
|
|
439
439
|
__name: "Tree",
|
|
440
440
|
props: {
|
|
441
441
|
text: { default: "" },
|
|
@@ -451,21 +451,21 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
451
451
|
},
|
|
452
452
|
setup(u) {
|
|
453
453
|
return (e, o) => {
|
|
454
|
-
var a, n, d,
|
|
455
|
-
const
|
|
454
|
+
var a, n, d, i, c, t;
|
|
455
|
+
const l = le("Tree", !0);
|
|
456
456
|
return s(), r("div", {
|
|
457
|
-
class:
|
|
457
|
+
class: g([`depth-${(a = e.config) == null ? void 0 : a.depth}`, { mobile: (n = e.config) == null ? void 0 : n.mobile }])
|
|
458
458
|
}, [
|
|
459
459
|
e.text ? (s(), r("a", {
|
|
460
460
|
key: 0,
|
|
461
|
-
class:
|
|
462
|
-
href: (
|
|
461
|
+
class: g(["anchor", { selected: (d = e.config) == null ? void 0 : d.isSelected }]),
|
|
462
|
+
href: (i = e.config) == null ? void 0 : i.href,
|
|
463
463
|
"data-ga-name": (c = e.config) == null ? void 0 : c.dataGaName,
|
|
464
464
|
"data-ga-location": (t = e.config) == null ? void 0 : t.dataGaLocation
|
|
465
|
-
},
|
|
465
|
+
}, S(e.text), 11, qe)) : B("", !0),
|
|
466
466
|
(s(!0), r(T, null, z(e.nodes, (p) => {
|
|
467
|
-
var h, m, f,
|
|
468
|
-
return s(),
|
|
467
|
+
var h, m, f, _, L, y;
|
|
468
|
+
return s(), R(l, {
|
|
469
469
|
key: p.text,
|
|
470
470
|
nodes: p.nodes,
|
|
471
471
|
text: p.text,
|
|
@@ -473,16 +473,16 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
473
473
|
href: ((h = p.config) == null ? void 0 : h.href) ?? "",
|
|
474
474
|
dataGaName: (m = p.config) == null ? void 0 : m.dataGaName,
|
|
475
475
|
dataGaLocation: (f = p.config) == null ? void 0 : f.dataGaLocation,
|
|
476
|
-
depth: (((
|
|
477
|
-
isSelected: (
|
|
478
|
-
mobile: (
|
|
476
|
+
depth: (((_ = e.config) == null ? void 0 : _.depth) ?? 0) + 1,
|
|
477
|
+
isSelected: (L = p.config) == null ? void 0 : L.isSelected,
|
|
478
|
+
mobile: (y = e.config) == null ? void 0 : y.mobile
|
|
479
479
|
}
|
|
480
480
|
}, null, 8, ["nodes", "text", "config"]);
|
|
481
481
|
}), 128))
|
|
482
482
|
], 2);
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
}),
|
|
485
|
+
}), ne = /* @__PURE__ */ C(He, [["__scopeId", "data-v-c3be63ed"]]), Ue = { class: "dropdown__list" }, je = { class: "horizontal-rule slp-my-16" }, Ze = /* @__PURE__ */ I({
|
|
486
486
|
__name: "SlpAnchorDropdown",
|
|
487
487
|
props: {
|
|
488
488
|
dropdownLabel: { default: "Jump to a section" },
|
|
@@ -490,49 +490,49 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
490
490
|
hyperlinks: {}
|
|
491
491
|
},
|
|
492
492
|
setup(u) {
|
|
493
|
-
const e =
|
|
493
|
+
const e = w(!1), o = () => {
|
|
494
494
|
e.value = !e.value;
|
|
495
495
|
};
|
|
496
|
-
return (
|
|
497
|
-
var n, d,
|
|
496
|
+
return (l, a) => {
|
|
497
|
+
var n, d, i;
|
|
498
498
|
return s(), r("div", {
|
|
499
|
-
class:
|
|
499
|
+
class: g(["dropdown", { hide: !e.value }])
|
|
500
500
|
}, [
|
|
501
|
-
|
|
501
|
+
$(U, {
|
|
502
502
|
class: "dropdown__button",
|
|
503
503
|
variant: "ghost",
|
|
504
504
|
onClick: o
|
|
505
505
|
}, {
|
|
506
506
|
default: N(() => [
|
|
507
|
-
v("span", null,
|
|
508
|
-
|
|
509
|
-
icon: e.value ? G(
|
|
507
|
+
v("span", null, S(l.dropdownLabel), 1),
|
|
508
|
+
$(A, {
|
|
509
|
+
icon: e.value ? G(ee) : G(te)
|
|
510
510
|
}, null, 8, ["icon"])
|
|
511
511
|
]),
|
|
512
512
|
_: 1
|
|
513
513
|
}),
|
|
514
|
-
v("div",
|
|
515
|
-
|
|
514
|
+
v("div", Ue, [
|
|
515
|
+
P($(F, {
|
|
516
516
|
tag: "div",
|
|
517
517
|
variant: "body3-bold",
|
|
518
518
|
class: "nav-heading"
|
|
519
519
|
}, {
|
|
520
520
|
default: N(() => [
|
|
521
|
-
|
|
521
|
+
V(S(l.anchors.text), 1)
|
|
522
522
|
]),
|
|
523
523
|
_: 1
|
|
524
524
|
}, 512), [
|
|
525
|
-
[
|
|
525
|
+
[H, l.anchors.text]
|
|
526
526
|
]),
|
|
527
|
-
|
|
527
|
+
$(ne, {
|
|
528
528
|
mobile: "",
|
|
529
|
-
nodes:
|
|
529
|
+
nodes: l.anchors.data,
|
|
530
530
|
onClick: o
|
|
531
531
|
}, null, 8, ["nodes"]),
|
|
532
|
-
|
|
533
|
-
[
|
|
532
|
+
P(v("div", je, null, 512), [
|
|
533
|
+
[H, (n = l.hyperlinks) == null ? void 0 : n.data.length]
|
|
534
534
|
]),
|
|
535
|
-
|
|
535
|
+
P($(F, {
|
|
536
536
|
tag: "div",
|
|
537
537
|
variant: "body3-bold",
|
|
538
538
|
class: "nav-heading"
|
|
@@ -540,28 +540,28 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
540
540
|
default: N(() => {
|
|
541
541
|
var c;
|
|
542
542
|
return [
|
|
543
|
-
|
|
543
|
+
V(S((c = l.hyperlinks) == null ? void 0 : c.text), 1)
|
|
544
544
|
];
|
|
545
545
|
}),
|
|
546
546
|
_: 1
|
|
547
547
|
}, 512), [
|
|
548
|
-
[
|
|
548
|
+
[H, (d = l.hyperlinks) == null ? void 0 : d.text]
|
|
549
549
|
]),
|
|
550
550
|
v("ul", null, [
|
|
551
|
-
(s(!0), r(T, null, z((
|
|
551
|
+
(s(!0), r(T, null, z((i = l.hyperlinks) == null ? void 0 : i.data, (c) => (s(), r("li", {
|
|
552
552
|
key: c.text
|
|
553
553
|
}, [
|
|
554
|
-
|
|
554
|
+
$(U, {
|
|
555
555
|
class: "dropdown__link",
|
|
556
556
|
variant: "ghost",
|
|
557
557
|
href: c.config.href
|
|
558
558
|
}, {
|
|
559
559
|
default: N(() => [
|
|
560
|
-
v("span", null,
|
|
561
|
-
|
|
560
|
+
v("span", null, S(c.text), 1),
|
|
561
|
+
$(U, { variant: "icon" }, {
|
|
562
562
|
default: N(() => [
|
|
563
|
-
|
|
564
|
-
icon: G(
|
|
563
|
+
$(A, {
|
|
564
|
+
icon: G(ae),
|
|
565
565
|
size: "xs"
|
|
566
566
|
}, null, 8, ["icon"])
|
|
567
567
|
]),
|
|
@@ -576,107 +576,107 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
576
576
|
], 2);
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
}),
|
|
579
|
+
}), Je = /* @__PURE__ */ C(Ze, [["__scopeId", "data-v-9b690a76"]]), Ke = { key: 0 }, Qe = {
|
|
580
580
|
key: 1,
|
|
581
581
|
id: "collapsible-sidebar-wrapper"
|
|
582
|
-
},
|
|
582
|
+
}, Xe = { id: "collapsible-sidebar-content" }, Ye = { id: "collapsible-sidebar" }, xe = { class: "anchors" }, et = /* @__PURE__ */ I({
|
|
583
583
|
__name: "SlpSideNavigationWithTree",
|
|
584
584
|
props: {
|
|
585
585
|
anchors: {},
|
|
586
|
-
hyperlinks: {}
|
|
586
|
+
hyperlinks: {},
|
|
587
|
+
alwaysExpanded: { type: Boolean }
|
|
587
588
|
},
|
|
588
589
|
setup(u) {
|
|
589
|
-
const e = u, o =
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
590
|
+
const e = u, o = w([]), l = w(
|
|
591
|
+
e.anchors.data.map((f) => ({
|
|
592
|
+
text: f.text,
|
|
593
|
+
nodes: f.nodes,
|
|
594
|
+
config: {
|
|
595
|
+
href: f.config.href,
|
|
596
|
+
dataGaName: f.config.dataGaName,
|
|
597
|
+
dataGaLocation: f.config.dataGaLocation,
|
|
598
|
+
depth: 0,
|
|
599
|
+
mobile: !1
|
|
600
|
+
}
|
|
601
|
+
}))
|
|
602
|
+
), a = w(!1), n = w(!0);
|
|
600
603
|
let d = null;
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
}),
|
|
604
|
-
const
|
|
605
|
-
return
|
|
604
|
+
const i = (f, _ = []) => (f.forEach((L) => {
|
|
605
|
+
L.config.href && _.push(L.config.href), L.nodes && i(L.nodes, _);
|
|
606
|
+
}), _), c = (f) => {
|
|
607
|
+
const _ = [], L = (y) => y.some((E, M) => (_.push(M), E.config.href === f || E.nodes && L(E.nodes) ? !0 : (_.pop(), !1)));
|
|
608
|
+
return L(e.anchors.data), _;
|
|
606
609
|
}, t = (f) => {
|
|
607
|
-
let
|
|
608
|
-
const
|
|
609
|
-
const
|
|
610
|
-
text:
|
|
610
|
+
let _ = 0;
|
|
611
|
+
const L = (y, E, M) => {
|
|
612
|
+
const O = {
|
|
613
|
+
text: y.text,
|
|
611
614
|
config: {
|
|
612
|
-
href:
|
|
613
|
-
dataGaName:
|
|
614
|
-
dataGaLocation:
|
|
615
|
+
href: y.config.href,
|
|
616
|
+
dataGaName: y.config.dataGaName,
|
|
617
|
+
dataGaLocation: y.config.dataGaLocation
|
|
615
618
|
}
|
|
616
619
|
};
|
|
617
|
-
return f &&
|
|
618
|
-
(
|
|
619
|
-
)
|
|
620
|
+
return f && E === 0 && (O.config.isSelected = !0), e.alwaysExpanded ? (o.value[M] === E && (O.config.isSelected = !0), y.nodes && (O.nodes = y.nodes.map(
|
|
621
|
+
(W, q) => L(W, q, M + 1)
|
|
622
|
+
))) : o.value[M] === E && (y.nodes && (M += 1, O.nodes = y.nodes.map(
|
|
623
|
+
(W, q) => L(W, q, M)
|
|
624
|
+
), M -= 1), M + 1 === o.value.length && (O.config.isSelected = !0)), O;
|
|
620
625
|
};
|
|
621
|
-
return e.anchors.data.map(
|
|
622
|
-
(C, M) => I(C, M)
|
|
623
|
-
);
|
|
626
|
+
return e.anchors.data.map((y, E) => L(y, E, _));
|
|
624
627
|
}, p = (f) => {
|
|
625
|
-
f.forEach((
|
|
626
|
-
|
|
628
|
+
f.forEach((_) => {
|
|
629
|
+
_.isIntersecting ? (o.value = c(`#${_.target.id}`), e.alwaysExpanded || (l.value = t(!1))) : n.value && !e.alwaysExpanded && (l.value = t(!0), n.value = !1), e.alwaysExpanded && (l.value = t(!1));
|
|
627
630
|
});
|
|
628
631
|
}, h = () => {
|
|
629
632
|
a.value = window.innerWidth < 768;
|
|
630
633
|
}, m = () => {
|
|
631
|
-
|
|
634
|
+
l.value = t(!0), n.value = !1;
|
|
632
635
|
const f = (window.innerHeight - 120 - 48) * -1;
|
|
633
|
-
d = new IntersectionObserver(
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
l(e.anchors.data).forEach((I) => {
|
|
641
|
-
const C = document.querySelector(I);
|
|
642
|
-
C && (d == null || d.observe(C));
|
|
636
|
+
d = new IntersectionObserver(p, {
|
|
637
|
+
rootMargin: `-120px 0px ${f}px 0px`,
|
|
638
|
+
threshold: 0
|
|
639
|
+
}), setTimeout(() => {
|
|
640
|
+
i(e.anchors.data).forEach((L) => {
|
|
641
|
+
const y = document.querySelector(L);
|
|
642
|
+
y && (d == null || d.observe(y));
|
|
643
643
|
});
|
|
644
644
|
}, 0);
|
|
645
645
|
};
|
|
646
|
-
return
|
|
646
|
+
return D(() => {
|
|
647
647
|
h(), window.addEventListener("resize", h), m();
|
|
648
|
-
}),
|
|
648
|
+
}), X(() => {
|
|
649
649
|
window.removeEventListener("resize", h), d && d.disconnect();
|
|
650
|
-
}), (f,
|
|
651
|
-
a.value ? (s(), r("div",
|
|
652
|
-
|
|
650
|
+
}), (f, _) => (s(), r("div", null, [
|
|
651
|
+
a.value ? (s(), r("div", Ke, [
|
|
652
|
+
$(Je, ie(re({ anchors: f.anchors, hyperlinks: f.hyperlinks })), null, 16),
|
|
653
653
|
b(f.$slots, "default", {}, void 0, !0)
|
|
654
|
-
])) : (s(), r("div",
|
|
655
|
-
v("div",
|
|
654
|
+
])) : (s(), r("div", Qe, [
|
|
655
|
+
v("div", Xe, [
|
|
656
656
|
b(f.$slots, "default", {}, void 0, !0)
|
|
657
657
|
]),
|
|
658
|
-
v("nav",
|
|
658
|
+
v("nav", Ye, [
|
|
659
659
|
b(f.$slots, "header", {}, void 0, !0),
|
|
660
|
-
v("div",
|
|
661
|
-
f.anchors.text ? (s(),
|
|
660
|
+
v("div", xe, [
|
|
661
|
+
f.anchors.text ? (s(), R(F, {
|
|
662
662
|
key: 0,
|
|
663
663
|
tag: "div",
|
|
664
664
|
variant: "body3-bold",
|
|
665
665
|
class: "nav-heading"
|
|
666
666
|
}, {
|
|
667
667
|
default: N(() => [
|
|
668
|
-
|
|
668
|
+
V(S(f.anchors.text), 1)
|
|
669
669
|
]),
|
|
670
670
|
_: 1
|
|
671
|
-
})) :
|
|
672
|
-
|
|
671
|
+
})) : B("", !0),
|
|
672
|
+
$(ne, { nodes: l.value }, null, 8, ["nodes"])
|
|
673
673
|
]),
|
|
674
674
|
b(f.$slots, "footer", {}, void 0, !0)
|
|
675
675
|
])
|
|
676
676
|
]))
|
|
677
677
|
]));
|
|
678
678
|
}
|
|
679
|
-
}), Gt = /* @__PURE__ */
|
|
679
|
+
}), Gt = /* @__PURE__ */ C(et, [["__scopeId", "data-v-47e57dda"]]), tt = ["id", "aria-describedby"], at = { class: "slp-tooltip__wrapper" }, ot = ["id", "data-ga-features", "data-ga-features-sub", "data-ga-features-sub-card", "data-ga-name", "data-ga-location", "href"], nt = ["id"], st = ["id", "aria-describedby"], lt = { class: "slp-tooltip__wrapper" }, it = ["id", "innerHTML"], rt = ["id"], dt = /* @__PURE__ */ I({
|
|
680
680
|
__name: "SlpTooltip",
|
|
681
681
|
props: {
|
|
682
682
|
text: { default: "" },
|
|
@@ -687,19 +687,19 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
687
687
|
dataProperties: { default: null }
|
|
688
688
|
},
|
|
689
689
|
setup(u) {
|
|
690
|
-
const e = u, o =
|
|
690
|
+
const e = u, o = w(!1), l = w(""), a = w(""), n = w(""), d = (t) => {
|
|
691
691
|
e.mode === "hover" && (o.value = t.type === "mouseenter");
|
|
692
|
-
},
|
|
692
|
+
}, i = () => {
|
|
693
693
|
o.value = e.mode === "click";
|
|
694
694
|
}, c = (t) => {
|
|
695
695
|
t.target.id !== e.id && (o.value = !1);
|
|
696
696
|
};
|
|
697
|
-
return
|
|
697
|
+
return D(() => {
|
|
698
698
|
if (e.mode === "click" && document.addEventListener("click", c), e.text) {
|
|
699
699
|
const t = e.text.match(/\[(.*?)\]/), p = e.text.match(/\((.*?)\)/);
|
|
700
|
-
|
|
700
|
+
l.value = t ? t[1] : "", a.value = p ? p[1] : "", n.value = e.text.replace(`(${a.value})`, "").replace(`[${l.value}]`, "").trim();
|
|
701
701
|
}
|
|
702
|
-
}),
|
|
702
|
+
}), Y(() => {
|
|
703
703
|
document.removeEventListener("click", c);
|
|
704
704
|
}), (t, p) => {
|
|
705
705
|
var h, m, f;
|
|
@@ -711,15 +711,15 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
711
711
|
class: "slp-tooltip",
|
|
712
712
|
onMouseenter: d,
|
|
713
713
|
onMouseleave: d,
|
|
714
|
-
onClick:
|
|
714
|
+
onClick: i
|
|
715
715
|
}, [
|
|
716
|
-
v("div",
|
|
716
|
+
v("div", at, [
|
|
717
717
|
b(t.$slots, "default", {}, void 0, !0),
|
|
718
718
|
o.value ? (s(), r("div", {
|
|
719
719
|
key: 0,
|
|
720
|
-
class:
|
|
720
|
+
class: g(["slp-tooltip__content", `${t.position} ${t.mode === "hover" ? "hover-mode" : ""}`])
|
|
721
721
|
}, [
|
|
722
|
-
|
|
722
|
+
V(S(n.value) + " ", 1),
|
|
723
723
|
t.text ? (s(), r("a", {
|
|
724
724
|
key: 0,
|
|
725
725
|
id: `${t.id}-content`,
|
|
@@ -730,88 +730,88 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
730
730
|
"data-ga-location": t.dataProperties ? "features content" : null,
|
|
731
731
|
role: "tooltip",
|
|
732
732
|
href: a.value
|
|
733
|
-
},
|
|
733
|
+
}, S(l.value), 9, ot)) : t.list ? (s(), r("ul", {
|
|
734
734
|
key: 1,
|
|
735
735
|
id: `${t.id}-content`,
|
|
736
736
|
role: "tooltip",
|
|
737
737
|
class: "slp-tooltip__list"
|
|
738
738
|
}, [
|
|
739
|
-
(s(!0), r(T, null, z(t.list, (
|
|
740
|
-
key:
|
|
741
|
-
},
|
|
742
|
-
], 8,
|
|
743
|
-
], 2)) :
|
|
739
|
+
(s(!0), r(T, null, z(t.list, (_) => (s(), r("li", {
|
|
740
|
+
key: _.text
|
|
741
|
+
}, S(_.text), 1))), 128))
|
|
742
|
+
], 8, nt)) : B("", !0)
|
|
743
|
+
], 2)) : B("", !0)
|
|
744
744
|
])
|
|
745
|
-
], 40,
|
|
745
|
+
], 40, tt)) : (s(), r("button", {
|
|
746
746
|
key: 1,
|
|
747
747
|
id: t.id,
|
|
748
748
|
"aria-label": "Click to open tooltip with more information.",
|
|
749
749
|
"aria-describedby": `${t.id}-content`,
|
|
750
|
-
class:
|
|
751
|
-
onClick:
|
|
750
|
+
class: g(`slp-tooltip ${t.mode === "click" ? "button-mode" : ""}`),
|
|
751
|
+
onClick: i
|
|
752
752
|
}, [
|
|
753
|
-
v("div",
|
|
753
|
+
v("div", lt, [
|
|
754
754
|
b(t.$slots, "default", {}, void 0, !0),
|
|
755
755
|
o.value ? (s(), r("div", {
|
|
756
756
|
key: 0,
|
|
757
|
-
class:
|
|
757
|
+
class: g(["slp-tooltip__content", `${t.position} ${t.mode === "hover" ? "hover-mode" : ""}`])
|
|
758
758
|
}, [
|
|
759
759
|
t.text ? (s(), r("span", {
|
|
760
760
|
key: 0,
|
|
761
761
|
id: `${t.id}-content`,
|
|
762
762
|
role: "tooltip",
|
|
763
763
|
innerHTML: t.text
|
|
764
|
-
}, null, 8,
|
|
764
|
+
}, null, 8, it)) : (s(), r("ul", {
|
|
765
765
|
key: 1,
|
|
766
766
|
id: `${t.id}-content`,
|
|
767
767
|
role: "tooltip",
|
|
768
768
|
class: "slp-tooltip__list"
|
|
769
769
|
}, [
|
|
770
|
-
(s(!0), r(T, null, z(t.list, (
|
|
771
|
-
key:
|
|
772
|
-
},
|
|
773
|
-
], 8,
|
|
774
|
-
], 2)) :
|
|
770
|
+
(s(!0), r(T, null, z(t.list, (_) => (s(), r("li", {
|
|
771
|
+
key: _.text
|
|
772
|
+
}, S(_.text), 1))), 128))
|
|
773
|
+
], 8, rt))
|
|
774
|
+
], 2)) : B("", !0)
|
|
775
775
|
])
|
|
776
|
-
], 10,
|
|
776
|
+
], 10, st));
|
|
777
777
|
};
|
|
778
778
|
}
|
|
779
|
-
}),
|
|
779
|
+
}), ct = /* @__PURE__ */ C(dt, [["__scopeId", "data-v-a2668f04"]]), ut = {
|
|
780
780
|
key: 0,
|
|
781
781
|
class: "breadcrumb",
|
|
782
782
|
vocab: "https://schema.org/",
|
|
783
783
|
typeof: "BreadcrumbList"
|
|
784
|
-
},
|
|
784
|
+
}, pt = ["onMouseenter", "onMouseleave"], ft = ["data-ga-name", "data-ga-location", "href"], vt = {
|
|
785
785
|
key: 0,
|
|
786
786
|
class: "breadcrumb__chevron"
|
|
787
|
-
},
|
|
787
|
+
}, ht = ["content"], mt = {
|
|
788
788
|
key: 1,
|
|
789
789
|
class: "breadcrumb",
|
|
790
790
|
vocab: "https://schema.org/",
|
|
791
791
|
typeof: "BreadcrumbList"
|
|
792
|
-
},
|
|
792
|
+
}, gt = ["href", "data-ga-name", "data-ga-location"], _t = ["content"], bt = /* @__PURE__ */ I({
|
|
793
793
|
__name: "SlpBreadcrumb",
|
|
794
794
|
props: {
|
|
795
795
|
crumbs: { default: () => [] },
|
|
796
796
|
router: {}
|
|
797
797
|
},
|
|
798
798
|
setup(u) {
|
|
799
|
-
const e = u, o =
|
|
800
|
-
const c =
|
|
799
|
+
const e = u, o = w(e.crumbs), l = w(!1), a = (i) => {
|
|
800
|
+
const c = i.split(" ");
|
|
801
801
|
for (let t = 0; t < c.length; t++)
|
|
802
802
|
c[t] = c[t][0].toUpperCase() + c[t].substr(1);
|
|
803
803
|
return c.join(" ");
|
|
804
804
|
}, n = () => {
|
|
805
|
-
|
|
806
|
-
}, d = (
|
|
807
|
-
o.value[
|
|
808
|
-
...o.value[
|
|
809
|
-
hover: !o.value[
|
|
805
|
+
l.value = window.innerWidth < 768;
|
|
806
|
+
}, d = (i) => {
|
|
807
|
+
o.value[i] && (o.value[i] = {
|
|
808
|
+
...o.value[i],
|
|
809
|
+
hover: !o.value[i].hover
|
|
810
810
|
});
|
|
811
811
|
};
|
|
812
|
-
return
|
|
812
|
+
return x(() => {
|
|
813
813
|
if (e.router) {
|
|
814
|
-
const
|
|
814
|
+
const i = e.router.currentRoute.path, c = i.startsWith("/") ? i.substring(1).split("/") : i.split("/"), t = [];
|
|
815
815
|
let p = "";
|
|
816
816
|
c.forEach((h) => {
|
|
817
817
|
p = `${p}/${h}`;
|
|
@@ -823,14 +823,14 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
823
823
|
});
|
|
824
824
|
}), o.value = t;
|
|
825
825
|
}
|
|
826
|
-
}),
|
|
826
|
+
}), D(() => {
|
|
827
827
|
n(), window.addEventListener("resize", n);
|
|
828
|
-
}),
|
|
828
|
+
}), Y(() => {
|
|
829
829
|
window.removeEventListener("resize", n);
|
|
830
|
-
}), (
|
|
830
|
+
}), (i, c) => o.value && !l.value ? (s(), r("ol", ut, [
|
|
831
831
|
(s(!0), r(T, null, z(o.value, (t, p) => (s(), r("li", {
|
|
832
832
|
key: t.title,
|
|
833
|
-
class:
|
|
833
|
+
class: g(["breadcrumb__crumb", {
|
|
834
834
|
"breadcrumb__crumb--disabled": p === o.value.length - 1
|
|
835
835
|
}]),
|
|
836
836
|
property: "itemListElement",
|
|
@@ -838,7 +838,7 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
838
838
|
onMouseenter: (h) => d(p),
|
|
839
839
|
onMouseleave: (h) => d(p)
|
|
840
840
|
}, [
|
|
841
|
-
|
|
841
|
+
$(ct, {
|
|
842
842
|
text: t.title,
|
|
843
843
|
class: "breadcrumb__crumb__tooltip",
|
|
844
844
|
position: "top"
|
|
@@ -851,33 +851,33 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
851
851
|
"data-ga-location": t.dataGaLocation || "breadcrumb",
|
|
852
852
|
href: p !== o.value.length - 1 ? t.path : void 0
|
|
853
853
|
}, [
|
|
854
|
-
|
|
854
|
+
$(F, {
|
|
855
855
|
tag: "span",
|
|
856
856
|
variant: "body3",
|
|
857
857
|
property: "name"
|
|
858
858
|
}, {
|
|
859
859
|
default: N(() => [
|
|
860
|
-
|
|
860
|
+
V(S(t.title.length > 18 ? t.title.substring(0, 18).concat("...") : t.title), 1)
|
|
861
861
|
]),
|
|
862
862
|
_: 2
|
|
863
863
|
}, 1024)
|
|
864
|
-
], 8,
|
|
864
|
+
], 8, ft)
|
|
865
865
|
]),
|
|
866
866
|
_: 2
|
|
867
867
|
}, 1032, ["text"]),
|
|
868
|
-
p !== o.value.length - 1 ? (s(), r("span",
|
|
869
|
-
|
|
868
|
+
p !== o.value.length - 1 ? (s(), r("span", vt, [
|
|
869
|
+
$(A, {
|
|
870
870
|
color: "accent-500",
|
|
871
871
|
size: "xs",
|
|
872
|
-
icon: G(
|
|
872
|
+
icon: G(ae)
|
|
873
873
|
}, null, 8, ["icon"])
|
|
874
|
-
])) :
|
|
874
|
+
])) : B("", !0),
|
|
875
875
|
v("meta", {
|
|
876
876
|
property: "position",
|
|
877
877
|
content: p + 1
|
|
878
|
-
}, null, 8,
|
|
879
|
-
], 42,
|
|
880
|
-
])) : o.value &&
|
|
878
|
+
}, null, 8, ht)
|
|
879
|
+
], 42, pt))), 128))
|
|
880
|
+
])) : o.value && l.value ? (s(), r("ol", mt, [
|
|
881
881
|
(s(!0), r(T, null, z(o.value, (t) => (s(), r("li", {
|
|
882
882
|
key: t.title,
|
|
883
883
|
class: "breadcrumb__crumb breadcrumb__crumb--mobile",
|
|
@@ -893,32 +893,32 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
893
893
|
typeof: "WebPage"
|
|
894
894
|
}, [
|
|
895
895
|
v("span", null, [
|
|
896
|
-
|
|
896
|
+
$(A, {
|
|
897
897
|
color: "accent-500",
|
|
898
898
|
size: "xs",
|
|
899
|
-
icon: G(
|
|
899
|
+
icon: G(ce)
|
|
900
900
|
}, null, 8, ["icon"])
|
|
901
901
|
]),
|
|
902
|
-
|
|
902
|
+
$(F, {
|
|
903
903
|
class: "slp-ml-8",
|
|
904
904
|
tag: "span",
|
|
905
905
|
variant: "body2",
|
|
906
906
|
property: "name"
|
|
907
907
|
}, {
|
|
908
908
|
default: N(() => [
|
|
909
|
-
|
|
909
|
+
V(S(o.value[o.value.length - 2].title), 1)
|
|
910
910
|
]),
|
|
911
911
|
_: 1
|
|
912
912
|
})
|
|
913
|
-
], 8,
|
|
913
|
+
], 8, gt),
|
|
914
914
|
v("meta", {
|
|
915
915
|
property: "position",
|
|
916
916
|
content: o.value.length - 1
|
|
917
|
-
}, null, 8,
|
|
917
|
+
}, null, 8, _t)
|
|
918
918
|
]))), 128))
|
|
919
|
-
])) :
|
|
919
|
+
])) : B("", !0);
|
|
920
920
|
}
|
|
921
|
-
}),
|
|
921
|
+
}), Vt = /* @__PURE__ */ C(bt, [["__scopeId", "data-v-fd412793"]]), yt = { class: "dropdown" }, $t = ["aria-label", "name"], kt = ["value", "name"], wt = ["value", "name"], St = /* @__PURE__ */ I({
|
|
922
922
|
__name: "SlpDropdown",
|
|
923
923
|
props: {
|
|
924
924
|
name: {},
|
|
@@ -933,9 +933,9 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
933
933
|
},
|
|
934
934
|
emits: ["input"],
|
|
935
935
|
setup(u, { emit: e }) {
|
|
936
|
-
const o = u,
|
|
937
|
-
|
|
938
|
-
var
|
|
936
|
+
const o = u, l = e, a = w(o.value), n = w(!0);
|
|
937
|
+
x(() => {
|
|
938
|
+
var i;
|
|
939
939
|
if (n.value = !o.options.every(
|
|
940
940
|
(c) => typeof c == "object"
|
|
941
941
|
), !n.value && !(o.textField && o.valueField))
|
|
@@ -944,52 +944,52 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
944
944
|
);
|
|
945
945
|
if (o.value === void 0 && o.options.length > 0)
|
|
946
946
|
if (n.value)
|
|
947
|
-
a.value = o.options[0],
|
|
947
|
+
a.value = o.options[0], l("input", a.value);
|
|
948
948
|
else {
|
|
949
949
|
const c = o.options[0];
|
|
950
|
-
a.value = (
|
|
950
|
+
a.value = (i = o.config) != null && i.primitive ? c[o.valueField] : c, l("input", a.value);
|
|
951
951
|
}
|
|
952
|
-
}),
|
|
952
|
+
}), J(
|
|
953
953
|
() => a.value,
|
|
954
|
-
(
|
|
955
|
-
|
|
954
|
+
(i) => {
|
|
955
|
+
l("input", i);
|
|
956
956
|
}
|
|
957
|
-
),
|
|
957
|
+
), J(
|
|
958
958
|
() => o.value,
|
|
959
|
-
(
|
|
960
|
-
a.value =
|
|
959
|
+
(i) => {
|
|
960
|
+
a.value = i;
|
|
961
961
|
}
|
|
962
962
|
);
|
|
963
|
-
const d = (
|
|
964
|
-
const c =
|
|
965
|
-
|
|
963
|
+
const d = (i) => {
|
|
964
|
+
const c = i.target;
|
|
965
|
+
l(o.name, c.value);
|
|
966
966
|
};
|
|
967
|
-
return (
|
|
968
|
-
|
|
969
|
-
"aria-label":
|
|
967
|
+
return (i, c) => (s(), r("div", yt, [
|
|
968
|
+
P(v("select", {
|
|
969
|
+
"aria-label": i.dropdownLabel || `${i.name} dropdown`,
|
|
970
970
|
class: "dropdown__select",
|
|
971
|
-
name:
|
|
971
|
+
name: i.name,
|
|
972
972
|
onChange: d,
|
|
973
973
|
"onUpdate:modelValue": c[0] || (c[0] = (t) => a.value = t)
|
|
974
974
|
}, [
|
|
975
|
-
n.value ? (s(!0), r(T, { key: 0 }, z(
|
|
975
|
+
n.value ? (s(!0), r(T, { key: 0 }, z(i.options, (t) => (s(), r("option", {
|
|
976
976
|
key: t,
|
|
977
977
|
value: t,
|
|
978
978
|
name: t
|
|
979
|
-
},
|
|
979
|
+
}, S(t), 9, kt))), 128)) : (s(!0), r(T, { key: 1 }, z(i.options, (t) => {
|
|
980
980
|
var p;
|
|
981
981
|
return s(), r("option", {
|
|
982
|
-
key: t[
|
|
983
|
-
value: (p =
|
|
984
|
-
name: t[
|
|
985
|
-
},
|
|
982
|
+
key: t[i.valueField],
|
|
983
|
+
value: (p = i.config) != null && p.primitive ? t[i.valueField] : t,
|
|
984
|
+
name: t[i.textField]
|
|
985
|
+
}, S(t[i.textField]), 9, wt);
|
|
986
986
|
}), 128))
|
|
987
|
-
], 40,
|
|
988
|
-
[
|
|
987
|
+
], 40, $t), [
|
|
988
|
+
[de, a.value]
|
|
989
989
|
])
|
|
990
990
|
]));
|
|
991
991
|
}
|
|
992
|
-
}),
|
|
992
|
+
}), Ot = /* @__PURE__ */ C(St, [["__scopeId", "data-v-9c71f7b0"]]), Ct = ["id"], Lt = /* @__PURE__ */ I({
|
|
993
993
|
__name: "SlpSection",
|
|
994
994
|
props: {
|
|
995
995
|
backgroundColor: {
|
|
@@ -1006,42 +1006,42 @@ const Tt = /* @__PURE__ */ S(Se, [["render", Le], ["__scopeId", "data-v-adc8d02f
|
|
|
1006
1006
|
}
|
|
1007
1007
|
},
|
|
1008
1008
|
setup(u) {
|
|
1009
|
-
const e = u, o =
|
|
1009
|
+
const e = u, o = k(() => {
|
|
1010
1010
|
var a;
|
|
1011
1011
|
return !e.backgroundColor || (a = e.backgroundColor) != null && a.startsWith("$") ? {} : { backgroundColor: e.backgroundColor };
|
|
1012
|
-
}),
|
|
1012
|
+
}), l = k(() => {
|
|
1013
1013
|
var a, n;
|
|
1014
1014
|
return (a = e.backgroundColor) != null && a.startsWith("$") ? `slp-background-${(n = e.backgroundColor) == null ? void 0 : n.slice(1)}` : null;
|
|
1015
1015
|
});
|
|
1016
1016
|
return (a, n) => (s(), r("section", {
|
|
1017
|
-
style:
|
|
1018
|
-
class:
|
|
1017
|
+
style: Q(o.value),
|
|
1018
|
+
class: g(l.value),
|
|
1019
1019
|
id: u.id || void 0
|
|
1020
1020
|
}, [
|
|
1021
|
-
|
|
1021
|
+
$(oe, null, {
|
|
1022
1022
|
default: N(() => [
|
|
1023
1023
|
b(a.$slots, "default", {}, void 0, !0)
|
|
1024
1024
|
]),
|
|
1025
1025
|
_: 3
|
|
1026
1026
|
})
|
|
1027
|
-
], 14,
|
|
1027
|
+
], 14, Ct));
|
|
1028
1028
|
}
|
|
1029
|
-
}),
|
|
1029
|
+
}), Rt = /* @__PURE__ */ C(Lt, [["__scopeId", "data-v-2b3ad016"]]);
|
|
1030
1030
|
export {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1031
|
+
Vt as SlpBreadcrumb,
|
|
1032
|
+
U as SlpButton,
|
|
1033
|
+
Tt as SlpColumn,
|
|
1034
|
+
oe as SlpContainer,
|
|
1035
|
+
Ot as SlpCustomDropdown,
|
|
1036
|
+
Ot as SlpDropdown,
|
|
1037
|
+
A as SlpIcon,
|
|
1038
|
+
Bt as SlpLoader,
|
|
1039
|
+
Ae as SlpRadioButton,
|
|
1040
|
+
Mt as SlpRadioButtonGroup,
|
|
1041
|
+
zt as SlpRow,
|
|
1042
|
+
Rt as SlpSection,
|
|
1043
|
+
Et as SlpSideNavigation,
|
|
1044
1044
|
Gt as SlpSideNavigationWithTree,
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
ct as SlpTooltip,
|
|
1046
|
+
F as SlpTypography
|
|
1047
1047
|
};
|