@kong-ui-public/page-layout 1.3.2-pr.3955.d76d9b0e2.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/page-layout.es.js
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { ChevronDownIcon as
|
|
5
|
-
const
|
|
6
|
-
back_button:
|
|
7
|
-
favorite_button:
|
|
8
|
-
tabs:
|
|
9
|
-
anchor_navigation:
|
|
1
|
+
import { shallowRef as De, shallowReadonly as Ve, getCurrentScope as Ue, onScopeDispose as je, toValue as re, watch as he, computed as C, getCurrentInstance as Ge, onMounted as we, defineComponent as fe, inject as le, useTemplateRef as de, ref as M, onBeforeUnmount as Pe, resolveComponent as R, openBlock as s, createElementBlock as d, createElementVNode as b, normalizeClass as q, Fragment as Y, renderList as W, createBlock as L, resolveDynamicComponent as be, mergeProps as Ke, withKeys as Ne, withModifiers as ve, withCtx as I, renderSlot as A, createTextVNode as te, toDisplayString as O, createVNode as z, unref as h, createCommentVNode as y, nextTick as ye, provide as qe, onUnmounted as Ye, createSlots as ke, normalizeProps as Ze, guardReactiveProps as Je } from "vue";
|
|
2
|
+
import { useRouter as Be, useRoute as Xe } from "vue-router";
|
|
3
|
+
import { createI18n as Qe, i18nTComponent as et } from "@kong-ui-public/i18n";
|
|
4
|
+
import { ChevronDownIcon as Oe, ChevronRightIcon as tt, ArrowTopLeftIcon as at, StarFillIcon as ot, StarIcon as nt, InfoIcon as it } from "@kong/icons";
|
|
5
|
+
const st = "Go back", lt = { save_shortcut: "Save page to shortcuts", remove_shortcut: "Remove page from shortcuts" }, rt = { more_button: { label: "More", aria_label: "More tabs" } }, ut = { aria_label: "Page sections", more_button: { aria_label: "More page sections" } }, ct = {
|
|
6
|
+
back_button: st,
|
|
7
|
+
favorite_button: lt,
|
|
8
|
+
tabs: rt,
|
|
9
|
+
anchor_navigation: ut
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
const
|
|
11
|
+
function dt() {
|
|
12
|
+
const e = Qe("en-us", ct);
|
|
13
13
|
return {
|
|
14
|
-
i18n:
|
|
15
|
-
i18nT:
|
|
14
|
+
i18n: e,
|
|
15
|
+
i18nT: et(e)
|
|
16
16
|
// Translation component <i18n-t>
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
useI18n:
|
|
21
|
-
},
|
|
22
|
-
function
|
|
23
|
-
return
|
|
19
|
+
const Te = {
|
|
20
|
+
useI18n: dt
|
|
21
|
+
}, vt = "12px", ae = "16px", ht = "2px", ze = "16px";
|
|
22
|
+
function ft(e, u) {
|
|
23
|
+
return Ue() ? (je(e, u), !0) : !1;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const pt = typeof window < "u" && typeof document < "u";
|
|
26
26
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
27
|
-
const
|
|
27
|
+
const ee = () => {
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function gt(e, u) {
|
|
30
30
|
function a(...n) {
|
|
31
31
|
return new Promise((r, c) => {
|
|
32
|
-
Promise.resolve(
|
|
32
|
+
Promise.resolve(e(() => u.apply(this, n), {
|
|
33
33
|
fn: u,
|
|
34
34
|
thisArg: this,
|
|
35
35
|
args: n
|
|
36
36
|
})).then(r).catch(c);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
return "cancel" in
|
|
40
|
-
cancel:
|
|
41
|
-
flush:
|
|
42
|
-
isPending:
|
|
39
|
+
return "cancel" in e && Object.assign(a, {
|
|
40
|
+
cancel: e.cancel,
|
|
41
|
+
flush: e.flush,
|
|
42
|
+
isPending: e.isPending
|
|
43
43
|
}), a;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
let a, n, r =
|
|
47
|
-
const v =
|
|
48
|
-
clearTimeout(f), r(), r =
|
|
45
|
+
function mt(e, u = {}) {
|
|
46
|
+
let a, n, r = ee, c = ee;
|
|
47
|
+
const v = De(!1), i = (f) => {
|
|
48
|
+
clearTimeout(f), r(), r = ee;
|
|
49
49
|
};
|
|
50
50
|
let w;
|
|
51
51
|
return Object.assign((f) => {
|
|
52
|
-
const p =
|
|
53
|
-
return a && i(a), p <= 0 ||
|
|
54
|
-
r = u.rejectOnCancel ? g : S, c = S, w = f,
|
|
52
|
+
const p = re(e), E = re(u.maxWait);
|
|
53
|
+
return a && i(a), p <= 0 || E !== void 0 && E <= 0 ? (n && (i(n), n = void 0), v.value = !1, Promise.resolve(f())) : (v.value = !0, new Promise((S, g) => {
|
|
54
|
+
r = u.rejectOnCancel ? g : S, c = S, w = f, E && !n && (n = setTimeout(() => {
|
|
55
55
|
a && i(a), n = void 0, v.value = !1, S(w());
|
|
56
|
-
},
|
|
56
|
+
}, E)), a = setTimeout(() => {
|
|
57
57
|
n && i(n), n = void 0, v.value = !1, S(f());
|
|
58
58
|
}, p);
|
|
59
59
|
}));
|
|
60
60
|
}, {
|
|
61
61
|
cancel: () => {
|
|
62
|
-
a && (i(a), a = void 0), n && (i(n), n = void 0), v.value = !1, c =
|
|
62
|
+
a && (i(a), a = void 0), n && (i(n), n = void 0), v.value = !1, c = ee;
|
|
63
63
|
},
|
|
64
64
|
flush: () => {
|
|
65
65
|
if (v.value) {
|
|
66
66
|
a && (clearTimeout(a), a = void 0), n && (clearTimeout(n), n = void 0), v.value = !1;
|
|
67
67
|
const f = c;
|
|
68
|
-
r =
|
|
68
|
+
r = ee, c = ee, f(w());
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
isPending:
|
|
71
|
+
isPending: Ve(v)
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
74
|
+
function bt(e, u = 200, a = {}) {
|
|
75
|
+
return gt(mt(u, a), e);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
function
|
|
77
|
+
const yt = pt ? window : void 0;
|
|
78
|
+
function Ae(e) {
|
|
79
79
|
var u;
|
|
80
|
-
const a =
|
|
80
|
+
const a = re(e);
|
|
81
81
|
return (u = a?.$el) !== null && u !== void 0 ? u : a;
|
|
82
82
|
}
|
|
83
83
|
// @__NO_SIDE_EFFECTS__
|
|
84
|
-
function
|
|
85
|
-
const
|
|
86
|
-
return u &&
|
|
87
|
-
|
|
88
|
-
}, u),
|
|
84
|
+
function kt() {
|
|
85
|
+
const e = De(!1), u = Ge();
|
|
86
|
+
return u && we(() => {
|
|
87
|
+
e.value = !0;
|
|
88
|
+
}, u), e;
|
|
89
89
|
}
|
|
90
90
|
// @__NO_SIDE_EFFECTS__
|
|
91
|
-
function
|
|
92
|
-
const u = /* @__PURE__ */
|
|
93
|
-
return C(() => (u.value, !!
|
|
91
|
+
function wt(e) {
|
|
92
|
+
const u = /* @__PURE__ */ kt();
|
|
93
|
+
return C(() => (u.value, !!e()));
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
const { window: n =
|
|
95
|
+
function He(e, u, a = {}) {
|
|
96
|
+
const { window: n = yt, ...r } = a;
|
|
97
97
|
let c;
|
|
98
|
-
const v = /* @__PURE__ */
|
|
98
|
+
const v = /* @__PURE__ */ wt(() => n && "ResizeObserver" in n), i = () => {
|
|
99
99
|
c && (c.disconnect(), c = void 0);
|
|
100
|
-
}, w =
|
|
101
|
-
const f =
|
|
102
|
-
return Array.isArray(f) ? f.map((p) =>
|
|
100
|
+
}, w = he(C(() => {
|
|
101
|
+
const f = re(e);
|
|
102
|
+
return Array.isArray(f) ? f.map((p) => Ae(p)) : [Ae(f)];
|
|
103
103
|
}), (f) => {
|
|
104
104
|
if (i(), v.value && n) {
|
|
105
105
|
c = new ResizeObserver(u);
|
|
@@ -111,25 +111,25 @@ function Ft(t, u, a = {}) {
|
|
|
111
111
|
}), T = () => {
|
|
112
112
|
i(), w();
|
|
113
113
|
};
|
|
114
|
-
return
|
|
114
|
+
return ft(T), {
|
|
115
115
|
isSupported: v,
|
|
116
116
|
stop: T
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
const
|
|
119
|
+
const Tt = {
|
|
120
120
|
ref: "page-layout-tabs",
|
|
121
121
|
class: "page-layout-tabs",
|
|
122
122
|
"data-testid": "page-layout-tabs"
|
|
123
|
-
},
|
|
123
|
+
}, _t = { key: 0 }, $t = ["aria-label"], Ct = {
|
|
124
124
|
key: 0,
|
|
125
125
|
class: "layout-loader-container"
|
|
126
|
-
},
|
|
126
|
+
}, It = /* @__PURE__ */ fe({
|
|
127
127
|
__name: "PageLayoutTabs",
|
|
128
128
|
props: {
|
|
129
129
|
tabs: { default: () => [] }
|
|
130
130
|
},
|
|
131
|
-
setup(
|
|
132
|
-
const { i18n: { t: u } } =
|
|
131
|
+
setup(e) {
|
|
132
|
+
const { i18n: { t: u } } = Te.useI18n(), a = Be(), n = le("app:navigateTo", null), r = (g) => {
|
|
133
133
|
if (typeof g.to != "string") {
|
|
134
134
|
a.push(g.to);
|
|
135
135
|
return;
|
|
@@ -139,36 +139,36 @@ const we = {
|
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
n(g.to);
|
|
142
|
-
}, c =
|
|
142
|
+
}, c = de("page-layout-tabs"), v = de("page-layout-tabs-list"), i = M(e.tabs.length), w = M(!1), T = C(() => e.tabs.slice(0, i.value)), f = C(() => e.tabs.slice(i.value)), p = async () => {
|
|
143
143
|
if (!c.value || !v.value)
|
|
144
144
|
return;
|
|
145
|
-
w.value = !1, i.value =
|
|
146
|
-
const g = c.value?.getBoundingClientRect().width - parseInt(
|
|
147
|
-
let
|
|
148
|
-
if (!g || !
|
|
145
|
+
w.value = !1, i.value = e.tabs.length, await ye();
|
|
146
|
+
const g = c.value?.getBoundingClientRect().width - parseInt(ze) * 2;
|
|
147
|
+
let H = v.value?.getBoundingClientRect().width;
|
|
148
|
+
if (!g || !H) {
|
|
149
149
|
w.value = !0;
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
|
-
const
|
|
153
|
-
for (;
|
|
154
|
-
i.value--, await
|
|
152
|
+
const P = 50;
|
|
153
|
+
for (; H + P > g && i.value > 1; )
|
|
154
|
+
i.value--, await ye(), H = v.value?.getBoundingClientRect().width || 0;
|
|
155
155
|
w.value = !0;
|
|
156
156
|
};
|
|
157
|
-
let
|
|
157
|
+
let E = null;
|
|
158
158
|
const S = () => {
|
|
159
|
-
|
|
159
|
+
E && clearTimeout(E), E = setTimeout(() => {
|
|
160
160
|
p();
|
|
161
161
|
}, 150);
|
|
162
162
|
};
|
|
163
|
-
return
|
|
164
|
-
p(),
|
|
165
|
-
}),
|
|
166
|
-
|
|
167
|
-
}),
|
|
163
|
+
return we(() => {
|
|
164
|
+
p(), He(c, S);
|
|
165
|
+
}), Pe(() => {
|
|
166
|
+
E && clearTimeout(E);
|
|
167
|
+
}), he(() => e.tabs, () => {
|
|
168
168
|
p();
|
|
169
|
-
}, { deep: !0 }), (g,
|
|
170
|
-
const
|
|
171
|
-
return s(), d("nav",
|
|
169
|
+
}, { deep: !0 }), (g, H) => {
|
|
170
|
+
const P = R("KDropdownItem"), x = R("KDropdown"), Z = R("KSkeletonBox");
|
|
171
|
+
return s(), d("nav", Tt, [
|
|
172
172
|
b("ul", {
|
|
173
173
|
ref: "page-layout-tabs-list",
|
|
174
174
|
class: q({ "layout-computing": !w.value })
|
|
@@ -176,29 +176,29 @@ const we = {
|
|
|
176
176
|
(s(!0), d(Y, null, W(T.value, (l) => (s(), d("li", {
|
|
177
177
|
key: `${l.key}-tab`
|
|
178
178
|
}, [
|
|
179
|
-
(s(),
|
|
179
|
+
(s(), L(be(typeof l.to == "string" ? "a" : "router-link"), Ke({ ref_for: !0 }, typeof l.to == "string" ? { href: l.to } : { to: l.to }, {
|
|
180
180
|
"aria-current": l.active ? "page" : void 0,
|
|
181
181
|
class: ["tab-link", { active: l.active }],
|
|
182
182
|
"data-testid": l.dataTestId ? l.dataTestId : `page-layout-tab-${l.key}`,
|
|
183
183
|
tabindex: "0",
|
|
184
|
-
onClick:
|
|
185
|
-
onKeydown:
|
|
184
|
+
onClick: ve((F) => r(l), ["prevent"]),
|
|
185
|
+
onKeydown: Ne(ve((F) => r(l), ["prevent"]), ["enter"])
|
|
186
186
|
}), {
|
|
187
187
|
default: I(() => [
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
A(g.$slots, `tab-${l.key}`, { tab: l }, () => [
|
|
189
|
+
te(O(l.label), 1)
|
|
190
190
|
], !0)
|
|
191
191
|
]),
|
|
192
192
|
_: 2
|
|
193
193
|
}, 1040, ["aria-current", "class", "data-testid", "onClick", "onKeydown"]))
|
|
194
194
|
]))), 128)),
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
e.tabs.length > i.value ? (s(), d("li", _t, [
|
|
196
|
+
z(x, { "kpop-attributes": {
|
|
197
197
|
placement: "bottom-end",
|
|
198
198
|
popoverElementAttributes: { "data-testid": "tabs-overflow-dropdown-popover" }
|
|
199
199
|
} }, {
|
|
200
200
|
items: I(() => [
|
|
201
|
-
(s(!0), d(Y, null, W(f.value, (l) => (s(),
|
|
201
|
+
(s(!0), d(Y, null, W(f.value, (l) => (s(), L(P, {
|
|
202
202
|
key: `${l.key}-dropdown-item`,
|
|
203
203
|
"aria-current": l.active ? "page" : void 0,
|
|
204
204
|
"data-testid": l.dataTestId ? l.dataTestId : `page-layout-tab-${l.key}`,
|
|
@@ -210,8 +210,8 @@ const we = {
|
|
|
210
210
|
selected: l.active
|
|
211
211
|
}, {
|
|
212
212
|
default: I(() => [
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
A(g.$slots, `tab-${l.key}`, { tab: l }, () => [
|
|
214
|
+
te(O(l.label), 1)
|
|
215
215
|
], !0)
|
|
216
216
|
]),
|
|
217
217
|
_: 2
|
|
@@ -223,19 +223,19 @@ const we = {
|
|
|
223
223
|
class: q(["tab-link", { active: f.value.find((l) => l.active) }]),
|
|
224
224
|
"data-testid": "tabs-overflow-dropdown-button"
|
|
225
225
|
}, [
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
te(O(h(u)("tabs.more_button.label")) + " ", 1),
|
|
227
|
+
z(h(Oe), {
|
|
228
228
|
decorative: "",
|
|
229
|
-
size: `var(--kui-icon-size-30, ${h(
|
|
229
|
+
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
230
230
|
}, null, 8, ["size"])
|
|
231
|
-
], 10,
|
|
231
|
+
], 10, $t)
|
|
232
232
|
]),
|
|
233
233
|
_: 3
|
|
234
234
|
})
|
|
235
235
|
])) : y("", !0)
|
|
236
236
|
], 2),
|
|
237
|
-
w.value ? y("", !0) : (s(), d("div",
|
|
238
|
-
(s(), d(Y, null, W(3, (l) =>
|
|
237
|
+
w.value ? y("", !0) : (s(), d("div", Ct, [
|
|
238
|
+
(s(), d(Y, null, W(3, (l) => z(Z, {
|
|
239
239
|
key: `layout-loader-${l}`,
|
|
240
240
|
height: "1",
|
|
241
241
|
width: "5"
|
|
@@ -244,159 +244,161 @@ const we = {
|
|
|
244
244
|
], 512);
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
}),
|
|
248
|
-
const a =
|
|
247
|
+
}), pe = (e, u) => {
|
|
248
|
+
const a = e.__vccOpts || e;
|
|
249
249
|
for (const [n, r] of u)
|
|
250
250
|
a[n] = r;
|
|
251
251
|
return a;
|
|
252
|
-
},
|
|
252
|
+
}, Et = /* @__PURE__ */ pe(It, [["__scopeId", "data-v-02891bc1"]]), At = ["aria-label", "data-fit"], St = {
|
|
253
253
|
key: 0,
|
|
254
254
|
"aria-hidden": "true",
|
|
255
255
|
class: "anchor-ellipsis",
|
|
256
256
|
"data-testid": "anchor-navigation-leading-ellipsis"
|
|
257
|
-
},
|
|
257
|
+
}, Lt = ["aria-current", "data-testid", "title", "onClick"], Rt = {
|
|
258
258
|
key: 1,
|
|
259
259
|
"aria-hidden": "true",
|
|
260
260
|
class: "anchor-ellipsis",
|
|
261
261
|
"data-testid": "anchor-navigation-trailing-ellipsis"
|
|
262
|
-
},
|
|
262
|
+
}, Dt = { key: 2 }, Se = 140, Le = 22, me = 16, se = "data-anchor-attention", Pt = 1200, Kt = 1600, Nt = /* @__PURE__ */ fe({
|
|
263
263
|
__name: "PageLayoutAnchorNavigation",
|
|
264
264
|
props: {
|
|
265
265
|
anchors: { default: () => [] }
|
|
266
266
|
},
|
|
267
|
-
setup(
|
|
268
|
-
const { i18n: { t: u } } =
|
|
269
|
-
const
|
|
270
|
-
return
|
|
267
|
+
setup(e) {
|
|
268
|
+
const { i18n: { t: u } } = Te.useI18n(), a = de("page-layout-anchor-navigation"), n = de("page-layout-anchor-navigation-list"), r = M("all"), c = M(""), v = M([]), i = C(() => e.anchors.filter((t) => v.value.includes(t.id))), w = C(() => {
|
|
269
|
+
const t = i.value.findIndex((o) => o.id === c.value);
|
|
270
|
+
return t === -1 ? 0 : t;
|
|
271
271
|
}), T = C(() => {
|
|
272
|
-
const
|
|
272
|
+
const t = i.value, o = t.length, m = w.value;
|
|
273
273
|
if (r.value === "all")
|
|
274
|
-
return { anchors:
|
|
274
|
+
return { anchors: t, hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !1 };
|
|
275
275
|
if (r.value === "hidden")
|
|
276
276
|
return { anchors: [], hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !1 };
|
|
277
277
|
if (r.value === "active-only")
|
|
278
|
-
return { anchors:
|
|
278
|
+
return { anchors: t.slice(m, m + 1), hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !0 };
|
|
279
279
|
const _ = r.value === "window-3" ? 3 : 2;
|
|
280
280
|
if (o <= _)
|
|
281
|
-
return { anchors:
|
|
281
|
+
return { anchors: t, hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !0 };
|
|
282
282
|
const N = m < _ ? 0 : m >= o - _ ? o - _ : m - 1;
|
|
283
283
|
return {
|
|
284
|
-
anchors:
|
|
284
|
+
anchors: t.slice(N, N + _),
|
|
285
285
|
hasLeadingEllipsis: N > 0,
|
|
286
286
|
hasTrailingEllipsis: N + _ < o,
|
|
287
287
|
hasOverflowDropdown: !0
|
|
288
288
|
};
|
|
289
|
-
}), f = (
|
|
290
|
-
let
|
|
291
|
-
for (;
|
|
292
|
-
const { overflowY: o } = getComputedStyle(
|
|
289
|
+
}), f = (t) => t.dataTestId ?? `page-layout-anchor-${t.id.replace(/[^\w-]+/g, "-").replace(/^-+|-+$/g, "")}`, p = M(null), E = () => {
|
|
290
|
+
let t = a.value?.parentElement ?? null;
|
|
291
|
+
for (; t; ) {
|
|
292
|
+
const { overflowY: o } = getComputedStyle(t);
|
|
293
293
|
if (o === "auto" || o === "scroll" || o === "overlay")
|
|
294
|
-
return
|
|
295
|
-
|
|
294
|
+
return t;
|
|
295
|
+
t = t.parentElement;
|
|
296
296
|
}
|
|
297
297
|
return null;
|
|
298
|
-
}, S = (
|
|
299
|
-
if (
|
|
300
|
-
return
|
|
298
|
+
}, S = (t) => {
|
|
299
|
+
if (t.element)
|
|
300
|
+
return t.element.isConnected ? t.element : null;
|
|
301
301
|
const o = p.value ?? document;
|
|
302
302
|
try {
|
|
303
|
-
return o.querySelector(
|
|
303
|
+
return o.querySelector(t.id) ?? o.querySelector(`#${CSS.escape(t.id)}`);
|
|
304
304
|
} catch {
|
|
305
305
|
return null;
|
|
306
306
|
}
|
|
307
|
-
}, g = () => (a.value?.closest(".page-layout-header")?.getBoundingClientRect().height ?? 0) + parseInt(
|
|
307
|
+
}, g = () => (a.value?.closest(".page-layout-header")?.getBoundingClientRect().height ?? 0) + parseInt(ze, 10), H = parseInt(ae, 10), P = parseInt(ht, 10), x = (t) => t * Se + 2 * H + Le + (t + 2) * P + me, Z = () => Se + Le + P + me;
|
|
308
308
|
let l = 0;
|
|
309
309
|
const F = async () => {
|
|
310
310
|
if (!i.value.length) {
|
|
311
311
|
r.value = "hidden";
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
|
-
const
|
|
315
|
-
if (r.value = "all", await
|
|
314
|
+
const t = ++l;
|
|
315
|
+
if (r.value = "all", await ye(), t !== l || !a.value || !n.value)
|
|
316
316
|
return;
|
|
317
317
|
const o = a.value.getBoundingClientRect().width, m = n.value.getBoundingClientRect().width;
|
|
318
|
-
o <= 0 || m <= 0 || m +
|
|
318
|
+
o <= 0 || m <= 0 || m + me <= o || (x(3) <= o ? r.value = "window-3" : x(2) <= o ? r.value = "window-2" : Z() <= o ? r.value = "active-only" : r.value = "hidden");
|
|
319
319
|
};
|
|
320
320
|
let V = null;
|
|
321
|
-
|
|
321
|
+
He(a, () => {
|
|
322
322
|
V && clearTimeout(V), V = setTimeout(() => {
|
|
323
|
-
|
|
323
|
+
ie(), F();
|
|
324
324
|
}, 150);
|
|
325
325
|
});
|
|
326
|
-
let J = null, X = null,
|
|
327
|
-
const
|
|
328
|
-
const o = String(++
|
|
329
|
-
$
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
},
|
|
326
|
+
let J = null, X = null, U = 0, ue = 0, j = null, oe = null;
|
|
327
|
+
const _e = (t) => {
|
|
328
|
+
const o = String(++U);
|
|
329
|
+
$e(), oe = t, t.removeAttribute(se), ue = requestAnimationFrame(() => {
|
|
330
|
+
t.setAttribute(se, o), j = setTimeout(() => {
|
|
331
|
+
t.getAttribute(se) === o && t.removeAttribute(se);
|
|
332
|
+
}, Pt);
|
|
333
333
|
});
|
|
334
|
-
}, $
|
|
335
|
-
cancelAnimationFrame(
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
334
|
+
}, $e = () => {
|
|
335
|
+
cancelAnimationFrame(ue), j && (clearTimeout(j), j = null), oe?.removeAttribute(se), oe = null;
|
|
336
|
+
}, ne = () => p.value ?? window, Fe = /* @__PURE__ */ new Set(["ArrowUp", "ArrowDown", "PageUp", "PageDown", "Home", "End", " "]), D = (t) => {
|
|
337
|
+
if (t instanceof KeyboardEvent && !Fe.has(t.key))
|
|
338
|
+
return;
|
|
339
|
+
t && t.type !== "scrollend" && U++, J = null, X && (clearTimeout(X), X = null);
|
|
340
|
+
const o = ne();
|
|
341
|
+
o.removeEventListener("scrollend", D), o.removeEventListener("wheel", D), o.removeEventListener("touchstart", D), o.removeEventListener("keydown", D);
|
|
342
|
+
}, Me = (t) => {
|
|
343
|
+
D(), J = t;
|
|
344
|
+
const o = ne();
|
|
345
|
+
o.addEventListener("scrollend", D, { once: !0 }), o.addEventListener("wheel", D, { passive: !0 }), o.addEventListener("touchstart", D, { passive: !0 }), o.addEventListener("keydown", D, { passive: !0 }), X = setTimeout(D, 1e3);
|
|
346
|
+
}, Ce = () => {
|
|
347
|
+
const t = p.value;
|
|
346
348
|
return {
|
|
347
|
-
top:
|
|
348
|
-
scrollTop:
|
|
349
|
-
clientHeight:
|
|
350
|
-
scrollHeight:
|
|
349
|
+
top: t ? t.getBoundingClientRect().top : 0,
|
|
350
|
+
scrollTop: t ? t.scrollTop : window.scrollY,
|
|
351
|
+
clientHeight: t ? t.clientHeight : window.innerHeight,
|
|
352
|
+
scrollHeight: t ? t.scrollHeight : document.documentElement.scrollHeight
|
|
351
353
|
};
|
|
352
|
-
},
|
|
353
|
-
const { top:
|
|
354
|
-
let k = null,
|
|
355
|
-
for (const B of
|
|
354
|
+
}, ie = () => {
|
|
355
|
+
const { top: t, scrollTop: o, clientHeight: m, scrollHeight: _ } = Ce(), N = g(), $ = [];
|
|
356
|
+
let k = null, G = null;
|
|
357
|
+
for (const B of e.anchors) {
|
|
356
358
|
const Q = S(B);
|
|
357
|
-
Q && ($.push(B.id),
|
|
359
|
+
Q && ($.push(B.id), G = B.id, k ??= B.id, Q.getBoundingClientRect().top - t <= (B.offset ?? N) + 8 && (k = B.id));
|
|
358
360
|
}
|
|
359
|
-
const
|
|
360
|
-
return
|
|
361
|
+
const ce = $.length !== v.value.length || $.some((B, Q) => B !== v.value[Q]);
|
|
362
|
+
return ce && (v.value = $), J || (G && o > 0 && o + m >= _ - 2 && (k = G), c.value = k ?? ""), ce;
|
|
361
363
|
};
|
|
362
|
-
let
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
let ge = !1;
|
|
365
|
+
const Ie = () => {
|
|
366
|
+
ge || (ge = !0, requestAnimationFrame(() => {
|
|
367
|
+
ge = !1, ie() && F();
|
|
366
368
|
}));
|
|
367
|
-
},
|
|
368
|
-
const o =
|
|
369
|
+
}, xe = (t) => {
|
|
370
|
+
const o = ne();
|
|
369
371
|
let m = !1;
|
|
370
372
|
const _ = () => {
|
|
371
|
-
m || (m = !0, o.removeEventListener("scrollend", _),
|
|
373
|
+
m || (m = !0, o.removeEventListener("scrollend", _), t());
|
|
372
374
|
};
|
|
373
|
-
o.addEventListener("scrollend", _, { once: !0 }), window.setTimeout(_,
|
|
374
|
-
},
|
|
375
|
-
const o = S(
|
|
375
|
+
o.addEventListener("scrollend", _, { once: !0 }), window.setTimeout(_, Kt);
|
|
376
|
+
}, Ee = (t) => {
|
|
377
|
+
const o = S(t);
|
|
376
378
|
if (!o)
|
|
377
379
|
return;
|
|
378
|
-
c.value =
|
|
379
|
-
const m =
|
|
380
|
-
if ((k ?? window).scrollTo({ behavior: "smooth", top:
|
|
381
|
-
|
|
380
|
+
c.value = t.id, Me(t.id);
|
|
381
|
+
const m = t.offset ?? g(), { scrollTop: _, clientHeight: N, scrollHeight: $ } = Ce(), k = p.value, G = k ? o.getBoundingClientRect().top - k.getBoundingClientRect().top + k.scrollTop - m : o.getBoundingClientRect().top + window.scrollY - m, ce = Math.min(Math.max(G, 0), Math.max($ - N, 0)), B = Math.abs(ce - _) >= 2, Q = ++U;
|
|
382
|
+
if ((k ?? window).scrollTo({ behavior: "smooth", top: G }), !B) {
|
|
383
|
+
_e(o);
|
|
382
384
|
return;
|
|
383
385
|
}
|
|
384
|
-
|
|
385
|
-
Q ===
|
|
386
|
+
xe(() => {
|
|
387
|
+
Q === U && _e(o);
|
|
386
388
|
});
|
|
387
|
-
},
|
|
388
|
-
o(),
|
|
389
|
+
}, We = (t, o) => {
|
|
390
|
+
o(), Ee(t);
|
|
389
391
|
};
|
|
390
|
-
return
|
|
391
|
-
p.value =
|
|
392
|
-
|
|
392
|
+
return we(() => {
|
|
393
|
+
p.value = E(), ne().addEventListener("scroll", Ie, { passive: !0 }), ie(), F(), requestAnimationFrame(() => {
|
|
394
|
+
ie(), F();
|
|
393
395
|
});
|
|
394
|
-
}),
|
|
395
|
-
|
|
396
|
-
}),
|
|
397
|
-
|
|
398
|
-
}, { deep: !0 }), (
|
|
399
|
-
const m =
|
|
396
|
+
}), Pe(() => {
|
|
397
|
+
ne().removeEventListener("scroll", Ie), D(), U++, $e(), V && clearTimeout(V);
|
|
398
|
+
}), he(() => e.anchors, () => {
|
|
399
|
+
e.anchors.some((t) => t.id === c.value) || (c.value = ""), ie(), F();
|
|
400
|
+
}, { deep: !0 }), (t, o) => {
|
|
401
|
+
const m = R("KButton"), _ = R("KDropdownItem"), N = R("KDropdown");
|
|
400
402
|
return s(), d("nav", {
|
|
401
403
|
ref: "page-layout-anchor-navigation",
|
|
402
404
|
"aria-label": h(u)("anchor_navigation.aria_label"),
|
|
@@ -408,7 +410,7 @@ const we = {
|
|
|
408
410
|
ref: "page-layout-anchor-navigation-list",
|
|
409
411
|
class: q({ "layout-hidden": r.value === "hidden" })
|
|
410
412
|
}, [
|
|
411
|
-
T.value.hasLeadingEllipsis ? (s(), d("li",
|
|
413
|
+
T.value.hasLeadingEllipsis ? (s(), d("li", St, " … ")) : y("", !0),
|
|
412
414
|
(s(!0), d(Y, null, W(T.value.anchors, ($) => (s(), d("li", {
|
|
413
415
|
key: `${$.id}-anchor`
|
|
414
416
|
}, [
|
|
@@ -418,31 +420,31 @@ const we = {
|
|
|
418
420
|
"data-testid": f($),
|
|
419
421
|
title: $.label,
|
|
420
422
|
type: "button",
|
|
421
|
-
onClick: (k) =>
|
|
422
|
-
},
|
|
423
|
+
onClick: (k) => Ee($)
|
|
424
|
+
}, O($.label), 11, Lt)
|
|
423
425
|
]))), 128)),
|
|
424
|
-
T.value.hasTrailingEllipsis ? (s(), d("li",
|
|
425
|
-
T.value.hasOverflowDropdown ? (s(), d("li",
|
|
426
|
-
|
|
426
|
+
T.value.hasTrailingEllipsis ? (s(), d("li", Rt, " … ")) : y("", !0),
|
|
427
|
+
T.value.hasOverflowDropdown ? (s(), d("li", Dt, [
|
|
428
|
+
z(N, { "kpop-attributes": {
|
|
427
429
|
placement: "bottom-end",
|
|
428
430
|
popoverElementAttributes: { "data-testid": "anchor-navigation-overflow-dropdown-popover" }
|
|
429
431
|
} }, {
|
|
430
432
|
items: I(({ closeDropdown: $ }) => [
|
|
431
|
-
(s(!0), d(Y, null, W(i.value, (k) => (s(),
|
|
433
|
+
(s(!0), d(Y, null, W(i.value, (k) => (s(), L(_, {
|
|
432
434
|
key: `${k.id}-dropdown-item`,
|
|
433
435
|
"aria-current": k.id === c.value ? "location" : void 0,
|
|
434
436
|
"data-testid": f(k),
|
|
435
437
|
selected: k.id === c.value,
|
|
436
|
-
onClick: (
|
|
438
|
+
onClick: (G) => We(k, $)
|
|
437
439
|
}, {
|
|
438
440
|
default: I(() => [
|
|
439
|
-
|
|
441
|
+
te(O(k.label), 1)
|
|
440
442
|
]),
|
|
441
443
|
_: 2
|
|
442
444
|
}, 1032, ["aria-current", "data-testid", "selected", "onClick"]))), 128))
|
|
443
445
|
]),
|
|
444
446
|
default: I(() => [
|
|
445
|
-
|
|
447
|
+
z(m, {
|
|
446
448
|
appearance: "tertiary",
|
|
447
449
|
"aria-label": h(u)("anchor_navigation.more_button.aria_label"),
|
|
448
450
|
class: "anchor-overflow-button",
|
|
@@ -451,9 +453,9 @@ const we = {
|
|
|
451
453
|
size: "small"
|
|
452
454
|
}, {
|
|
453
455
|
default: I(() => [
|
|
454
|
-
|
|
456
|
+
z(h(Oe), {
|
|
455
457
|
decorative: "",
|
|
456
|
-
size: `var(--kui-icon-size-30, ${h(
|
|
458
|
+
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
457
459
|
}, null, 8, ["size"])
|
|
458
460
|
]),
|
|
459
461
|
_: 1
|
|
@@ -463,27 +465,27 @@ const we = {
|
|
|
463
465
|
})
|
|
464
466
|
])) : y("", !0)
|
|
465
467
|
], 2)
|
|
466
|
-
], 8,
|
|
468
|
+
], 8, At);
|
|
467
469
|
};
|
|
468
470
|
}
|
|
469
|
-
}),
|
|
471
|
+
}), Bt = /* @__PURE__ */ pe(Nt, [["__scopeId", "data-v-2f18cb71"]]), Re = /* @__PURE__ */ Symbol("nested-page-layout-detection"), Ot = "page-layout:new-appearance", zt = {
|
|
470
472
|
key: 0,
|
|
471
473
|
class: "page-layout-header",
|
|
472
474
|
"data-testid": "page-layout-header"
|
|
473
|
-
},
|
|
475
|
+
}, Ht = { class: "page-header-container" }, Ft = { class: "page-header-start" }, Mt = { class: "title-container" }, xt = {
|
|
474
476
|
key: 1,
|
|
475
477
|
class: "page-layout-title-wrapper"
|
|
476
|
-
},
|
|
478
|
+
}, Wt = {
|
|
477
479
|
class: "page-layout-title",
|
|
478
480
|
"data-testid": "page-layout-title"
|
|
479
|
-
},
|
|
481
|
+
}, Vt = ["aria-label"], Ut = {
|
|
480
482
|
key: 3,
|
|
481
483
|
class: "title-after-container"
|
|
482
|
-
},
|
|
484
|
+
}, jt = { class: "page-header-actions-container" }, Gt = {
|
|
483
485
|
key: 0,
|
|
484
486
|
class: "page-layout-aside-container",
|
|
485
487
|
"data-testid": "page-layout-aside"
|
|
486
|
-
},
|
|
488
|
+
}, qt = { class: "page-layout-content" }, Yt = /* @__PURE__ */ fe({
|
|
487
489
|
__name: "PageLayout",
|
|
488
490
|
props: {
|
|
489
491
|
breadcrumbs: { default: () => [] },
|
|
@@ -493,90 +495,90 @@ const we = {
|
|
|
493
495
|
anchors: { default: () => [] },
|
|
494
496
|
pageShortcutData: {}
|
|
495
497
|
},
|
|
496
|
-
setup(
|
|
497
|
-
const u =
|
|
498
|
-
if (
|
|
499
|
-
if (typeof
|
|
500
|
-
c.push(
|
|
498
|
+
setup(e) {
|
|
499
|
+
const u = le("app:navigateTo", null), a = le(Ot, null), n = le("app:pageShortcutsContext", null), { i18n: { t: r } } = Te.useI18n(), c = Be(), v = Xe(), i = C(() => !!(e.tabs && e.tabs.length)), w = C(() => typeof e.backTo == "string"), T = C(() => re(a) === !0), f = C(() => T.value && !i.value && !!(e.anchors && e.anchors.length)), p = C(() => !!e.pageShortcutData && !!e.pageShortcutData.entityType && !!e.pageShortcutData.label), E = C(() => p.value && !!n && "onFavoriteToggle" in n && typeof n.onFavoriteToggle == "function"), S = M(0), g = C(() => !!n && "isFavorite" in n && typeof n.isFavorite == "function" && n.isFavorite(e.pageShortcutData) === !0), H = async () => {
|
|
500
|
+
if (e.backTo) {
|
|
501
|
+
if (typeof e.backTo == "object") {
|
|
502
|
+
c.push(e.backTo);
|
|
501
503
|
return;
|
|
502
504
|
}
|
|
503
505
|
if (typeof u != "function") {
|
|
504
|
-
window.location.href =
|
|
506
|
+
window.location.href = e.backTo;
|
|
505
507
|
return;
|
|
506
508
|
}
|
|
507
|
-
await u(
|
|
509
|
+
await u(e.backTo);
|
|
508
510
|
}
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
|
|
511
|
+
}, P = M(0), x = C(() => P.value > 0);
|
|
512
|
+
qe(Re, () => (P.value++, () => {
|
|
513
|
+
P.value--;
|
|
512
514
|
}));
|
|
513
|
-
const Z =
|
|
515
|
+
const Z = le(Re, null), l = M(null);
|
|
514
516
|
typeof Z == "function" && (l.value = Z());
|
|
515
517
|
const F = () => {
|
|
516
|
-
n.onFavoriteToggle({ ...
|
|
518
|
+
n.onFavoriteToggle({ ...e.pageShortcutData, path: e.pageShortcutData?.path || v.fullPath });
|
|
517
519
|
};
|
|
518
|
-
|
|
520
|
+
Ye(() => {
|
|
519
521
|
l.value?.();
|
|
520
522
|
});
|
|
521
|
-
const V =
|
|
522
|
-
!x.value && p.value && n && "onEntityPageVisit" in n && typeof n.onEntityPageVisit == "function" && (n.onEntityPageVisit({ ...
|
|
523
|
+
const V = bt(() => {
|
|
524
|
+
!x.value && p.value && n && "onEntityPageVisit" in n && typeof n.onEntityPageVisit == "function" && (n.onEntityPageVisit({ ...e.pageShortcutData, path: e.pageShortcutData?.path || v?.fullPath }), S.value++);
|
|
523
525
|
}, 500);
|
|
524
|
-
return
|
|
526
|
+
return he([() => e.pageShortcutData, () => v?.fullPath], () => {
|
|
525
527
|
V();
|
|
526
|
-
}, { immediate: !0, deep: !0 }), (
|
|
527
|
-
const X =
|
|
528
|
+
}, { immediate: !0, deep: !0 }), (K, J) => {
|
|
529
|
+
const X = R("KBreadcrumbs"), U = R("KTooltip"), ue = R("router-view");
|
|
528
530
|
return s(), d("div", {
|
|
529
531
|
class: q(["kong-ui-public-page-layout", { "new-appearance": T.value }]),
|
|
530
532
|
"data-testid": "kong-ui-public-page-layout"
|
|
531
533
|
}, [
|
|
532
|
-
x.value ? y("", !0) : (s(), d("div",
|
|
533
|
-
b("div",
|
|
534
|
-
b("div",
|
|
535
|
-
|
|
534
|
+
x.value ? y("", !0) : (s(), d("div", zt, [
|
|
535
|
+
b("div", Ht, [
|
|
536
|
+
b("div", Ft, [
|
|
537
|
+
e.breadcrumbs && e.breadcrumbs.length ? (s(), L(X, {
|
|
536
538
|
key: 0,
|
|
537
539
|
class: "header-breadcrumbs",
|
|
538
540
|
"data-testid": "page-layout-breadcrumbs",
|
|
539
541
|
"item-max-width": "25ch",
|
|
540
|
-
items:
|
|
541
|
-
},
|
|
542
|
+
items: e.breadcrumbs
|
|
543
|
+
}, ke({ _: 2 }, [
|
|
542
544
|
T.value ? {
|
|
543
545
|
name: "divider",
|
|
544
546
|
fn: I(() => [
|
|
545
|
-
|
|
547
|
+
z(h(tt), {
|
|
546
548
|
decorative: "",
|
|
547
|
-
size: `var(--kui-icon-size-30, ${h(
|
|
549
|
+
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
548
550
|
}, null, 8, ["size"])
|
|
549
551
|
]),
|
|
550
552
|
key: "0"
|
|
551
553
|
} : void 0
|
|
552
554
|
]), 1032, ["items"])) : y("", !0),
|
|
553
|
-
b("div",
|
|
554
|
-
|
|
555
|
+
b("div", Mt, [
|
|
556
|
+
e.backTo && !T.value ? (s(), L(be(w.value ? "a" : "router-link"), Ke({ key: 0 }, w.value ? { href: e.backTo } : { to: e.backTo }, {
|
|
555
557
|
"aria-label": h(r)("back_button"),
|
|
556
558
|
class: "navigate-back",
|
|
557
559
|
"data-testid": "page-layout-navigate-back",
|
|
558
560
|
tabindex: "0",
|
|
559
|
-
onClick:
|
|
560
|
-
onKeydown:
|
|
561
|
+
onClick: ve(H, ["prevent"]),
|
|
562
|
+
onKeydown: Ne(ve(H, ["prevent"]), ["enter"])
|
|
561
563
|
}), {
|
|
562
564
|
default: I(() => [
|
|
563
|
-
|
|
565
|
+
z(h(at), {
|
|
564
566
|
decorative: "",
|
|
565
|
-
size: `var(--kui-icon-size-30, ${h(
|
|
567
|
+
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
566
568
|
}, null, 8, ["size"])
|
|
567
569
|
]),
|
|
568
570
|
_: 1
|
|
569
571
|
}, 16, ["aria-label", "onKeydown"])) : y("", !0),
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
b("h1",
|
|
572
|
+
e.title || K.$slots.title ? (s(), d("span", xt, [
|
|
573
|
+
A(K.$slots, "title", {}, () => [
|
|
574
|
+
b("h1", Wt, O(e.title), 1)
|
|
573
575
|
], !0)
|
|
574
576
|
])) : y("", !0),
|
|
575
|
-
|
|
577
|
+
E.value ? (s(), d("div", {
|
|
576
578
|
key: S.value,
|
|
577
579
|
class: "favorite-button-container"
|
|
578
580
|
}, [
|
|
579
|
-
|
|
581
|
+
z(U, {
|
|
580
582
|
placement: "right",
|
|
581
583
|
text: g.value ? h(r)("favorite_button.remove_shortcut") : h(r)("favorite_button.save_shortcut")
|
|
582
584
|
}, {
|
|
@@ -588,37 +590,37 @@ const we = {
|
|
|
588
590
|
type: "button",
|
|
589
591
|
onClick: F
|
|
590
592
|
}, [
|
|
591
|
-
(s(),
|
|
593
|
+
(s(), L(be(g.value ? h(ot) : h(nt)), {
|
|
592
594
|
decorative: "",
|
|
593
|
-
size: `var(--kui-icon-size-30, ${h(
|
|
595
|
+
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
594
596
|
}, null, 8, ["size"]))
|
|
595
|
-
], 10,
|
|
597
|
+
], 10, Vt)
|
|
596
598
|
]),
|
|
597
599
|
_: 1
|
|
598
600
|
}, 8, ["text"])
|
|
599
601
|
])) : y("", !0),
|
|
600
|
-
|
|
601
|
-
|
|
602
|
+
K.$slots["title-after"] ? (s(), d("div", Ut, [
|
|
603
|
+
A(K.$slots, "title-after", {}, void 0, !0)
|
|
602
604
|
])) : y("", !0)
|
|
603
605
|
])
|
|
604
606
|
]),
|
|
605
|
-
f.value ? (s(),
|
|
607
|
+
f.value ? (s(), L(Bt, {
|
|
606
608
|
key: 0,
|
|
607
|
-
anchors:
|
|
609
|
+
anchors: e.anchors
|
|
608
610
|
}, null, 8, ["anchors"])) : y("", !0),
|
|
609
|
-
b("div",
|
|
610
|
-
|
|
611
|
+
b("div", jt, [
|
|
612
|
+
A(K.$slots, "actions", {}, void 0, !0),
|
|
611
613
|
J[0] || (J[0] = b("div", { "data-teleport-target": "ask-kai" }, null, -1))
|
|
612
614
|
])
|
|
613
615
|
]),
|
|
614
|
-
i.value ? (s(),
|
|
616
|
+
i.value ? (s(), L(Et, {
|
|
615
617
|
key: 0,
|
|
616
|
-
tabs:
|
|
617
|
-
},
|
|
618
|
-
W(
|
|
619
|
-
name: `tab-${
|
|
620
|
-
fn: I((
|
|
621
|
-
|
|
618
|
+
tabs: e.tabs
|
|
619
|
+
}, ke({ _: 2 }, [
|
|
620
|
+
W(e.tabs, (j) => ({
|
|
621
|
+
name: `tab-${j.key}`,
|
|
622
|
+
fn: I((oe) => [
|
|
623
|
+
A(K.$slots, `tab-${j.key}`, Ze(Je(oe)), void 0, !0)
|
|
622
624
|
])
|
|
623
625
|
}))
|
|
624
626
|
]), 1032, ["tabs"])) : y("", !0)
|
|
@@ -626,33 +628,33 @@ const we = {
|
|
|
626
628
|
b("div", {
|
|
627
629
|
class: q(["page-layout-content-container", { "has-nested-page-layout": x.value }])
|
|
628
630
|
}, [
|
|
629
|
-
T.value &&
|
|
630
|
-
|
|
631
|
+
T.value && K.$slots.aside ? (s(), d("div", Gt, [
|
|
632
|
+
A(K.$slots, "aside", {}, void 0, !0)
|
|
631
633
|
])) : y("", !0),
|
|
632
|
-
b("div",
|
|
633
|
-
i.value ? (s(),
|
|
634
|
+
b("div", qt, [
|
|
635
|
+
i.value ? (s(), L(ue, { key: 0 })) : A(K.$slots, "default", {}, void 0, !0, 1)
|
|
634
636
|
])
|
|
635
637
|
], 2)
|
|
636
638
|
], 2);
|
|
637
639
|
};
|
|
638
640
|
}
|
|
639
|
-
}),
|
|
641
|
+
}), da = /* @__PURE__ */ pe(Yt, [["__scopeId", "data-v-e714e65a"]]), Zt = {
|
|
640
642
|
key: 0,
|
|
641
643
|
class: "about-card-description",
|
|
642
644
|
"data-testid": "about-card-description"
|
|
643
|
-
},
|
|
645
|
+
}, Jt = {
|
|
644
646
|
key: 1,
|
|
645
647
|
class: "about-card-skeleton",
|
|
646
648
|
"data-testid": "about-card-skeleton"
|
|
647
|
-
},
|
|
649
|
+
}, Xt = {
|
|
648
650
|
key: 2,
|
|
649
651
|
class: "about-card-rows",
|
|
650
652
|
"data-testid": "about-card-rows"
|
|
651
|
-
},
|
|
653
|
+
}, Qt = ["data-testid"], ea = { class: "about-card-row-label" }, ta = { class: "about-card-row-text" }, aa = ["aria-label", "data-testid"], oa = { class: "about-card-row-value" }, na = { class: "about-card-row-text" }, ia = {
|
|
652
654
|
key: 3,
|
|
653
655
|
class: "about-card-content",
|
|
654
656
|
"data-testid": "about-card-content"
|
|
655
|
-
},
|
|
657
|
+
}, sa = /* @__PURE__ */ fe({
|
|
656
658
|
__name: "AboutCard",
|
|
657
659
|
props: {
|
|
658
660
|
title: { default: "" },
|
|
@@ -661,38 +663,38 @@ const we = {
|
|
|
661
663
|
rows: { default: () => [] },
|
|
662
664
|
isLoading: { type: Boolean, default: !1 }
|
|
663
665
|
},
|
|
664
|
-
setup(
|
|
665
|
-
const u = C(() =>
|
|
666
|
+
setup(e) {
|
|
667
|
+
const u = C(() => e.rows.length || 4);
|
|
666
668
|
return (a, n) => {
|
|
667
|
-
const r =
|
|
668
|
-
return s(),
|
|
669
|
+
const r = R("KSkeletonBox"), c = R("KTooltip"), v = R("KCard");
|
|
670
|
+
return s(), L(v, {
|
|
669
671
|
class: "kong-ui-public-about-card",
|
|
670
|
-
title:
|
|
671
|
-
"title-tag":
|
|
672
|
-
},
|
|
672
|
+
title: e.title,
|
|
673
|
+
"title-tag": e.titleTag
|
|
674
|
+
}, ke({
|
|
673
675
|
default: I(() => [
|
|
674
|
-
a.$slots.description ||
|
|
675
|
-
|
|
676
|
-
|
|
676
|
+
a.$slots.description || e.description ? (s(), d("p", Zt, [
|
|
677
|
+
A(a.$slots, "description", {}, () => [
|
|
678
|
+
te(O(e.description), 1)
|
|
677
679
|
], !0)
|
|
678
680
|
])) : y("", !0),
|
|
679
|
-
|
|
680
|
-
(s(!0), d(Y, null, W(u.value, (i) => (s(),
|
|
681
|
+
e.isLoading ? (s(), d("div", Jt, [
|
|
682
|
+
(s(!0), d(Y, null, W(u.value, (i) => (s(), L(r, {
|
|
681
683
|
key: i,
|
|
682
684
|
height: "2",
|
|
683
685
|
width: "100"
|
|
684
686
|
}))), 128))
|
|
685
|
-
])) :
|
|
686
|
-
(s(!0), d(Y, null, W(
|
|
687
|
+
])) : e.rows.length ? (s(), d("dl", Xt, [
|
|
688
|
+
(s(!0), d(Y, null, W(e.rows, (i) => (s(), d("div", {
|
|
687
689
|
key: i.key,
|
|
688
690
|
class: "about-card-row",
|
|
689
691
|
"data-testid": `about-card-row-${i.key}`
|
|
690
692
|
}, [
|
|
691
|
-
b("dt",
|
|
692
|
-
|
|
693
|
-
b("span", ta,
|
|
693
|
+
b("dt", ea, [
|
|
694
|
+
A(a.$slots, `label-${i.key}`, { row: i }, () => [
|
|
695
|
+
b("span", ta, O(i.label), 1)
|
|
694
696
|
], !0),
|
|
695
|
-
i.tooltip ? (s(),
|
|
697
|
+
i.tooltip ? (s(), L(c, {
|
|
696
698
|
key: 0,
|
|
697
699
|
text: i.tooltip
|
|
698
700
|
}, {
|
|
@@ -703,32 +705,32 @@ const we = {
|
|
|
703
705
|
"data-testid": `about-card-row-${i.key}-tooltip`,
|
|
704
706
|
type: "button"
|
|
705
707
|
}, [
|
|
706
|
-
|
|
707
|
-
size: `var(--kui-icon-size-20, ${h(
|
|
708
|
+
z(h(it), {
|
|
709
|
+
size: `var(--kui-icon-size-20, ${h(vt)})`
|
|
708
710
|
}, null, 8, ["size"])
|
|
709
|
-
], 8,
|
|
711
|
+
], 8, aa)
|
|
710
712
|
]),
|
|
711
713
|
_: 2
|
|
712
714
|
}, 1032, ["text"])) : y("", !0)
|
|
713
715
|
]),
|
|
714
|
-
b("dd",
|
|
715
|
-
|
|
716
|
-
b("span",
|
|
716
|
+
b("dd", oa, [
|
|
717
|
+
A(a.$slots, `row-${i.key}`, { row: i }, () => [
|
|
718
|
+
b("span", na, O(i.value), 1)
|
|
717
719
|
], !0)
|
|
718
720
|
])
|
|
719
|
-
], 8,
|
|
721
|
+
], 8, Qt))), 128))
|
|
720
722
|
])) : y("", !0),
|
|
721
|
-
a.$slots.default ? (s(), d("div",
|
|
722
|
-
|
|
723
|
+
a.$slots.default ? (s(), d("div", ia, [
|
|
724
|
+
A(a.$slots, "default", {}, void 0, !0)
|
|
723
725
|
])) : y("", !0)
|
|
724
726
|
]),
|
|
725
727
|
_: 2
|
|
726
728
|
}, [
|
|
727
|
-
a.$slots.title ||
|
|
729
|
+
a.$slots.title || e.title ? {
|
|
728
730
|
name: "title",
|
|
729
731
|
fn: I(() => [
|
|
730
|
-
|
|
731
|
-
|
|
732
|
+
A(a.$slots, "title", {}, () => [
|
|
733
|
+
te(O(e.title), 1)
|
|
732
734
|
], !0)
|
|
733
735
|
]),
|
|
734
736
|
key: "0"
|
|
@@ -736,16 +738,16 @@ const we = {
|
|
|
736
738
|
a.$slots.actions ? {
|
|
737
739
|
name: "actions",
|
|
738
740
|
fn: I(() => [
|
|
739
|
-
|
|
741
|
+
A(a.$slots, "actions", {}, void 0, !0)
|
|
740
742
|
]),
|
|
741
743
|
key: "1"
|
|
742
744
|
} : void 0
|
|
743
745
|
]), 1032, ["title", "title-tag"]);
|
|
744
746
|
};
|
|
745
747
|
}
|
|
746
|
-
}),
|
|
748
|
+
}), va = /* @__PURE__ */ pe(sa, [["__scopeId", "data-v-86b6c183"]]);
|
|
747
749
|
export {
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
750
|
+
va as AboutCard,
|
|
751
|
+
Ot as NEW_APPEARANCE_INJECTION_KEY,
|
|
752
|
+
da as PageLayout
|
|
751
753
|
};
|
package/dist/page-layout.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","@kong/icons"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B["kong-ui-public-page-layout"]={},B.Vue,B.VueRouter,B["kong-ui-public-i18n"],B.KongIcons))})(this,(function(B,t,J,tt,D){"use strict";const pt={back_button:"Go back",favorite_button:{save_shortcut:"Save page to shortcuts",remove_shortcut:"Remove page from shortcuts"},tabs:{more_button:{label:"More",aria_label:"More tabs"}},anchor_navigation:{aria_label:"Page sections",more_button:{aria_label:"More page sections"}}};function ft(){const e=tt.createI18n("en-us",pt);return{i18n:e,i18nT:tt.i18nTComponent(e)}}const Z={useI18n:ft},ht="12px",x="16px",gt="2px",et="16px";function kt(e,c){return t.getCurrentScope()?(t.onScopeDispose(e,c),!0):!1}const bt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const O=()=>{};function yt(e,c){function n(...l){return new Promise((s,d)=>{Promise.resolve(e(()=>c.apply(this,l),{fn:c,thisArg:this,args:l})).then(s).catch(d)})}return"cancel"in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}function Ct(e,c={}){let n,l,s=O,d=O;const u=t.shallowRef(!1),i=m=>{clearTimeout(m),s(),s=O};let k;return Object.assign(m=>{const p=t.toValue(e),w=t.toValue(c.maxWait);return n&&i(n),p<=0||w!==void 0&&w<=0?(l&&(i(l),l=void 0),u.value=!1,Promise.resolve(m())):(u.value=!0,new Promise((T,f)=>{s=c.rejectOnCancel?f:T,d=T,k=m,w&&!l&&(l=setTimeout(()=>{n&&i(n),l=void 0,u.value=!1,T(k())},w)),n=setTimeout(()=>{l&&i(l),l=void 0,u.value=!1,T(m())},p)}))},{cancel:()=>{n&&(i(n),n=void 0),l&&(i(l),l=void 0),u.value=!1,d=O},flush:()=>{if(u.value){n&&(clearTimeout(n),n=void 0),l&&(clearTimeout(l),l=void 0),u.value=!1;const m=d;s=O,d=O,m(k())}},isPending:t.shallowReadonly(u)})}function wt(e,c=200,n={}){return yt(Ct(c,n),e)}const Bt=bt?window:void 0;function ot(e){var c;const n=t.toValue(e);return(c=n?.$el)!==null&&c!==void 0?c:n}function Tt(){const e=t.shallowRef(!1),c=t.getCurrentInstance();return c&&t.onMounted(()=>{e.value=!0},c),e}function Et(e){const c=Tt();return t.computed(()=>(c.value,!!e()))}function nt(e,c,n={}){const{window:l=Bt,...s}=n;let d;const u=Et(()=>l&&"ResizeObserver"in l),i=()=>{d&&(d.disconnect(),d=void 0)},k=t.watch(t.computed(()=>{const m=t.toValue(e);return Array.isArray(m)?m.map(p=>ot(p)):[ot(m)]}),m=>{if(i(),u.value&&l){d=new ResizeObserver(c);for(const p of m)p&&d.observe(p,s)}},{immediate:!0,flush:"post"}),b=()=>{i(),k()};return kt(b),{isSupported:u,stop:b}}const _t={ref:"page-layout-tabs",class:"page-layout-tabs","data-testid":"page-layout-tabs"},Nt={key:0},St=["aria-label"],$t={key:0,class:"layout-loader-container"},It=t.defineComponent({__name:"PageLayoutTabs",props:{tabs:{default:()=>[]}},setup(e){const{i18n:{t:c}}=Z.useI18n(),n=J.useRouter(),l=t.inject("app:navigateTo",null),s=f=>{if(typeof f.to!="string"){n.push(f.to);return}if(typeof l!="function"){window.location.href=f.to;return}l(f.to)},d=t.useTemplateRef("page-layout-tabs"),u=t.useTemplateRef("page-layout-tabs-list"),i=t.ref(e.tabs.length),k=t.ref(!1),b=t.computed(()=>e.tabs.slice(0,i.value)),m=t.computed(()=>e.tabs.slice(i.value)),p=async()=>{if(!d.value||!u.value)return;k.value=!1,i.value=e.tabs.length,await t.nextTick();const f=d.value?.getBoundingClientRect().width-parseInt(et)*2;let $=u.value?.getBoundingClientRect().width;if(!f||!$){k.value=!0;return}const E=50;for(;$+E>f&&i.value>1;)i.value--,await t.nextTick(),$=u.value?.getBoundingClientRect().width||0;k.value=!0};let w=null;const T=()=>{w&&clearTimeout(w),w=setTimeout(()=>{p()},150)};return t.onMounted(()=>{p(),nt(d,T)}),t.onBeforeUnmount(()=>{w&&clearTimeout(w)}),t.watch(()=>e.tabs,()=>{p()},{deep:!0}),(f,$)=>{const E=t.resolveComponent("KDropdownItem"),A=t.resolveComponent("KDropdown"),z=t.resolveComponent("KSkeletonBox");return t.openBlock(),t.createElementBlock("nav",_t,[t.createElementVNode("ul",{ref:"page-layout-tabs-list",class:t.normalizeClass({"layout-computing":!k.value})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,r=>(t.openBlock(),t.createElementBlock("li",{key:`${r.key}-tab`},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(typeof r.to=="string"?"a":"router-link"),t.mergeProps({ref_for:!0},typeof r.to=="string"?{href:r.to}:{to:r.to},{"aria-current":r.active?"page":void 0,class:["tab-link",{active:r.active}],"data-testid":r.dataTestId?r.dataTestId:`page-layout-tab-${r.key}`,tabindex:"0",onClick:t.withModifiers(I=>s(r),["prevent"]),onKeydown:t.withKeys(t.withModifiers(I=>s(r),["prevent"]),["enter"])}),{default:t.withCtx(()=>[t.renderSlot(f.$slots,`tab-${r.key}`,{tab:r},()=>[t.createTextVNode(t.toDisplayString(r.label),1)],!0)]),_:2},1040,["aria-current","class","data-testid","onClick","onKeydown"]))]))),128)),e.tabs.length>i.value?(t.openBlock(),t.createElementBlock("li",Nt,[t.createVNode(A,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"tabs-overflow-dropdown-popover"}}},{items:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,r=>(t.openBlock(),t.createBlock(E,{key:`${r.key}-dropdown-item`,"aria-current":r.active?"page":void 0,"data-testid":r.dataTestId?r.dataTestId:`page-layout-tab-${r.key}`,item:{label:r.label,value:r.key,to:r.to},selected:r.active},{default:t.withCtx(()=>[t.renderSlot(f.$slots,`tab-${r.key}`,{tab:r},()=>[t.createTextVNode(t.toDisplayString(r.label),1)],!0)]),_:2},1032,["aria-current","data-testid","item","selected"]))),128))]),default:t.withCtx(()=>[t.createElementVNode("button",{"aria-label":t.unref(c)("tabs.more_button.aria_label"),class:t.normalizeClass(["tab-link",{active:m.value.find(r=>r.active)}]),"data-testid":"tabs-overflow-dropdown-button"},[t.createTextVNode(t.toDisplayString(t.unref(c)("tabs.more_button.label"))+" ",1),t.createVNode(t.unref(D.ChevronDownIcon),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(x)})`},null,8,["size"])],10,St)]),_:3})])):t.createCommentVNode("",!0)],2),k.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",$t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,r=>t.createVNode(z,{key:`layout-loader-${r}`,height:"1",width:"5"})),64))]))],512)}}}),U=(e,c)=>{const n=e.__vccOpts||e;for(const[l,s]of c)n[l]=s;return n},Vt=U(It,[["__scopeId","data-v-02891bc1"]]),At=["aria-label","data-fit"],Dt={key:0,"aria-hidden":"true",class:"anchor-ellipsis","data-testid":"anchor-navigation-leading-ellipsis"},Lt=["aria-current","data-testid","title","onClick"],Rt={key:1,"aria-hidden":"true",class:"anchor-ellipsis","data-testid":"anchor-navigation-trailing-ellipsis"},Pt={key:2},at=140,lt=22,X=16,j="data-anchor-attention",Kt=1200,xt=1600,Ot=U(t.defineComponent({__name:"PageLayoutAnchorNavigation",props:{anchors:{default:()=>[]}},setup(e){const{i18n:{t:c}}=Z.useI18n(),n=t.useTemplateRef("page-layout-anchor-navigation"),l=t.useTemplateRef("page-layout-anchor-navigation-list"),s=t.ref("all"),d=t.ref(""),u=t.ref([]),i=t.computed(()=>e.anchors.filter(o=>u.value.includes(o.id))),k=t.computed(()=>{const o=i.value.findIndex(a=>a.id===d.value);return o===-1?0:o}),b=t.computed(()=>{const o=i.value,a=o.length,h=k.value;if(s.value==="all")return{anchors:o,hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!1};if(s.value==="hidden")return{anchors:[],hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!1};if(s.value==="active-only")return{anchors:o.slice(h,h+1),hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!0};const y=s.value==="window-3"?3:2;if(a<=y)return{anchors:o,hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!0};const N=h<y?0:h>=a-y?a-y:h-1;return{anchors:o.slice(N,N+y),hasLeadingEllipsis:N>0,hasTrailingEllipsis:N+y<a,hasOverflowDropdown:!0}}),m=o=>o.dataTestId??`page-layout-anchor-${o.id.replace(/[^\w-]+/g,"-").replace(/^-+|-+$/g,"")}`,p=t.ref(null),w=()=>{let o=n.value?.parentElement??null;for(;o;){const{overflowY:a}=getComputedStyle(o);if(a==="auto"||a==="scroll"||a==="overlay")return o;o=o.parentElement}return null},T=o=>{if(o.element)return o.element.isConnected?o.element:null;const a=p.value??document;try{return a.querySelector(o.id)??a.querySelector(`#${CSS.escape(o.id)}`)}catch{return null}},f=()=>(n.value?.closest(".page-layout-header")?.getBoundingClientRect().height??0)+parseInt(et,10),$=parseInt(x,10),E=parseInt(gt,10),A=o=>o*at+2*$+lt+(o+2)*E+X,z=()=>at+lt+E+X;let r=0;const I=async()=>{if(!i.value.length){s.value="hidden";return}const o=++r;if(s.value="all",await t.nextTick(),o!==r||!n.value||!l.value)return;const a=n.value.getBoundingClientRect().width,h=l.value.getBoundingClientRect().width;a<=0||h<=0||h+X<=a||(A(3)<=a?s.value="window-3":A(2)<=a?s.value="window-2":z()<=a?s.value="active-only":s.value="hidden")};let L=null;nt(n,()=>{L&&clearTimeout(L),L=setTimeout(()=>{v(),I()},150)});let F=null,M=null,R=0,G=0,P=null,W=null;const st=o=>{const a=String(++R);ct(),W=o,o.removeAttribute(j),G=requestAnimationFrame(()=>{o.setAttribute(j,a),P=setTimeout(()=>{o.getAttribute(j)===a&&o.removeAttribute(j)},Kt)})},ct=()=>{cancelAnimationFrame(G),P&&(clearTimeout(P),P=null),W?.removeAttribute(j),W=null},q=()=>p.value??window,V=o=>{o&&o.type!=="scrollend"&&R++,F=null,M&&(clearTimeout(M),M=null);const a=q();a.removeEventListener("scrollend",V),a.removeEventListener("wheel",V),a.removeEventListener("touchstart",V)},se=o=>{V(),F=o;const a=q();a.addEventListener("scrollend",V,{once:!0}),a.addEventListener("wheel",V,{passive:!0}),a.addEventListener("touchstart",V,{passive:!0}),M=setTimeout(V,1e3)},dt=()=>{const o=p.value;return{top:o?o.getBoundingClientRect().top:0,scrollTop:o?o.scrollTop:window.scrollY,clientHeight:o?o.clientHeight:window.innerHeight,scrollHeight:o?o.scrollHeight:document.documentElement.scrollHeight}},v=()=>{const{top:o,scrollTop:a,clientHeight:h,scrollHeight:y}=dt(),N=f(),C=[];let g=null,K=null;for(const S of e.anchors){const H=T(S);H&&(C.push(S.id),K=S.id,g??=S.id,H.getBoundingClientRect().top-o<=(S.offset??N)+8&&(g=S.id))}const Y=C.length!==u.value.length||C.some((S,H)=>S!==u.value[H]);return Y&&(u.value=C),F||(K&&a>0&&a+h>=y-2&&(g=K),d.value=g??""),Y};let Q=!1;const ut=()=>{Q||(Q=!0,requestAnimationFrame(()=>{Q=!1,v()&&I()}))},ce=o=>{const a=q();let h=!1;const y=()=>{h||(h=!0,a.removeEventListener("scrollend",y),o())};a.addEventListener("scrollend",y,{once:!0}),window.setTimeout(y,xt)},mt=o=>{const a=T(o);if(!a)return;d.value=o.id,se(o.id);const h=o.offset??f(),{scrollTop:y,clientHeight:N,scrollHeight:C}=dt(),g=p.value,K=g?a.getBoundingClientRect().top-g.getBoundingClientRect().top+g.scrollTop-h:a.getBoundingClientRect().top+window.scrollY-h,Y=Math.min(Math.max(K,0),Math.max(C-N,0)),S=Math.abs(Y-y)>=2,H=R;if((g??window).scrollTo({behavior:"smooth",top:K}),!S){st(a);return}ce(()=>{H===R&&st(a)})},de=(o,a)=>{a(),mt(o)};return t.onMounted(()=>{p.value=w(),q().addEventListener("scroll",ut,{passive:!0}),v(),I(),requestAnimationFrame(()=>{v(),I()})}),t.onBeforeUnmount(()=>{q().removeEventListener("scroll",ut),V(),R++,ct(),L&&clearTimeout(L)}),t.watch(()=>e.anchors,()=>{e.anchors.some(o=>o.id===d.value)||(d.value=""),v(),I()},{deep:!0}),(o,a)=>{const h=t.resolveComponent("KButton"),y=t.resolveComponent("KDropdownItem"),N=t.resolveComponent("KDropdown");return t.openBlock(),t.createElementBlock("nav",{ref:"page-layout-anchor-navigation","aria-label":t.unref(c)("anchor_navigation.aria_label"),class:"page-layout-anchor-navigation","data-fit":s.value,"data-testid":"page-layout-anchor-navigation"},[t.createElementVNode("ul",{ref:"page-layout-anchor-navigation-list",class:t.normalizeClass({"layout-hidden":s.value==="hidden"})},[b.value.hasLeadingEllipsis?(t.openBlock(),t.createElementBlock("li",Dt," … ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value.anchors,C=>(t.openBlock(),t.createElementBlock("li",{key:`${C.id}-anchor`},[t.createElementVNode("button",{"aria-current":C.id===d.value?"location":void 0,class:t.normalizeClass(["anchor-link",{active:C.id===d.value}]),"data-testid":m(C),title:C.label,type:"button",onClick:g=>mt(C)},t.toDisplayString(C.label),11,Lt)]))),128)),b.value.hasTrailingEllipsis?(t.openBlock(),t.createElementBlock("li",Rt," … ")):t.createCommentVNode("",!0),b.value.hasOverflowDropdown?(t.openBlock(),t.createElementBlock("li",Pt,[t.createVNode(N,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"anchor-navigation-overflow-dropdown-popover"}}},{items:t.withCtx(({closeDropdown:C})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,g=>(t.openBlock(),t.createBlock(y,{key:`${g.id}-dropdown-item`,"aria-current":g.id===d.value?"location":void 0,"data-testid":m(g),selected:g.id===d.value,onClick:K=>de(g,C)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label),1)]),_:2},1032,["aria-current","data-testid","selected","onClick"]))),128))]),default:t.withCtx(()=>[t.createVNode(h,{appearance:"tertiary","aria-label":t.unref(c)("anchor_navigation.more_button.aria_label"),class:"anchor-overflow-button","data-testid":"anchor-navigation-overflow-dropdown-button",icon:"",size:"small"},{default:t.withCtx(()=>[t.createVNode(t.unref(D.ChevronDownIcon),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(x)})`},null,8,["size"])]),_:1},8,["aria-label"])]),_:1})])):t.createCommentVNode("",!0)],2)],8,At)}}}),[["__scopeId","data-v-d9058e68"]]),it=Symbol("nested-page-layout-detection"),rt="page-layout:new-appearance",zt={key:0,class:"page-layout-header","data-testid":"page-layout-header"},Ft={class:"page-header-container"},Mt={class:"page-header-start"},Ht={class:"title-container"},jt={key:1,class:"page-layout-title-wrapper"},Wt={class:"page-layout-title","data-testid":"page-layout-title"},qt=["aria-label"],vt={key:3,class:"title-after-container"},Ut={class:"page-header-actions-container"},Gt={key:0,class:"page-layout-aside-container","data-testid":"page-layout-aside"},Yt={class:"page-layout-content"},Jt=U(t.defineComponent({__name:"PageLayout",props:{breadcrumbs:{default:()=>[]},title:{},backTo:{},tabs:{default:()=>[]},anchors:{default:()=>[]},pageShortcutData:{}},setup(e){const c=t.inject("app:navigateTo",null),n=t.inject(rt,null),l=t.inject("app:pageShortcutsContext",null),{i18n:{t:s}}=Z.useI18n(),d=J.useRouter(),u=J.useRoute(),i=t.computed(()=>!!(e.tabs&&e.tabs.length)),k=t.computed(()=>typeof e.backTo=="string"),b=t.computed(()=>t.toValue(n)===!0),m=t.computed(()=>b.value&&!i.value&&!!(e.anchors&&e.anchors.length)),p=t.computed(()=>!!e.pageShortcutData&&!!e.pageShortcutData.entityType&&!!e.pageShortcutData.label),w=t.computed(()=>p.value&&!!l&&"onFavoriteToggle"in l&&typeof l.onFavoriteToggle=="function"),T=t.ref(0),f=t.computed(()=>!!l&&"isFavorite"in l&&typeof l.isFavorite=="function"&&l.isFavorite(e.pageShortcutData)===!0),$=async()=>{if(e.backTo){if(typeof e.backTo=="object"){d.push(e.backTo);return}if(typeof c!="function"){window.location.href=e.backTo;return}await c(e.backTo)}},E=t.ref(0),A=t.computed(()=>E.value>0);t.provide(it,()=>(E.value++,()=>{E.value--}));const z=t.inject(it,null),r=t.ref(null);typeof z=="function"&&(r.value=z());const I=()=>{l.onFavoriteToggle({...e.pageShortcutData,path:e.pageShortcutData?.path||u.fullPath})};t.onUnmounted(()=>{r.value?.()});const L=wt(()=>{!A.value&&p.value&&l&&"onEntityPageVisit"in l&&typeof l.onEntityPageVisit=="function"&&(l.onEntityPageVisit({...e.pageShortcutData,path:e.pageShortcutData?.path||u?.fullPath}),T.value++)},500);return t.watch([()=>e.pageShortcutData,()=>u?.fullPath],()=>{L()},{immediate:!0,deep:!0}),(_,F)=>{const M=t.resolveComponent("KBreadcrumbs"),R=t.resolveComponent("KTooltip"),G=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["kong-ui-public-page-layout",{"new-appearance":b.value}]),"data-testid":"kong-ui-public-page-layout"},[A.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",zt,[t.createElementVNode("div",Ft,[t.createElementVNode("div",Mt,[e.breadcrumbs&&e.breadcrumbs.length?(t.openBlock(),t.createBlock(M,{key:0,class:"header-breadcrumbs","data-testid":"page-layout-breadcrumbs","item-max-width":"25ch",items:e.breadcrumbs},t.createSlots({_:2},[b.value?{name:"divider",fn:t.withCtx(()=>[t.createVNode(t.unref(D.ChevronRightIcon),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(x)})`},null,8,["size"])]),key:"0"}:void 0]),1032,["items"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ht,[e.backTo&&!b.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(k.value?"a":"router-link"),t.mergeProps({key:0},k.value?{href:e.backTo}:{to:e.backTo},{"aria-label":t.unref(s)("back_button"),class:"navigate-back","data-testid":"page-layout-navigate-back",tabindex:"0",onClick:t.withModifiers($,["prevent"]),onKeydown:t.withKeys(t.withModifiers($,["prevent"]),["enter"])}),{default:t.withCtx(()=>[t.createVNode(t.unref(D.ArrowTopLeftIcon),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(x)})`},null,8,["size"])]),_:1},16,["aria-label","onKeydown"])):t.createCommentVNode("",!0),e.title||_.$slots.title?(t.openBlock(),t.createElementBlock("span",jt,[t.renderSlot(_.$slots,"title",{},()=>[t.createElementVNode("h1",Wt,t.toDisplayString(e.title),1)],!0)])):t.createCommentVNode("",!0),w.value?(t.openBlock(),t.createElementBlock("div",{key:T.value,class:"favorite-button-container"},[t.createVNode(R,{placement:"right",text:f.value?t.unref(s)("favorite_button.remove_shortcut"):t.unref(s)("favorite_button.save_shortcut")},{default:t.withCtx(()=>[t.createElementVNode("button",{"aria-label":f.value?t.unref(s)("favorite_button.remove_shortcut"):t.unref(s)("favorite_button.save_shortcut"),class:t.normalizeClass(["favorite-button",{active:f.value}]),"data-testid":"page-layout-favorite-button",type:"button",onClick:I},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(f.value?t.unref(D.StarFillIcon):t.unref(D.StarIcon)),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(x)})`},null,8,["size"]))],10,qt)]),_:1},8,["text"])])):t.createCommentVNode("",!0),_.$slots["title-after"]?(t.openBlock(),t.createElementBlock("div",vt,[t.renderSlot(_.$slots,"title-after",{},void 0,!0)])):t.createCommentVNode("",!0)])]),m.value?(t.openBlock(),t.createBlock(Ot,{key:0,anchors:e.anchors},null,8,["anchors"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ut,[t.renderSlot(_.$slots,"actions",{},void 0,!0),F[0]||(F[0]=t.createElementVNode("div",{"data-teleport-target":"ask-kai"},null,-1))])]),i.value?(t.openBlock(),t.createBlock(Vt,{key:0,tabs:e.tabs},t.createSlots({_:2},[t.renderList(e.tabs,P=>({name:`tab-${P.key}`,fn:t.withCtx(W=>[t.renderSlot(_.$slots,`tab-${P.key}`,t.normalizeProps(t.guardReactiveProps(W)),void 0,!0)])}))]),1032,["tabs"])):t.createCommentVNode("",!0)])),t.createElementVNode("div",{class:t.normalizeClass(["page-layout-content-container",{"has-nested-page-layout":A.value}])},[b.value&&_.$slots.aside?(t.openBlock(),t.createElementBlock("div",Gt,[t.renderSlot(_.$slots,"aside",{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Yt,[i.value?(t.openBlock(),t.createBlock(G,{key:0})):t.renderSlot(_.$slots,"default",{},void 0,!0,1)])],2)],2)}}}),[["__scopeId","data-v-e714e65a"]]),Zt={key:0,class:"about-card-description","data-testid":"about-card-description"},Xt={key:1,class:"about-card-skeleton","data-testid":"about-card-skeleton"},Qt={key:2,class:"about-card-rows","data-testid":"about-card-rows"},te=["data-testid"],ee={class:"about-card-row-label"},oe={class:"about-card-row-text"},ne=["aria-label","data-testid"],ae={class:"about-card-row-value"},le={class:"about-card-row-text"},ie={key:3,class:"about-card-content","data-testid":"about-card-content"},re=U(t.defineComponent({__name:"AboutCard",props:{title:{default:""},titleTag:{default:"h2"},description:{default:""},rows:{default:()=>[]},isLoading:{type:Boolean,default:!1}},setup(e){const c=t.computed(()=>e.rows.length||4);return(n,l)=>{const s=t.resolveComponent("KSkeletonBox"),d=t.resolveComponent("KTooltip"),u=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(u,{class:"kong-ui-public-about-card",title:e.title,"title-tag":e.titleTag},t.createSlots({default:t.withCtx(()=>[n.$slots.description||e.description?(t.openBlock(),t.createElementBlock("p",Zt,[t.renderSlot(n.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),e.isLoading?(t.openBlock(),t.createElementBlock("div",Xt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,i=>(t.openBlock(),t.createBlock(s,{key:i,height:"2",width:"100"}))),128))])):e.rows.length?(t.openBlock(),t.createElementBlock("dl",Qt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rows,i=>(t.openBlock(),t.createElementBlock("div",{key:i.key,class:"about-card-row","data-testid":`about-card-row-${i.key}`},[t.createElementVNode("dt",ee,[t.renderSlot(n.$slots,`label-${i.key}`,{row:i},()=>[t.createElementVNode("span",oe,t.toDisplayString(i.label),1)],!0),i.tooltip?(t.openBlock(),t.createBlock(d,{key:0,text:i.tooltip},{default:t.withCtx(()=>[t.createElementVNode("button",{"aria-label":i.tooltip,class:"about-card-row-tooltip-trigger","data-testid":`about-card-row-${i.key}-tooltip`,type:"button"},[t.createVNode(t.unref(D.InfoIcon),{size:`var(--kui-icon-size-20, ${t.unref(ht)})`},null,8,["size"])],8,ne)]),_:2},1032,["text"])):t.createCommentVNode("",!0)]),t.createElementVNode("dd",ae,[t.renderSlot(n.$slots,`row-${i.key}`,{row:i},()=>[t.createElementVNode("span",le,t.toDisplayString(i.value),1)],!0)])],8,te))),128))])):t.createCommentVNode("",!0),n.$slots.default?(t.openBlock(),t.createElementBlock("div",ie,[t.renderSlot(n.$slots,"default",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:2},[n.$slots.title||e.title?{name:"title",fn:t.withCtx(()=>[t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)]),key:"0"}:void 0,n.$slots.actions?{name:"actions",fn:t.withCtx(()=>[t.renderSlot(n.$slots,"actions",{},void 0,!0)]),key:"1"}:void 0]),1032,["title","title-tag"])}}}),[["__scopeId","data-v-0316c887"]]);B.AboutCard=re,B.NEW_APPEARANCE_INJECTION_KEY=rt,B.PageLayout=Jt,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","@kong/icons"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B["kong-ui-public-page-layout"]={},B.Vue,B.VueRouter,B["kong-ui-public-i18n"],B.KongIcons))})(this,(function(B,t,J,tt,D){"use strict";const mt={back_button:"Go back",favorite_button:{save_shortcut:"Save page to shortcuts",remove_shortcut:"Remove page from shortcuts"},tabs:{more_button:{label:"More",aria_label:"More tabs"}},anchor_navigation:{aria_label:"Page sections",more_button:{aria_label:"More page sections"}}};function ft(){const e=tt.createI18n("en-us",mt);return{i18n:e,i18nT:tt.i18nTComponent(e)}}const Z={useI18n:ft},ht="12px",O="16px",gt="2px",et="16px";function kt(e,c){return t.getCurrentScope()?(t.onScopeDispose(e,c),!0):!1}const bt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const x=()=>{};function yt(e,c){function n(...l){return new Promise((s,d)=>{Promise.resolve(e(()=>c.apply(this,l),{fn:c,thisArg:this,args:l})).then(s).catch(d)})}return"cancel"in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}function wt(e,c={}){let n,l,s=x,d=x;const u=t.shallowRef(!1),i=p=>{clearTimeout(p),s(),s=x};let k;return Object.assign(p=>{const m=t.toValue(e),C=t.toValue(c.maxWait);return n&&i(n),m<=0||C!==void 0&&C<=0?(l&&(i(l),l=void 0),u.value=!1,Promise.resolve(p())):(u.value=!0,new Promise((E,f)=>{s=c.rejectOnCancel?f:E,d=E,k=p,C&&!l&&(l=setTimeout(()=>{n&&i(n),l=void 0,u.value=!1,E(k())},C)),n=setTimeout(()=>{l&&i(l),l=void 0,u.value=!1,E(p())},m)}))},{cancel:()=>{n&&(i(n),n=void 0),l&&(i(l),l=void 0),u.value=!1,d=x},flush:()=>{if(u.value){n&&(clearTimeout(n),n=void 0),l&&(clearTimeout(l),l=void 0),u.value=!1;const p=d;s=x,d=x,p(k())}},isPending:t.shallowReadonly(u)})}function Ct(e,c=200,n={}){return yt(wt(c,n),e)}const Bt=bt?window:void 0;function ot(e){var c;const n=t.toValue(e);return(c=n?.$el)!==null&&c!==void 0?c:n}function Et(){const e=t.shallowRef(!1),c=t.getCurrentInstance();return c&&t.onMounted(()=>{e.value=!0},c),e}function Tt(e){const c=Et();return t.computed(()=>(c.value,!!e()))}function nt(e,c,n={}){const{window:l=Bt,...s}=n;let d;const u=Tt(()=>l&&"ResizeObserver"in l),i=()=>{d&&(d.disconnect(),d=void 0)},k=t.watch(t.computed(()=>{const p=t.toValue(e);return Array.isArray(p)?p.map(m=>ot(m)):[ot(p)]}),p=>{if(i(),u.value&&l){d=new ResizeObserver(c);for(const m of p)m&&d.observe(m,s)}},{immediate:!0,flush:"post"}),b=()=>{i(),k()};return kt(b),{isSupported:u,stop:b}}const _t={ref:"page-layout-tabs",class:"page-layout-tabs","data-testid":"page-layout-tabs"},Nt={key:0},St=["aria-label"],$t={key:0,class:"layout-loader-container"},It=t.defineComponent({__name:"PageLayoutTabs",props:{tabs:{default:()=>[]}},setup(e){const{i18n:{t:c}}=Z.useI18n(),n=J.useRouter(),l=t.inject("app:navigateTo",null),s=f=>{if(typeof f.to!="string"){n.push(f.to);return}if(typeof l!="function"){window.location.href=f.to;return}l(f.to)},d=t.useTemplateRef("page-layout-tabs"),u=t.useTemplateRef("page-layout-tabs-list"),i=t.ref(e.tabs.length),k=t.ref(!1),b=t.computed(()=>e.tabs.slice(0,i.value)),p=t.computed(()=>e.tabs.slice(i.value)),m=async()=>{if(!d.value||!u.value)return;k.value=!1,i.value=e.tabs.length,await t.nextTick();const f=d.value?.getBoundingClientRect().width-parseInt(et)*2;let I=u.value?.getBoundingClientRect().width;if(!f||!I){k.value=!0;return}const _=50;for(;I+_>f&&i.value>1;)i.value--,await t.nextTick(),I=u.value?.getBoundingClientRect().width||0;k.value=!0};let C=null;const E=()=>{C&&clearTimeout(C),C=setTimeout(()=>{m()},150)};return t.onMounted(()=>{m(),nt(d,E)}),t.onBeforeUnmount(()=>{C&&clearTimeout(C)}),t.watch(()=>e.tabs,()=>{m()},{deep:!0}),(f,I)=>{const _=t.resolveComponent("KDropdownItem"),V=t.resolveComponent("KDropdown"),z=t.resolveComponent("KSkeletonBox");return t.openBlock(),t.createElementBlock("nav",_t,[t.createElementVNode("ul",{ref:"page-layout-tabs-list",class:t.normalizeClass({"layout-computing":!k.value})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,r=>(t.openBlock(),t.createElementBlock("li",{key:`${r.key}-tab`},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(typeof r.to=="string"?"a":"router-link"),t.mergeProps({ref_for:!0},typeof r.to=="string"?{href:r.to}:{to:r.to},{"aria-current":r.active?"page":void 0,class:["tab-link",{active:r.active}],"data-testid":r.dataTestId?r.dataTestId:`page-layout-tab-${r.key}`,tabindex:"0",onClick:t.withModifiers(A=>s(r),["prevent"]),onKeydown:t.withKeys(t.withModifiers(A=>s(r),["prevent"]),["enter"])}),{default:t.withCtx(()=>[t.renderSlot(f.$slots,`tab-${r.key}`,{tab:r},()=>[t.createTextVNode(t.toDisplayString(r.label),1)],!0)]),_:2},1040,["aria-current","class","data-testid","onClick","onKeydown"]))]))),128)),e.tabs.length>i.value?(t.openBlock(),t.createElementBlock("li",Nt,[t.createVNode(V,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"tabs-overflow-dropdown-popover"}}},{items:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.value,r=>(t.openBlock(),t.createBlock(_,{key:`${r.key}-dropdown-item`,"aria-current":r.active?"page":void 0,"data-testid":r.dataTestId?r.dataTestId:`page-layout-tab-${r.key}`,item:{label:r.label,value:r.key,to:r.to},selected:r.active},{default:t.withCtx(()=>[t.renderSlot(f.$slots,`tab-${r.key}`,{tab:r},()=>[t.createTextVNode(t.toDisplayString(r.label),1)],!0)]),_:2},1032,["aria-current","data-testid","item","selected"]))),128))]),default:t.withCtx(()=>[t.createElementVNode("button",{"aria-label":t.unref(c)("tabs.more_button.aria_label"),class:t.normalizeClass(["tab-link",{active:p.value.find(r=>r.active)}]),"data-testid":"tabs-overflow-dropdown-button"},[t.createTextVNode(t.toDisplayString(t.unref(c)("tabs.more_button.label"))+" ",1),t.createVNode(t.unref(D.ChevronDownIcon),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(O)})`},null,8,["size"])],10,St)]),_:3})])):t.createCommentVNode("",!0)],2),k.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",$t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,r=>t.createVNode(z,{key:`layout-loader-${r}`,height:"1",width:"5"})),64))]))],512)}}}),U=(e,c)=>{const n=e.__vccOpts||e;for(const[l,s]of c)n[l]=s;return n},At=U(It,[["__scopeId","data-v-02891bc1"]]),Vt=["aria-label","data-fit"],Dt={key:0,"aria-hidden":"true",class:"anchor-ellipsis","data-testid":"anchor-navigation-leading-ellipsis"},Lt=["aria-current","data-testid","title","onClick"],Rt={key:1,"aria-hidden":"true",class:"anchor-ellipsis","data-testid":"anchor-navigation-trailing-ellipsis"},Pt={key:2},at=140,lt=22,X=16,j="data-anchor-attention",Kt=1200,Ot=1600,xt=U(t.defineComponent({__name:"PageLayoutAnchorNavigation",props:{anchors:{default:()=>[]}},setup(e){const{i18n:{t:c}}=Z.useI18n(),n=t.useTemplateRef("page-layout-anchor-navigation"),l=t.useTemplateRef("page-layout-anchor-navigation-list"),s=t.ref("all"),d=t.ref(""),u=t.ref([]),i=t.computed(()=>e.anchors.filter(o=>u.value.includes(o.id))),k=t.computed(()=>{const o=i.value.findIndex(a=>a.id===d.value);return o===-1?0:o}),b=t.computed(()=>{const o=i.value,a=o.length,h=k.value;if(s.value==="all")return{anchors:o,hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!1};if(s.value==="hidden")return{anchors:[],hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!1};if(s.value==="active-only")return{anchors:o.slice(h,h+1),hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!0};const y=s.value==="window-3"?3:2;if(a<=y)return{anchors:o,hasLeadingEllipsis:!1,hasTrailingEllipsis:!1,hasOverflowDropdown:!0};const S=h<y?0:h>=a-y?a-y:h-1;return{anchors:o.slice(S,S+y),hasLeadingEllipsis:S>0,hasTrailingEllipsis:S+y<a,hasOverflowDropdown:!0}}),p=o=>o.dataTestId??`page-layout-anchor-${o.id.replace(/[^\w-]+/g,"-").replace(/^-+|-+$/g,"")}`,m=t.ref(null),C=()=>{let o=n.value?.parentElement??null;for(;o;){const{overflowY:a}=getComputedStyle(o);if(a==="auto"||a==="scroll"||a==="overlay")return o;o=o.parentElement}return null},E=o=>{if(o.element)return o.element.isConnected?o.element:null;const a=m.value??document;try{return a.querySelector(o.id)??a.querySelector(`#${CSS.escape(o.id)}`)}catch{return null}},f=()=>(n.value?.closest(".page-layout-header")?.getBoundingClientRect().height??0)+parseInt(et,10),I=parseInt(O,10),_=parseInt(gt,10),V=o=>o*at+2*I+lt+(o+2)*_+X,z=()=>at+lt+_+X;let r=0;const A=async()=>{if(!i.value.length){s.value="hidden";return}const o=++r;if(s.value="all",await t.nextTick(),o!==r||!n.value||!l.value)return;const a=n.value.getBoundingClientRect().width,h=l.value.getBoundingClientRect().width;a<=0||h<=0||h+X<=a||(V(3)<=a?s.value="window-3":V(2)<=a?s.value="window-2":z()<=a?s.value="active-only":s.value="hidden")};let L=null;nt(n,()=>{L&&clearTimeout(L),L=setTimeout(()=>{q(),A()},150)});let F=null,M=null,R=0,G=0,P=null,v=null;const st=o=>{const a=String(++R);ct(),v=o,o.removeAttribute(j),G=requestAnimationFrame(()=>{o.setAttribute(j,a),P=setTimeout(()=>{o.getAttribute(j)===a&&o.removeAttribute(j)},Kt)})},ct=()=>{cancelAnimationFrame(G),P&&(clearTimeout(P),P=null),v?.removeAttribute(j),v=null},W=()=>m.value??window,se=new Set(["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "]),T=o=>{if(o instanceof KeyboardEvent&&!se.has(o.key))return;o&&o.type!=="scrollend"&&R++,F=null,M&&(clearTimeout(M),M=null);const a=W();a.removeEventListener("scrollend",T),a.removeEventListener("wheel",T),a.removeEventListener("touchstart",T),a.removeEventListener("keydown",T)},ce=o=>{T(),F=o;const a=W();a.addEventListener("scrollend",T,{once:!0}),a.addEventListener("wheel",T,{passive:!0}),a.addEventListener("touchstart",T,{passive:!0}),a.addEventListener("keydown",T,{passive:!0}),M=setTimeout(T,1e3)},dt=()=>{const o=m.value;return{top:o?o.getBoundingClientRect().top:0,scrollTop:o?o.scrollTop:window.scrollY,clientHeight:o?o.clientHeight:window.innerHeight,scrollHeight:o?o.scrollHeight:document.documentElement.scrollHeight}},q=()=>{const{top:o,scrollTop:a,clientHeight:h,scrollHeight:y}=dt(),S=f(),w=[];let g=null,K=null;for(const $ of e.anchors){const H=E($);H&&(w.push($.id),K=$.id,g??=$.id,H.getBoundingClientRect().top-o<=($.offset??S)+8&&(g=$.id))}const Y=w.length!==u.value.length||w.some(($,H)=>$!==u.value[H]);return Y&&(u.value=w),F||(K&&a>0&&a+h>=y-2&&(g=K),d.value=g??""),Y};let Q=!1;const ut=()=>{Q||(Q=!0,requestAnimationFrame(()=>{Q=!1,q()&&A()}))},de=o=>{const a=W();let h=!1;const y=()=>{h||(h=!0,a.removeEventListener("scrollend",y),o())};a.addEventListener("scrollend",y,{once:!0}),window.setTimeout(y,Ot)},pt=o=>{const a=E(o);if(!a)return;d.value=o.id,ce(o.id);const h=o.offset??f(),{scrollTop:y,clientHeight:S,scrollHeight:w}=dt(),g=m.value,K=g?a.getBoundingClientRect().top-g.getBoundingClientRect().top+g.scrollTop-h:a.getBoundingClientRect().top+window.scrollY-h,Y=Math.min(Math.max(K,0),Math.max(w-S,0)),$=Math.abs(Y-y)>=2,H=++R;if((g??window).scrollTo({behavior:"smooth",top:K}),!$){st(a);return}de(()=>{H===R&&st(a)})},ue=(o,a)=>{a(),pt(o)};return t.onMounted(()=>{m.value=C(),W().addEventListener("scroll",ut,{passive:!0}),q(),A(),requestAnimationFrame(()=>{q(),A()})}),t.onBeforeUnmount(()=>{W().removeEventListener("scroll",ut),T(),R++,ct(),L&&clearTimeout(L)}),t.watch(()=>e.anchors,()=>{e.anchors.some(o=>o.id===d.value)||(d.value=""),q(),A()},{deep:!0}),(o,a)=>{const h=t.resolveComponent("KButton"),y=t.resolveComponent("KDropdownItem"),S=t.resolveComponent("KDropdown");return t.openBlock(),t.createElementBlock("nav",{ref:"page-layout-anchor-navigation","aria-label":t.unref(c)("anchor_navigation.aria_label"),class:"page-layout-anchor-navigation","data-fit":s.value,"data-testid":"page-layout-anchor-navigation"},[t.createElementVNode("ul",{ref:"page-layout-anchor-navigation-list",class:t.normalizeClass({"layout-hidden":s.value==="hidden"})},[b.value.hasLeadingEllipsis?(t.openBlock(),t.createElementBlock("li",Dt," … ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value.anchors,w=>(t.openBlock(),t.createElementBlock("li",{key:`${w.id}-anchor`},[t.createElementVNode("button",{"aria-current":w.id===d.value?"location":void 0,class:t.normalizeClass(["anchor-link",{active:w.id===d.value}]),"data-testid":p(w),title:w.label,type:"button",onClick:g=>pt(w)},t.toDisplayString(w.label),11,Lt)]))),128)),b.value.hasTrailingEllipsis?(t.openBlock(),t.createElementBlock("li",Rt," … ")):t.createCommentVNode("",!0),b.value.hasOverflowDropdown?(t.openBlock(),t.createElementBlock("li",Pt,[t.createVNode(S,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"anchor-navigation-overflow-dropdown-popover"}}},{items:t.withCtx(({closeDropdown:w})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,g=>(t.openBlock(),t.createBlock(y,{key:`${g.id}-dropdown-item`,"aria-current":g.id===d.value?"location":void 0,"data-testid":p(g),selected:g.id===d.value,onClick:K=>ue(g,w)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label),1)]),_:2},1032,["aria-current","data-testid","selected","onClick"]))),128))]),default:t.withCtx(()=>[t.createVNode(h,{appearance:"tertiary","aria-label":t.unref(c)("anchor_navigation.more_button.aria_label"),class:"anchor-overflow-button","data-testid":"anchor-navigation-overflow-dropdown-button",icon:"",size:"small"},{default:t.withCtx(()=>[t.createVNode(t.unref(D.ChevronDownIcon),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(O)})`},null,8,["size"])]),_:1},8,["aria-label"])]),_:1})])):t.createCommentVNode("",!0)],2)],8,Vt)}}}),[["__scopeId","data-v-2f18cb71"]]),it=Symbol("nested-page-layout-detection"),rt="page-layout:new-appearance",zt={key:0,class:"page-layout-header","data-testid":"page-layout-header"},Ft={class:"page-header-container"},Mt={class:"page-header-start"},Ht={class:"title-container"},jt={key:1,class:"page-layout-title-wrapper"},vt={class:"page-layout-title","data-testid":"page-layout-title"},Wt=["aria-label"],qt={key:3,class:"title-after-container"},Ut={class:"page-header-actions-container"},Gt={key:0,class:"page-layout-aside-container","data-testid":"page-layout-aside"},Yt={class:"page-layout-content"},Jt=U(t.defineComponent({__name:"PageLayout",props:{breadcrumbs:{default:()=>[]},title:{},backTo:{},tabs:{default:()=>[]},anchors:{default:()=>[]},pageShortcutData:{}},setup(e){const c=t.inject("app:navigateTo",null),n=t.inject(rt,null),l=t.inject("app:pageShortcutsContext",null),{i18n:{t:s}}=Z.useI18n(),d=J.useRouter(),u=J.useRoute(),i=t.computed(()=>!!(e.tabs&&e.tabs.length)),k=t.computed(()=>typeof e.backTo=="string"),b=t.computed(()=>t.toValue(n)===!0),p=t.computed(()=>b.value&&!i.value&&!!(e.anchors&&e.anchors.length)),m=t.computed(()=>!!e.pageShortcutData&&!!e.pageShortcutData.entityType&&!!e.pageShortcutData.label),C=t.computed(()=>m.value&&!!l&&"onFavoriteToggle"in l&&typeof l.onFavoriteToggle=="function"),E=t.ref(0),f=t.computed(()=>!!l&&"isFavorite"in l&&typeof l.isFavorite=="function"&&l.isFavorite(e.pageShortcutData)===!0),I=async()=>{if(e.backTo){if(typeof e.backTo=="object"){d.push(e.backTo);return}if(typeof c!="function"){window.location.href=e.backTo;return}await c(e.backTo)}},_=t.ref(0),V=t.computed(()=>_.value>0);t.provide(it,()=>(_.value++,()=>{_.value--}));const z=t.inject(it,null),r=t.ref(null);typeof z=="function"&&(r.value=z());const A=()=>{l.onFavoriteToggle({...e.pageShortcutData,path:e.pageShortcutData?.path||u.fullPath})};t.onUnmounted(()=>{r.value?.()});const L=Ct(()=>{!V.value&&m.value&&l&&"onEntityPageVisit"in l&&typeof l.onEntityPageVisit=="function"&&(l.onEntityPageVisit({...e.pageShortcutData,path:e.pageShortcutData?.path||u?.fullPath}),E.value++)},500);return t.watch([()=>e.pageShortcutData,()=>u?.fullPath],()=>{L()},{immediate:!0,deep:!0}),(N,F)=>{const M=t.resolveComponent("KBreadcrumbs"),R=t.resolveComponent("KTooltip"),G=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["kong-ui-public-page-layout",{"new-appearance":b.value}]),"data-testid":"kong-ui-public-page-layout"},[V.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",zt,[t.createElementVNode("div",Ft,[t.createElementVNode("div",Mt,[e.breadcrumbs&&e.breadcrumbs.length?(t.openBlock(),t.createBlock(M,{key:0,class:"header-breadcrumbs","data-testid":"page-layout-breadcrumbs","item-max-width":"25ch",items:e.breadcrumbs},t.createSlots({_:2},[b.value?{name:"divider",fn:t.withCtx(()=>[t.createVNode(t.unref(D.ChevronRightIcon),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(O)})`},null,8,["size"])]),key:"0"}:void 0]),1032,["items"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ht,[e.backTo&&!b.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(k.value?"a":"router-link"),t.mergeProps({key:0},k.value?{href:e.backTo}:{to:e.backTo},{"aria-label":t.unref(s)("back_button"),class:"navigate-back","data-testid":"page-layout-navigate-back",tabindex:"0",onClick:t.withModifiers(I,["prevent"]),onKeydown:t.withKeys(t.withModifiers(I,["prevent"]),["enter"])}),{default:t.withCtx(()=>[t.createVNode(t.unref(D.ArrowTopLeftIcon),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(O)})`},null,8,["size"])]),_:1},16,["aria-label","onKeydown"])):t.createCommentVNode("",!0),e.title||N.$slots.title?(t.openBlock(),t.createElementBlock("span",jt,[t.renderSlot(N.$slots,"title",{},()=>[t.createElementVNode("h1",vt,t.toDisplayString(e.title),1)],!0)])):t.createCommentVNode("",!0),C.value?(t.openBlock(),t.createElementBlock("div",{key:E.value,class:"favorite-button-container"},[t.createVNode(R,{placement:"right",text:f.value?t.unref(s)("favorite_button.remove_shortcut"):t.unref(s)("favorite_button.save_shortcut")},{default:t.withCtx(()=>[t.createElementVNode("button",{"aria-label":f.value?t.unref(s)("favorite_button.remove_shortcut"):t.unref(s)("favorite_button.save_shortcut"),class:t.normalizeClass(["favorite-button",{active:f.value}]),"data-testid":"page-layout-favorite-button",type:"button",onClick:A},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(f.value?t.unref(D.StarFillIcon):t.unref(D.StarIcon)),{decorative:"",size:`var(--kui-icon-size-30, ${t.unref(O)})`},null,8,["size"]))],10,Wt)]),_:1},8,["text"])])):t.createCommentVNode("",!0),N.$slots["title-after"]?(t.openBlock(),t.createElementBlock("div",qt,[t.renderSlot(N.$slots,"title-after",{},void 0,!0)])):t.createCommentVNode("",!0)])]),p.value?(t.openBlock(),t.createBlock(xt,{key:0,anchors:e.anchors},null,8,["anchors"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ut,[t.renderSlot(N.$slots,"actions",{},void 0,!0),F[0]||(F[0]=t.createElementVNode("div",{"data-teleport-target":"ask-kai"},null,-1))])]),i.value?(t.openBlock(),t.createBlock(At,{key:0,tabs:e.tabs},t.createSlots({_:2},[t.renderList(e.tabs,P=>({name:`tab-${P.key}`,fn:t.withCtx(v=>[t.renderSlot(N.$slots,`tab-${P.key}`,t.normalizeProps(t.guardReactiveProps(v)),void 0,!0)])}))]),1032,["tabs"])):t.createCommentVNode("",!0)])),t.createElementVNode("div",{class:t.normalizeClass(["page-layout-content-container",{"has-nested-page-layout":V.value}])},[b.value&&N.$slots.aside?(t.openBlock(),t.createElementBlock("div",Gt,[t.renderSlot(N.$slots,"aside",{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Yt,[i.value?(t.openBlock(),t.createBlock(G,{key:0})):t.renderSlot(N.$slots,"default",{},void 0,!0,1)])],2)],2)}}}),[["__scopeId","data-v-e714e65a"]]),Zt={key:0,class:"about-card-description","data-testid":"about-card-description"},Xt={key:1,class:"about-card-skeleton","data-testid":"about-card-skeleton"},Qt={key:2,class:"about-card-rows","data-testid":"about-card-rows"},te=["data-testid"],ee={class:"about-card-row-label"},oe={class:"about-card-row-text"},ne=["aria-label","data-testid"],ae={class:"about-card-row-value"},le={class:"about-card-row-text"},ie={key:3,class:"about-card-content","data-testid":"about-card-content"},re=U(t.defineComponent({__name:"AboutCard",props:{title:{default:""},titleTag:{default:"h2"},description:{default:""},rows:{default:()=>[]},isLoading:{type:Boolean,default:!1}},setup(e){const c=t.computed(()=>e.rows.length||4);return(n,l)=>{const s=t.resolveComponent("KSkeletonBox"),d=t.resolveComponent("KTooltip"),u=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(u,{class:"kong-ui-public-about-card",title:e.title,"title-tag":e.titleTag},t.createSlots({default:t.withCtx(()=>[n.$slots.description||e.description?(t.openBlock(),t.createElementBlock("p",Zt,[t.renderSlot(n.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),e.isLoading?(t.openBlock(),t.createElementBlock("div",Xt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,i=>(t.openBlock(),t.createBlock(s,{key:i,height:"2",width:"100"}))),128))])):e.rows.length?(t.openBlock(),t.createElementBlock("dl",Qt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rows,i=>(t.openBlock(),t.createElementBlock("div",{key:i.key,class:"about-card-row","data-testid":`about-card-row-${i.key}`},[t.createElementVNode("dt",ee,[t.renderSlot(n.$slots,`label-${i.key}`,{row:i},()=>[t.createElementVNode("span",oe,t.toDisplayString(i.label),1)],!0),i.tooltip?(t.openBlock(),t.createBlock(d,{key:0,text:i.tooltip},{default:t.withCtx(()=>[t.createElementVNode("button",{"aria-label":i.tooltip,class:"about-card-row-tooltip-trigger","data-testid":`about-card-row-${i.key}-tooltip`,type:"button"},[t.createVNode(t.unref(D.InfoIcon),{size:`var(--kui-icon-size-20, ${t.unref(ht)})`},null,8,["size"])],8,ne)]),_:2},1032,["text"])):t.createCommentVNode("",!0)]),t.createElementVNode("dd",ae,[t.renderSlot(n.$slots,`row-${i.key}`,{row:i},()=>[t.createElementVNode("span",le,t.toDisplayString(i.value),1)],!0)])],8,te))),128))])):t.createCommentVNode("",!0),n.$slots.default?(t.openBlock(),t.createElementBlock("div",ie,[t.renderSlot(n.$slots,"default",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:2},[n.$slots.title||e.title?{name:"title",fn:t.withCtx(()=>[t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)]),key:"0"}:void 0,n.$slots.actions?{name:"actions",fn:t.withCtx(()=>[t.renderSlot(n.$slots,"actions",{},void 0,!0)]),key:"1"}:void 0]),1032,["title","title-tag"])}}}),[["__scopeId","data-v-86b6c183"]]);B.AboutCard=re,B.NEW_APPEARANCE_INJECTION_KEY=rt,B.PageLayout=Jt,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.page-layout-tabs[data-v-02891bc1]{align-items:flex-end;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;height:34px;overflow-x:clip;padding:0 16px;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px);position:relative;width:100%}.page-layout-tabs a[data-v-02891bc1],.page-layout-tabs button[data-v-02891bc1]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;color:inherit;cursor:pointer;font:inherit;outline:none;padding:0;padding:var(--kui-space-0, 0px);text-decoration:none}.page-layout-tabs ul[data-v-02891bc1]{display:flex;gap:20px;gap:var(--kui-space-70, 20px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);margin-bottom:-1px;margin-bottom:calc(-1 * var(--kui-border-width-10, 1px));max-width:100%;padding:0;padding:var(--kui-space-0, 0px)}.page-layout-tabs ul.layout-computing[data-v-02891bc1]{height:0;visibility:hidden}.page-layout-tabs ul li[data-v-02891bc1]{display:flex}.page-layout-tabs ul li .tab-link[data-v-02891bc1]{align-items:center;border-bottom:2px solid rgba(0,0,0,0);border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-transparent, rgba(0, 0, 0, 0));border-radius:4px 4px 0 0;border-radius:var(--kui-border-radius-20, 4px) var(--kui-border-radius-20, 4px) var(--kui-border-radius-0, 0px) var(--kui-border-radius-0, 0px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);cursor:pointer;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:6px;gap:var(--kui-space-30, 6px);line-height:20px;line-height:var(--kui-line-height-30, 20px);padding:6px 0;padding:var(--kui-space-30, 6px) var(--kui-space-0, 0px);text-decoration:none;transition:color .2s ease-in,border-color .2s ease-in,font-weight .2s ease-in;white-space:nowrap}.page-layout-tabs ul li .tab-link[data-v-02891bc1]:hover{border-bottom:2px solid #afb7c5;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-neutral-weak, #afb7c5);color:#0d0e14;color:var(--kui-color-text, #0d0e14);text-decoration:none}.page-layout-tabs ul li .tab-link[data-v-02891bc1]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2));text-decoration:none}.page-layout-tabs ul li .tab-link.active[data-v-02891bc1]{border-bottom:2px solid #0044f4;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-primary, #0044f4);color:#0044f4!important;color:var(--kui-color-text-primary, #0044f4)!important;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);text-decoration:none}.page-layout-tabs .layout-loader-container[data-v-02891bc1]{align-items:center;display:flex;gap:20px;gap:var(--kui-space-70, 20px);height:34px;inset:0 0 0 16px;left:var(--kui-space-60, 16px);position:absolute}.page-layout-anchor-navigation[data-v-d9058e68]{display:flex;flex:1 1 0;justify-content:center;min-width:0;overflow-x:clip}.page-layout-anchor-navigation ul[data-v-d9058e68]{align-items:center;display:flex;flex-shrink:0;gap:2px;gap:var(--kui-space-10, 2px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px)}.page-layout-anchor-navigation ul.layout-hidden[data-v-d9058e68]{display:none}.page-layout-anchor-navigation ul li[data-v-d9058e68]{display:flex}.page-layout-anchor-navigation .anchor-link[data-v-d9058e68]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-sizing:border-box;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;font-family:inherit;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:16px;line-height:var(--kui-line-height-20, 16px);max-width:140px;outline:none;overflow:hidden;padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);text-overflow:ellipsis;transition:background-color .2s ease-in,color .2s ease-in;transition:background-color var(--kui-animation-duration-20, .2s) ease-in,color var(--kui-animation-duration-20, .2s) ease-in;white-space:nowrap}.page-layout-anchor-navigation .anchor-link[data-v-d9058e68]:hover{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.page-layout-anchor-navigation .anchor-link[data-v-d9058e68]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.page-layout-anchor-navigation .anchor-link.active[data-v-d9058e68]{background-color:#0044f4;background-color:var(--kui-color-brand, #0044f4);color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.page-layout-anchor-navigation .anchor-ellipsis[data-v-d9058e68]{align-items:center;color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);font-size:12px;font-size:var(--kui-font-size-20, 12px);justify-content:center;line-height:16px;line-height:var(--kui-line-height-20, 16px);-webkit-user-select:none;user-select:none;width:16px;width:var(--kui-icon-size-30, 16px)}.page-layout-anchor-navigation .anchor-overflow-button[data-v-d9058e68]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout[data-v-e714e65a]{box-sizing:border-box;container-name:page-layout;container-type:inline-size;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif)}.kong-ui-public-page-layout .page-layout-header[data-v-e714e65a]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-public-page-layout .page-layout-header .page-header-container[data-v-e714e65a]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);justify-content:space-between;padding:16px 16px 0;padding:var(--kui-space-60, 16px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start[data-v-e714e65a]{min-width:0}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-e714e65a] .breadcrumbs-item-container:first-child .breadcrumbs-item{padding-left:0;padding-left:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-e714e65a] .breadcrumbs-item-container .breadcrumbs-item.active .breadcrumbs-text{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container[data-v-e714e65a]{align-items:flex-end;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-e714e65a],.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-e714e65a]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;outline:none;padding:4px;padding:var(--kui-space-20, 4px);transition:background-color .2s ease-in,color .2s ease-in}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-e714e65a]:hover,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-e714e65a]:hover{color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-e714e65a]:focus-visible,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-e714e65a]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-e714e65a]{min-width:0;overflow:hidden}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-e714e65a]>*{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0;margin:var(--kui-space-0, 0px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container[data-v-e714e65a]{align-self:center;display:flex;margin-left:4px;margin-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button[data-v-e714e65a]{color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button[data-v-e714e65a]:hover{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button.active[data-v-e714e65a]{color:#ffc400;color:var(--kui-color-text-warning-weak, #ffc400)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .title-after-container[data-v-e714e65a]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);margin-left:4px;margin-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-actions-container[data-v-e714e65a]{align-items:center;display:flex;gap:6px;gap:var(--kui-space-30, 6px)}.kong-ui-public-page-layout .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-e714e65a]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout.new-appearance .page-layout-header[data-v-e714e65a]{position:sticky;top:0;z-index:3}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container[data-v-e714e65a]{align-items:center;padding:8px 16px 0;padding:var(--kui-space-40, 8px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start[data-v-e714e65a]{align-items:center;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container[data-v-e714e65a]{align-items:center;min-width:0}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-e714e65a]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:40ch;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-e714e65a]>*{font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:40ch}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-e714e65a],.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-after-container[data-v-e714e65a]{flex-shrink:0}.kong-ui-public-page-layout.new-appearance .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-e714e65a]{box-sizing:border-box;height:44px;padding:8px 16px;padding:var(--kui-space-40, 8px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content-container[data-v-e714e65a]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);display:flex;flex-direction:column-reverse;gap:12px;gap:var(--kui-space-50, 12px);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content-container.has-nested-page-layout[data-v-e714e65a]{padding:0;padding:var(--kui-space-0, 0px)}@container page-layout (min-width: 1024px){.kong-ui-public-page-layout .page-layout-content-container[data-v-e714e65a]{flex-direction:row-reverse;gap:8px;gap:var(--kui-space-40, 8px)}}.kong-ui-public-page-layout .page-layout-content-container .page-layout-content[data-v-e714e65a]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px);min-width:0;width:100%}.kong-ui-public-page-layout .page-layout-content-container .page-layout-aside-container[data-v-e714e65a]{display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}@container page-layout (min-width: 1024px){.kong-ui-public-page-layout .page-layout-content-container .page-layout-aside-container[data-v-e714e65a]{flex-shrink:0;width:400px}}.kong-ui-public-page-layout[data-v-e714e65a] [data-anchor-attention]{animation:anchor-attention-e714e65a 1s cubic-bezier(.2,0,0,1) both;animation:anchor-attention-e714e65a calc(var(--kui-animation-duration-20, .2s) * 5) cubic-bezier(.2,0,0,1) both}@media(prefers-reduced-motion:reduce){.kong-ui-public-page-layout[data-v-e714e65a] [data-anchor-attention]{animation-name:anchor-attention-still-e714e65a}}@keyframes anchor-attention-e714e65a{0%{box-shadow:0 0 color-mix(in srgb,#0044f4 80%,transparent);box-shadow:0 0 color-mix(in srgb,var(--kui-color-brand, #0044f4) 80%,transparent)}18%{box-shadow:0 0 0 4px color-mix(in srgb,#0044f4 70%,transparent);box-shadow:0 0 0 var(--kui-border-width-30, 4px) color-mix(in srgb,var(--kui-color-brand, #0044f4) 70%,transparent)}55%{box-shadow:0 0 0 8px color-mix(in srgb,#0044f4 28%,transparent);box-shadow:0 0 0 calc(var(--kui-border-width-30, 4px) * 2) color-mix(in srgb,var(--kui-color-brand, #0044f4) 28%,transparent)}to{box-shadow:0 0 0 12px color-mix(in srgb,#0044f4 0%,transparent);box-shadow:0 0 0 calc(var(--kui-border-width-30, 4px) * 3) color-mix(in srgb,var(--kui-color-brand, #0044f4) 0%,transparent)}}@keyframes anchor-attention-still-e714e65a{0%,45%{box-shadow:0 0 0 2px color-mix(in srgb,#0044f4 70%,transparent);box-shadow:0 0 0 var(--kui-border-width-20, 2px) color-mix(in srgb,var(--kui-color-brand, #0044f4) 70%,transparent)}to{box-shadow:0 0 0 2px color-mix(in srgb,#0044f4 0%,transparent);box-shadow:0 0 0 var(--kui-border-width-20, 2px) color-mix(in srgb,var(--kui-color-brand, #0044f4) 0%,transparent)}}.kong-ui-public-about-card[data-v-0316c887]{--kui-card-gap: var(--kui-space-50, 12px);--kui-card-title-font-size: var(--kui-font-size-30, 14px);container-type:inline-size}.kong-ui-public-about-card .about-card-description[data-v-0316c887]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0 0 16px;margin:var(--kui-space-0, 0px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-about-card .about-card-skeleton[data-v-0316c887]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-about-card .about-card-rows[data-v-0316c887]{display:flex;flex-direction:column;margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-0316c887]{align-items:center;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;gap:8px;gap:var(--kui-space-40, 8px);padding:8px 0;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-0316c887]:last-child{border-bottom:none;padding-bottom:0;padding-bottom:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-0316c887]:first-child{padding-top:0;padding-top:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row-label[data-v-0316c887]{align-items:center;color:#0d0e14;color:var(--kui-color-text, #0d0e14);display:flex;flex:0 0 auto;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:4px;gap:var(--kui-space-20, 4px);line-height:16px;line-height:var(--kui-line-height-20, 16px);width:140px}.kong-ui-public-about-card .about-card-row-text[data-v-0316c887]{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.kong-ui-public-about-card .about-card-row-tooltip-trigger[data-v-0316c887]{align-items:center;background:none;border:none;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;display:flex;padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row-value[data-v-0316c887]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);flex:1 1 0;font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px);min-width:0;overflow-wrap:anywhere}.kong-ui-public-about-card .about-card-content[data-v-0316c887]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}@container (max-width: 320px){.kong-ui-public-about-card .about-card-row[data-v-0316c887]{align-items:flex-start;flex-direction:column;gap:2px;gap:var(--kui-space-10, 2px)}.kong-ui-public-about-card .about-card-row-label[data-v-0316c887]{width:auto}}
|
|
1
|
+
.page-layout-tabs[data-v-02891bc1]{align-items:flex-end;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;height:34px;overflow-x:clip;padding:0 16px;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px);position:relative;width:100%}.page-layout-tabs a[data-v-02891bc1],.page-layout-tabs button[data-v-02891bc1]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;color:inherit;cursor:pointer;font:inherit;outline:none;padding:0;padding:var(--kui-space-0, 0px);text-decoration:none}.page-layout-tabs ul[data-v-02891bc1]{display:flex;gap:20px;gap:var(--kui-space-70, 20px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);margin-bottom:-1px;margin-bottom:calc(-1 * var(--kui-border-width-10, 1px));max-width:100%;padding:0;padding:var(--kui-space-0, 0px)}.page-layout-tabs ul.layout-computing[data-v-02891bc1]{height:0;visibility:hidden}.page-layout-tabs ul li[data-v-02891bc1]{display:flex}.page-layout-tabs ul li .tab-link[data-v-02891bc1]{align-items:center;border-bottom:2px solid rgba(0,0,0,0);border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-transparent, rgba(0, 0, 0, 0));border-radius:4px 4px 0 0;border-radius:var(--kui-border-radius-20, 4px) var(--kui-border-radius-20, 4px) var(--kui-border-radius-0, 0px) var(--kui-border-radius-0, 0px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);cursor:pointer;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:6px;gap:var(--kui-space-30, 6px);line-height:20px;line-height:var(--kui-line-height-30, 20px);padding:6px 0;padding:var(--kui-space-30, 6px) var(--kui-space-0, 0px);text-decoration:none;transition:color .2s ease-in,border-color .2s ease-in,font-weight .2s ease-in;white-space:nowrap}.page-layout-tabs ul li .tab-link[data-v-02891bc1]:hover{border-bottom:2px solid #afb7c5;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-neutral-weak, #afb7c5);color:#0d0e14;color:var(--kui-color-text, #0d0e14);text-decoration:none}.page-layout-tabs ul li .tab-link[data-v-02891bc1]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2));text-decoration:none}.page-layout-tabs ul li .tab-link.active[data-v-02891bc1]{border-bottom:2px solid #0044f4;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-primary, #0044f4);color:#0044f4!important;color:var(--kui-color-text-primary, #0044f4)!important;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);text-decoration:none}.page-layout-tabs .layout-loader-container[data-v-02891bc1]{align-items:center;display:flex;gap:20px;gap:var(--kui-space-70, 20px);height:34px;inset:0 0 0 16px;left:var(--kui-space-60, 16px);position:absolute}.page-layout-anchor-navigation[data-v-2f18cb71]{display:flex;flex:1 1 0;justify-content:center;min-width:0;overflow-x:clip}.page-layout-anchor-navigation ul[data-v-2f18cb71]{align-items:center;display:flex;flex-shrink:0;gap:2px;gap:var(--kui-space-10, 2px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);padding:0;padding:var(--kui-space-0, 0px)}.page-layout-anchor-navigation ul.layout-hidden[data-v-2f18cb71]{display:none}.page-layout-anchor-navigation ul li[data-v-2f18cb71]{display:flex}.page-layout-anchor-navigation .anchor-link[data-v-2f18cb71]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-sizing:border-box;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;font-family:inherit;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);line-height:16px;line-height:var(--kui-line-height-20, 16px);max-width:140px;outline:none;overflow:hidden;padding:4px 8px;padding:var(--kui-space-20, 4px) var(--kui-space-40, 8px);text-overflow:ellipsis;transition:background-color .2s ease-in,color .2s ease-in;transition:background-color var(--kui-animation-duration-20, .2s) ease-in,color var(--kui-animation-duration-20, .2s) ease-in;white-space:nowrap}.page-layout-anchor-navigation .anchor-link[data-v-2f18cb71]:hover{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.page-layout-anchor-navigation .anchor-link[data-v-2f18cb71]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.page-layout-anchor-navigation .anchor-link.active[data-v-2f18cb71]{background-color:#0044f4;background-color:var(--kui-color-brand, #0044f4);color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.page-layout-anchor-navigation .anchor-ellipsis[data-v-2f18cb71]{align-items:center;color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);font-size:12px;font-size:var(--kui-font-size-20, 12px);justify-content:center;line-height:16px;line-height:var(--kui-line-height-20, 16px);-webkit-user-select:none;user-select:none;width:16px;width:var(--kui-icon-size-30, 16px)}.page-layout-anchor-navigation .anchor-overflow-button[data-v-2f18cb71]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout[data-v-e714e65a]{box-sizing:border-box;container-name:page-layout;container-type:inline-size;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif)}.kong-ui-public-page-layout .page-layout-header[data-v-e714e65a]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-public-page-layout .page-layout-header .page-header-container[data-v-e714e65a]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);justify-content:space-between;padding:16px 16px 0;padding:var(--kui-space-60, 16px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start[data-v-e714e65a]{min-width:0}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-e714e65a] .breadcrumbs-item-container:first-child .breadcrumbs-item{padding-left:0;padding-left:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-e714e65a] .breadcrumbs-item-container .breadcrumbs-item.active .breadcrumbs-text{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container[data-v-e714e65a]{align-items:flex-end;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-e714e65a],.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-e714e65a]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;outline:none;padding:4px;padding:var(--kui-space-20, 4px);transition:background-color .2s ease-in,color .2s ease-in}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-e714e65a]:hover,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-e714e65a]:hover{color:#0d0e14;color:var(--kui-color-text, #0d0e14)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-e714e65a]:focus-visible,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-e714e65a]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-e714e65a]{min-width:0;overflow:hidden}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-e714e65a]>*{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0;margin:var(--kui-space-0, 0px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container[data-v-e714e65a]{align-self:center;display:flex;margin-left:4px;margin-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button[data-v-e714e65a]{color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button[data-v-e714e65a]:hover{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button-container .favorite-button.active[data-v-e714e65a]{color:#ffc400;color:var(--kui-color-text-warning-weak, #ffc400)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .title-after-container[data-v-e714e65a]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);margin-left:4px;margin-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-actions-container[data-v-e714e65a]{align-items:center;display:flex;gap:6px;gap:var(--kui-space-30, 6px)}.kong-ui-public-page-layout .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-e714e65a]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout.new-appearance .page-layout-header[data-v-e714e65a]{position:sticky;top:0;z-index:3}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container[data-v-e714e65a]{align-items:center;padding:8px 16px 0;padding:var(--kui-space-40, 8px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start[data-v-e714e65a]{align-items:center;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container[data-v-e714e65a]{align-items:center;min-width:0}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-e714e65a]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:40ch;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title-wrapper[data-v-e714e65a]>*{font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:40ch}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-e714e65a],.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-after-container[data-v-e714e65a]{flex-shrink:0}.kong-ui-public-page-layout.new-appearance .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-e714e65a]{box-sizing:border-box;height:44px;padding:8px 16px;padding:var(--kui-space-40, 8px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content-container[data-v-e714e65a]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);display:flex;flex-direction:column-reverse;gap:12px;gap:var(--kui-space-50, 12px);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content-container.has-nested-page-layout[data-v-e714e65a]{padding:0;padding:var(--kui-space-0, 0px)}@container page-layout (min-width: 1024px){.kong-ui-public-page-layout .page-layout-content-container[data-v-e714e65a]{flex-direction:row-reverse;gap:8px;gap:var(--kui-space-40, 8px)}}.kong-ui-public-page-layout .page-layout-content-container .page-layout-content[data-v-e714e65a]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px);min-width:0;width:100%}.kong-ui-public-page-layout .page-layout-content-container .page-layout-aside-container[data-v-e714e65a]{display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}@container page-layout (min-width: 1024px){.kong-ui-public-page-layout .page-layout-content-container .page-layout-aside-container[data-v-e714e65a]{flex-shrink:0;width:400px}}.kong-ui-public-page-layout[data-v-e714e65a] [data-anchor-attention]{animation:anchor-attention-e714e65a 1s cubic-bezier(.2,0,0,1) both;animation:anchor-attention-e714e65a calc(var(--kui-animation-duration-20, .2s) * 5) cubic-bezier(.2,0,0,1) both}@media(prefers-reduced-motion:reduce){.kong-ui-public-page-layout[data-v-e714e65a] [data-anchor-attention]{animation-name:anchor-attention-still-e714e65a}}@keyframes anchor-attention-e714e65a{0%{box-shadow:0 0 color-mix(in srgb,#0044f4 80%,transparent);box-shadow:0 0 color-mix(in srgb,var(--kui-color-brand, #0044f4) 80%,transparent)}18%{box-shadow:0 0 0 4px color-mix(in srgb,#0044f4 70%,transparent);box-shadow:0 0 0 var(--kui-border-width-30, 4px) color-mix(in srgb,var(--kui-color-brand, #0044f4) 70%,transparent)}55%{box-shadow:0 0 0 8px color-mix(in srgb,#0044f4 28%,transparent);box-shadow:0 0 0 calc(var(--kui-border-width-30, 4px) * 2) color-mix(in srgb,var(--kui-color-brand, #0044f4) 28%,transparent)}to{box-shadow:0 0 0 12px color-mix(in srgb,#0044f4 0%,transparent);box-shadow:0 0 0 calc(var(--kui-border-width-30, 4px) * 3) color-mix(in srgb,var(--kui-color-brand, #0044f4) 0%,transparent)}}@keyframes anchor-attention-still-e714e65a{0%,45%{box-shadow:0 0 0 2px color-mix(in srgb,#0044f4 70%,transparent);box-shadow:0 0 0 var(--kui-border-width-20, 2px) color-mix(in srgb,var(--kui-color-brand, #0044f4) 70%,transparent)}to{box-shadow:0 0 0 2px color-mix(in srgb,#0044f4 0%,transparent);box-shadow:0 0 0 var(--kui-border-width-20, 2px) color-mix(in srgb,var(--kui-color-brand, #0044f4) 0%,transparent)}}.kong-ui-public-about-card[data-v-86b6c183]{--kui-card-gap: var(--kui-space-50, 12px);--kui-card-title-font-size: var(--kui-font-size-30, 14px);container-type:inline-size}.kong-ui-public-about-card .about-card-description[data-v-86b6c183]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0 0 16px;margin:var(--kui-space-0, 0px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-about-card .about-card-skeleton[data-v-86b6c183]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-about-card .about-card-rows[data-v-86b6c183]{display:flex;flex-direction:column;margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-86b6c183]{align-items:center;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;gap:8px;gap:var(--kui-space-40, 8px);min-height:47px;padding:8px 0;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-86b6c183]:last-child{border-bottom:none;padding-bottom:0;padding-bottom:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-86b6c183]:first-child{padding-top:0;padding-top:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row-label[data-v-86b6c183]{align-items:center;color:#0d0e14;color:var(--kui-color-text, #0d0e14);display:flex;flex:0 0 auto;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:4px;gap:var(--kui-space-20, 4px);line-height:16px;line-height:var(--kui-line-height-20, 16px);width:140px}.kong-ui-public-about-card .about-card-row-text[data-v-86b6c183]{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.kong-ui-public-about-card .about-card-row-tooltip-trigger[data-v-86b6c183]{align-items:center;background:none;border:none;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;display:flex;padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row-value[data-v-86b6c183]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);flex:1 1 0;font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin:0;margin:var(--kui-space-0, 0px);min-width:0;overflow-wrap:anywhere}.kong-ui-public-about-card .about-card-content[data-v-86b6c183]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}@container (max-width: 320px){.kong-ui-public-about-card .about-card-row[data-v-86b6c183]{align-items:flex-start;flex-direction:column;gap:2px;gap:var(--kui-space-10, 2px)}.kong-ui-public-about-card .about-card-row-label[data-v-86b6c183]{width:auto}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AboutCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AboutCard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AboutCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AboutCard.vue"],"names":[],"mappings":"AAiPA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAY9D,KAAK,WAAW,GAAG,cAAc,CAAC;AAwMlC,QAAA,MAAM,UAAU,wSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayoutAnchorNavigation.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayoutAnchorNavigation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PageLayoutAnchorNavigation.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayoutAnchorNavigation.vue"],"names":[],"mappings":"AAyvBA,OAAO,KAAK,EAAoB,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAiwBjF,QAAA,MAAM,YAAY,0UAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|