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