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