@kong-ui-public/page-layout 1.3.3 → 1.3.4-pr.3942.72fef96ff.0
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/package.json +2 -2
- package/dist/page-layout.es.js +0 -753
- package/dist/page-layout.umd.js +0 -1
- package/dist/style.css +0 -1
- package/dist/types/components/AboutCard.vue.d.ts +0 -12
- package/dist/types/components/AboutCard.vue.d.ts.map +0 -1
- package/dist/types/components/PageLayout.vue.d.ts +0 -12
- package/dist/types/components/PageLayout.vue.d.ts.map +0 -1
- package/dist/types/components/PageLayoutAnchorNavigation.vue.d.ts +0 -5
- package/dist/types/components/PageLayoutAnchorNavigation.vue.d.ts.map +0 -1
- package/dist/types/components/PageLayoutTabs.vue.d.ts +0 -21
- package/dist/types/components/PageLayoutTabs.vue.d.ts.map +0 -1
- package/dist/types/composables/index.d.ts +0 -6
- package/dist/types/composables/index.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/symbols.d.ts +0 -7
- package/dist/types/symbols.d.ts.map +0 -1
- package/dist/types/types/about-card.d.ts +0 -44
- package/dist/types/types/about-card.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -5
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/page-layout-anchor-navigation.d.ts +0 -26
- package/dist/types/types/page-layout-anchor-navigation.d.ts.map +0 -1
- package/dist/types/types/page-layout-tabs.d.ts +0 -22
- package/dist/types/types/page-layout-tabs.d.ts.map +0 -1
- package/dist/types/types/page-layout.d.ts +0 -60
- package/dist/types/types/page-layout.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/page-layout",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4-pr.3942.72fef96ff.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/page-layout.umd.js",
|
|
6
6
|
"module": "./dist/page-layout.es.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@kong-ui-public/i18n": "^2.5.1",
|
|
25
|
-
"@kong-ui-public/sandbox-layout": "^2.8.
|
|
25
|
+
"@kong-ui-public/sandbox-layout": "^2.8.3-pr.3942.72fef96ff.0",
|
|
26
26
|
"@kong/design-tokens": "3.4.4",
|
|
27
27
|
"@kong/icons": "^1.64.0",
|
|
28
28
|
"@kong/kongponents": "9.66.4",
|
package/dist/page-layout.es.js
DELETED
|
@@ -1,753 +0,0 @@
|
|
|
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" } }, ct = { aria_label: "Page sections", more_button: { aria_label: "More page sections" } }, ut = {
|
|
6
|
-
back_button: st,
|
|
7
|
-
favorite_button: lt,
|
|
8
|
-
tabs: rt,
|
|
9
|
-
anchor_navigation: ct
|
|
10
|
-
};
|
|
11
|
-
function dt() {
|
|
12
|
-
const e = Qe("en-us", ut);
|
|
13
|
-
return {
|
|
14
|
-
i18n: e,
|
|
15
|
-
i18nT: et(e)
|
|
16
|
-
// Translation component <i18n-t>
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
const Te = {
|
|
20
|
-
useI18n: dt
|
|
21
|
-
}, vt = "12px", ae = "16px", ht = "2px", ze = "16px";
|
|
22
|
-
function ft(e, c) {
|
|
23
|
-
return Ue() ? (je(e, c), !0) : !1;
|
|
24
|
-
}
|
|
25
|
-
const pt = typeof window < "u" && typeof document < "u";
|
|
26
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
27
|
-
const ee = () => {
|
|
28
|
-
};
|
|
29
|
-
function gt(e, c) {
|
|
30
|
-
function a(...n) {
|
|
31
|
-
return new Promise((r, u) => {
|
|
32
|
-
Promise.resolve(e(() => c.apply(this, n), {
|
|
33
|
-
fn: c,
|
|
34
|
-
thisArg: this,
|
|
35
|
-
args: n
|
|
36
|
-
})).then(r).catch(u);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return "cancel" in e && Object.assign(a, {
|
|
40
|
-
cancel: e.cancel,
|
|
41
|
-
flush: e.flush,
|
|
42
|
-
isPending: e.isPending
|
|
43
|
-
}), a;
|
|
44
|
-
}
|
|
45
|
-
function mt(e, c = {}) {
|
|
46
|
-
let a, n, r = ee, u = ee;
|
|
47
|
-
const v = De(!1), i = (f) => {
|
|
48
|
-
clearTimeout(f), r(), r = ee;
|
|
49
|
-
};
|
|
50
|
-
let w;
|
|
51
|
-
return Object.assign((f) => {
|
|
52
|
-
const p = re(e), E = re(c.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 = c.rejectOnCancel ? g : S, u = S, w = f, E && !n && (n = setTimeout(() => {
|
|
55
|
-
a && i(a), n = void 0, v.value = !1, S(w());
|
|
56
|
-
}, E)), a = setTimeout(() => {
|
|
57
|
-
n && i(n), n = void 0, v.value = !1, S(f());
|
|
58
|
-
}, p);
|
|
59
|
-
}));
|
|
60
|
-
}, {
|
|
61
|
-
cancel: () => {
|
|
62
|
-
a && (i(a), a = void 0), n && (i(n), n = void 0), v.value = !1, u = ee;
|
|
63
|
-
},
|
|
64
|
-
flush: () => {
|
|
65
|
-
if (v.value) {
|
|
66
|
-
a && (clearTimeout(a), a = void 0), n && (clearTimeout(n), n = void 0), v.value = !1;
|
|
67
|
-
const f = u;
|
|
68
|
-
r = ee, u = ee, f(w());
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
isPending: Ve(v)
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function bt(e, c = 200, a = {}) {
|
|
75
|
-
return gt(mt(c, a), e);
|
|
76
|
-
}
|
|
77
|
-
const yt = pt ? window : void 0;
|
|
78
|
-
function Ae(e) {
|
|
79
|
-
var c;
|
|
80
|
-
const a = re(e);
|
|
81
|
-
return (c = a?.$el) !== null && c !== void 0 ? c : a;
|
|
82
|
-
}
|
|
83
|
-
// @__NO_SIDE_EFFECTS__
|
|
84
|
-
function kt() {
|
|
85
|
-
const e = De(!1), c = Ge();
|
|
86
|
-
return c && we(() => {
|
|
87
|
-
e.value = !0;
|
|
88
|
-
}, c), e;
|
|
89
|
-
}
|
|
90
|
-
// @__NO_SIDE_EFFECTS__
|
|
91
|
-
function wt(e) {
|
|
92
|
-
const c = /* @__PURE__ */ kt();
|
|
93
|
-
return C(() => (c.value, !!e()));
|
|
94
|
-
}
|
|
95
|
-
function He(e, c, a = {}) {
|
|
96
|
-
const { window: n = yt, ...r } = a;
|
|
97
|
-
let u;
|
|
98
|
-
const v = /* @__PURE__ */ wt(() => n && "ResizeObserver" in n), i = () => {
|
|
99
|
-
u && (u.disconnect(), u = void 0);
|
|
100
|
-
}, w = he(C(() => {
|
|
101
|
-
const f = re(e);
|
|
102
|
-
return Array.isArray(f) ? f.map((p) => Ae(p)) : [Ae(f)];
|
|
103
|
-
}), (f) => {
|
|
104
|
-
if (i(), v.value && n) {
|
|
105
|
-
u = new ResizeObserver(c);
|
|
106
|
-
for (const p of f) p && u.observe(p, r);
|
|
107
|
-
}
|
|
108
|
-
}, {
|
|
109
|
-
immediate: !0,
|
|
110
|
-
flush: "post"
|
|
111
|
-
}), T = () => {
|
|
112
|
-
i(), w();
|
|
113
|
-
};
|
|
114
|
-
return ft(T), {
|
|
115
|
-
isSupported: v,
|
|
116
|
-
stop: T
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
const Tt = {
|
|
120
|
-
ref: "page-layout-tabs",
|
|
121
|
-
class: "page-layout-tabs",
|
|
122
|
-
"data-testid": "page-layout-tabs"
|
|
123
|
-
}, _t = { key: 0 }, $t = ["aria-label"], Ct = {
|
|
124
|
-
key: 0,
|
|
125
|
-
class: "layout-loader-container"
|
|
126
|
-
}, It = /* @__PURE__ */ fe({
|
|
127
|
-
__name: "PageLayoutTabs",
|
|
128
|
-
props: {
|
|
129
|
-
tabs: { default: () => [] }
|
|
130
|
-
},
|
|
131
|
-
setup(e) {
|
|
132
|
-
const { i18n: { t: c } } = Te.useI18n(), a = Be(), n = le("app:navigateTo", null), r = (g) => {
|
|
133
|
-
if (typeof g.to != "string") {
|
|
134
|
-
a.push(g.to);
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
if (typeof n != "function") {
|
|
138
|
-
window.location.href = g.to;
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
n(g.to);
|
|
142
|
-
}, u = 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
|
-
if (!u.value || !v.value)
|
|
144
|
-
return;
|
|
145
|
-
w.value = !1, i.value = e.tabs.length, await ye();
|
|
146
|
-
const g = u.value?.getBoundingClientRect().width - parseInt(ze) * 2;
|
|
147
|
-
let H = v.value?.getBoundingClientRect().width;
|
|
148
|
-
if (!g || !H) {
|
|
149
|
-
w.value = !0;
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
const P = 50;
|
|
153
|
-
for (; H + P > g && i.value > 1; )
|
|
154
|
-
i.value--, await ye(), H = v.value?.getBoundingClientRect().width || 0;
|
|
155
|
-
w.value = !0;
|
|
156
|
-
};
|
|
157
|
-
let E = null;
|
|
158
|
-
const S = () => {
|
|
159
|
-
E && clearTimeout(E), E = setTimeout(() => {
|
|
160
|
-
p();
|
|
161
|
-
}, 150);
|
|
162
|
-
};
|
|
163
|
-
return we(() => {
|
|
164
|
-
p(), He(u, S);
|
|
165
|
-
}), Pe(() => {
|
|
166
|
-
E && clearTimeout(E);
|
|
167
|
-
}), he(() => e.tabs, () => {
|
|
168
|
-
p();
|
|
169
|
-
}, { deep: !0 }), (g, H) => {
|
|
170
|
-
const P = R("KDropdownItem"), x = R("KDropdown"), Z = R("KSkeletonBox");
|
|
171
|
-
return s(), d("nav", Tt, [
|
|
172
|
-
b("ul", {
|
|
173
|
-
ref: "page-layout-tabs-list",
|
|
174
|
-
class: q({ "layout-computing": !w.value })
|
|
175
|
-
}, [
|
|
176
|
-
(s(!0), d(Y, null, W(T.value, (l) => (s(), d("li", {
|
|
177
|
-
key: `${l.key}-tab`
|
|
178
|
-
}, [
|
|
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
|
-
"aria-current": l.active ? "page" : void 0,
|
|
181
|
-
class: ["tab-link", { active: l.active }],
|
|
182
|
-
"data-testid": l.dataTestId ? l.dataTestId : `page-layout-tab-${l.key}`,
|
|
183
|
-
tabindex: "0",
|
|
184
|
-
onClick: ve((F) => r(l), ["prevent"]),
|
|
185
|
-
onKeydown: Ne(ve((F) => r(l), ["prevent"]), ["enter"])
|
|
186
|
-
}), {
|
|
187
|
-
default: I(() => [
|
|
188
|
-
A(g.$slots, `tab-${l.key}`, { tab: l }, () => [
|
|
189
|
-
te(O(l.label), 1)
|
|
190
|
-
], !0)
|
|
191
|
-
]),
|
|
192
|
-
_: 2
|
|
193
|
-
}, 1040, ["aria-current", "class", "data-testid", "onClick", "onKeydown"]))
|
|
194
|
-
]))), 128)),
|
|
195
|
-
e.tabs.length > i.value ? (s(), d("li", _t, [
|
|
196
|
-
z(x, { "kpop-attributes": {
|
|
197
|
-
placement: "bottom-end",
|
|
198
|
-
popoverElementAttributes: { "data-testid": "tabs-overflow-dropdown-popover" }
|
|
199
|
-
} }, {
|
|
200
|
-
items: I(() => [
|
|
201
|
-
(s(!0), d(Y, null, W(f.value, (l) => (s(), L(P, {
|
|
202
|
-
key: `${l.key}-dropdown-item`,
|
|
203
|
-
"aria-current": l.active ? "page" : void 0,
|
|
204
|
-
"data-testid": l.dataTestId ? l.dataTestId : `page-layout-tab-${l.key}`,
|
|
205
|
-
item: {
|
|
206
|
-
label: l.label,
|
|
207
|
-
value: l.key,
|
|
208
|
-
to: l.to
|
|
209
|
-
},
|
|
210
|
-
selected: l.active
|
|
211
|
-
}, {
|
|
212
|
-
default: I(() => [
|
|
213
|
-
A(g.$slots, `tab-${l.key}`, { tab: l }, () => [
|
|
214
|
-
te(O(l.label), 1)
|
|
215
|
-
], !0)
|
|
216
|
-
]),
|
|
217
|
-
_: 2
|
|
218
|
-
}, 1032, ["aria-current", "data-testid", "item", "selected"]))), 128))
|
|
219
|
-
]),
|
|
220
|
-
default: I(() => [
|
|
221
|
-
b("button", {
|
|
222
|
-
"aria-label": h(c)("tabs.more_button.aria_label"),
|
|
223
|
-
class: q(["tab-link", { active: f.value.find((l) => l.active) }]),
|
|
224
|
-
"data-testid": "tabs-overflow-dropdown-button"
|
|
225
|
-
}, [
|
|
226
|
-
te(O(h(c)("tabs.more_button.label")) + " ", 1),
|
|
227
|
-
z(h(Oe), {
|
|
228
|
-
decorative: "",
|
|
229
|
-
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
230
|
-
}, null, 8, ["size"])
|
|
231
|
-
], 10, $t)
|
|
232
|
-
]),
|
|
233
|
-
_: 3
|
|
234
|
-
})
|
|
235
|
-
])) : y("", !0)
|
|
236
|
-
], 2),
|
|
237
|
-
w.value ? y("", !0) : (s(), d("div", Ct, [
|
|
238
|
-
(s(), d(Y, null, W(3, (l) => z(Z, {
|
|
239
|
-
key: `layout-loader-${l}`,
|
|
240
|
-
height: "1",
|
|
241
|
-
width: "5"
|
|
242
|
-
})), 64))
|
|
243
|
-
]))
|
|
244
|
-
], 512);
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
}), pe = (e, c) => {
|
|
248
|
-
const a = e.__vccOpts || e;
|
|
249
|
-
for (const [n, r] of c)
|
|
250
|
-
a[n] = r;
|
|
251
|
-
return a;
|
|
252
|
-
}, Et = /* @__PURE__ */ pe(It, [["__scopeId", "data-v-02891bc1"]]), At = ["aria-label", "data-fit"], St = {
|
|
253
|
-
key: 0,
|
|
254
|
-
"aria-hidden": "true",
|
|
255
|
-
class: "anchor-ellipsis",
|
|
256
|
-
"data-testid": "anchor-navigation-leading-ellipsis"
|
|
257
|
-
}, Lt = ["aria-current", "data-testid", "title", "onClick"], Rt = {
|
|
258
|
-
key: 1,
|
|
259
|
-
"aria-hidden": "true",
|
|
260
|
-
class: "anchor-ellipsis",
|
|
261
|
-
"data-testid": "anchor-navigation-trailing-ellipsis"
|
|
262
|
-
}, Dt = { key: 2 }, Se = 140, Le = 22, me = 16, se = "data-anchor-attention", Pt = 1200, Kt = 1600, Nt = /* @__PURE__ */ fe({
|
|
263
|
-
__name: "PageLayoutAnchorNavigation",
|
|
264
|
-
props: {
|
|
265
|
-
anchors: { default: () => [] }
|
|
266
|
-
},
|
|
267
|
-
setup(e) {
|
|
268
|
-
const { i18n: { t: c } } = Te.useI18n(), a = de("page-layout-anchor-navigation"), n = de("page-layout-anchor-navigation-list"), r = M("all"), u = 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 === u.value);
|
|
270
|
-
return t === -1 ? 0 : t;
|
|
271
|
-
}), T = C(() => {
|
|
272
|
-
const t = i.value, o = t.length, m = w.value;
|
|
273
|
-
if (r.value === "all")
|
|
274
|
-
return { anchors: t, hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !1 };
|
|
275
|
-
if (r.value === "hidden")
|
|
276
|
-
return { anchors: [], hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !1 };
|
|
277
|
-
if (r.value === "active-only")
|
|
278
|
-
return { anchors: t.slice(m, m + 1), hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !0 };
|
|
279
|
-
const _ = r.value === "window-3" ? 3 : 2;
|
|
280
|
-
if (o <= _)
|
|
281
|
-
return { anchors: t, hasLeadingEllipsis: !1, hasTrailingEllipsis: !1, hasOverflowDropdown: !0 };
|
|
282
|
-
const N = m < _ ? 0 : m >= o - _ ? o - _ : m - 1;
|
|
283
|
-
return {
|
|
284
|
-
anchors: t.slice(N, N + _),
|
|
285
|
-
hasLeadingEllipsis: N > 0,
|
|
286
|
-
hasTrailingEllipsis: N + _ < o,
|
|
287
|
-
hasOverflowDropdown: !0
|
|
288
|
-
};
|
|
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
|
-
if (o === "auto" || o === "scroll" || o === "overlay")
|
|
294
|
-
return t;
|
|
295
|
-
t = t.parentElement;
|
|
296
|
-
}
|
|
297
|
-
return null;
|
|
298
|
-
}, S = (t) => {
|
|
299
|
-
if (t.element)
|
|
300
|
-
return t.element.isConnected ? t.element : null;
|
|
301
|
-
const o = p.value ?? document;
|
|
302
|
-
try {
|
|
303
|
-
return o.querySelector(t.id) ?? o.querySelector(`#${CSS.escape(t.id)}`);
|
|
304
|
-
} catch {
|
|
305
|
-
return null;
|
|
306
|
-
}
|
|
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
|
-
let l = 0;
|
|
309
|
-
const F = async () => {
|
|
310
|
-
if (!i.value.length) {
|
|
311
|
-
r.value = "hidden";
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
|
-
const t = ++l;
|
|
315
|
-
if (r.value = "all", await ye(), t !== l || !a.value || !n.value)
|
|
316
|
-
return;
|
|
317
|
-
const o = a.value.getBoundingClientRect().width, m = n.value.getBoundingClientRect().width;
|
|
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
|
-
};
|
|
320
|
-
let V = null;
|
|
321
|
-
He(a, () => {
|
|
322
|
-
V && clearTimeout(V), V = setTimeout(() => {
|
|
323
|
-
ie(), F();
|
|
324
|
-
}, 150);
|
|
325
|
-
});
|
|
326
|
-
let J = null, X = null, U = 0, ce = 0, j = null, oe = null;
|
|
327
|
-
const _e = (t) => {
|
|
328
|
-
const o = String(++U);
|
|
329
|
-
$e(), oe = t, t.removeAttribute(se), ce = requestAnimationFrame(() => {
|
|
330
|
-
t.setAttribute(se, o), j = setTimeout(() => {
|
|
331
|
-
t.getAttribute(se) === o && t.removeAttribute(se);
|
|
332
|
-
}, Pt);
|
|
333
|
-
});
|
|
334
|
-
}, $e = () => {
|
|
335
|
-
cancelAnimationFrame(ce), 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;
|
|
348
|
-
return {
|
|
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
|
|
353
|
-
};
|
|
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) {
|
|
358
|
-
const Q = S(B);
|
|
359
|
-
Q && ($.push(B.id), G = B.id, k ??= B.id, Q.getBoundingClientRect().top - t <= (B.offset ?? N) + 8 && (k = B.id));
|
|
360
|
-
}
|
|
361
|
-
const ue = $.length !== v.value.length || $.some((B, Q) => B !== v.value[Q]);
|
|
362
|
-
return ue && (v.value = $), J || (G && o > 0 && o + m >= _ - 2 && (k = G), u.value = k ?? ""), ue;
|
|
363
|
-
};
|
|
364
|
-
let ge = !1;
|
|
365
|
-
const Ie = () => {
|
|
366
|
-
ge || (ge = !0, requestAnimationFrame(() => {
|
|
367
|
-
ge = !1, ie() && F();
|
|
368
|
-
}));
|
|
369
|
-
}, xe = (t) => {
|
|
370
|
-
const o = ne();
|
|
371
|
-
let m = !1;
|
|
372
|
-
const _ = () => {
|
|
373
|
-
m || (m = !0, o.removeEventListener("scrollend", _), t());
|
|
374
|
-
};
|
|
375
|
-
o.addEventListener("scrollend", _, { once: !0 }), window.setTimeout(_, Kt);
|
|
376
|
-
}, Ee = (t) => {
|
|
377
|
-
const o = S(t);
|
|
378
|
-
if (!o)
|
|
379
|
-
return;
|
|
380
|
-
u.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, ue = Math.min(Math.max(G, 0), Math.max($ - N, 0)), B = Math.abs(ue - _) >= 2, Q = ++U;
|
|
382
|
-
if ((k ?? window).scrollTo({ behavior: "smooth", top: G }), !B) {
|
|
383
|
-
_e(o);
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
xe(() => {
|
|
387
|
-
Q === U && _e(o);
|
|
388
|
-
});
|
|
389
|
-
}, We = (t, o) => {
|
|
390
|
-
o(), Ee(t);
|
|
391
|
-
};
|
|
392
|
-
return we(() => {
|
|
393
|
-
p.value = E(), ne().addEventListener("scroll", Ie, { passive: !0 }), ie(), F(), requestAnimationFrame(() => {
|
|
394
|
-
ie(), F();
|
|
395
|
-
});
|
|
396
|
-
}), Pe(() => {
|
|
397
|
-
ne().removeEventListener("scroll", Ie), D(), U++, $e(), V && clearTimeout(V);
|
|
398
|
-
}), he(() => e.anchors, () => {
|
|
399
|
-
e.anchors.some((t) => t.id === u.value) || (u.value = ""), ie(), F();
|
|
400
|
-
}, { deep: !0 }), (t, o) => {
|
|
401
|
-
const m = R("KButton"), _ = R("KDropdownItem"), N = R("KDropdown");
|
|
402
|
-
return s(), d("nav", {
|
|
403
|
-
ref: "page-layout-anchor-navigation",
|
|
404
|
-
"aria-label": h(c)("anchor_navigation.aria_label"),
|
|
405
|
-
class: "page-layout-anchor-navigation",
|
|
406
|
-
"data-fit": r.value,
|
|
407
|
-
"data-testid": "page-layout-anchor-navigation"
|
|
408
|
-
}, [
|
|
409
|
-
b("ul", {
|
|
410
|
-
ref: "page-layout-anchor-navigation-list",
|
|
411
|
-
class: q({ "layout-hidden": r.value === "hidden" })
|
|
412
|
-
}, [
|
|
413
|
-
T.value.hasLeadingEllipsis ? (s(), d("li", St, " … ")) : y("", !0),
|
|
414
|
-
(s(!0), d(Y, null, W(T.value.anchors, ($) => (s(), d("li", {
|
|
415
|
-
key: `${$.id}-anchor`
|
|
416
|
-
}, [
|
|
417
|
-
b("button", {
|
|
418
|
-
"aria-current": $.id === u.value ? "location" : void 0,
|
|
419
|
-
class: q(["anchor-link", { active: $.id === u.value }]),
|
|
420
|
-
"data-testid": f($),
|
|
421
|
-
title: $.label,
|
|
422
|
-
type: "button",
|
|
423
|
-
onClick: (k) => Ee($)
|
|
424
|
-
}, O($.label), 11, Lt)
|
|
425
|
-
]))), 128)),
|
|
426
|
-
T.value.hasTrailingEllipsis ? (s(), d("li", Rt, " … ")) : y("", !0),
|
|
427
|
-
T.value.hasOverflowDropdown ? (s(), d("li", Dt, [
|
|
428
|
-
z(N, { "kpop-attributes": {
|
|
429
|
-
placement: "bottom-end",
|
|
430
|
-
popoverElementAttributes: { "data-testid": "anchor-navigation-overflow-dropdown-popover" }
|
|
431
|
-
} }, {
|
|
432
|
-
items: I(({ closeDropdown: $ }) => [
|
|
433
|
-
(s(!0), d(Y, null, W(i.value, (k) => (s(), L(_, {
|
|
434
|
-
key: `${k.id}-dropdown-item`,
|
|
435
|
-
"aria-current": k.id === u.value ? "location" : void 0,
|
|
436
|
-
"data-testid": f(k),
|
|
437
|
-
selected: k.id === u.value,
|
|
438
|
-
onClick: (G) => We(k, $)
|
|
439
|
-
}, {
|
|
440
|
-
default: I(() => [
|
|
441
|
-
te(O(k.label), 1)
|
|
442
|
-
]),
|
|
443
|
-
_: 2
|
|
444
|
-
}, 1032, ["aria-current", "data-testid", "selected", "onClick"]))), 128))
|
|
445
|
-
]),
|
|
446
|
-
default: I(() => [
|
|
447
|
-
z(m, {
|
|
448
|
-
appearance: "tertiary",
|
|
449
|
-
"aria-label": h(c)("anchor_navigation.more_button.aria_label"),
|
|
450
|
-
class: "anchor-overflow-button",
|
|
451
|
-
"data-testid": "anchor-navigation-overflow-dropdown-button",
|
|
452
|
-
icon: "",
|
|
453
|
-
size: "small"
|
|
454
|
-
}, {
|
|
455
|
-
default: I(() => [
|
|
456
|
-
z(h(Oe), {
|
|
457
|
-
decorative: "",
|
|
458
|
-
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
459
|
-
}, null, 8, ["size"])
|
|
460
|
-
]),
|
|
461
|
-
_: 1
|
|
462
|
-
}, 8, ["aria-label"])
|
|
463
|
-
]),
|
|
464
|
-
_: 1
|
|
465
|
-
})
|
|
466
|
-
])) : y("", !0)
|
|
467
|
-
], 2)
|
|
468
|
-
], 8, At);
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
}), Bt = /* @__PURE__ */ pe(Nt, [["__scopeId", "data-v-2f18cb71"]]), Re = /* @__PURE__ */ Symbol("nested-page-layout-detection"), Ot = "page-layout:new-appearance", zt = {
|
|
472
|
-
key: 0,
|
|
473
|
-
class: "page-layout-header",
|
|
474
|
-
"data-testid": "page-layout-header"
|
|
475
|
-
}, Ht = { class: "page-header-container" }, Ft = { class: "page-header-start" }, Mt = { class: "title-container" }, xt = {
|
|
476
|
-
key: 1,
|
|
477
|
-
class: "page-layout-title-wrapper"
|
|
478
|
-
}, Wt = {
|
|
479
|
-
class: "page-layout-title",
|
|
480
|
-
"data-testid": "page-layout-title"
|
|
481
|
-
}, Vt = ["aria-label"], Ut = {
|
|
482
|
-
key: 3,
|
|
483
|
-
class: "title-after-container"
|
|
484
|
-
}, jt = { class: "page-header-actions-container" }, Gt = {
|
|
485
|
-
key: 0,
|
|
486
|
-
class: "page-layout-aside-container",
|
|
487
|
-
"data-testid": "page-layout-aside"
|
|
488
|
-
}, qt = { class: "page-layout-content" }, Yt = /* @__PURE__ */ fe({
|
|
489
|
-
__name: "PageLayout",
|
|
490
|
-
props: {
|
|
491
|
-
breadcrumbs: { default: () => [] },
|
|
492
|
-
title: {},
|
|
493
|
-
backTo: {},
|
|
494
|
-
tabs: { default: () => [] },
|
|
495
|
-
anchors: { default: () => [] },
|
|
496
|
-
pageShortcutData: {}
|
|
497
|
-
},
|
|
498
|
-
setup(e) {
|
|
499
|
-
const c = le("app:navigateTo", null), a = le(Ot, null), n = le("app:pageShortcutsContext", null), { i18n: { t: r } } = Te.useI18n(), u = 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
|
-
u.push(e.backTo);
|
|
503
|
-
return;
|
|
504
|
-
}
|
|
505
|
-
if (typeof c != "function") {
|
|
506
|
-
window.location.href = e.backTo;
|
|
507
|
-
return;
|
|
508
|
-
}
|
|
509
|
-
await c(e.backTo);
|
|
510
|
-
}
|
|
511
|
-
}, P = M(0), x = C(() => P.value > 0);
|
|
512
|
-
qe(Re, () => (P.value++, () => {
|
|
513
|
-
P.value--;
|
|
514
|
-
}));
|
|
515
|
-
const Z = le(Re, null), l = M(null);
|
|
516
|
-
typeof Z == "function" && (l.value = Z());
|
|
517
|
-
const F = () => {
|
|
518
|
-
n.onFavoriteToggle({ ...e.pageShortcutData, path: e.pageShortcutData?.path || v.fullPath });
|
|
519
|
-
};
|
|
520
|
-
Ye(() => {
|
|
521
|
-
l.value?.();
|
|
522
|
-
});
|
|
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++);
|
|
525
|
-
}, 500);
|
|
526
|
-
return he([() => e.pageShortcutData, () => v?.fullPath], () => {
|
|
527
|
-
V();
|
|
528
|
-
}, { immediate: !0, deep: !0 }), (K, J) => {
|
|
529
|
-
const X = R("KBreadcrumbs"), U = R("KTooltip"), ce = R("router-view");
|
|
530
|
-
return s(), d("div", {
|
|
531
|
-
class: q(["kong-ui-public-page-layout", { "new-appearance": T.value }]),
|
|
532
|
-
"data-testid": "kong-ui-public-page-layout"
|
|
533
|
-
}, [
|
|
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, {
|
|
538
|
-
key: 0,
|
|
539
|
-
class: "header-breadcrumbs",
|
|
540
|
-
"data-testid": "page-layout-breadcrumbs",
|
|
541
|
-
"item-max-width": "25ch",
|
|
542
|
-
items: e.breadcrumbs
|
|
543
|
-
}, ke({ _: 2 }, [
|
|
544
|
-
T.value ? {
|
|
545
|
-
name: "divider",
|
|
546
|
-
fn: I(() => [
|
|
547
|
-
z(h(tt), {
|
|
548
|
-
decorative: "",
|
|
549
|
-
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
550
|
-
}, null, 8, ["size"])
|
|
551
|
-
]),
|
|
552
|
-
key: "0"
|
|
553
|
-
} : void 0
|
|
554
|
-
]), 1032, ["items"])) : y("", !0),
|
|
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 }, {
|
|
557
|
-
"aria-label": h(r)("back_button"),
|
|
558
|
-
class: "navigate-back",
|
|
559
|
-
"data-testid": "page-layout-navigate-back",
|
|
560
|
-
tabindex: "0",
|
|
561
|
-
onClick: ve(H, ["prevent"]),
|
|
562
|
-
onKeydown: Ne(ve(H, ["prevent"]), ["enter"])
|
|
563
|
-
}), {
|
|
564
|
-
default: I(() => [
|
|
565
|
-
z(h(at), {
|
|
566
|
-
decorative: "",
|
|
567
|
-
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
568
|
-
}, null, 8, ["size"])
|
|
569
|
-
]),
|
|
570
|
-
_: 1
|
|
571
|
-
}, 16, ["aria-label", "onKeydown"])) : y("", !0),
|
|
572
|
-
e.title || K.$slots.title ? (s(), d("span", xt, [
|
|
573
|
-
A(K.$slots, "title", {}, () => [
|
|
574
|
-
b("h1", Wt, O(e.title), 1)
|
|
575
|
-
], !0)
|
|
576
|
-
])) : y("", !0),
|
|
577
|
-
E.value ? (s(), d("div", {
|
|
578
|
-
key: S.value,
|
|
579
|
-
class: "favorite-button-container"
|
|
580
|
-
}, [
|
|
581
|
-
z(U, {
|
|
582
|
-
placement: "right",
|
|
583
|
-
text: g.value ? h(r)("favorite_button.remove_shortcut") : h(r)("favorite_button.save_shortcut")
|
|
584
|
-
}, {
|
|
585
|
-
default: I(() => [
|
|
586
|
-
b("button", {
|
|
587
|
-
"aria-label": g.value ? h(r)("favorite_button.remove_shortcut") : h(r)("favorite_button.save_shortcut"),
|
|
588
|
-
class: q(["favorite-button", { active: g.value }]),
|
|
589
|
-
"data-testid": "page-layout-favorite-button",
|
|
590
|
-
type: "button",
|
|
591
|
-
onClick: F
|
|
592
|
-
}, [
|
|
593
|
-
(s(), L(be(g.value ? h(ot) : h(nt)), {
|
|
594
|
-
decorative: "",
|
|
595
|
-
size: `var(--kui-icon-size-30, ${h(ae)})`
|
|
596
|
-
}, null, 8, ["size"]))
|
|
597
|
-
], 10, Vt)
|
|
598
|
-
]),
|
|
599
|
-
_: 1
|
|
600
|
-
}, 8, ["text"])
|
|
601
|
-
])) : y("", !0),
|
|
602
|
-
K.$slots["title-after"] ? (s(), d("div", Ut, [
|
|
603
|
-
A(K.$slots, "title-after", {}, void 0, !0)
|
|
604
|
-
])) : y("", !0)
|
|
605
|
-
])
|
|
606
|
-
]),
|
|
607
|
-
f.value ? (s(), L(Bt, {
|
|
608
|
-
key: 0,
|
|
609
|
-
anchors: e.anchors
|
|
610
|
-
}, null, 8, ["anchors"])) : y("", !0),
|
|
611
|
-
b("div", jt, [
|
|
612
|
-
A(K.$slots, "actions", {}, void 0, !0),
|
|
613
|
-
J[0] || (J[0] = b("div", { "data-teleport-target": "ask-kai" }, null, -1))
|
|
614
|
-
])
|
|
615
|
-
]),
|
|
616
|
-
i.value ? (s(), L(Et, {
|
|
617
|
-
key: 0,
|
|
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)
|
|
624
|
-
])
|
|
625
|
-
}))
|
|
626
|
-
]), 1032, ["tabs"])) : y("", !0)
|
|
627
|
-
])),
|
|
628
|
-
b("div", {
|
|
629
|
-
class: q(["page-layout-content-container", { "has-nested-page-layout": x.value }])
|
|
630
|
-
}, [
|
|
631
|
-
T.value && K.$slots.aside ? (s(), d("div", Gt, [
|
|
632
|
-
A(K.$slots, "aside", {}, void 0, !0)
|
|
633
|
-
])) : y("", !0),
|
|
634
|
-
b("div", qt, [
|
|
635
|
-
i.value ? (s(), L(ce, { key: 0 })) : A(K.$slots, "default", {}, void 0, !0, 1)
|
|
636
|
-
])
|
|
637
|
-
], 2)
|
|
638
|
-
], 2);
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
}), da = /* @__PURE__ */ pe(Yt, [["__scopeId", "data-v-c4632fca"]]), Zt = {
|
|
642
|
-
key: 0,
|
|
643
|
-
class: "about-card-description",
|
|
644
|
-
"data-testid": "about-card-description"
|
|
645
|
-
}, Jt = {
|
|
646
|
-
key: 1,
|
|
647
|
-
class: "about-card-skeleton",
|
|
648
|
-
"data-testid": "about-card-skeleton"
|
|
649
|
-
}, Xt = {
|
|
650
|
-
key: 2,
|
|
651
|
-
class: "about-card-rows",
|
|
652
|
-
"data-testid": "about-card-rows"
|
|
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 = {
|
|
654
|
-
key: 3,
|
|
655
|
-
class: "about-card-content",
|
|
656
|
-
"data-testid": "about-card-content"
|
|
657
|
-
}, sa = /* @__PURE__ */ fe({
|
|
658
|
-
__name: "AboutCard",
|
|
659
|
-
props: {
|
|
660
|
-
title: { default: "" },
|
|
661
|
-
titleTag: { default: "h2" },
|
|
662
|
-
description: { default: "" },
|
|
663
|
-
rows: { default: () => [] },
|
|
664
|
-
isLoading: { type: Boolean, default: !1 }
|
|
665
|
-
},
|
|
666
|
-
setup(e) {
|
|
667
|
-
const c = C(() => e.rows.length || 4);
|
|
668
|
-
return (a, n) => {
|
|
669
|
-
const r = R("KSkeletonBox"), u = R("KTooltip"), v = R("KCard");
|
|
670
|
-
return s(), L(v, {
|
|
671
|
-
class: "kong-ui-public-about-card",
|
|
672
|
-
title: e.title,
|
|
673
|
-
"title-tag": e.titleTag
|
|
674
|
-
}, ke({
|
|
675
|
-
default: I(() => [
|
|
676
|
-
a.$slots.description || e.description ? (s(), d("p", Zt, [
|
|
677
|
-
A(a.$slots, "description", {}, () => [
|
|
678
|
-
te(O(e.description), 1)
|
|
679
|
-
], !0)
|
|
680
|
-
])) : y("", !0),
|
|
681
|
-
e.isLoading ? (s(), d("div", Jt, [
|
|
682
|
-
(s(!0), d(Y, null, W(c.value, (i) => (s(), L(r, {
|
|
683
|
-
key: i,
|
|
684
|
-
height: "2",
|
|
685
|
-
width: "100"
|
|
686
|
-
}))), 128))
|
|
687
|
-
])) : e.rows.length ? (s(), d("dl", Xt, [
|
|
688
|
-
(s(!0), d(Y, null, W(e.rows, (i) => (s(), d("div", {
|
|
689
|
-
key: i.key,
|
|
690
|
-
class: "about-card-row",
|
|
691
|
-
"data-testid": `about-card-row-${i.key}`
|
|
692
|
-
}, [
|
|
693
|
-
b("dt", ea, [
|
|
694
|
-
A(a.$slots, `label-${i.key}`, { row: i }, () => [
|
|
695
|
-
b("span", ta, O(i.label), 1)
|
|
696
|
-
], !0),
|
|
697
|
-
i.tooltip ? (s(), L(u, {
|
|
698
|
-
key: 0,
|
|
699
|
-
text: i.tooltip
|
|
700
|
-
}, {
|
|
701
|
-
default: I(() => [
|
|
702
|
-
b("button", {
|
|
703
|
-
"aria-label": i.tooltip,
|
|
704
|
-
class: "about-card-row-tooltip-trigger",
|
|
705
|
-
"data-testid": `about-card-row-${i.key}-tooltip`,
|
|
706
|
-
type: "button"
|
|
707
|
-
}, [
|
|
708
|
-
z(h(it), {
|
|
709
|
-
size: `var(--kui-icon-size-20, ${h(vt)})`
|
|
710
|
-
}, null, 8, ["size"])
|
|
711
|
-
], 8, aa)
|
|
712
|
-
]),
|
|
713
|
-
_: 2
|
|
714
|
-
}, 1032, ["text"])) : y("", !0)
|
|
715
|
-
]),
|
|
716
|
-
b("dd", oa, [
|
|
717
|
-
A(a.$slots, `row-${i.key}`, { row: i }, () => [
|
|
718
|
-
b("span", na, O(i.value), 1)
|
|
719
|
-
], !0)
|
|
720
|
-
])
|
|
721
|
-
], 8, Qt))), 128))
|
|
722
|
-
])) : y("", !0),
|
|
723
|
-
a.$slots.default ? (s(), d("div", ia, [
|
|
724
|
-
A(a.$slots, "default", {}, void 0, !0)
|
|
725
|
-
])) : y("", !0)
|
|
726
|
-
]),
|
|
727
|
-
_: 2
|
|
728
|
-
}, [
|
|
729
|
-
a.$slots.title || e.title ? {
|
|
730
|
-
name: "title",
|
|
731
|
-
fn: I(() => [
|
|
732
|
-
A(a.$slots, "title", {}, () => [
|
|
733
|
-
te(O(e.title), 1)
|
|
734
|
-
], !0)
|
|
735
|
-
]),
|
|
736
|
-
key: "0"
|
|
737
|
-
} : void 0,
|
|
738
|
-
a.$slots.actions ? {
|
|
739
|
-
name: "actions",
|
|
740
|
-
fn: I(() => [
|
|
741
|
-
A(a.$slots, "actions", {}, void 0, !0)
|
|
742
|
-
]),
|
|
743
|
-
key: "1"
|
|
744
|
-
} : void 0
|
|
745
|
-
]), 1032, ["title", "title-tag"]);
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
}), va = /* @__PURE__ */ pe(sa, [["__scopeId", "data-v-3ecdd6e6"]]);
|
|
749
|
-
export {
|
|
750
|
-
va as AboutCard,
|
|
751
|
-
Ot as NEW_APPEARANCE_INJECTION_KEY,
|
|
752
|
-
da as PageLayout
|
|
753
|
-
};
|
package/dist/page-layout.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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-c4632fca"]]),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-3ecdd6e6"]]);B.AboutCard=re,B.NEW_APPEARANCE_INJECTION_KEY=rt,B.PageLayout=Jt,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
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-c4632fca]{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-c4632fca]{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-c4632fca]{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-c4632fca]{min-width:0}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-c4632fca] .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-c4632fca] .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-c4632fca]{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-c4632fca],.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-c4632fca]{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-c4632fca]:hover,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-c4632fca]: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-c4632fca]:focus-visible,.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .favorite-button[data-v-c4632fca]: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-c4632fca]{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-c4632fca]>*{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-c4632fca]{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-c4632fca]{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-c4632fca]: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-c4632fca]{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-c4632fca]{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-c4632fca]{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-c4632fca]{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-c4632fca]{position:sticky;top:0;z-index:3}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container[data-v-c4632fca]{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-c4632fca]{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-c4632fca]{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-c4632fca]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:16px;line-height:var(--kui-line-height-20, 16px);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-c4632fca]>*{font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);max-width:40ch}.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-c4632fca],.kong-ui-public-page-layout.new-appearance .page-layout-header .page-header-container .page-header-start .title-after-container[data-v-c4632fca]{flex-shrink:0}.kong-ui-public-page-layout.new-appearance .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-c4632fca]{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-c4632fca]{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-c4632fca]{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-c4632fca]{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-c4632fca]{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-c4632fca]{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-c4632fca]{flex-shrink:0;width:400px}}.kong-ui-public-page-layout[data-v-c4632fca] [data-anchor-attention]{animation:anchor-attention-c4632fca 1s cubic-bezier(.2,0,0,1) both;animation:anchor-attention-c4632fca 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-c4632fca] [data-anchor-attention]{animation-name:anchor-attention-still-c4632fca}}@keyframes anchor-attention-c4632fca{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-c4632fca{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-3ecdd6e6]{container-type:inline-size}.kong-ui-public-about-card .about-card-description[data-v-3ecdd6e6]{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-3ecdd6e6]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-about-card .about-card-rows[data-v-3ecdd6e6]{display:flex;flex-direction:column;margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row[data-v-3ecdd6e6]{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-3ecdd6e6]: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-3ecdd6e6]:first-child{padding-top:0;padding-top:var(--kui-space-0, 0px)}.kong-ui-public-about-card .about-card-row-label[data-v-3ecdd6e6]{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-3ecdd6e6]{-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-3ecdd6e6]{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-3ecdd6e6]{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-3ecdd6e6]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}@container (max-width: 320px){.kong-ui-public-about-card .about-card-row[data-v-3ecdd6e6]{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-3ecdd6e6]{width:auto}}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AboutCardProps, AboutCardSlots } from '../types';
|
|
2
|
-
type __VLS_Slots = AboutCardSlots;
|
|
3
|
-
declare const __VLS_base: import("vue").DefineComponent<AboutCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AboutCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
-
declare const _default: typeof __VLS_export;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
-
new (): {
|
|
9
|
-
$slots: S;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=AboutCard.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AboutCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AboutCard.vue"],"names":[],"mappings":"AA4OA,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,12 +0,0 @@
|
|
|
1
|
-
import type { PageLayoutProps, PageLayoutSlots } from '../types';
|
|
2
|
-
type __VLS_Slots = PageLayoutSlots;
|
|
3
|
-
declare const __VLS_base: import("vue").DefineComponent<PageLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
-
declare const _default: typeof __VLS_export;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
-
new (): {
|
|
9
|
-
$slots: S;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=PageLayout.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayout.vue"],"names":[],"mappings":"AA8kBA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAoB,MAAM,UAAU,CAAA;AAqBlF,KAAK,WAAW,GAAG,eAAe,CAAC;AAgcnC,QAAA,MAAM,UAAU,0SAEd,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,5 +0,0 @@
|
|
|
1
|
-
import type { PageLayoutAnchorNavigationProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<PageLayoutAnchorNavigationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLayoutAnchorNavigationProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
-
declare const _default: typeof __VLS_export;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=PageLayoutAnchorNavigation.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { PageLayoutTabsProps, PageLayoutTab } from '../types';
|
|
2
|
-
declare var __VLS_11: `tab-${string}`, __VLS_12: {
|
|
3
|
-
tab: PageLayoutTab;
|
|
4
|
-
}, __VLS_33: `tab-${string}`, __VLS_34: {
|
|
5
|
-
tab: PageLayoutTab;
|
|
6
|
-
};
|
|
7
|
-
type __VLS_Slots = {} & {
|
|
8
|
-
[K in NonNullable<typeof __VLS_11>]?: (props: typeof __VLS_12) => any;
|
|
9
|
-
} & {
|
|
10
|
-
[K in NonNullable<typeof __VLS_33>]?: (props: typeof __VLS_34) => any;
|
|
11
|
-
};
|
|
12
|
-
declare const __VLS_base: import("vue").DefineComponent<PageLayoutTabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLayoutTabsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
-
declare const _default: typeof __VLS_export;
|
|
15
|
-
export default _default;
|
|
16
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
-
new (): {
|
|
18
|
-
$slots: S;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=PageLayoutTabs.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayoutTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayoutTabs.vue"],"names":[],"mappings":"AA8SA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AA8TlE,QAAA,IAAI,QAAQ,iBAAW,EAAE,QAAQ;;CAAU,EAAE,QAAQ,iBAAW,EAAE,QAAQ;;CAAY,CAAE;AACxF,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,GACzE;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,CAAC;AAQ5E,QAAA,MAAM,UAAU,kTAEd,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;;;;AAE/B,wBAEC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
|
|
2
|
-
import english from '../locales/en.json';
|
|
3
|
-
interface UseI18nReturn {
|
|
4
|
-
i18n: ReturnType<typeof createI18n<typeof english>>;
|
|
5
|
-
i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
|
|
6
|
-
}
|
|
7
|
-
export default function useI18n(): UseI18nReturn;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,6BAA6B,CAAA;AACpD,OAAO,SAAS,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAA;AAEhC,OAAO,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAA;AAExD,cAAc,SAAS,CAAA"}
|
package/dist/types/symbols.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const nestedPageLayoutInjectionKey: unique symbol;
|
|
2
|
-
/**
|
|
3
|
-
* Injection key for the boolean (or ref/getter) that tells PageLayout to render the new
|
|
4
|
-
* page header appearance.
|
|
5
|
-
*/
|
|
6
|
-
export declare const NEW_APPEARANCE_INJECTION_KEY = "page-layout:new-appearance";
|
|
7
|
-
//# sourceMappingURL=symbols.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/symbols.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,eAAyC,CAAA;AAElF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,+BAA+B,CAAA"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface AboutCardRow {
|
|
2
|
-
/**
|
|
3
|
-
* Unique key for the row. Also used to build the per-row slot names:
|
|
4
|
-
* `label-${key}` and `row-${key}`.
|
|
5
|
-
*/
|
|
6
|
-
key: string;
|
|
7
|
-
/** Label text. Ignored when the `label-${key}` slot is provided. */
|
|
8
|
-
label?: string;
|
|
9
|
-
/** Informational tooltip rendered next to the label. */
|
|
10
|
-
tooltip?: string;
|
|
11
|
-
/** Value text. Ignored when the `row-${key}` slot is provided. */
|
|
12
|
-
value?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface AboutCardProps {
|
|
15
|
-
/** Card title */
|
|
16
|
-
title?: string;
|
|
17
|
-
/** HTML element the title is rendered as */
|
|
18
|
-
titleTag?: 'div' | 'p' | 'span' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
19
|
-
/** Description rendered above the rows */
|
|
20
|
-
description?: string;
|
|
21
|
-
/** The label/value rows */
|
|
22
|
-
rows?: AboutCardRow[];
|
|
23
|
-
/** Render skeleton placeholders instead of the rows */
|
|
24
|
-
isLoading?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface AboutCardSlots {
|
|
27
|
-
/** Content rendered below the rows */
|
|
28
|
-
default?(): any;
|
|
29
|
-
/** Card title */
|
|
30
|
-
title?(): any;
|
|
31
|
-
/** Description rendered above the rows */
|
|
32
|
-
description?(): any;
|
|
33
|
-
/** Action elements rendered to the right of the card title */
|
|
34
|
-
actions?(): any;
|
|
35
|
-
/** Overrides the label of the row with the matching key */
|
|
36
|
-
[key: `label-${string}`]: (props: {
|
|
37
|
-
row: AboutCardRow;
|
|
38
|
-
}) => any;
|
|
39
|
-
/** Overrides the value of the row with the matching key */
|
|
40
|
-
[key: `row-${string}`]: (props: {
|
|
41
|
-
row: AboutCardRow;
|
|
42
|
-
}) => any;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=about-card.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"about-card.d.ts","sourceRoot":"","sources":["../../../src/types/about-card.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAA;IACX,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,KAAK,GAAG,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IAClE,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2BAA2B;IAC3B,IAAI,CAAC,EAAE,YAAY,EAAE,CAAA;IACrB,uDAAuD;IACvD,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,sCAAsC;IACtC,OAAO,CAAC,IAAI,GAAG,CAAA;IACf,iBAAiB;IACjB,KAAK,CAAC,IAAI,GAAG,CAAA;IACb,0CAA0C;IAC1C,WAAW,CAAC,IAAI,GAAG,CAAA;IACnB,8DAA8D;IAC9D,OAAO,CAAC,IAAI,GAAG,CAAA;IACf,2DAA2D;IAC3D,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,YAAY,CAAA;KAAE,KAAK,GAAG,CAAA;IAC/D,2DAA2D;IAC3D,CAAC,GAAG,EAAE,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,YAAY,CAAA;KAAE,KAAK,GAAG,CAAA;CAC9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface PageLayoutAnchor {
|
|
2
|
-
/**
|
|
3
|
-
* A CSS selector matching the section this item scrolls to (`#usage`, `[data-anchor="usage"]`, ...).
|
|
4
|
-
* A bare identifier (`usage`) is also accepted and looked up as `#usage`.
|
|
5
|
-
* Doubles as the item's unique key, so it must be unique within the list.
|
|
6
|
-
*/
|
|
7
|
-
id: string;
|
|
8
|
-
/** The display text of the navigation item */
|
|
9
|
-
label: string;
|
|
10
|
-
/**
|
|
11
|
-
* The section element itself, for pages that hold a template ref rather than a selector.
|
|
12
|
-
* Takes precedence over `id`, which is then only used as the item's key.
|
|
13
|
-
*/
|
|
14
|
-
element?: HTMLElement | null;
|
|
15
|
-
/**
|
|
16
|
-
* Pixels left between the top of the scrolling container and the section once it has been
|
|
17
|
-
* scrolled to. Defaults to the height of the sticky page header plus a small gap.
|
|
18
|
-
*/
|
|
19
|
-
offset?: number;
|
|
20
|
-
/** The data-testid attribute to apply to the navigation item. Auto-generated if not provided */
|
|
21
|
-
dataTestId?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface PageLayoutAnchorNavigationProps {
|
|
24
|
-
anchors?: PageLayoutAnchor[];
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=page-layout-anchor-navigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-layout-anchor-navigation.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout-anchor-navigation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAA;IACV,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gGAAgG;IAChG,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC7B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
-
export interface PageLayoutTab {
|
|
3
|
-
/** The unique kebab-case key of the tab */
|
|
4
|
-
key: string;
|
|
5
|
-
/** The display text of the navbar tab */
|
|
6
|
-
label: string;
|
|
7
|
-
/** The [Vue Router `to` object](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#to) or a URL path (relative or absolute) to navigate to on click */
|
|
8
|
-
to: string | RouteLocationRaw;
|
|
9
|
-
/** Is the navbar tab active */
|
|
10
|
-
active?: boolean;
|
|
11
|
-
/** The data-testid attribute to apply to the navbar tab. Auto-generated if not provided */
|
|
12
|
-
dataTestId?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface PageLayoutTabsProps {
|
|
15
|
-
tabs?: PageLayoutTab[];
|
|
16
|
-
}
|
|
17
|
-
export interface PageLayoutTabsSlots {
|
|
18
|
-
[key: `tab-${string}`]: (props: {
|
|
19
|
-
tab: PageLayoutTab;
|
|
20
|
-
}) => any;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=page-layout-tabs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-layout-tabs.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAA;IACX,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,iKAAiK;IACjK,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAC7B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,aAAa,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,aAAa,CAAA;KAAE,KAAK,GAAG,CAAA;CAC/D"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { BreadcrumbItem } from '@kong/kongponents';
|
|
2
|
-
import type { PageLayoutAnchor, PageLayoutTab } from './';
|
|
3
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
4
|
-
export interface PageShortcutData {
|
|
5
|
-
/** The display label of the page shortcut */
|
|
6
|
-
label: string;
|
|
7
|
-
/** The URL path of the page shortcut */
|
|
8
|
-
path?: string;
|
|
9
|
-
/** The entity type of the page shortcut (snake_case, e.g. "gateway_service") */
|
|
10
|
-
entityType: string;
|
|
11
|
-
/** The display label of the parent entity */
|
|
12
|
-
parentLabel?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface PageLayoutProps {
|
|
15
|
-
/** Breadcrumb items */
|
|
16
|
-
breadcrumbs?: BreadcrumbItem[];
|
|
17
|
-
/** Page title */
|
|
18
|
-
title?: string;
|
|
19
|
-
/** The URL to navigate back to when the back button is clicked */
|
|
20
|
-
backTo?: string | RouteLocationRaw;
|
|
21
|
-
/** Tabs */
|
|
22
|
-
tabs?: PageLayoutTab[];
|
|
23
|
-
/**
|
|
24
|
-
* In-page sections the header's anchor navigation bar scrolls to. New appearance only, and
|
|
25
|
-
* ignored when `tabs` are provided -- the header shows one or the other, never both.
|
|
26
|
-
*/
|
|
27
|
-
anchors?: PageLayoutAnchor[];
|
|
28
|
-
/** Providing this prop "marks" the current page as an entity page that can be added to shortcuts (favorites and recents) */
|
|
29
|
-
pageShortcutData?: PageShortcutData;
|
|
30
|
-
}
|
|
31
|
-
export interface PageLayoutSlots {
|
|
32
|
-
/**
|
|
33
|
-
* Default slot for page content
|
|
34
|
-
*/
|
|
35
|
-
default?(): any;
|
|
36
|
-
/**
|
|
37
|
-
* Actions slot for page actions
|
|
38
|
-
*/
|
|
39
|
-
actions?(): any;
|
|
40
|
-
/**
|
|
41
|
-
* Title slot for page title
|
|
42
|
-
*/
|
|
43
|
-
title?(): any;
|
|
44
|
-
/**
|
|
45
|
-
* Title after slot for page title after content
|
|
46
|
-
*/
|
|
47
|
-
'title-after'?(): any;
|
|
48
|
-
/**
|
|
49
|
-
* Aside slot for secondary content rendered beside the page content.
|
|
50
|
-
* Only rendered in the new appearance.
|
|
51
|
-
*/
|
|
52
|
-
aside?(): any;
|
|
53
|
-
/**
|
|
54
|
-
* Per-tab slot for customizing the rendering of a specific tab. Slot name is `tab-${tab.key}`.
|
|
55
|
-
*/
|
|
56
|
-
[key: `tab-${string}`]: (props: {
|
|
57
|
-
tab: PageLayoutTab;
|
|
58
|
-
}) => any;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=page-layout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-layout.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,IAAI,CAAA;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAClC,WAAW;IACX,IAAI,CAAC,EAAE,aAAa,EAAE,CAAA;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC5B,4HAA4H;IAC5H,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CACpC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,CAAC,IAAI,GAAG,CAAA;IACf;;OAEG;IACH,OAAO,CAAC,IAAI,GAAG,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,IAAI,GAAG,CAAA;IACb;;OAEG;IACH,aAAa,CAAC,IAAI,GAAG,CAAA;IACrB;;;OAGG;IACH,KAAK,CAAC,IAAI,GAAG,CAAA;IACb;;OAEG;IACH,CAAC,GAAG,EAAE,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE;QAAE,GAAG,EAAE,aAAa,CAAA;KAAE,KAAK,GAAG,CAAA;CAC/D"}
|