slippers-ui 3.2.0 → 3.2.2
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/icons/GitlabCredits.js +33 -0
- package/dist/icons/GitlabLines.js +18 -0
- package/dist/icons/MonitorLines.js +21 -0
- package/dist/icons/PackageLines.js +21 -0
- package/dist/icons/UserAlt.js +21 -0
- package/dist/icons/index.js +512 -502
- package/dist/slippers-ui.es.js +272 -265
- package/dist/style.css +1 -1
- package/icons/GitlabCredits.vue +3 -0
- package/icons/index.ts +1 -0
- package/icons.d.ts +1 -0
- package/package.json +1 -1
package/dist/slippers-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, computed as S, createElementBlock as l, openBlock as a, mergeProps as X, renderSlot as $, normalizeClass as m, createElementVNode as p, createBlock as D, resolveDynamicComponent as ee, normalizeStyle as te, withCtx as T, createCommentVNode as B, ref as I, onMounted as j, onUnmounted as oe, createVNode as
|
|
1
|
+
import { defineComponent as N, computed as S, createElementBlock as l, openBlock as a, mergeProps as X, renderSlot as $, normalizeClass as m, createElementVNode as p, createBlock as D, resolveDynamicComponent as ee, normalizeStyle as te, withCtx as T, createCommentVNode as B, ref as I, onMounted as j, onUnmounted as oe, createVNode as C, unref as A, Fragment as M, renderList as V, withModifiers as x, toDisplayString as L, createTextVNode as G, resolveComponent as de, withDirectives as U, vShow as Y, normalizeProps as ce, guardReactiveProps as ue, watch as pe, onBeforeUnmount as ae, onBeforeMount as ve, vModelSelect as fe } from "vue";
|
|
2
2
|
const he = ["href"], ge = /* @__PURE__ */ N({
|
|
3
3
|
__name: "SlpButton",
|
|
4
4
|
props: {
|
|
@@ -6,42 +6,42 @@ const he = ["href"], ge = /* @__PURE__ */ N({
|
|
|
6
6
|
variant: {},
|
|
7
7
|
href: {}
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const e =
|
|
9
|
+
setup(c) {
|
|
10
|
+
const e = c, n = S(() => e.disabled ?? !1), i = S(() => e.variant ?? "primary");
|
|
11
11
|
S(() => e.href ?? "");
|
|
12
12
|
const t = S(() => {
|
|
13
|
-
let
|
|
14
|
-
return
|
|
13
|
+
let s = [`slp-btn-${i.value}`];
|
|
14
|
+
return n.value && s.push("slp-btn-disabled"), s.join(" ");
|
|
15
15
|
});
|
|
16
|
-
return (
|
|
16
|
+
return (s, v) => e.href ? (a(), l("a", X({ key: 0 }, s.$attrs, {
|
|
17
17
|
class: ["slp-btn", t.value],
|
|
18
18
|
href: e.href
|
|
19
19
|
}), [
|
|
20
|
-
$(
|
|
21
|
-
], 16, he)) : (a(), l("button", X({ key: 1 },
|
|
20
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
21
|
+
], 16, he)) : (a(), l("button", X({ key: 1 }, s.$attrs, {
|
|
22
22
|
class: ["slp-btn", t.value],
|
|
23
23
|
type: "button"
|
|
24
24
|
}), [
|
|
25
|
-
$(
|
|
25
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
26
26
|
], 16));
|
|
27
27
|
}
|
|
28
|
-
}), k = (
|
|
29
|
-
const
|
|
30
|
-
for (const [
|
|
31
|
-
|
|
32
|
-
return
|
|
28
|
+
}), k = (c, e) => {
|
|
29
|
+
const n = c.__vccOpts || c;
|
|
30
|
+
for (const [i, t] of e)
|
|
31
|
+
n[i] = t;
|
|
32
|
+
return n;
|
|
33
33
|
}, Q = /* @__PURE__ */ k(ge, [["__scopeId", "data-v-c6fd7cb9"]]), me = /* @__PURE__ */ N({
|
|
34
34
|
__name: "SlpColumn",
|
|
35
35
|
props: {
|
|
36
36
|
cols: {},
|
|
37
37
|
size: {}
|
|
38
38
|
},
|
|
39
|
-
setup(
|
|
40
|
-
const e =
|
|
41
|
-
return (
|
|
39
|
+
setup(c) {
|
|
40
|
+
const e = c, n = S(() => e.cols ?? null), i = S(() => e.size ?? "md"), t = S(() => n.value ? `slp-col-${i.value}-${n.value}` : `slp-col-${i.value}`);
|
|
41
|
+
return (s, v) => (a(), l("div", {
|
|
42
42
|
class: m(t.value)
|
|
43
43
|
}, [
|
|
44
|
-
$(
|
|
44
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
45
45
|
], 2));
|
|
46
46
|
}
|
|
47
47
|
}), Ut = /* @__PURE__ */ k(me, [["__scopeId", "data-v-00b68f22"]]), _e = {
|
|
@@ -68,79 +68,79 @@ const he = ["href"], ge = /* @__PURE__ */ N({
|
|
|
68
68
|
}, Ie = {
|
|
69
69
|
key: 7,
|
|
70
70
|
class: "slp-partial-white-background"
|
|
71
|
-
},
|
|
71
|
+
}, Le = {
|
|
72
72
|
key: 8,
|
|
73
73
|
class: "slp-partial-grey-background"
|
|
74
|
-
},
|
|
74
|
+
}, Ce = /* @__PURE__ */ N({
|
|
75
75
|
__name: "SlpContainer",
|
|
76
76
|
props: {
|
|
77
77
|
fluid: { type: Boolean },
|
|
78
78
|
variant: {}
|
|
79
79
|
},
|
|
80
|
-
setup(
|
|
81
|
-
const e =
|
|
82
|
-
return (
|
|
80
|
+
setup(c) {
|
|
81
|
+
const e = c, n = S(() => e.fluid ?? !1), i = S(() => e.variant ?? "white"), t = S(() => n.value ? "fluid" : "");
|
|
82
|
+
return (s, v) => i.value === "light-purple-100" ? (a(), l("div", _e, [
|
|
83
83
|
p("div", {
|
|
84
84
|
class: m(["slp-container", t.value])
|
|
85
85
|
}, [
|
|
86
|
-
$(
|
|
86
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
87
87
|
], 2)
|
|
88
|
-
])) :
|
|
88
|
+
])) : i.value === "grey-100" ? (a(), l("div", be, [
|
|
89
89
|
p("div", {
|
|
90
90
|
class: m(["slp-container", t.value])
|
|
91
91
|
}, [
|
|
92
|
-
$(
|
|
92
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
93
93
|
], 2)
|
|
94
|
-
])) :
|
|
94
|
+
])) : i.value === "gradient" ? (a(), l("div", ye, [
|
|
95
95
|
p("div", {
|
|
96
96
|
class: m(["slp-container", t.value])
|
|
97
97
|
}, [
|
|
98
|
-
$(
|
|
98
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
99
99
|
], 2)
|
|
100
|
-
])) :
|
|
100
|
+
])) : i.value === "gradient-full" ? (a(), l("div", $e, [
|
|
101
101
|
p("div", {
|
|
102
102
|
class: m(["slp-container", t.value])
|
|
103
103
|
}, [
|
|
104
|
-
$(
|
|
104
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
105
105
|
], 2)
|
|
106
|
-
])) :
|
|
106
|
+
])) : i.value === "charcoal-100" ? (a(), l("div", ke, [
|
|
107
107
|
p("div", {
|
|
108
108
|
class: m(["slp-container", t.value])
|
|
109
109
|
}, [
|
|
110
|
-
$(
|
|
110
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
111
111
|
], 2)
|
|
112
|
-
])) :
|
|
112
|
+
])) : i.value === "charcoal-75" ? (a(), l("div", we, [
|
|
113
113
|
p("div", {
|
|
114
114
|
class: m(["slp-container", t.value])
|
|
115
115
|
}, [
|
|
116
|
-
$(
|
|
116
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
117
117
|
], 2)
|
|
118
|
-
])) :
|
|
118
|
+
])) : i.value === "grey-50" ? (a(), l("div", Se, [
|
|
119
119
|
p("div", {
|
|
120
120
|
class: m(["slp-container", t.value])
|
|
121
121
|
}, [
|
|
122
|
-
$(
|
|
122
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
123
123
|
], 2)
|
|
124
|
-
])) :
|
|
124
|
+
])) : i.value === "white-75" ? (a(), l("div", Ie, [
|
|
125
125
|
p("div", {
|
|
126
126
|
class: m(["slp-container", t.value])
|
|
127
127
|
}, [
|
|
128
|
-
$(
|
|
128
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
129
129
|
], 2)
|
|
130
|
-
])) :
|
|
130
|
+
])) : i.value === "grey-75" ? (a(), l("div", Le, [
|
|
131
131
|
p("div", {
|
|
132
132
|
class: m(["slp-container", t.value])
|
|
133
133
|
}, [
|
|
134
|
-
$(
|
|
134
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
135
135
|
], 2)
|
|
136
136
|
])) : (a(), l("div", {
|
|
137
137
|
key: 9,
|
|
138
138
|
class: m(["slp-container", t.value])
|
|
139
139
|
}, [
|
|
140
|
-
$(
|
|
140
|
+
$(s.$slots, "default", {}, void 0, !0)
|
|
141
141
|
], 2));
|
|
142
142
|
}
|
|
143
|
-
}),
|
|
143
|
+
}), ne = /* @__PURE__ */ k(Ce, [["__scopeId", "data-v-e594efe8"]]), Ne = /* @__PURE__ */ N({
|
|
144
144
|
__name: "SlpIcon",
|
|
145
145
|
props: {
|
|
146
146
|
size: {
|
|
@@ -159,34 +159,34 @@ const he = ["href"], ge = /* @__PURE__ */ N({
|
|
|
159
159
|
required: !0
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
-
setup(
|
|
163
|
-
const e =
|
|
162
|
+
setup(c) {
|
|
163
|
+
const e = c, n = S(() => {
|
|
164
164
|
const t = ["slp-icon"];
|
|
165
165
|
return typeof e.size == "string" && isNaN(Number(e.size)) && t.push(`slp-icon--size-${e.size}`), e.color && !e.color.startsWith("#") && t.push(`slp-icon--color-${e.color}`), t;
|
|
166
|
-
}),
|
|
167
|
-
var
|
|
166
|
+
}), i = S(() => {
|
|
167
|
+
var s;
|
|
168
168
|
const t = {};
|
|
169
|
-
if ((
|
|
169
|
+
if ((s = e.color) != null && s.startsWith("#") && (t.color = e.color, t.fill = e.color), typeof e.size == "number" || !isNaN(Number(e.size))) {
|
|
170
170
|
const v = typeof e.size == "number" ? e.size : Number(e.size);
|
|
171
171
|
t.width = `${v}px`, t.height = `${v}px`;
|
|
172
172
|
}
|
|
173
173
|
return t;
|
|
174
174
|
});
|
|
175
|
-
return (t,
|
|
176
|
-
var v,
|
|
177
|
-
return a(), D(ee(
|
|
178
|
-
class: m(["slp-icon",
|
|
179
|
-
style: te(
|
|
175
|
+
return (t, s) => {
|
|
176
|
+
var v, r;
|
|
177
|
+
return a(), D(ee(c.icon), {
|
|
178
|
+
class: m(["slp-icon", n.value]),
|
|
179
|
+
style: te(i.value),
|
|
180
180
|
role: "img",
|
|
181
181
|
"aria-hidden": "true",
|
|
182
|
-
"data-icon-name": ((
|
|
182
|
+
"data-icon-name": ((r = (v = c.icon) == null ? void 0 : v.__docgenInfo) == null ? void 0 : r.displayName) || ""
|
|
183
183
|
}, null, 8, ["class", "style", "data-icon-name"]);
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
}), W = /* @__PURE__ */ k(Ne, [["__scopeId", "data-v-c3411281"]]), Te = {}, Ee = { class: "slp-row" };
|
|
187
|
-
function ze(
|
|
187
|
+
function ze(c, e) {
|
|
188
188
|
return a(), l("div", Ee, [
|
|
189
|
-
$(
|
|
189
|
+
$(c.$slots, "default", {}, void 0, !0)
|
|
190
190
|
]);
|
|
191
191
|
}
|
|
192
192
|
const jt = /* @__PURE__ */ k(Te, [["render", ze], ["__scopeId", "data-v-adc8d02f"]]), Be = {
|
|
@@ -198,7 +198,7 @@ const jt = /* @__PURE__ */ k(Te, [["render", ze], ["__scopeId", "data-v-adc8d02f
|
|
|
198
198
|
variant: {},
|
|
199
199
|
tag: {}
|
|
200
200
|
},
|
|
201
|
-
setup(
|
|
201
|
+
setup(c) {
|
|
202
202
|
const e = [
|
|
203
203
|
"display1",
|
|
204
204
|
"heading1",
|
|
@@ -221,12 +221,12 @@ const jt = /* @__PURE__ */ k(Te, [["render", ze], ["__scopeId", "data-v-adc8d02f
|
|
|
221
221
|
"arrow",
|
|
222
222
|
"quotes",
|
|
223
223
|
"emphasis"
|
|
224
|
-
],
|
|
225
|
-
return (
|
|
224
|
+
], n = ["span", "h1", "h2", "h3", "h4", "h5", "p", "div"], i = c, t = S(() => e.includes(i.variant || "") ? i.variant : "body1"), s = S(() => n.includes(i.tag || "") ? i.tag : "span"), v = S(() => `slp-text-${t.value}`);
|
|
225
|
+
return (r, d) => (a(), D(ee(s.value), {
|
|
226
226
|
class: m(v.value)
|
|
227
227
|
}, {
|
|
228
228
|
default: T(() => [
|
|
229
|
-
$(
|
|
229
|
+
$(r.$slots, "default", {}, void 0, !0),
|
|
230
230
|
t.value === "arrow" ? (a(), l("span", Be, "→")) : B("", !0)
|
|
231
231
|
]),
|
|
232
232
|
_: 3
|
|
@@ -238,7 +238,7 @@ const jt = /* @__PURE__ */ k(Te, [["render", ze], ["__scopeId", "data-v-adc8d02f
|
|
|
238
238
|
viewBox: "0 0 16 16",
|
|
239
239
|
xmlns: "http://www.w3.org/2000/svg"
|
|
240
240
|
};
|
|
241
|
-
function Ge(
|
|
241
|
+
function Ge(c, e) {
|
|
242
242
|
return a(), l("svg", Pe, e[0] || (e[0] = [
|
|
243
243
|
p("path", {
|
|
244
244
|
fill: "currentColor",
|
|
@@ -248,11 +248,11 @@ function Ge(u, e) {
|
|
|
248
248
|
}, null, -1)
|
|
249
249
|
]));
|
|
250
250
|
}
|
|
251
|
-
const
|
|
251
|
+
const se = /* @__PURE__ */ k(Ve, [["render", Ge]]), Oe = {}, Re = {
|
|
252
252
|
viewBox: "0 0 16 16",
|
|
253
253
|
xmlns: "http://www.w3.org/2000/svg"
|
|
254
254
|
};
|
|
255
|
-
function Ae(
|
|
255
|
+
function Ae(c, e) {
|
|
256
256
|
return a(), l("svg", Re, e[0] || (e[0] = [
|
|
257
257
|
p("path", {
|
|
258
258
|
"fill-rule": "evenodd",
|
|
@@ -266,7 +266,7 @@ const De = /* @__PURE__ */ k(Oe, [["render", Ae]]), We = {}, qe = {
|
|
|
266
266
|
viewBox: "0 0 16 16",
|
|
267
267
|
xmlns: "http://www.w3.org/2000/svg"
|
|
268
268
|
};
|
|
269
|
-
function He(
|
|
269
|
+
function He(c, e) {
|
|
270
270
|
return a(), l("svg", qe, e[0] || (e[0] = [
|
|
271
271
|
p("path", {
|
|
272
272
|
"fill-rule": "evenodd",
|
|
@@ -282,7 +282,7 @@ const le = /* @__PURE__ */ k(We, [["render", He]]), Ue = {}, je = {
|
|
|
282
282
|
viewBox: "0 0 16 16",
|
|
283
283
|
xmlns: "http://www.w3.org/2000/svg"
|
|
284
284
|
};
|
|
285
|
-
function Ke(
|
|
285
|
+
function Ke(c, e) {
|
|
286
286
|
return a(), l("svg", je, e[0] || (e[0] = [
|
|
287
287
|
p("path", {
|
|
288
288
|
"fill-rule": "evenodd",
|
|
@@ -292,10 +292,10 @@ function Ke(u, e) {
|
|
|
292
292
|
}, null, -1)
|
|
293
293
|
]));
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const ie = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
296
296
|
key: 0,
|
|
297
297
|
class: "dropdown-menu"
|
|
298
|
-
}, Fe = ["onClick"], Je =
|
|
298
|
+
}, Fe = ["onClick"], Je = ["aria-label"], Ye = ["data-ga-name", "onClick"], Qe = /* @__PURE__ */ N({
|
|
299
299
|
__name: "SlpSideNavigation",
|
|
300
300
|
props: {
|
|
301
301
|
position: {
|
|
@@ -309,17 +309,21 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
309
309
|
navigationItems: {
|
|
310
310
|
type: Array,
|
|
311
311
|
required: !0
|
|
312
|
+
},
|
|
313
|
+
navigationLabel: {
|
|
314
|
+
type: String,
|
|
315
|
+
default: "secondary"
|
|
312
316
|
}
|
|
313
317
|
},
|
|
314
|
-
setup(
|
|
315
|
-
const e =
|
|
316
|
-
|
|
317
|
-
}, t = I(null),
|
|
318
|
+
setup(c) {
|
|
319
|
+
const e = c, n = I(null), i = (f) => {
|
|
320
|
+
n.value && !n.value.contains(f.target) && (r.value = !1);
|
|
321
|
+
}, t = I(null), s = I(null);
|
|
318
322
|
let v = null;
|
|
319
|
-
const
|
|
320
|
-
window.location.hash = f,
|
|
323
|
+
const r = I(!1), d = I(!0), u = (f) => {
|
|
324
|
+
window.location.hash = f, r.value = !1;
|
|
321
325
|
}, o = () => {
|
|
322
|
-
if (!
|
|
326
|
+
if (!s.value) return;
|
|
323
327
|
const f = (window.innerHeight - 120 - 48) * -1;
|
|
324
328
|
v = new IntersectionObserver(
|
|
325
329
|
(w) => {
|
|
@@ -337,11 +341,11 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
337
341
|
});
|
|
338
342
|
};
|
|
339
343
|
return j(() => {
|
|
340
|
-
document.addEventListener("click",
|
|
344
|
+
document.addEventListener("click", i), window.addEventListener("load", () => {
|
|
341
345
|
o();
|
|
342
346
|
}), document.readyState === "complete" && o();
|
|
343
347
|
}), oe(() => {
|
|
344
|
-
v && v.disconnect(), document.removeEventListener("click",
|
|
348
|
+
v && v.disconnect(), document.removeEventListener("click", i);
|
|
345
349
|
}), (f, w) => (a(), l("div", {
|
|
346
350
|
class: m([
|
|
347
351
|
"side-navigation-layout",
|
|
@@ -351,21 +355,21 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
351
355
|
}, [
|
|
352
356
|
p("div", {
|
|
353
357
|
ref_key: "dropdownRef",
|
|
354
|
-
ref:
|
|
358
|
+
ref: n,
|
|
355
359
|
class: "side-navigation-dropdown"
|
|
356
360
|
}, [
|
|
357
361
|
p("button", {
|
|
358
362
|
class: "dropdown-toggle",
|
|
359
|
-
onClick: w[0] || (w[0] = (_) =>
|
|
363
|
+
onClick: w[0] || (w[0] = (_) => r.value = !r.value)
|
|
360
364
|
}, [
|
|
361
365
|
w[1] || (w[1] = p("span", null, "Jump to a section", -1)),
|
|
362
|
-
|
|
363
|
-
icon:
|
|
366
|
+
C(W, {
|
|
367
|
+
icon: r.value ? A(ie) : A(se),
|
|
364
368
|
color: "black",
|
|
365
369
|
size: "sm"
|
|
366
370
|
}, null, 8, ["icon"])
|
|
367
371
|
]),
|
|
368
|
-
|
|
372
|
+
r.value ? (a(), l("ul", Ze, [
|
|
369
373
|
(a(!0), l(M, null, V(e.navigationItems, (_) => (a(), l("li", {
|
|
370
374
|
key: _.id,
|
|
371
375
|
class: "dropdown-item"
|
|
@@ -373,12 +377,15 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
373
377
|
p("a", {
|
|
374
378
|
href: "#",
|
|
375
379
|
class: "dropdown-link",
|
|
376
|
-
onClick: x((E) =>
|
|
377
|
-
},
|
|
380
|
+
onClick: x((E) => u(_.id), ["prevent"])
|
|
381
|
+
}, L(_.text), 9, Fe)
|
|
378
382
|
]))), 128))
|
|
379
383
|
])) : B("", !0)
|
|
380
384
|
], 512),
|
|
381
|
-
p("nav",
|
|
385
|
+
p("nav", {
|
|
386
|
+
class: "side-navigation",
|
|
387
|
+
"aria-label": c.navigationLabel
|
|
388
|
+
}, [
|
|
382
389
|
$(f.$slots, "navigation-header", {}, void 0, !0),
|
|
383
390
|
p("ul", null, [
|
|
384
391
|
(a(!0), l(M, null, V(e.navigationItems, (_) => (a(), l("li", {
|
|
@@ -390,21 +397,21 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
390
397
|
class: m(["side-navigation__link", { "side-navigation__link--active": t.value === _.id }]),
|
|
391
398
|
"data-ga-name": _.text,
|
|
392
399
|
"data-ga-location": "side anchor",
|
|
393
|
-
onClick: x((E) =>
|
|
394
|
-
},
|
|
400
|
+
onClick: x((E) => u(_.id), ["prevent"])
|
|
401
|
+
}, L(_.text), 11, Ye)
|
|
395
402
|
]))), 128))
|
|
396
403
|
])
|
|
397
|
-
]),
|
|
404
|
+
], 8, Je),
|
|
398
405
|
p("div", {
|
|
399
406
|
ref_key: "slotContentRef",
|
|
400
|
-
ref:
|
|
407
|
+
ref: s,
|
|
401
408
|
class: "side-navigation-content"
|
|
402
409
|
}, [
|
|
403
410
|
$(f.$slots, "default", {}, void 0, !0)
|
|
404
411
|
], 512)
|
|
405
412
|
], 2));
|
|
406
413
|
}
|
|
407
|
-
}), Kt = /* @__PURE__ */ k(Qe, [["__scopeId", "data-v-
|
|
414
|
+
}), Kt = /* @__PURE__ */ k(Qe, [["__scopeId", "data-v-3cc08323"]]), Xe = ["for"], xe = ["name", "value", "id", "checked", "disabled"], et = /* @__PURE__ */ N({
|
|
408
415
|
__name: "SlpRadioButton",
|
|
409
416
|
props: {
|
|
410
417
|
option: {},
|
|
@@ -412,28 +419,28 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
412
419
|
config: {}
|
|
413
420
|
},
|
|
414
421
|
emits: ["update:modelValue"],
|
|
415
|
-
setup(
|
|
416
|
-
const
|
|
417
|
-
const
|
|
418
|
-
|
|
422
|
+
setup(c, { emit: e }) {
|
|
423
|
+
const n = e, i = (t) => {
|
|
424
|
+
const s = t.target;
|
|
425
|
+
n("update:modelValue", s.value);
|
|
419
426
|
};
|
|
420
|
-
return (t,
|
|
421
|
-
var v,
|
|
427
|
+
return (t, s) => {
|
|
428
|
+
var v, r, d;
|
|
422
429
|
return a(), l("label", {
|
|
423
430
|
for: t.option,
|
|
424
431
|
class: m(["slp-radio", { disabled: (v = t.config) == null ? void 0 : v.disabled }])
|
|
425
432
|
}, [
|
|
426
|
-
G(
|
|
433
|
+
G(L(t.option) + " ", 1),
|
|
427
434
|
p("input", {
|
|
428
435
|
type: "radio",
|
|
429
436
|
name: t.name,
|
|
430
437
|
value: t.option,
|
|
431
438
|
id: t.option,
|
|
432
|
-
onInput:
|
|
433
|
-
checked: (
|
|
439
|
+
onInput: i,
|
|
440
|
+
checked: (r = t.config) == null ? void 0 : r.checked,
|
|
434
441
|
disabled: (d = t.config) == null ? void 0 : d.disabled
|
|
435
442
|
}, null, 40, xe),
|
|
436
|
-
|
|
443
|
+
s[0] || (s[0] = p("span", { class: "slp-radio__checkmark" }, null, -1))
|
|
437
444
|
], 10, Xe);
|
|
438
445
|
};
|
|
439
446
|
}
|
|
@@ -448,29 +455,29 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
448
455
|
} }
|
|
449
456
|
},
|
|
450
457
|
emits: ["update:modelValue"],
|
|
451
|
-
setup(
|
|
452
|
-
const
|
|
458
|
+
setup(c, { emit: e }) {
|
|
459
|
+
const n = {
|
|
453
460
|
VERTICAL: "vertical",
|
|
454
461
|
HORIZONTAL: "horizontal"
|
|
455
|
-
},
|
|
456
|
-
|
|
462
|
+
}, i = e, t = (s) => {
|
|
463
|
+
i("update:modelValue", s);
|
|
457
464
|
};
|
|
458
|
-
return (
|
|
459
|
-
var
|
|
460
|
-
return a(), D(
|
|
465
|
+
return (s, v) => {
|
|
466
|
+
var r, d;
|
|
467
|
+
return a(), D(ne, {
|
|
461
468
|
class: m(["slp-radio-group", {
|
|
462
|
-
"slp-radio-group--vertical": ((
|
|
463
|
-
"slp-radio-group--horizontal": ((d =
|
|
469
|
+
"slp-radio-group--vertical": ((r = s.config) == null ? void 0 : r.orientation) === n.VERTICAL,
|
|
470
|
+
"slp-radio-group--horizontal": ((d = s.config) == null ? void 0 : d.orientation) === n.HORIZONTAL
|
|
464
471
|
}])
|
|
465
472
|
}, {
|
|
466
473
|
default: T(() => [
|
|
467
|
-
(a(!0), l(M, null, V(
|
|
468
|
-
key:
|
|
469
|
-
option:
|
|
470
|
-
name:
|
|
474
|
+
(a(!0), l(M, null, V(s.options, (u) => (a(), D(tt, {
|
|
475
|
+
key: u.value,
|
|
476
|
+
option: u.value,
|
|
477
|
+
name: s.name,
|
|
471
478
|
config: {
|
|
472
|
-
...
|
|
473
|
-
checked:
|
|
479
|
+
...u.config,
|
|
480
|
+
checked: u.value === s.modelValue
|
|
474
481
|
},
|
|
475
482
|
"onUpdate:modelValue": t
|
|
476
483
|
}, null, 8, ["option", "name", "config"]))), 128))
|
|
@@ -482,23 +489,23 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
482
489
|
}), Zt = /* @__PURE__ */ k(ot, [["__scopeId", "data-v-ae31ec89"]]), at = {
|
|
483
490
|
key: 0,
|
|
484
491
|
class: "slp-loading-round"
|
|
485
|
-
},
|
|
492
|
+
}, nt = {
|
|
486
493
|
key: 1,
|
|
487
494
|
class: "slp-loading-linear"
|
|
488
|
-
},
|
|
495
|
+
}, st = /* @__PURE__ */ N({
|
|
489
496
|
name: "SlpLoader",
|
|
490
497
|
__name: "SlpLoader",
|
|
491
498
|
props: {
|
|
492
499
|
config: {}
|
|
493
500
|
},
|
|
494
|
-
setup(
|
|
495
|
-
const e =
|
|
496
|
-
return (
|
|
501
|
+
setup(c) {
|
|
502
|
+
const e = c;
|
|
503
|
+
return (n, i) => {
|
|
497
504
|
var t;
|
|
498
|
-
return ((t = e.config) == null ? void 0 : t.variant) === "round" ? (a(), l("div", at)) : (a(), l("div",
|
|
505
|
+
return ((t = e.config) == null ? void 0 : t.variant) === "round" ? (a(), l("div", at)) : (a(), l("div", nt));
|
|
499
506
|
};
|
|
500
507
|
}
|
|
501
|
-
}), Ft = /* @__PURE__ */ k(
|
|
508
|
+
}), Ft = /* @__PURE__ */ k(st, [["__scopeId", "data-v-ee32411b"]]), lt = ["href", "data-ga-name", "data-ga-location"], it = /* @__PURE__ */ N({
|
|
502
509
|
__name: "Tree",
|
|
503
510
|
props: {
|
|
504
511
|
text: { default: "" },
|
|
@@ -512,23 +519,23 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
512
519
|
mobile: !1
|
|
513
520
|
}) }
|
|
514
521
|
},
|
|
515
|
-
setup(
|
|
516
|
-
return (e,
|
|
517
|
-
var t,
|
|
518
|
-
const
|
|
522
|
+
setup(c) {
|
|
523
|
+
return (e, n) => {
|
|
524
|
+
var t, s, v, r, d, u;
|
|
525
|
+
const i = de("Tree", !0);
|
|
519
526
|
return a(), l("div", {
|
|
520
|
-
class: m([`depth-${(t = e.config) == null ? void 0 : t.depth}`, { mobile: (
|
|
527
|
+
class: m([`depth-${(t = e.config) == null ? void 0 : t.depth}`, { mobile: (s = e.config) == null ? void 0 : s.mobile }])
|
|
521
528
|
}, [
|
|
522
529
|
e.text ? (a(), l("a", {
|
|
523
530
|
key: 0,
|
|
524
531
|
class: m(["anchor", { selected: (v = e.config) == null ? void 0 : v.isSelected }]),
|
|
525
|
-
href: (
|
|
532
|
+
href: (r = e.config) == null ? void 0 : r.href,
|
|
526
533
|
"data-ga-name": (d = e.config) == null ? void 0 : d.dataGaName,
|
|
527
|
-
"data-ga-location": (
|
|
528
|
-
},
|
|
534
|
+
"data-ga-location": (u = e.config) == null ? void 0 : u.dataGaLocation
|
|
535
|
+
}, L(e.text), 11, lt)) : B("", !0),
|
|
529
536
|
(a(!0), l(M, null, V(e.nodes, (o) => {
|
|
530
537
|
var f, w, _, E, O, h;
|
|
531
|
-
return a(), D(
|
|
538
|
+
return a(), D(i, {
|
|
532
539
|
key: o.text,
|
|
533
540
|
nodes: o.nodes,
|
|
534
541
|
text: o.text,
|
|
@@ -545,57 +552,57 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
545
552
|
], 2);
|
|
546
553
|
};
|
|
547
554
|
}
|
|
548
|
-
}),
|
|
555
|
+
}), re = /* @__PURE__ */ k(it, [["__scopeId", "data-v-c3be63ed"]]), rt = { class: "dropdown__list" }, dt = { class: "horizontal-rule slp-my-16" }, ct = /* @__PURE__ */ N({
|
|
549
556
|
__name: "SlpAnchorDropdown",
|
|
550
557
|
props: {
|
|
551
558
|
dropdownLabel: { default: "Jump to a section" },
|
|
552
559
|
anchors: {},
|
|
553
560
|
hyperlinks: {}
|
|
554
561
|
},
|
|
555
|
-
setup(
|
|
556
|
-
const e = I(!1),
|
|
562
|
+
setup(c) {
|
|
563
|
+
const e = I(!1), n = () => {
|
|
557
564
|
e.value = !e.value;
|
|
558
565
|
};
|
|
559
|
-
return (
|
|
560
|
-
var
|
|
566
|
+
return (i, t) => {
|
|
567
|
+
var s, v, r;
|
|
561
568
|
return a(), l("div", {
|
|
562
569
|
class: m(["dropdown", { hide: !e.value }])
|
|
563
570
|
}, [
|
|
564
|
-
|
|
571
|
+
C(Q, {
|
|
565
572
|
class: "dropdown__button",
|
|
566
573
|
variant: "ghost",
|
|
567
|
-
onClick:
|
|
574
|
+
onClick: n
|
|
568
575
|
}, {
|
|
569
576
|
default: T(() => [
|
|
570
|
-
p("span", null,
|
|
571
|
-
|
|
572
|
-
icon: e.value ? A(
|
|
577
|
+
p("span", null, L(i.dropdownLabel), 1),
|
|
578
|
+
C(W, {
|
|
579
|
+
icon: e.value ? A(ie) : A(se)
|
|
573
580
|
}, null, 8, ["icon"])
|
|
574
581
|
]),
|
|
575
582
|
_: 1
|
|
576
583
|
}),
|
|
577
|
-
p("div",
|
|
578
|
-
U(
|
|
584
|
+
p("div", rt, [
|
|
585
|
+
U(C(q, {
|
|
579
586
|
tag: "div",
|
|
580
587
|
variant: "body3-bold",
|
|
581
588
|
class: "nav-heading"
|
|
582
589
|
}, {
|
|
583
590
|
default: T(() => [
|
|
584
|
-
G(
|
|
591
|
+
G(L(i.anchors.text), 1)
|
|
585
592
|
]),
|
|
586
593
|
_: 1
|
|
587
594
|
}, 512), [
|
|
588
|
-
[Y,
|
|
595
|
+
[Y, i.anchors.text]
|
|
589
596
|
]),
|
|
590
|
-
|
|
597
|
+
C(re, {
|
|
591
598
|
mobile: "",
|
|
592
|
-
nodes:
|
|
593
|
-
onClick:
|
|
599
|
+
nodes: i.anchors.data,
|
|
600
|
+
onClick: n
|
|
594
601
|
}, null, 8, ["nodes"]),
|
|
595
602
|
U(p("div", dt, null, 512), [
|
|
596
|
-
[Y, (
|
|
603
|
+
[Y, (s = i.hyperlinks) == null ? void 0 : s.data.length]
|
|
597
604
|
]),
|
|
598
|
-
U(
|
|
605
|
+
U(C(q, {
|
|
599
606
|
tag: "div",
|
|
600
607
|
variant: "body3-bold",
|
|
601
608
|
class: "nav-heading"
|
|
@@ -603,27 +610,27 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
603
610
|
default: T(() => {
|
|
604
611
|
var d;
|
|
605
612
|
return [
|
|
606
|
-
G(
|
|
613
|
+
G(L((d = i.hyperlinks) == null ? void 0 : d.text), 1)
|
|
607
614
|
];
|
|
608
615
|
}),
|
|
609
616
|
_: 1
|
|
610
617
|
}, 512), [
|
|
611
|
-
[Y, (v =
|
|
618
|
+
[Y, (v = i.hyperlinks) == null ? void 0 : v.text]
|
|
612
619
|
]),
|
|
613
620
|
p("ul", null, [
|
|
614
|
-
(a(!0), l(M, null, V((
|
|
621
|
+
(a(!0), l(M, null, V((r = i.hyperlinks) == null ? void 0 : r.data, (d) => (a(), l("li", {
|
|
615
622
|
key: d.text
|
|
616
623
|
}, [
|
|
617
|
-
|
|
624
|
+
C(Q, {
|
|
618
625
|
class: "dropdown__link",
|
|
619
626
|
variant: "ghost",
|
|
620
627
|
href: d.config.href
|
|
621
628
|
}, {
|
|
622
629
|
default: T(() => [
|
|
623
|
-
p("span", null,
|
|
624
|
-
|
|
630
|
+
p("span", null, L(d.text), 1),
|
|
631
|
+
C(Q, { variant: "icon" }, {
|
|
625
632
|
default: T(() => [
|
|
626
|
-
|
|
633
|
+
C(W, {
|
|
627
634
|
icon: A(le),
|
|
628
635
|
size: "xs"
|
|
629
636
|
}, null, 8, ["icon"])
|
|
@@ -649,8 +656,8 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
649
656
|
hyperlinks: {},
|
|
650
657
|
alwaysExpanded: { type: Boolean }
|
|
651
658
|
},
|
|
652
|
-
setup(
|
|
653
|
-
const e =
|
|
659
|
+
setup(c) {
|
|
660
|
+
const e = c, n = I([]), i = I(null), t = I([]), s = I(
|
|
654
661
|
e.anchors.data.map((h) => ({
|
|
655
662
|
text: h.text,
|
|
656
663
|
nodes: h.nodes,
|
|
@@ -662,15 +669,15 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
662
669
|
mobile: !1
|
|
663
670
|
}
|
|
664
671
|
}))
|
|
665
|
-
), v = I(!1),
|
|
672
|
+
), v = I(!1), r = I(!0);
|
|
666
673
|
let d = null;
|
|
667
|
-
const
|
|
668
|
-
b.config.href && g.push(b.config.href), b.nodes &&
|
|
674
|
+
const u = (h, g = []) => (h.forEach((b) => {
|
|
675
|
+
b.config.href && g.push(b.config.href), b.nodes && u(b.nodes, g);
|
|
669
676
|
}), g), o = (h) => {
|
|
670
677
|
const g = [], b = (z) => z.some((y, P) => (g.push(P), y.config.href === h || y.nodes && b(y.nodes) ? !0 : (g.pop(), !1)));
|
|
671
678
|
return b(e.anchors.data), g;
|
|
672
679
|
}, f = (h) => {
|
|
673
|
-
const g = t.value, b =
|
|
680
|
+
const g = t.value, b = i.value, z = (y, P, R) => {
|
|
674
681
|
const H = g[R] === P, K = y.config.href === b, Z = {
|
|
675
682
|
text: y.text,
|
|
676
683
|
config: {
|
|
@@ -706,15 +713,15 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
706
713
|
const g = w(h);
|
|
707
714
|
if (g && g.isIntersecting) {
|
|
708
715
|
const b = `#${g.target.id}`;
|
|
709
|
-
|
|
716
|
+
i.value = b, t.value = o(b), n.value = t.value.slice(), s.value = f(!1), r.value = !1;
|
|
710
717
|
return;
|
|
711
718
|
}
|
|
712
|
-
|
|
719
|
+
r.value && !e.alwaysExpanded && (s.value = f(!0), r.value = !1);
|
|
713
720
|
}, E = () => {
|
|
714
721
|
v.value = window.innerWidth < 768;
|
|
715
722
|
}, O = () => {
|
|
716
|
-
const h =
|
|
717
|
-
|
|
723
|
+
const h = u(e.anchors.data), g = h[0] || null;
|
|
724
|
+
i.value = g, t.value = g ? o(g) : [], s.value = f(!0), r.value = !1;
|
|
718
725
|
const b = (window.innerHeight - 120 - 48) * -1;
|
|
719
726
|
d = new IntersectionObserver(_, {
|
|
720
727
|
rootMargin: `-120px 0px ${b}px 0px`,
|
|
@@ -732,7 +739,7 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
732
739
|
window.removeEventListener("resize", E), d && d.disconnect();
|
|
733
740
|
}), (h, g) => (a(), l("div", null, [
|
|
734
741
|
v.value ? (a(), l("div", pt, [
|
|
735
|
-
|
|
742
|
+
C(ut, ce(ue({ anchors: h.anchors, hyperlinks: h.hyperlinks })), null, 16),
|
|
736
743
|
$(h.$slots, "default", {}, void 0, !0)
|
|
737
744
|
])) : (a(), l("div", vt, [
|
|
738
745
|
p("div", ft, [
|
|
@@ -748,18 +755,18 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
748
755
|
class: "nav-heading"
|
|
749
756
|
}, {
|
|
750
757
|
default: T(() => [
|
|
751
|
-
G(
|
|
758
|
+
G(L(h.anchors.text), 1)
|
|
752
759
|
]),
|
|
753
760
|
_: 1
|
|
754
761
|
})) : B("", !0),
|
|
755
|
-
|
|
762
|
+
C(re, { nodes: s.value }, null, 8, ["nodes"])
|
|
756
763
|
]),
|
|
757
764
|
$(h.$slots, "footer", {}, void 0, !0)
|
|
758
765
|
])
|
|
759
766
|
]))
|
|
760
767
|
]));
|
|
761
768
|
}
|
|
762
|
-
}), Jt = /* @__PURE__ */ k(mt, [["__scopeId", "data-v-32a730be"]]), _t = ["id", "data-tooltip-open", "aria-describedby"], bt = { class: "slp-tooltip__wrapper" }, yt = ["id", "data-ga-features", "data-ga-features-sub", "data-ga-features-sub-card", "data-ga-name", "data-ga-location", "href"], $t = ["id"], kt = ["id", "data-tooltip-open", "aria-describedby"], wt = { class: "slp-tooltip__wrapper" }, St = ["id"], It = ["data-ga-features", "data-ga-features-sub", "data-ga-features-sub-card", "data-ga-name", "data-ga-location", "href"],
|
|
769
|
+
}), Jt = /* @__PURE__ */ k(mt, [["__scopeId", "data-v-32a730be"]]), _t = ["id", "data-tooltip-open", "aria-describedby"], bt = { class: "slp-tooltip__wrapper" }, yt = ["id", "data-ga-features", "data-ga-features-sub", "data-ga-features-sub-card", "data-ga-name", "data-ga-location", "href"], $t = ["id"], kt = ["id", "data-tooltip-open", "aria-describedby"], wt = { class: "slp-tooltip__wrapper" }, St = ["id"], It = ["data-ga-features", "data-ga-features-sub", "data-ga-features-sub-card", "data-ga-name", "data-ga-location", "href"], Lt = ["id"], Ct = /* @__PURE__ */ N({
|
|
763
770
|
__name: "SlpTooltip",
|
|
764
771
|
props: {
|
|
765
772
|
text: { default: "" },
|
|
@@ -769,14 +776,14 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
769
776
|
id: { default: "" },
|
|
770
777
|
dataProperties: { default: null }
|
|
771
778
|
},
|
|
772
|
-
setup(
|
|
773
|
-
const e =
|
|
774
|
-
e.mode === "hover" && (
|
|
775
|
-
},
|
|
776
|
-
e.mode === "click" ? (
|
|
779
|
+
setup(c) {
|
|
780
|
+
const e = c, n = I(!1), i = I(""), t = I(""), s = I(""), v = (o) => {
|
|
781
|
+
e.mode === "hover" && (n.value = o.type === "mouseenter");
|
|
782
|
+
}, r = () => {
|
|
783
|
+
e.mode === "click" ? (u(), n.value = !n.value) : n.value = !1;
|
|
777
784
|
}, d = (o) => {
|
|
778
|
-
o.target.id !== e.id && (
|
|
779
|
-
},
|
|
785
|
+
o.target.id !== e.id && (n.value = !1);
|
|
786
|
+
}, u = () => {
|
|
780
787
|
document.querySelectorAll('[data-tooltip-open="true"]').forEach((f) => {
|
|
781
788
|
f.setAttribute("data-tooltip-open", "false");
|
|
782
789
|
});
|
|
@@ -784,9 +791,9 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
784
791
|
return j(() => {
|
|
785
792
|
if (e.mode === "click" && document.addEventListener("click", d), e.text) {
|
|
786
793
|
const o = e.text.match(/\[(.*?)\]/), f = e.text.match(/\[.*?\]\((.*?)\)/);
|
|
787
|
-
|
|
794
|
+
i.value = o ? o[1] : "", t.value = f ? f[1] : "", s.value = e.text.replace(`(${t.value})`, "").replace(`[${i.value}]`, "").trim();
|
|
788
795
|
}
|
|
789
|
-
}), pe(
|
|
796
|
+
}), pe(n, (o) => {
|
|
790
797
|
if (e.mode === "click" && e.id) {
|
|
791
798
|
const f = document.getElementById(e.id);
|
|
792
799
|
f && f.setAttribute("data-tooltip-open", o.toString());
|
|
@@ -798,21 +805,21 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
798
805
|
return o.mode === "hover" ? (a(), l("div", {
|
|
799
806
|
key: 0,
|
|
800
807
|
id: o.id,
|
|
801
|
-
"data-tooltip-open":
|
|
808
|
+
"data-tooltip-open": n.value,
|
|
802
809
|
"aria-label": "Click to open tooltip with more information.",
|
|
803
810
|
"aria-describedby": `${o.id}-content`,
|
|
804
811
|
class: "slp-tooltip",
|
|
805
812
|
onMouseenter: v,
|
|
806
813
|
onMouseleave: v,
|
|
807
|
-
onClick:
|
|
814
|
+
onClick: r
|
|
808
815
|
}, [
|
|
809
816
|
p("div", bt, [
|
|
810
817
|
$(o.$slots, "default", {}, void 0, !0),
|
|
811
|
-
|
|
818
|
+
n.value ? (a(), l("div", {
|
|
812
819
|
key: 0,
|
|
813
820
|
class: m(["slp-tooltip__content", `${o.position} ${o.mode === "hover" ? "hover-mode" : ""}`])
|
|
814
821
|
}, [
|
|
815
|
-
G(
|
|
822
|
+
G(L(s.value) + " ", 1),
|
|
816
823
|
o.text ? (a(), l("a", {
|
|
817
824
|
key: 0,
|
|
818
825
|
id: `${o.id}-content`,
|
|
@@ -823,7 +830,7 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
823
830
|
"data-ga-location": o.dataProperties ? "features content" : null,
|
|
824
831
|
role: "tooltip",
|
|
825
832
|
href: t.value
|
|
826
|
-
},
|
|
833
|
+
}, L(i.value), 9, yt)) : o.list ? (a(), l("ul", {
|
|
827
834
|
key: 1,
|
|
828
835
|
id: `${o.id}-content`,
|
|
829
836
|
role: "tooltip",
|
|
@@ -831,22 +838,22 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
831
838
|
}, [
|
|
832
839
|
(a(!0), l(M, null, V(o.list, (b) => (a(), l("li", {
|
|
833
840
|
key: b.text
|
|
834
|
-
},
|
|
841
|
+
}, L(b.text), 1))), 128))
|
|
835
842
|
], 8, $t)) : B("", !0)
|
|
836
843
|
], 2)) : B("", !0)
|
|
837
844
|
])
|
|
838
845
|
], 40, _t)) : (a(), l("button", {
|
|
839
846
|
key: 1,
|
|
840
847
|
id: o.id,
|
|
841
|
-
"data-tooltip-open":
|
|
848
|
+
"data-tooltip-open": n.value,
|
|
842
849
|
"aria-label": "Click to open tooltip with more information.",
|
|
843
850
|
"aria-describedby": `${o.id}-content`,
|
|
844
851
|
class: m(`slp-tooltip ${o.mode === "click" ? "button-mode" : ""}`),
|
|
845
|
-
onClick:
|
|
852
|
+
onClick: r
|
|
846
853
|
}, [
|
|
847
854
|
p("div", wt, [
|
|
848
855
|
$(o.$slots, "default", {}, void 0, !0),
|
|
849
|
-
|
|
856
|
+
n.value ? (a(), l("div", {
|
|
850
857
|
key: 0,
|
|
851
858
|
class: m(["slp-tooltip__content", `${o.position}`])
|
|
852
859
|
}, [
|
|
@@ -855,8 +862,8 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
855
862
|
id: `${o.id}-content`,
|
|
856
863
|
role: "tooltip"
|
|
857
864
|
}, [
|
|
858
|
-
G(
|
|
859
|
-
|
|
865
|
+
G(L(s.value) + " ", 1),
|
|
866
|
+
i.value && t.value ? (a(), l("a", {
|
|
860
867
|
key: 0,
|
|
861
868
|
"data-ga-features": o.dataProperties && o.dataProperties.features.toLowerCase() || null,
|
|
862
869
|
"data-ga-features-sub": (O = o.dataProperties) == null ? void 0 : O.sub,
|
|
@@ -864,7 +871,7 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
864
871
|
"data-ga-name": (g = o.dataProperties) == null ? void 0 : g.plan,
|
|
865
872
|
"data-ga-location": o.dataProperties ? "features content" : null,
|
|
866
873
|
href: t.value
|
|
867
|
-
},
|
|
874
|
+
}, L(i.value), 9, It)) : B("", !0)
|
|
868
875
|
], 8, St)) : (a(), l("ul", {
|
|
869
876
|
key: 1,
|
|
870
877
|
id: `${o.id}-content`,
|
|
@@ -873,14 +880,14 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
873
880
|
}, [
|
|
874
881
|
(a(!0), l(M, null, V(o.list, (b) => (a(), l("li", {
|
|
875
882
|
key: b.text
|
|
876
|
-
},
|
|
877
|
-
], 8,
|
|
883
|
+
}, L(b.text), 1))), 128))
|
|
884
|
+
], 8, Lt))
|
|
878
885
|
], 2)) : B("", !0)
|
|
879
886
|
])
|
|
880
887
|
], 10, kt));
|
|
881
888
|
};
|
|
882
889
|
}
|
|
883
|
-
}), Nt = /* @__PURE__ */ k(
|
|
890
|
+
}), Nt = /* @__PURE__ */ k(Ct, [["__scopeId", "data-v-0412a63f"]]), Tt = {
|
|
884
891
|
key: 0,
|
|
885
892
|
class: "breadcrumb",
|
|
886
893
|
vocab: "https://schema.org/",
|
|
@@ -899,51 +906,51 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
899
906
|
crumbs: { default: () => [] },
|
|
900
907
|
router: {}
|
|
901
908
|
},
|
|
902
|
-
setup(
|
|
903
|
-
const e =
|
|
904
|
-
const d =
|
|
905
|
-
for (let
|
|
906
|
-
d[
|
|
909
|
+
setup(c) {
|
|
910
|
+
const e = c, n = I(e.crumbs), i = I(!1), t = (r) => {
|
|
911
|
+
const d = r.split(" ");
|
|
912
|
+
for (let u = 0; u < d.length; u++)
|
|
913
|
+
d[u] = d[u][0].toUpperCase() + d[u].substr(1);
|
|
907
914
|
return d.join(" ");
|
|
908
|
-
},
|
|
909
|
-
|
|
910
|
-
}, v = (
|
|
911
|
-
|
|
912
|
-
...
|
|
913
|
-
hover: !
|
|
915
|
+
}, s = () => {
|
|
916
|
+
i.value = window.innerWidth < 768;
|
|
917
|
+
}, v = (r) => {
|
|
918
|
+
n.value[r] && (n.value[r] = {
|
|
919
|
+
...n.value[r],
|
|
920
|
+
hover: !n.value[r].hover
|
|
914
921
|
});
|
|
915
922
|
};
|
|
916
923
|
return ve(() => {
|
|
917
924
|
if (e.router) {
|
|
918
|
-
const
|
|
925
|
+
const r = e.router.currentRoute.path, d = r.startsWith("/") ? r.substring(1).split("/") : r.split("/"), u = [];
|
|
919
926
|
let o = "";
|
|
920
927
|
d.forEach((f) => {
|
|
921
928
|
o = `${o}/${f}`;
|
|
922
929
|
const w = e.router.match(o);
|
|
923
|
-
w.params.slug !== null && f.length &&
|
|
930
|
+
w.params.slug !== null && f.length && u.push({
|
|
924
931
|
title: t(f.replace(/-/g, " ")),
|
|
925
932
|
hover: !1,
|
|
926
933
|
...w
|
|
927
934
|
});
|
|
928
|
-
}),
|
|
935
|
+
}), n.value = u;
|
|
929
936
|
}
|
|
930
937
|
}), j(() => {
|
|
931
|
-
|
|
938
|
+
s(), window.addEventListener("resize", s);
|
|
932
939
|
}), ae(() => {
|
|
933
|
-
window.removeEventListener("resize",
|
|
934
|
-
}), (
|
|
935
|
-
(a(!0), l(M, null, V(
|
|
936
|
-
key:
|
|
940
|
+
window.removeEventListener("resize", s);
|
|
941
|
+
}), (r, d) => n.value && !i.value ? (a(), l("ol", Tt, [
|
|
942
|
+
(a(!0), l(M, null, V(n.value, (u, o) => (a(), l("li", {
|
|
943
|
+
key: u.title,
|
|
937
944
|
class: m(["breadcrumb__crumb", {
|
|
938
|
-
"breadcrumb__crumb--disabled": o ===
|
|
945
|
+
"breadcrumb__crumb--disabled": o === n.value.length - 1
|
|
939
946
|
}]),
|
|
940
947
|
property: "itemListElement",
|
|
941
948
|
typeof: "ListItem",
|
|
942
949
|
onMouseenter: (f) => v(o),
|
|
943
950
|
onMouseleave: (f) => v(o)
|
|
944
951
|
}, [
|
|
945
|
-
|
|
946
|
-
text:
|
|
952
|
+
C(Nt, {
|
|
953
|
+
text: u.title,
|
|
947
954
|
class: "breadcrumb__crumb__tooltip",
|
|
948
955
|
position: "top"
|
|
949
956
|
}, {
|
|
@@ -951,17 +958,17 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
951
958
|
p("a", {
|
|
952
959
|
property: "item",
|
|
953
960
|
typeof: "WebPage",
|
|
954
|
-
"data-ga-name":
|
|
955
|
-
"data-ga-location":
|
|
956
|
-
href: o !==
|
|
961
|
+
"data-ga-name": u.dataGaName || u.title.toLowerCase(),
|
|
962
|
+
"data-ga-location": u.dataGaLocation || "breadcrumb",
|
|
963
|
+
href: o !== n.value.length - 1 ? u.path : void 0
|
|
957
964
|
}, [
|
|
958
|
-
|
|
965
|
+
C(q, {
|
|
959
966
|
tag: "span",
|
|
960
967
|
variant: "body3",
|
|
961
968
|
property: "name"
|
|
962
969
|
}, {
|
|
963
970
|
default: T(() => [
|
|
964
|
-
G(
|
|
971
|
+
G(L(u.title.length > 18 ? u.title.substring(0, 18).concat("...") : u.title), 1)
|
|
965
972
|
]),
|
|
966
973
|
_: 2
|
|
967
974
|
}, 1024)
|
|
@@ -969,8 +976,8 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
969
976
|
]),
|
|
970
977
|
_: 2
|
|
971
978
|
}, 1032, ["text"]),
|
|
972
|
-
o !==
|
|
973
|
-
|
|
979
|
+
o !== n.value.length - 1 ? (a(), l("span", Bt, [
|
|
980
|
+
C(W, {
|
|
974
981
|
color: "accent-500",
|
|
975
982
|
size: "xs",
|
|
976
983
|
icon: A(le)
|
|
@@ -981,43 +988,43 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
981
988
|
content: o + 1
|
|
982
989
|
}, null, 8, Mt)
|
|
983
990
|
], 42, Et))), 128))
|
|
984
|
-
])) :
|
|
985
|
-
(a(!0), l(M, null, V(
|
|
986
|
-
key:
|
|
991
|
+
])) : n.value && i.value ? (a(), l("ol", Vt, [
|
|
992
|
+
(a(!0), l(M, null, V(n.value, (u) => (a(), l("li", {
|
|
993
|
+
key: u.title,
|
|
987
994
|
class: "breadcrumb__crumb breadcrumb__crumb--mobile",
|
|
988
995
|
property: "itemListElement",
|
|
989
996
|
typeof: "ListItem"
|
|
990
997
|
}, [
|
|
991
998
|
p("a", {
|
|
992
999
|
class: "slp-flex slp-align-items-center",
|
|
993
|
-
href:
|
|
994
|
-
"data-ga-name":
|
|
995
|
-
"data-ga-location":
|
|
1000
|
+
href: n.value[n.value.length - 2].path,
|
|
1001
|
+
"data-ga-name": u.dataGaName || u.title.toLowerCase(),
|
|
1002
|
+
"data-ga-location": u.dataGaLocation || "breadcrumb",
|
|
996
1003
|
property: "item",
|
|
997
1004
|
typeof: "WebPage"
|
|
998
1005
|
}, [
|
|
999
1006
|
p("span", null, [
|
|
1000
|
-
|
|
1007
|
+
C(W, {
|
|
1001
1008
|
color: "accent-500",
|
|
1002
1009
|
size: "xs",
|
|
1003
1010
|
icon: A(De)
|
|
1004
1011
|
}, null, 8, ["icon"])
|
|
1005
1012
|
]),
|
|
1006
|
-
|
|
1013
|
+
C(q, {
|
|
1007
1014
|
class: "slp-ml-8",
|
|
1008
1015
|
tag: "span",
|
|
1009
1016
|
variant: "body2",
|
|
1010
1017
|
property: "name"
|
|
1011
1018
|
}, {
|
|
1012
1019
|
default: T(() => [
|
|
1013
|
-
G(
|
|
1020
|
+
G(L(n.value[n.value.length - 2].title), 1)
|
|
1014
1021
|
]),
|
|
1015
1022
|
_: 1
|
|
1016
1023
|
})
|
|
1017
1024
|
], 8, Pt),
|
|
1018
1025
|
p("meta", {
|
|
1019
1026
|
property: "position",
|
|
1020
|
-
content:
|
|
1027
|
+
content: n.value.length - 1
|
|
1021
1028
|
}, null, 8, Gt)
|
|
1022
1029
|
]))), 128))
|
|
1023
1030
|
])) : B("", !0);
|
|
@@ -1034,39 +1041,39 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
1034
1041
|
valueKey: {}
|
|
1035
1042
|
},
|
|
1036
1043
|
emits: ["update:modelValue"],
|
|
1037
|
-
setup(
|
|
1038
|
-
const
|
|
1039
|
-
if (typeof
|
|
1044
|
+
setup(c, { emit: e }) {
|
|
1045
|
+
const n = c, i = e, t = (r, d) => {
|
|
1046
|
+
if (typeof r == "object" && r !== null) {
|
|
1040
1047
|
if (!d) {
|
|
1041
|
-
const f = Object.keys(
|
|
1042
|
-
return
|
|
1048
|
+
const f = Object.keys(r)[0];
|
|
1049
|
+
return r[f];
|
|
1043
1050
|
}
|
|
1044
|
-
const
|
|
1045
|
-
let o =
|
|
1046
|
-
for (const f of
|
|
1051
|
+
const u = d.split(".");
|
|
1052
|
+
let o = r;
|
|
1053
|
+
for (const f of u)
|
|
1047
1054
|
o = o == null ? void 0 : o[f];
|
|
1048
1055
|
return o;
|
|
1049
1056
|
}
|
|
1050
|
-
return
|
|
1051
|
-
},
|
|
1057
|
+
return r;
|
|
1058
|
+
}, s = S(() => n.options.length > 0 ? t(n.options[0], n.valueKey) : ""), v = S({
|
|
1052
1059
|
// Getter: Called when the template reads selectedValue
|
|
1053
1060
|
// Returns the current modelValue from parent (or empty string if undefined)
|
|
1054
|
-
get: () =>
|
|
1061
|
+
get: () => n.modelValue ?? s.value,
|
|
1055
1062
|
// Setter: Called when the select's v-model updates selectedValue
|
|
1056
1063
|
// Emits the new value to the parent component
|
|
1057
|
-
set: (
|
|
1064
|
+
set: (r) => i("update:modelValue", r)
|
|
1058
1065
|
});
|
|
1059
|
-
return (
|
|
1060
|
-
var
|
|
1061
|
-
return (
|
|
1066
|
+
return (r, d) => {
|
|
1067
|
+
var u;
|
|
1068
|
+
return (u = r.options) != null && u.length ? U((a(), l("select", {
|
|
1062
1069
|
key: 0,
|
|
1063
1070
|
"onUpdate:modelValue": d[0] || (d[0] = (o) => v.value = o),
|
|
1064
1071
|
class: "dropdown"
|
|
1065
1072
|
}, [
|
|
1066
|
-
(a(!0), l(M, null, V(
|
|
1067
|
-
key: `${t(o,
|
|
1068
|
-
value: t(o,
|
|
1069
|
-
},
|
|
1073
|
+
(a(!0), l(M, null, V(r.options, (o, f) => (a(), l("option", {
|
|
1074
|
+
key: `${t(o, r.valueKey)}-${f}`,
|
|
1075
|
+
value: t(o, r.valueKey)
|
|
1076
|
+
}, L(t(o, r.labelKey)), 9, Rt))), 128))
|
|
1070
1077
|
], 512)), [
|
|
1071
1078
|
[fe, v.value]
|
|
1072
1079
|
]) : (a(), l("div", At, d[1] || (d[1] = [
|
|
@@ -1080,9 +1087,9 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
1080
1087
|
backgroundColor: {
|
|
1081
1088
|
type: String,
|
|
1082
1089
|
required: !1,
|
|
1083
|
-
validator(
|
|
1084
|
-
const e = /^#([A-Fa-f0-9]{3}){1,2}$/.test(
|
|
1085
|
-
return
|
|
1090
|
+
validator(c) {
|
|
1091
|
+
const e = /^#([A-Fa-f0-9]{3}){1,2}$/.test(c), n = /^\$color-[a-zA-Z0-9-]+$/.test(c);
|
|
1092
|
+
return c ? e || n : !0;
|
|
1086
1093
|
}
|
|
1087
1094
|
},
|
|
1088
1095
|
id: {
|
|
@@ -1090,20 +1097,20 @@ const re = /* @__PURE__ */ k(Ue, [["render", Ke]]), Ze = {
|
|
|
1090
1097
|
required: !1
|
|
1091
1098
|
}
|
|
1092
1099
|
},
|
|
1093
|
-
setup(
|
|
1094
|
-
const e =
|
|
1100
|
+
setup(c) {
|
|
1101
|
+
const e = c, n = S(() => {
|
|
1095
1102
|
var t;
|
|
1096
1103
|
return !e.backgroundColor || (t = e.backgroundColor) != null && t.startsWith("$") ? {} : { backgroundColor: e.backgroundColor };
|
|
1097
|
-
}),
|
|
1098
|
-
var t,
|
|
1099
|
-
return (t = e.backgroundColor) != null && t.startsWith("$") ? `slp-background-${(
|
|
1104
|
+
}), i = S(() => {
|
|
1105
|
+
var t, s;
|
|
1106
|
+
return (t = e.backgroundColor) != null && t.startsWith("$") ? `slp-background-${(s = e.backgroundColor) == null ? void 0 : s.slice(1)}` : null;
|
|
1100
1107
|
});
|
|
1101
|
-
return (t,
|
|
1102
|
-
style: te(
|
|
1103
|
-
class: m(
|
|
1104
|
-
id:
|
|
1108
|
+
return (t, s) => (a(), l("section", {
|
|
1109
|
+
style: te(n.value),
|
|
1110
|
+
class: m(i.value),
|
|
1111
|
+
id: c.id || void 0
|
|
1105
1112
|
}, [
|
|
1106
|
-
|
|
1113
|
+
C(ne, null, {
|
|
1107
1114
|
default: T(() => [
|
|
1108
1115
|
$(t.$slots, "default", {}, void 0, !0)
|
|
1109
1116
|
]),
|
|
@@ -1116,7 +1123,7 @@ export {
|
|
|
1116
1123
|
Yt as SlpBreadcrumb,
|
|
1117
1124
|
Q as SlpButton,
|
|
1118
1125
|
Ut as SlpColumn,
|
|
1119
|
-
|
|
1126
|
+
ne as SlpContainer,
|
|
1120
1127
|
Qt as SlpDropdown,
|
|
1121
1128
|
W as SlpIcon,
|
|
1122
1129
|
Ft as SlpLoader,
|