@kong-ui-public/app-layout 4.2.64-pr.1882.c40f0956a.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app-layout.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const Sn = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as ee, resolveComponent as he, openBlock as p, createBlock as X, withCtx as R, renderSlot as I, createElementBlock as w, Fragment as $e, renderList as Te, normalizeClass as re, createTextVNode as lt, toDisplayString as q, computed as k, createSlots as Ze, createVNode as Ne, createCommentVNode as C, createElementVNode as O, createStaticVNode as vn, useCssVars as dt, useSlots as Ge, reactive as je, onMounted as qe, resolveDynamicComponent as bn, withKeys as hn, ref as W, watch as Ke, onUnmounted as pn, Comment as mn, cloneVNode as gn, nextTick as Rt, onBeforeUnmount as Ht, unref as yn, withModifiers as wn, watchEffect as kn, toRef as Tn } from "vue";
|
|
2
|
+
const Sn = /* @__PURE__ */ ee({
|
|
3
3
|
__name: "AccountDropdown",
|
|
4
4
|
props: {
|
|
5
5
|
options: {
|
|
@@ -20,15 +20,15 @@ const Sn = /* @__PURE__ */ te({
|
|
|
20
20
|
setup(n) {
|
|
21
21
|
return (t, r) => {
|
|
22
22
|
const a = he("KDropdownItem"), l = he("KDropdown");
|
|
23
|
-
return p(),
|
|
23
|
+
return p(), X(l, {
|
|
24
24
|
class: "account-dropdown",
|
|
25
25
|
"kpop-attributes": { placement: "bottom-end" },
|
|
26
26
|
"trigger-text": n.userInitials,
|
|
27
27
|
width: n.width
|
|
28
28
|
}, {
|
|
29
29
|
items: R(({ handleSelection: u }) => [
|
|
30
|
-
|
|
31
|
-
(p(!0), w($e, null, Te(n.options, (o) => (p(),
|
|
30
|
+
I(t.$slots, "default", {}, () => [
|
|
31
|
+
(p(!0), w($e, null, Te(n.options, (o) => (p(), X(a, {
|
|
32
32
|
key: o.value,
|
|
33
33
|
class: re({ "has-divider": o.hasDivider }),
|
|
34
34
|
"data-testid": "select-" + o.value,
|
|
@@ -36,8 +36,8 @@ const Sn = /* @__PURE__ */ te({
|
|
|
36
36
|
onClick: (v) => u(o)
|
|
37
37
|
}, {
|
|
38
38
|
default: R(() => [
|
|
39
|
-
|
|
40
|
-
lt(
|
|
39
|
+
I(t.$slots, "default", { option: o }, () => [
|
|
40
|
+
lt(q(o.label), 1)
|
|
41
41
|
], !0)
|
|
42
42
|
]),
|
|
43
43
|
_: 2
|
|
@@ -48,12 +48,12 @@ const Sn = /* @__PURE__ */ te({
|
|
|
48
48
|
}, 8, ["trigger-text", "width"]);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
51
|
+
}), te = (n, t) => {
|
|
52
52
|
const r = n.__vccOpts || n;
|
|
53
53
|
for (const [a, l] of t)
|
|
54
54
|
r[a] = l;
|
|
55
55
|
return r;
|
|
56
|
-
}, Ci = /* @__PURE__ */
|
|
56
|
+
}, Ci = /* @__PURE__ */ te(Sn, [["__scopeId", "data-v-b33191a2"]]), _n = {
|
|
57
57
|
class: "about-section-title",
|
|
58
58
|
"data-testid": "about-section-title"
|
|
59
59
|
}, In = { class: "about-section-header-end" }, On = {
|
|
@@ -89,7 +89,7 @@ const Sn = /* @__PURE__ */ te({
|
|
|
89
89
|
key: 3,
|
|
90
90
|
class: "about-divider-section",
|
|
91
91
|
"data-testid": "about-divider-section"
|
|
92
|
-
}, Bn = /* @__PURE__ */
|
|
92
|
+
}, Bn = /* @__PURE__ */ ee({
|
|
93
93
|
__name: "AppAboutSection",
|
|
94
94
|
props: {
|
|
95
95
|
title: {
|
|
@@ -125,7 +125,7 @@ const Sn = /* @__PURE__ */ te({
|
|
|
125
125
|
const t = n, r = k(() => !!t.modified && t.modified !== t.created);
|
|
126
126
|
return (a, l) => {
|
|
127
127
|
const u = he("KSkeletonBox"), o = he("KCard");
|
|
128
|
-
return p(),
|
|
128
|
+
return p(), X(o, {
|
|
129
129
|
class: "kong-ui-app-about-section",
|
|
130
130
|
"title-tag": "h2"
|
|
131
131
|
}, Ze({
|
|
@@ -140,13 +140,13 @@ const Sn = /* @__PURE__ */ te({
|
|
|
140
140
|
width: "100"
|
|
141
141
|
})
|
|
142
142
|
])) : (p(), w("div", An, [
|
|
143
|
-
n.description ? (p(), w("p", Fn,
|
|
143
|
+
n.description ? (p(), w("p", Fn, q(n.description), 1)) : C("", !0),
|
|
144
144
|
a.$slots.default ? (p(), w("div", xn, [
|
|
145
|
-
|
|
145
|
+
I(a.$slots, "default", {}, void 0, !0)
|
|
146
146
|
])) : C("", !0),
|
|
147
147
|
a.$slots["divider-section"] ? (p(), w("hr", Dn)) : C("", !0),
|
|
148
148
|
a.$slots["divider-section"] ? (p(), w("div", Rn, [
|
|
149
|
-
|
|
149
|
+
I(a.$slots, "divider-section", {}, void 0, !0)
|
|
150
150
|
])) : C("", !0)
|
|
151
151
|
]))
|
|
152
152
|
]),
|
|
@@ -155,24 +155,24 @@ const Sn = /* @__PURE__ */ te({
|
|
|
155
155
|
n.title ? {
|
|
156
156
|
name: "title",
|
|
157
157
|
fn: R(() => [
|
|
158
|
-
|
|
158
|
+
O("span", _n, q(n.title), 1)
|
|
159
159
|
]),
|
|
160
160
|
key: "0"
|
|
161
161
|
} : void 0,
|
|
162
162
|
a.$slots.actions || n.created || n.modified ? {
|
|
163
163
|
name: "actions",
|
|
164
164
|
fn: R(() => [
|
|
165
|
-
|
|
165
|
+
O("div", In, [
|
|
166
166
|
n.created || n.modified ? (p(), w("div", {
|
|
167
167
|
key: 0,
|
|
168
168
|
class: re(["about-section-timestamps", { "has-actions": a.$slots.actions }])
|
|
169
169
|
}, [
|
|
170
|
-
n.created ? (p(), w("span", On,
|
|
170
|
+
n.created ? (p(), w("span", On, q(n.createdLabel) + ": " + q(n.created), 1)) : C("", !0),
|
|
171
171
|
n.created && r.value ? (p(), w("span", Cn, "->")) : C("", !0),
|
|
172
|
-
r.value ? (p(), w("span", $n,
|
|
172
|
+
r.value ? (p(), w("span", $n, q(n.modifiedLabel) + ": " + q(n.modified), 1)) : C("", !0)
|
|
173
173
|
], 2)) : C("", !0),
|
|
174
174
|
a.$slots.actions ? (p(), w("div", En, [
|
|
175
|
-
|
|
175
|
+
I(a.$slots, "actions", {}, void 0, !0)
|
|
176
176
|
])) : C("", !0)
|
|
177
177
|
])
|
|
178
178
|
]),
|
|
@@ -181,7 +181,7 @@ const Sn = /* @__PURE__ */ te({
|
|
|
181
181
|
]), 1024);
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
}), $i = /* @__PURE__ */
|
|
184
|
+
}), $i = /* @__PURE__ */ te(Bn, [["__scopeId", "data-v-521dcc27"]]), Ln = {}, Mn = {
|
|
185
185
|
fill: "none",
|
|
186
186
|
height: "130",
|
|
187
187
|
width: "130",
|
|
@@ -192,29 +192,29 @@ function Pn(n, t) {
|
|
|
192
192
|
vn('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>', 5)
|
|
193
193
|
]));
|
|
194
194
|
}
|
|
195
|
-
const jn = /* @__PURE__ */
|
|
195
|
+
const jn = /* @__PURE__ */ te(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-error" }, Kn = { class: "banana-icon" }, Hn = { class: "kong-ui-app-error-content" }, Un = /* @__PURE__ */ ee({
|
|
196
196
|
__name: "AppError",
|
|
197
197
|
setup(n) {
|
|
198
198
|
return (t, r) => (p(), w("section", Zn, [
|
|
199
|
-
|
|
199
|
+
O("div", Kn, [
|
|
200
200
|
Ne(jn)
|
|
201
201
|
]),
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
r[0] || (r[0] =
|
|
205
|
-
r[1] || (r[1] =
|
|
202
|
+
O("div", Hn, [
|
|
203
|
+
I(t.$slots, "default", {}, () => [
|
|
204
|
+
r[0] || (r[0] = O("h2", null, "An unexpected error has occurred", -1)),
|
|
205
|
+
r[1] || (r[1] = O("p", null, [
|
|
206
206
|
lt("Go back to the previous page or "),
|
|
207
|
-
|
|
207
|
+
O("a", { href: "/" }, "return home"),
|
|
208
208
|
lt(".")
|
|
209
209
|
], -1))
|
|
210
210
|
], !0)
|
|
211
211
|
])
|
|
212
212
|
]));
|
|
213
213
|
}
|
|
214
|
-
}), Ei = /* @__PURE__ */
|
|
214
|
+
}), Ei = /* @__PURE__ */ te(Un, [["__scopeId", "data-v-8e17f434"]]), Wn = { class: "kong-ui-app-navbar" }, zn = { class: "header-content" }, Vn = { class: "mobile-header-left" }, Gn = {
|
|
215
215
|
key: 0,
|
|
216
216
|
class: "app-navbar-logo"
|
|
217
|
-
}, qn = { class: "navbar-content" }, Xn = { class: "navbar-content-left" }, Yn = { class: "navbar-content-center" }, Jn = { class: "navbar-content-right" }, Qn = /* @__PURE__ */
|
|
217
|
+
}, qn = { class: "navbar-content" }, Xn = { class: "navbar-content-left" }, Yn = { class: "navbar-content-center" }, Jn = { class: "navbar-content-right" }, Qn = /* @__PURE__ */ ee({
|
|
218
218
|
__name: "AppNavbar",
|
|
219
219
|
props: {
|
|
220
220
|
topOffset: {
|
|
@@ -253,29 +253,29 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
253
253
|
zIndex: t.zIndex
|
|
254
254
|
}));
|
|
255
255
|
return (o, v) => (p(), w("header", Wn, [
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
256
|
+
O("div", zn, [
|
|
257
|
+
O("div", Vn, [
|
|
258
|
+
I(o.$slots, "mobile-sidebar-toggle"),
|
|
259
|
+
I(o.$slots, "mobile-logo")
|
|
260
260
|
]),
|
|
261
261
|
a.value ? (p(), w("div", Gn, [
|
|
262
|
-
|
|
262
|
+
I(o.$slots, "logo")
|
|
263
263
|
])) : C("", !0),
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
O("div", qn, [
|
|
265
|
+
O("div", Xn, [
|
|
266
|
+
I(o.$slots, "left")
|
|
267
267
|
]),
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
O("div", Yn, [
|
|
269
|
+
I(o.$slots, "center")
|
|
270
270
|
]),
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
O("div", Jn, [
|
|
272
|
+
I(o.$slots, "right")
|
|
273
273
|
])
|
|
274
274
|
])
|
|
275
275
|
])
|
|
276
276
|
]));
|
|
277
277
|
}
|
|
278
|
-
}), er = /* @__PURE__ */
|
|
278
|
+
}), er = /* @__PURE__ */ te(Qn, [["__scopeId", "data-v-2f6fc50f"]]), tr = ["title"], st = 99, ar = /* @__PURE__ */ ee({
|
|
279
279
|
__name: "ItemBadge",
|
|
280
280
|
props: {
|
|
281
281
|
count: {
|
|
@@ -290,15 +290,15 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
290
290
|
key: 0,
|
|
291
291
|
class: "item-badge",
|
|
292
292
|
title: (n.count || 0) > st ? String(n.count) : void 0
|
|
293
|
-
},
|
|
293
|
+
}, q(r.value), 9, tr)) : C("", !0);
|
|
294
294
|
}
|
|
295
|
-
}), nr = /* @__PURE__ */
|
|
295
|
+
}), nr = /* @__PURE__ */ te(ar, [["__scopeId", "data-v-afb0d903"]]), rr = ["data-testid"], ir = ["aria-controls", "aria-current", "aria-expanded", "href", "target", "onClick", "onKeypress"], or = {
|
|
296
296
|
key: 0,
|
|
297
297
|
class: "sidebar-item-icon"
|
|
298
298
|
}, sr = { class: "sidebar-item-name-container" }, cr = { class: "sidebar-item-name has-tooltip" }, lr = {
|
|
299
299
|
key: 2,
|
|
300
300
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
301
|
-
}, ur = ["id"], dr = /* @__PURE__ */
|
|
301
|
+
}, ur = ["id"], dr = /* @__PURE__ */ ee({
|
|
302
302
|
__name: "SidebarItem",
|
|
303
303
|
props: {
|
|
304
304
|
item: {
|
|
@@ -319,40 +319,40 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
319
319
|
v(F), typeof E == "function" && (g.preventDefault(), E());
|
|
320
320
|
};
|
|
321
321
|
return (g, F) => {
|
|
322
|
-
var
|
|
322
|
+
var L;
|
|
323
323
|
const E = he("KTooltip"), D = he("SidebarItem", !0);
|
|
324
324
|
return p(), w("li", {
|
|
325
325
|
class: re([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
326
326
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
327
327
|
}, [
|
|
328
|
-
(p(),
|
|
328
|
+
(p(), X(bn(l.value ? "div" : "router-link"), {
|
|
329
329
|
custom: l.value ? void 0 : !0,
|
|
330
330
|
to: !l.value && !u.value ? n.item.to : void 0
|
|
331
331
|
}, {
|
|
332
332
|
default: R((S) => {
|
|
333
|
-
var x,
|
|
333
|
+
var x, z;
|
|
334
334
|
return [
|
|
335
|
-
|
|
335
|
+
O("a", {
|
|
336
336
|
"aria-controls": (x = n.item.items) != null && x.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
337
337
|
"aria-current": n.item.active ? "page" : void 0,
|
|
338
|
-
"aria-expanded": (
|
|
338
|
+
"aria-expanded": (z = n.item.items) != null && z.length && n.item.expanded ? !0 : void 0,
|
|
339
339
|
class: re(["sidebar-item-link", { "sidebar-item-external-link": u.value, "router-link": !l.value }]),
|
|
340
340
|
href: l.value ? String(n.item.to || "#") : S == null ? void 0 : S.href,
|
|
341
341
|
target: u.value ? "_blank" : void 0,
|
|
342
|
-
onClick: (
|
|
343
|
-
onKeypress: hn((
|
|
342
|
+
onClick: (M) => y(M, n.item, S == null ? void 0 : S.navigate),
|
|
343
|
+
onKeypress: hn((M) => y(M, n.item, S == null ? void 0 : S.navigate), ["enter"])
|
|
344
344
|
}, [
|
|
345
|
-
|
|
345
|
+
O("div", {
|
|
346
346
|
class: re(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": o.value }])
|
|
347
347
|
}, [
|
|
348
348
|
g.$slots[`sidebar-icon-${n.item.key}`] ? (p(), w("div", or, [
|
|
349
|
-
n.subnavItem ? C("", !0) :
|
|
349
|
+
n.subnavItem ? C("", !0) : I(g.$slots, `sidebar-icon-${n.item.key}`, { key: 0 }, void 0, !0)
|
|
350
350
|
])) : C("", !0),
|
|
351
|
-
|
|
351
|
+
O("div", sr, [
|
|
352
352
|
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (p(), w("div", {
|
|
353
353
|
key: 0,
|
|
354
354
|
class: re(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
355
|
-
},
|
|
355
|
+
}, q(n.item.name), 3)) : (p(), X(E, {
|
|
356
356
|
key: 1,
|
|
357
357
|
class: "sidebar-item-tooltip",
|
|
358
358
|
placement: "right",
|
|
@@ -360,17 +360,17 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
360
360
|
text: n.item.name
|
|
361
361
|
}, {
|
|
362
362
|
default: R(() => [
|
|
363
|
-
|
|
364
|
-
|
|
363
|
+
O("div", cr, [
|
|
364
|
+
O("span", {
|
|
365
365
|
class: re(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": o.value }]])
|
|
366
|
-
},
|
|
366
|
+
}, q(n.item.name), 3)
|
|
367
367
|
])
|
|
368
368
|
]),
|
|
369
369
|
_: 1
|
|
370
370
|
}, 8, ["text"])),
|
|
371
|
-
n.item.label && n.item.expanded ? (p(), w("div", lr,
|
|
371
|
+
n.item.label && n.item.expanded ? (p(), w("div", lr, q(n.item.label), 1)) : C("", !0)
|
|
372
372
|
]),
|
|
373
|
-
o.value ? (p(),
|
|
373
|
+
o.value ? (p(), X(nr, {
|
|
374
374
|
key: 1,
|
|
375
375
|
count: n.item.badgeCount
|
|
376
376
|
}, null, 8, ["count"])) : C("", !0)
|
|
@@ -380,12 +380,12 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
380
380
|
}),
|
|
381
381
|
_: 3
|
|
382
382
|
}, 8, ["custom", "to"])),
|
|
383
|
-
(
|
|
383
|
+
(L = n.item.items) != null && L.length && n.item.expanded ? (p(), w("ul", {
|
|
384
384
|
key: 0,
|
|
385
385
|
id: `subnav-${n.item.key}`,
|
|
386
386
|
class: "level-secondary"
|
|
387
387
|
}, [
|
|
388
|
-
(p(!0), w($e, null, Te(n.item.items, (S) => (p(),
|
|
388
|
+
(p(!0), w($e, null, Te(n.item.items, (S) => (p(), X(D, {
|
|
389
389
|
key: S.name,
|
|
390
390
|
item: S,
|
|
391
391
|
"subnav-item": !0,
|
|
@@ -395,7 +395,7 @@ const jn = /* @__PURE__ */ ae(Ln, [["render", Pn]]), Zn = { class: "kong-ui-app-
|
|
|
395
395
|
], 10, rr);
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
|
-
}), Bt = /* @__PURE__ */
|
|
398
|
+
}), Bt = /* @__PURE__ */ te(dr, [["__scopeId", "data-v-4153f40a"]]);
|
|
399
399
|
/*!
|
|
400
400
|
* tabbable 6.2.0
|
|
401
401
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
@@ -435,10 +435,10 @@ var Ut = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
435
435
|
var E = o.shadowRoot || // check for an undisclosed shadow
|
|
436
436
|
typeof a.getShadowRoot == "function" && a.getShadowRoot(o), D = !We(E, !1) && (!a.shadowRootFilter || a.shadowRootFilter(o));
|
|
437
437
|
if (E && D) {
|
|
438
|
-
var
|
|
439
|
-
a.flatten ? l.push.apply(l,
|
|
438
|
+
var L = n(E === !0 ? o.children : E.children, !0, a);
|
|
439
|
+
a.flatten ? l.push.apply(l, L) : l.push({
|
|
440
440
|
scopeParent: o,
|
|
441
|
-
candidates:
|
|
441
|
+
candidates: L
|
|
442
442
|
});
|
|
443
443
|
} else
|
|
444
444
|
u.unshift.apply(u, o.children);
|
|
@@ -763,12 +763,12 @@ var jt = {
|
|
|
763
763
|
return d;
|
|
764
764
|
}, D = function() {
|
|
765
765
|
if (o.containerGroups = o.containers.map(function(d) {
|
|
766
|
-
var s = Or(d, u.tabbableOptions), f = Cr(d, u.tabbableOptions), b = s.length > 0 ? s[0] : void 0, T = s.length > 0 ? s[s.length - 1] : void 0, N = f.find(function(
|
|
767
|
-
return ke(
|
|
768
|
-
}), A = f.slice().reverse().find(function(
|
|
769
|
-
return ke(
|
|
770
|
-
}), m = !!s.find(function(
|
|
771
|
-
return be(
|
|
766
|
+
var s = Or(d, u.tabbableOptions), f = Cr(d, u.tabbableOptions), b = s.length > 0 ? s[0] : void 0, T = s.length > 0 ? s[s.length - 1] : void 0, N = f.find(function(P) {
|
|
767
|
+
return ke(P);
|
|
768
|
+
}), A = f.slice().reverse().find(function(P) {
|
|
769
|
+
return ke(P);
|
|
770
|
+
}), m = !!s.find(function(P) {
|
|
771
|
+
return be(P) > 0;
|
|
772
772
|
});
|
|
773
773
|
return {
|
|
774
774
|
container: d,
|
|
@@ -800,12 +800,12 @@ var jt = {
|
|
|
800
800
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
801
801
|
*/
|
|
802
802
|
nextTabbableNode: function(ie) {
|
|
803
|
-
var
|
|
804
|
-
return
|
|
803
|
+
var Z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Q = s.indexOf(ie);
|
|
804
|
+
return Q < 0 ? Z ? f.slice(f.indexOf(ie) + 1).find(function(le) {
|
|
805
805
|
return ke(le);
|
|
806
806
|
}) : f.slice(0, f.indexOf(ie)).reverse().find(function(le) {
|
|
807
807
|
return ke(le);
|
|
808
|
-
}) : s[
|
|
808
|
+
}) : s[Q + (Z ? 1 : -1)];
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
811
|
}), o.tabbableGroups = o.containerGroups.filter(function(d) {
|
|
@@ -816,12 +816,12 @@ var jt = {
|
|
|
816
816
|
return d.posTabIndexesFound;
|
|
817
817
|
}) && o.containerGroups.length > 1)
|
|
818
818
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
819
|
-
},
|
|
819
|
+
}, L = function(d) {
|
|
820
820
|
var s = d.activeElement;
|
|
821
821
|
if (s)
|
|
822
|
-
return s.shadowRoot && s.shadowRoot.activeElement !== null ?
|
|
822
|
+
return s.shadowRoot && s.shadowRoot.activeElement !== null ? L(s.shadowRoot) : s;
|
|
823
823
|
}, S = function(d) {
|
|
824
|
-
if (d !== !1 && d !==
|
|
824
|
+
if (d !== !1 && d !== L(document)) {
|
|
825
825
|
if (!d || !d.focus) {
|
|
826
826
|
S(E());
|
|
827
827
|
return;
|
|
@@ -833,7 +833,7 @@ var jt = {
|
|
|
833
833
|
}, x = function(d) {
|
|
834
834
|
var s = F("setReturnFocus", d);
|
|
835
835
|
return s || (s === !1 ? !1 : d);
|
|
836
|
-
},
|
|
836
|
+
}, z = function(d) {
|
|
837
837
|
var s = d.target, f = d.event, b = d.isBackward, T = b === void 0 ? !1 : b;
|
|
838
838
|
s = s || Me(f), D();
|
|
839
839
|
var N = null;
|
|
@@ -842,28 +842,28 @@ var jt = {
|
|
|
842
842
|
if (A < 0)
|
|
843
843
|
T ? N = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : N = o.tabbableGroups[0].firstTabbableNode;
|
|
844
844
|
else if (T) {
|
|
845
|
-
var
|
|
845
|
+
var P = Kt(o.tabbableGroups, function(Se) {
|
|
846
846
|
var _e = Se.firstTabbableNode;
|
|
847
847
|
return s === _e;
|
|
848
848
|
});
|
|
849
|
-
if (
|
|
850
|
-
var ie =
|
|
851
|
-
N = be(s) >= 0 ?
|
|
849
|
+
if (P < 0 && (m.container === s || ct(s, u.tabbableOptions) && !ke(s, u.tabbableOptions) && !m.nextTabbableNode(s, !1)) && (P = A), P >= 0) {
|
|
850
|
+
var ie = P === 0 ? o.tabbableGroups.length - 1 : P - 1, Z = o.tabbableGroups[ie];
|
|
851
|
+
N = be(s) >= 0 ? Z.lastTabbableNode : Z.lastDomTabbableNode;
|
|
852
852
|
} else Ee(f) || (N = m.nextTabbableNode(s, !1));
|
|
853
853
|
} else {
|
|
854
|
-
var
|
|
854
|
+
var Q = Kt(o.tabbableGroups, function(Se) {
|
|
855
855
|
var _e = Se.lastTabbableNode;
|
|
856
856
|
return s === _e;
|
|
857
857
|
});
|
|
858
|
-
if (
|
|
859
|
-
var le =
|
|
858
|
+
if (Q < 0 && (m.container === s || ct(s, u.tabbableOptions) && !ke(s, u.tabbableOptions) && !m.nextTabbableNode(s)) && (Q = A), Q >= 0) {
|
|
859
|
+
var le = Q === o.tabbableGroups.length - 1 ? 0 : Q + 1, Ae = o.tabbableGroups[le];
|
|
860
860
|
N = be(s) >= 0 ? Ae.firstTabbableNode : Ae.firstDomTabbableNode;
|
|
861
861
|
} else Ee(f) || (N = m.nextTabbableNode(s));
|
|
862
862
|
}
|
|
863
863
|
} else
|
|
864
864
|
N = F("fallbackFocus");
|
|
865
865
|
return N;
|
|
866
|
-
},
|
|
866
|
+
}, M = function(d) {
|
|
867
867
|
var s = Me(d);
|
|
868
868
|
if (!(g(s, d) >= 0)) {
|
|
869
869
|
if (Ce(u.clickOutsideDeactivates, d)) {
|
|
@@ -880,7 +880,7 @@ var jt = {
|
|
|
880
880
|
}
|
|
881
881
|
Ce(u.allowOutsideClick, d) || d.preventDefault();
|
|
882
882
|
}
|
|
883
|
-
},
|
|
883
|
+
}, ae = function(d) {
|
|
884
884
|
var s = Me(d), f = g(s, d) >= 0;
|
|
885
885
|
if (f || s instanceof Document)
|
|
886
886
|
f && (o.mostRecentlyFocusedNode = s);
|
|
@@ -891,20 +891,20 @@ var jt = {
|
|
|
891
891
|
if (be(o.mostRecentlyFocusedNode) > 0) {
|
|
892
892
|
var N = g(o.mostRecentlyFocusedNode), A = o.containerGroups[N].tabbableNodes;
|
|
893
893
|
if (A.length > 0) {
|
|
894
|
-
var m = A.findIndex(function(
|
|
895
|
-
return
|
|
894
|
+
var m = A.findIndex(function(P) {
|
|
895
|
+
return P === o.mostRecentlyFocusedNode;
|
|
896
896
|
});
|
|
897
897
|
m >= 0 && (u.isKeyForward(o.recentNavEvent) ? m + 1 < A.length && (b = A[m + 1], T = !1) : m - 1 >= 0 && (b = A[m - 1], T = !1));
|
|
898
898
|
}
|
|
899
899
|
} else
|
|
900
|
-
o.containerGroups.some(function(
|
|
901
|
-
return
|
|
900
|
+
o.containerGroups.some(function(P) {
|
|
901
|
+
return P.tabbableNodes.some(function(ie) {
|
|
902
902
|
return be(ie) > 0;
|
|
903
903
|
});
|
|
904
904
|
}) || (T = !1);
|
|
905
905
|
else
|
|
906
906
|
T = !1;
|
|
907
|
-
T && (b =
|
|
907
|
+
T && (b = z({
|
|
908
908
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
909
909
|
// outside the trap causing the focus escape we're trying to fix)
|
|
910
910
|
target: o.mostRecentlyFocusedNode,
|
|
@@ -915,39 +915,39 @@ var jt = {
|
|
|
915
915
|
}, ce = function(d) {
|
|
916
916
|
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
917
917
|
o.recentNavEvent = d;
|
|
918
|
-
var f =
|
|
918
|
+
var f = z({
|
|
919
919
|
event: d,
|
|
920
920
|
isBackward: s
|
|
921
921
|
});
|
|
922
922
|
f && (Ee(d) && d.preventDefault(), S(f));
|
|
923
|
-
},
|
|
923
|
+
}, Y = function(d) {
|
|
924
924
|
(u.isKeyForward(d) || u.isKeyBackward(d)) && ce(d, u.isKeyBackward(d));
|
|
925
|
-
},
|
|
925
|
+
}, J = function(d) {
|
|
926
926
|
xr(d) && Ce(u.escapeDeactivates, d) !== !1 && (d.preventDefault(), v.deactivate());
|
|
927
|
-
},
|
|
927
|
+
}, K = function(d) {
|
|
928
928
|
var s = Me(d);
|
|
929
929
|
g(s, d) >= 0 || Ce(u.clickOutsideDeactivates, d) || Ce(u.allowOutsideClick, d) || (d.preventDefault(), d.stopImmediatePropagation());
|
|
930
|
-
},
|
|
930
|
+
}, G = function() {
|
|
931
931
|
if (o.active)
|
|
932
932
|
return jt.activateTrap(l, v), o.delayInitialFocusTimer = u.delayInitialFocus ? Zt(function() {
|
|
933
933
|
S(E());
|
|
934
|
-
}) : S(E()), a.addEventListener("focusin",
|
|
934
|
+
}) : S(E()), a.addEventListener("focusin", ae, !0), a.addEventListener("mousedown", M, {
|
|
935
935
|
capture: !0,
|
|
936
936
|
passive: !1
|
|
937
|
-
}), a.addEventListener("touchstart",
|
|
937
|
+
}), a.addEventListener("touchstart", M, {
|
|
938
938
|
capture: !0,
|
|
939
939
|
passive: !1
|
|
940
|
-
}), a.addEventListener("click",
|
|
940
|
+
}), a.addEventListener("click", K, {
|
|
941
941
|
capture: !0,
|
|
942
942
|
passive: !1
|
|
943
|
-
}), a.addEventListener("keydown",
|
|
943
|
+
}), a.addEventListener("keydown", Y, {
|
|
944
944
|
capture: !0,
|
|
945
945
|
passive: !1
|
|
946
|
-
}), a.addEventListener("keydown",
|
|
947
|
-
},
|
|
946
|
+
}), a.addEventListener("keydown", J), v;
|
|
947
|
+
}, V = function() {
|
|
948
948
|
if (o.active)
|
|
949
|
-
return a.removeEventListener("focusin",
|
|
950
|
-
},
|
|
949
|
+
return a.removeEventListener("focusin", ae, !0), a.removeEventListener("mousedown", M, !0), a.removeEventListener("touchstart", M, !0), a.removeEventListener("click", K, !0), a.removeEventListener("keydown", Y, !0), a.removeEventListener("keydown", J), v;
|
|
950
|
+
}, ne = function(d) {
|
|
951
951
|
var s = d.some(function(f) {
|
|
952
952
|
var b = Array.from(f.removedNodes);
|
|
953
953
|
return b.some(function(T) {
|
|
@@ -955,9 +955,9 @@ var jt = {
|
|
|
955
955
|
});
|
|
956
956
|
});
|
|
957
957
|
s && S(E());
|
|
958
|
-
},
|
|
959
|
-
|
|
960
|
-
|
|
958
|
+
}, $ = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(ne) : void 0, B = function() {
|
|
959
|
+
$ && ($.disconnect(), o.active && !o.paused && o.containers.map(function(d) {
|
|
960
|
+
$.observe(d, {
|
|
961
961
|
subtree: !0,
|
|
962
962
|
childList: !0
|
|
963
963
|
});
|
|
@@ -976,7 +976,7 @@ var jt = {
|
|
|
976
976
|
var s = y(d, "onActivate"), f = y(d, "onPostActivate"), b = y(d, "checkCanFocusTrap");
|
|
977
977
|
b || D(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = a.activeElement, s == null || s();
|
|
978
978
|
var T = function() {
|
|
979
|
-
b && D(),
|
|
979
|
+
b && D(), G(), B(), f == null || f();
|
|
980
980
|
};
|
|
981
981
|
return b ? (b(o.containers.concat()).then(T, T), this) : (T(), this);
|
|
982
982
|
},
|
|
@@ -988,7 +988,7 @@ var jt = {
|
|
|
988
988
|
onPostDeactivate: u.onPostDeactivate,
|
|
989
989
|
checkCanReturnFocus: u.checkCanReturnFocus
|
|
990
990
|
}, d);
|
|
991
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
991
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, V(), o.active = !1, o.paused = !1, B(), jt.deactivateTrap(l, v);
|
|
992
992
|
var f = y(s, "onDeactivate"), b = y(s, "onPostDeactivate"), T = y(s, "checkCanReturnFocus"), N = y(s, "returnFocus", "returnFocusOnDeactivate");
|
|
993
993
|
f == null || f();
|
|
994
994
|
var A = function() {
|
|
@@ -1002,19 +1002,19 @@ var jt = {
|
|
|
1002
1002
|
if (o.paused || !o.active)
|
|
1003
1003
|
return this;
|
|
1004
1004
|
var s = y(d, "onPause"), f = y(d, "onPostPause");
|
|
1005
|
-
return o.paused = !0, s == null || s(),
|
|
1005
|
+
return o.paused = !0, s == null || s(), V(), B(), f == null || f(), this;
|
|
1006
1006
|
},
|
|
1007
1007
|
unpause: function(d) {
|
|
1008
1008
|
if (!o.paused || !o.active)
|
|
1009
1009
|
return this;
|
|
1010
1010
|
var s = y(d, "onUnpause"), f = y(d, "onPostUnpause");
|
|
1011
|
-
return o.paused = !1, s == null || s(), D(),
|
|
1011
|
+
return o.paused = !1, s == null || s(), D(), G(), B(), f == null || f(), this;
|
|
1012
1012
|
},
|
|
1013
1013
|
updateContainerElements: function(d) {
|
|
1014
1014
|
var s = [].concat(d).filter(Boolean);
|
|
1015
1015
|
return o.containers = s.map(function(f) {
|
|
1016
1016
|
return typeof f == "string" ? a.querySelector(f) : f;
|
|
1017
|
-
}), o.active && D(),
|
|
1017
|
+
}), o.active && D(), B(), this;
|
|
1018
1018
|
}
|
|
1019
1019
|
}, v.updateContainerElements(t), v;
|
|
1020
1020
|
};
|
|
@@ -1049,7 +1049,7 @@ const Mr = {
|
|
|
1049
1049
|
preventScroll: Boolean,
|
|
1050
1050
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1051
1051
|
tabbableOptions: Object
|
|
1052
|
-
}, Pr =
|
|
1052
|
+
}, Pr = ee({
|
|
1053
1053
|
props: Object.assign({
|
|
1054
1054
|
active: {
|
|
1055
1055
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
@@ -1069,7 +1069,7 @@ const Mr = {
|
|
|
1069
1069
|
},
|
|
1070
1070
|
setup(n, { slots: t, emit: r }) {
|
|
1071
1071
|
let a;
|
|
1072
|
-
const l =
|
|
1072
|
+
const l = W(null), u = k(() => {
|
|
1073
1073
|
const v = l.value;
|
|
1074
1074
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1075
1075
|
});
|
|
@@ -1135,9 +1135,9 @@ function jr(n) {
|
|
|
1135
1135
|
var Ve = { exports: {} };
|
|
1136
1136
|
Ve.exports;
|
|
1137
1137
|
(function(n, t) {
|
|
1138
|
-
var r = 200, a = "__lodash_hash_undefined__", l = 9007199254740991, u = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", y = "[object Date]", g = "[object Error]", F = "[object Function]", E = "[object GeneratorFunction]", D = "[object Map]",
|
|
1139
|
-
m[u] = m[o] = m[
|
|
1140
|
-
var
|
|
1138
|
+
var r = 200, a = "__lodash_hash_undefined__", l = 9007199254740991, u = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", y = "[object Date]", g = "[object Error]", F = "[object Function]", E = "[object GeneratorFunction]", D = "[object Map]", L = "[object Number]", S = "[object Object]", x = "[object Promise]", z = "[object RegExp]", M = "[object Set]", ae = "[object String]", ce = "[object Symbol]", Y = "[object WeakMap]", J = "[object ArrayBuffer]", K = "[object DataView]", G = "[object Float32Array]", V = "[object Float64Array]", ne = "[object Int8Array]", $ = "[object Int16Array]", B = "[object Int32Array]", _ = "[object Uint8Array]", d = "[object Uint8ClampedArray]", s = "[object Uint16Array]", f = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, T = /\w*$/, N = /^\[object .+?Constructor\]$/, A = /^(?:0|[1-9]\d*)$/, m = {};
|
|
1139
|
+
m[u] = m[o] = m[J] = m[K] = m[v] = m[y] = m[G] = m[V] = m[ne] = m[$] = m[B] = m[D] = m[L] = m[S] = m[z] = m[M] = m[ae] = m[ce] = m[_] = m[d] = m[s] = m[f] = !0, m[g] = m[F] = m[Y] = !1;
|
|
1140
|
+
var P = typeof Pe == "object" && Pe && Pe.Object === Object && Pe, ie = typeof self == "object" && self && self.Object === Object && self, Z = P || ie || Function("return this")(), Q = t && !t.nodeType && t, le = Q && !0 && n && !n.nodeType && n, Ae = le && le.exports === Q;
|
|
1141
1141
|
function Se(e, i) {
|
|
1142
1142
|
return e.set(i[0], i[1]), e;
|
|
1143
1143
|
}
|
|
@@ -1150,13 +1150,13 @@ Ve.exports;
|
|
|
1150
1150
|
return e;
|
|
1151
1151
|
}
|
|
1152
1152
|
function Jt(e, i) {
|
|
1153
|
-
for (var c = -1, h = i.length,
|
|
1154
|
-
e[
|
|
1153
|
+
for (var c = -1, h = i.length, j = e.length; ++c < h; )
|
|
1154
|
+
e[j + c] = i[c];
|
|
1155
1155
|
return e;
|
|
1156
1156
|
}
|
|
1157
1157
|
function ft(e, i, c, h) {
|
|
1158
|
-
for (var
|
|
1159
|
-
c = i(c, e[
|
|
1158
|
+
for (var j = -1, H = e ? e.length : 0; ++j < H; )
|
|
1159
|
+
c = i(c, e[j], j, e);
|
|
1160
1160
|
return c;
|
|
1161
1161
|
}
|
|
1162
1162
|
function Qt(e, i) {
|
|
@@ -1178,8 +1178,8 @@ Ve.exports;
|
|
|
1178
1178
|
}
|
|
1179
1179
|
function bt(e) {
|
|
1180
1180
|
var i = -1, c = Array(e.size);
|
|
1181
|
-
return e.forEach(function(h,
|
|
1182
|
-
c[++i] = [
|
|
1181
|
+
return e.forEach(function(h, j) {
|
|
1182
|
+
c[++i] = [j, h];
|
|
1183
1183
|
}), c;
|
|
1184
1184
|
}
|
|
1185
1185
|
function Xe(e, i) {
|
|
@@ -1193,12 +1193,12 @@ Ve.exports;
|
|
|
1193
1193
|
c[++i] = h;
|
|
1194
1194
|
}), c;
|
|
1195
1195
|
}
|
|
1196
|
-
var ta = Array.prototype, aa = Function.prototype, Fe = Object.prototype, Ye =
|
|
1196
|
+
var ta = Array.prototype, aa = Function.prototype, Fe = Object.prototype, Ye = Z["__core-js_shared__"], pt = function() {
|
|
1197
1197
|
var e = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
|
|
1198
1198
|
return e ? "Symbol(src)_1." + e : "";
|
|
1199
1199
|
}(), mt = aa.toString, ue = Fe.hasOwnProperty, xe = Fe.toString, na = RegExp(
|
|
1200
1200
|
"^" + mt.call(ue).replace(b, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1201
|
-
), gt = Ae ?
|
|
1201
|
+
), gt = Ae ? Z.Buffer : void 0, yt = Z.Symbol, wt = Z.Uint8Array, ra = Xe(Object.getPrototypeOf, Object), ia = Object.create, oa = Fe.propertyIsEnumerable, sa = ta.splice, kt = Object.getOwnPropertySymbols, ca = gt ? gt.isBuffer : void 0, la = Xe(Object.keys, Object), Je = ye(Z, "DataView"), Ie = ye(Z, "Map"), Qe = ye(Z, "Promise"), et = ye(Z, "Set"), tt = ye(Z, "WeakMap"), Oe = ye(Object, "create"), ua = ve(Je), da = ve(Ie), fa = ve(Qe), va = ve(et), ba = ve(tt), Tt = yt ? yt.prototype : void 0, St = Tt ? Tt.valueOf : void 0;
|
|
1202
1202
|
function de(e) {
|
|
1203
1203
|
var i = -1, c = e ? e.length : 0;
|
|
1204
1204
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1312,9 +1312,9 @@ Ve.exports;
|
|
|
1312
1312
|
}
|
|
1313
1313
|
ge.prototype.clear = Na, ge.prototype.delete = Aa, ge.prototype.get = Fa, ge.prototype.has = xa, ge.prototype.set = Da;
|
|
1314
1314
|
function Ra(e, i) {
|
|
1315
|
-
var c = rt(e) || on(e) ? Qt(e.length, String) : [], h = c.length,
|
|
1316
|
-
for (var
|
|
1317
|
-
ue.call(e,
|
|
1315
|
+
var c = rt(e) || on(e) ? Qt(e.length, String) : [], h = c.length, j = !!h;
|
|
1316
|
+
for (var H in e)
|
|
1317
|
+
ue.call(e, H) && !(j && (H == "length" || tn(H, h))) && c.push(H);
|
|
1318
1318
|
return c;
|
|
1319
1319
|
}
|
|
1320
1320
|
function _t(e, i, c) {
|
|
@@ -1330,40 +1330,40 @@ Ve.exports;
|
|
|
1330
1330
|
function Ba(e, i) {
|
|
1331
1331
|
return e && It(i, it(i), e);
|
|
1332
1332
|
}
|
|
1333
|
-
function at(e, i, c, h,
|
|
1334
|
-
var
|
|
1335
|
-
if (h && (
|
|
1336
|
-
return
|
|
1333
|
+
function at(e, i, c, h, j, H, se) {
|
|
1334
|
+
var U;
|
|
1335
|
+
if (h && (U = H ? h(e, j, H, se) : h(e)), U !== void 0)
|
|
1336
|
+
return U;
|
|
1337
1337
|
if (!Be(e))
|
|
1338
1338
|
return e;
|
|
1339
1339
|
var At = rt(e);
|
|
1340
1340
|
if (At) {
|
|
1341
|
-
if (
|
|
1342
|
-
return qa(e,
|
|
1341
|
+
if (U = Ja(e), !i)
|
|
1342
|
+
return qa(e, U);
|
|
1343
1343
|
} else {
|
|
1344
1344
|
var we = fe(e), Ft = we == F || we == E;
|
|
1345
1345
|
if (cn(e))
|
|
1346
1346
|
return Ka(e, i);
|
|
1347
|
-
if (we == S || we == u || Ft && !
|
|
1347
|
+
if (we == S || we == u || Ft && !H) {
|
|
1348
1348
|
if (vt(e))
|
|
1349
|
-
return
|
|
1350
|
-
if (
|
|
1351
|
-
return Xa(e, Ba(
|
|
1349
|
+
return H ? e : {};
|
|
1350
|
+
if (U = Qa(Ft ? {} : e), !i)
|
|
1351
|
+
return Xa(e, Ba(U, e));
|
|
1352
1352
|
} else {
|
|
1353
1353
|
if (!m[we])
|
|
1354
|
-
return
|
|
1355
|
-
|
|
1354
|
+
return H ? e : {};
|
|
1355
|
+
U = en(e, we, at, i);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
1358
|
se || (se = new ge());
|
|
1359
1359
|
var xt = se.get(e);
|
|
1360
1360
|
if (xt)
|
|
1361
1361
|
return xt;
|
|
1362
|
-
if (se.set(e,
|
|
1362
|
+
if (se.set(e, U), !At)
|
|
1363
1363
|
var Dt = c ? Ya(e) : it(e);
|
|
1364
1364
|
return Yt(Dt || e, function(ot, Le) {
|
|
1365
|
-
Dt && (Le = ot, ot = e[Le]), _t(
|
|
1366
|
-
}),
|
|
1365
|
+
Dt && (Le = ot, ot = e[Le]), _t(U, Le, at(ot, i, c, h, Le, e, se));
|
|
1366
|
+
}), U;
|
|
1367
1367
|
}
|
|
1368
1368
|
function La(e) {
|
|
1369
1369
|
return Be(e) ? ia(e) : {};
|
|
@@ -1430,9 +1430,9 @@ Ve.exports;
|
|
|
1430
1430
|
}
|
|
1431
1431
|
function It(e, i, c, h) {
|
|
1432
1432
|
c || (c = {});
|
|
1433
|
-
for (var
|
|
1434
|
-
var se = i[
|
|
1435
|
-
_t(c, se,
|
|
1433
|
+
for (var j = -1, H = i.length; ++j < H; ) {
|
|
1434
|
+
var se = i[j], U = void 0;
|
|
1435
|
+
_t(c, se, U === void 0 ? e[se] : U);
|
|
1436
1436
|
}
|
|
1437
1437
|
return c;
|
|
1438
1438
|
}
|
|
@@ -1451,20 +1451,20 @@ Ve.exports;
|
|
|
1451
1451
|
return ja(c) ? c : void 0;
|
|
1452
1452
|
}
|
|
1453
1453
|
var Ot = kt ? Xe(kt, Object) : dn, fe = Pa;
|
|
1454
|
-
(Je && fe(new Je(new ArrayBuffer(1))) !=
|
|
1454
|
+
(Je && fe(new Je(new ArrayBuffer(1))) != K || Ie && fe(new Ie()) != D || Qe && fe(Qe.resolve()) != x || et && fe(new et()) != M || tt && fe(new tt()) != Y) && (fe = function(e) {
|
|
1455
1455
|
var i = xe.call(e), c = i == S ? e.constructor : void 0, h = c ? ve(c) : void 0;
|
|
1456
1456
|
if (h)
|
|
1457
1457
|
switch (h) {
|
|
1458
1458
|
case ua:
|
|
1459
|
-
return
|
|
1459
|
+
return K;
|
|
1460
1460
|
case da:
|
|
1461
1461
|
return D;
|
|
1462
1462
|
case fa:
|
|
1463
1463
|
return x;
|
|
1464
1464
|
case va:
|
|
1465
|
-
return
|
|
1465
|
+
return M;
|
|
1466
1466
|
case ba:
|
|
1467
|
-
return
|
|
1467
|
+
return Y;
|
|
1468
1468
|
}
|
|
1469
1469
|
return i;
|
|
1470
1470
|
});
|
|
@@ -1476,33 +1476,33 @@ Ve.exports;
|
|
|
1476
1476
|
return typeof e.constructor == "function" && !Ct(e) ? La(ra(e)) : {};
|
|
1477
1477
|
}
|
|
1478
1478
|
function en(e, i, c, h) {
|
|
1479
|
-
var
|
|
1479
|
+
var j = e.constructor;
|
|
1480
1480
|
switch (i) {
|
|
1481
|
-
case
|
|
1481
|
+
case J:
|
|
1482
1482
|
return nt(e);
|
|
1483
1483
|
case v:
|
|
1484
1484
|
case y:
|
|
1485
|
-
return new
|
|
1486
|
-
case
|
|
1485
|
+
return new j(+e);
|
|
1486
|
+
case K:
|
|
1487
1487
|
return Ha(e, h);
|
|
1488
|
-
case q:
|
|
1489
1488
|
case G:
|
|
1489
|
+
case V:
|
|
1490
|
+
case ne:
|
|
1490
1491
|
case $:
|
|
1491
|
-
case
|
|
1492
|
-
case
|
|
1493
|
-
case O:
|
|
1492
|
+
case B:
|
|
1493
|
+
case _:
|
|
1494
1494
|
case d:
|
|
1495
1495
|
case s:
|
|
1496
1496
|
case f:
|
|
1497
1497
|
return Ga(e, h);
|
|
1498
1498
|
case D:
|
|
1499
1499
|
return Ua(e, h, c);
|
|
1500
|
-
case B:
|
|
1501
|
-
case ne:
|
|
1502
|
-
return new Z(e);
|
|
1503
|
-
case V:
|
|
1504
|
-
return Wa(e);
|
|
1505
1500
|
case L:
|
|
1501
|
+
case ae:
|
|
1502
|
+
return new j(e);
|
|
1503
|
+
case z:
|
|
1504
|
+
return Wa(e);
|
|
1505
|
+
case M:
|
|
1506
1506
|
return za(e, h, c);
|
|
1507
1507
|
case ce:
|
|
1508
1508
|
return Va(e);
|
|
@@ -1594,7 +1594,7 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1594
1594
|
}, qr = {
|
|
1595
1595
|
key: 2,
|
|
1596
1596
|
class: "level-primary bottom-items"
|
|
1597
|
-
}, Xr = { class: "sidebar-footer" }, Yr = /* @__PURE__ */
|
|
1597
|
+
}, Xr = { class: "sidebar-footer" }, Yr = /* @__PURE__ */ ee({
|
|
1598
1598
|
__name: "AppSidebar",
|
|
1599
1599
|
props: {
|
|
1600
1600
|
topItems: {
|
|
@@ -1660,7 +1660,7 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1660
1660
|
"7a10f32f": v.value.height,
|
|
1661
1661
|
"7da84766": v.value.top,
|
|
1662
1662
|
"1e6146be": g.value.marginTop,
|
|
1663
|
-
"5b6aa028":
|
|
1663
|
+
"5b6aa028": _.value,
|
|
1664
1664
|
"178af94b": y.value.display,
|
|
1665
1665
|
"49f98062": y.value.minHeight,
|
|
1666
1666
|
"548fea1c": F.value.top,
|
|
@@ -1687,31 +1687,31 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1687
1687
|
m.parentKey = b.key, (!m.testId || !((A = m.testId) != null && A.trim())) && (m.testId = String(m.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1688
1688
|
}
|
|
1689
1689
|
return b;
|
|
1690
|
-
}), D = k(() => a.topItems.length ? E(a.topItems) : []),
|
|
1690
|
+
}), D = k(() => a.topItems.length ? E(a.topItems) : []), L = k(() => a.bottomItems.length ? E(a.bottomItems) : []), S = W(a.open), x = (s) => {
|
|
1691
1691
|
var f, b;
|
|
1692
|
-
S.value !== s && (S.value = s, r("toggle", s)), s ? (f = document == null ? void 0 : document.body) == null || f.classList.add("kong-ui-app-sidebar-open") : (b = document == null ? void 0 : document.body) == null || b.classList.remove("kong-ui-app-sidebar-open"),
|
|
1693
|
-
},
|
|
1692
|
+
S.value !== s && (S.value = s, r("toggle", s)), s ? (f = document == null ? void 0 : document.body) == null || f.classList.add("kong-ui-app-sidebar-open") : (b = document == null ? void 0 : document.body) == null || b.classList.remove("kong-ui-app-sidebar-open"), M.value = !1;
|
|
1693
|
+
}, z = () => {
|
|
1694
1694
|
a.mobileOverlayCloseOnClick && x(!1);
|
|
1695
|
-
},
|
|
1696
|
-
|
|
1695
|
+
}, M = W(!1), ae = (s) => {
|
|
1696
|
+
M.value = !0, r("click", s), setTimeout(() => {
|
|
1697
1697
|
x(!1);
|
|
1698
1698
|
}, a.mobileCloseDelay);
|
|
1699
1699
|
};
|
|
1700
1700
|
Ke(() => a.open, (s) => {
|
|
1701
1701
|
x(s);
|
|
1702
1702
|
});
|
|
1703
|
-
const { debounce: ce } = Xt(),
|
|
1704
|
-
S.value &&
|
|
1705
|
-
}, 200),
|
|
1706
|
-
|
|
1707
|
-
},
|
|
1703
|
+
const { debounce: ce } = Xt(), Y = ce(() => {
|
|
1704
|
+
S.value && J.value !== (window == null ? void 0 : window.innerWidth) && (J.value = window == null ? void 0 : window.innerWidth, x(!1));
|
|
1705
|
+
}, 200), J = W(), K = W(!1), G = W(), V = () => {
|
|
1706
|
+
K.value || (K.value = !0, clearTimeout(G.value), G.value = setTimeout(() => K.value = !1, 1300));
|
|
1707
|
+
}, ne = W(null), $ = k(() => S.value && a.mobileEnabled), B = async (s) => {
|
|
1708
1708
|
var f, b;
|
|
1709
|
-
s ? (await Rt(), await new Promise((T) => setTimeout(T, 300)), (f =
|
|
1709
|
+
s ? (await Rt(), await new Promise((T) => setTimeout(T, 300)), (f = ne.value) == null || f.activate()) : (b = ne.value) == null || b.deactivate();
|
|
1710
1710
|
};
|
|
1711
|
-
Ke(
|
|
1712
|
-
s ? await
|
|
1711
|
+
Ke($, async (s) => {
|
|
1712
|
+
s ? await B(!0) : await B(!1);
|
|
1713
1713
|
}, { immediate: !0 });
|
|
1714
|
-
const
|
|
1714
|
+
const _ = W("0px"), d = () => {
|
|
1715
1715
|
var m;
|
|
1716
1716
|
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((m = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : m.platform)))
|
|
1717
1717
|
return;
|
|
@@ -1722,73 +1722,73 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1722
1722
|
const T = document.createElement("div");
|
|
1723
1723
|
T.style.width = "100%", f.appendChild(T);
|
|
1724
1724
|
const N = T.offsetWidth;
|
|
1725
|
-
f.parentNode && f.parentNode.removeChild(f), b - N === 0 && (
|
|
1725
|
+
f.parentNode && f.parentNode.removeChild(f), b - N === 0 && (_.value = "8px");
|
|
1726
1726
|
};
|
|
1727
1727
|
return qe(async () => {
|
|
1728
|
-
|
|
1728
|
+
J.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", Y), window.addEventListener("resize", V), await Rt(), d();
|
|
1729
1729
|
}), Ht(() => {
|
|
1730
|
-
window.removeEventListener("resize",
|
|
1730
|
+
window.removeEventListener("resize", Y), window.removeEventListener("resize", V);
|
|
1731
1731
|
}), (s, f) => (p(), w($e, null, [
|
|
1732
1732
|
S.value && n.mobileOverlay && n.mobileEnabled ? (p(), w("div", {
|
|
1733
1733
|
key: 0,
|
|
1734
1734
|
class: "kong-ui-app-sidebar-overlay",
|
|
1735
|
-
onClick:
|
|
1735
|
+
onClick: z
|
|
1736
1736
|
})) : C("", !0),
|
|
1737
1737
|
Ne(yn(Pr), {
|
|
1738
1738
|
ref_key: "focusTrap",
|
|
1739
|
-
ref:
|
|
1739
|
+
ref: ne,
|
|
1740
1740
|
active: !1,
|
|
1741
1741
|
"allow-outside-click": "",
|
|
1742
1742
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1743
1743
|
}, {
|
|
1744
1744
|
default: R(() => [
|
|
1745
|
-
|
|
1745
|
+
O("aside", {
|
|
1746
1746
|
class: re(["kong-ui-app-sidebar", {
|
|
1747
1747
|
"sidebar-open": S.value,
|
|
1748
1748
|
"no-sidebar-header": !u.value,
|
|
1749
1749
|
"mobile-header-hidden": n.mobileEnabled && (!u.value || !n.mobileHeaderVisible),
|
|
1750
1750
|
"mobile-disabled": !n.mobileEnabled,
|
|
1751
|
-
"disable-transitions":
|
|
1751
|
+
"disable-transitions": K.value
|
|
1752
1752
|
}]),
|
|
1753
1753
|
tabindex: "-1"
|
|
1754
1754
|
}, [
|
|
1755
1755
|
u.value ? (p(), w("div", Hr, [
|
|
1756
|
-
|
|
1756
|
+
I(s.$slots, "header", {}, void 0, !0)
|
|
1757
1757
|
])) : C("", !0),
|
|
1758
|
-
|
|
1758
|
+
O("div", Ur, [
|
|
1759
1759
|
o.value ? (p(), w("div", Wr, [
|
|
1760
|
-
|
|
1760
|
+
I(s.$slots, "top", {}, void 0, !0)
|
|
1761
1761
|
])) : C("", !0),
|
|
1762
|
-
|
|
1762
|
+
O("nav", zr, [
|
|
1763
1763
|
D.value.length ? (p(), w("ul", Vr, [
|
|
1764
|
-
(p(!0), w($e, null, Te(D.value, (b) => (p(),
|
|
1764
|
+
(p(!0), w($e, null, Te(D.value, (b) => (p(), X(Bt, {
|
|
1765
1765
|
key: b.name,
|
|
1766
1766
|
item: b,
|
|
1767
|
-
onClick:
|
|
1767
|
+
onClick: ae
|
|
1768
1768
|
}, {
|
|
1769
1769
|
[`sidebar-icon-${b.key}`]: R(() => [
|
|
1770
|
-
|
|
1770
|
+
I(s.$slots, `sidebar-icon-${b.key}`, {}, void 0, !0)
|
|
1771
1771
|
]),
|
|
1772
1772
|
_: 2
|
|
1773
1773
|
}, 1032, ["item"]))), 128))
|
|
1774
1774
|
])) : C("", !0),
|
|
1775
|
-
D.value.length &&
|
|
1776
|
-
|
|
1777
|
-
(p(!0), w($e, null, Te(
|
|
1775
|
+
D.value.length && L.value.length ? (p(), w("div", Gr)) : C("", !0),
|
|
1776
|
+
L.value.length ? (p(), w("ul", qr, [
|
|
1777
|
+
(p(!0), w($e, null, Te(L.value, (b) => (p(), X(Bt, {
|
|
1778
1778
|
key: b.name,
|
|
1779
1779
|
item: b,
|
|
1780
|
-
onClick:
|
|
1780
|
+
onClick: ae
|
|
1781
1781
|
}, {
|
|
1782
1782
|
[`sidebar-icon-${b.key}`]: R(() => [
|
|
1783
|
-
|
|
1783
|
+
I(s.$slots, `sidebar-icon-${b.key}`, {}, void 0, !0)
|
|
1784
1784
|
]),
|
|
1785
1785
|
_: 2
|
|
1786
1786
|
}, 1032, ["item"]))), 128))
|
|
1787
1787
|
])) : C("", !0)
|
|
1788
1788
|
])
|
|
1789
1789
|
]),
|
|
1790
|
-
|
|
1791
|
-
|
|
1790
|
+
O("div", Xr, [
|
|
1791
|
+
I(s.$slots, "footer", {}, void 0, !0)
|
|
1792
1792
|
])
|
|
1793
1793
|
], 2)
|
|
1794
1794
|
]),
|
|
@@ -1796,7 +1796,7 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1796
1796
|
}, 512)
|
|
1797
1797
|
], 64));
|
|
1798
1798
|
}
|
|
1799
|
-
}), Jr = /* @__PURE__ */
|
|
1799
|
+
}), Jr = /* @__PURE__ */ te(Yr, [["__scopeId", "data-v-c9dc6d28"]]), Qr = ["aria-label"], ei = /* @__PURE__ */ ee({
|
|
1800
1800
|
__name: "SidebarToggle",
|
|
1801
1801
|
props: {
|
|
1802
1802
|
active: {
|
|
@@ -1806,7 +1806,7 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1806
1806
|
},
|
|
1807
1807
|
emits: ["toggle"],
|
|
1808
1808
|
setup(n, { emit: t }) {
|
|
1809
|
-
const r = t, a = n, l =
|
|
1809
|
+
const r = t, a = n, l = W(a.active || !1), u = (o) => {
|
|
1810
1810
|
o.preventDefault(), l.value = !l.value, r("toggle", l.value);
|
|
1811
1811
|
};
|
|
1812
1812
|
return Ke(() => a.active, (o) => {
|
|
@@ -1819,18 +1819,18 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1819
1819
|
role: "button",
|
|
1820
1820
|
onClick: wn(u, ["prevent"])
|
|
1821
1821
|
}, v[0] || (v[0] = [
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1822
|
+
O("span", { class: "line" }, null, -1),
|
|
1823
|
+
O("span", { class: "line" }, null, -1),
|
|
1824
|
+
O("span", { class: "line" }, null, -1)
|
|
1825
1825
|
]), 10, Qr));
|
|
1826
1826
|
}
|
|
1827
|
-
}), ti = /* @__PURE__ */
|
|
1827
|
+
}), ti = /* @__PURE__ */ te(ei, [["__scopeId", "data-v-fbde70e6"]]), ai = "#ffffff", ni = "#000933", ri = "#000933", ii = "#ffffff", oi = "0px", si = "4px", ci = { id: "kong-ui-app-layout-notification" }, li = { class: "mobile-logo" }, ui = {
|
|
1828
1828
|
key: 0,
|
|
1829
1829
|
class: "navbar-logo"
|
|
1830
1830
|
}, di = {
|
|
1831
1831
|
class: "kong-ui-app-layout-main",
|
|
1832
1832
|
"data-testid": "kong-ui-app-layout-main"
|
|
1833
|
-
}, fi = { class: "kong-ui-app-layout-content" }, vi = { class: "kong-ui-app-layout-content-inner" }, bi = /* @__PURE__ */
|
|
1833
|
+
}, fi = { class: "kong-ui-app-layout-content" }, vi = { class: "kong-ui-app-layout-content-inner" }, bi = /* @__PURE__ */ ee({
|
|
1834
1834
|
__name: "AppLayout",
|
|
1835
1835
|
props: {
|
|
1836
1836
|
hideDefaultSlot: {
|
|
@@ -1868,11 +1868,11 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1868
1868
|
emits: ["sidebar-click"],
|
|
1869
1869
|
setup(n, { expose: t, emit: r }) {
|
|
1870
1870
|
dt(($) => ({
|
|
1871
|
-
"
|
|
1872
|
-
"
|
|
1873
|
-
"
|
|
1874
|
-
"
|
|
1875
|
-
|
|
1871
|
+
"4c517e79": ae.value,
|
|
1872
|
+
"20fb316f": ce.value,
|
|
1873
|
+
"3ef33407": M.value,
|
|
1874
|
+
"932a612a": Y.value,
|
|
1875
|
+
dfc422c4: J.value
|
|
1876
1876
|
}));
|
|
1877
1877
|
const a = n, l = r, u = Ge(), o = je({
|
|
1878
1878
|
navbarLeft: k(() => !!u["navbar-left"]),
|
|
@@ -1892,53 +1892,53 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1892
1892
|
hidden: k(() => a.sidebarHidden)
|
|
1893
1893
|
}), F = ($) => {
|
|
1894
1894
|
l("sidebar-click", $);
|
|
1895
|
-
}, E =
|
|
1895
|
+
}, E = W(!1), D = ($) => {
|
|
1896
1896
|
E.value = $;
|
|
1897
1897
|
};
|
|
1898
1898
|
kn(() => {
|
|
1899
1899
|
E.value = Tn(g, "open").value || !1;
|
|
1900
1900
|
});
|
|
1901
|
-
const
|
|
1902
|
-
if ($ ||
|
|
1903
|
-
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1901
|
+
const L = W(0), S = W(60), x = W(0), z = k(() => y.hidden ? x.value : S.value + x.value), M = k(() => a.theme === "light" ? ri : ii), ae = k(() => a.theme === "light" ? ai : ni), ce = k(() => a.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), Y = k(() => `${z.value}px`), J = k(() => g.hidden || y.hidden ? oi : si), { debounce: K } = Xt(), G = K(($ = !1) => {
|
|
1902
|
+
if ($ || L.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1903
|
+
L.value = window == null ? void 0 : window.innerWidth;
|
|
1904
|
+
const B = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1905
|
+
B && (x.value = B.offsetHeight);
|
|
1906
1906
|
}
|
|
1907
|
-
}, 200),
|
|
1907
|
+
}, 200), V = W(), ne = k(() => x.value);
|
|
1908
1908
|
return t({
|
|
1909
1909
|
/** Expose the computed top offset */
|
|
1910
|
-
topOffset:
|
|
1910
|
+
topOffset: ne
|
|
1911
1911
|
}), qe(() => {
|
|
1912
|
-
var
|
|
1913
|
-
(
|
|
1912
|
+
var B, _;
|
|
1913
|
+
(B = document == null ? void 0 : document.body) == null || B.classList.add("kong-ui-app-layout-body"), (_ = document == null ? void 0 : document.documentElement) == null || _.classList.add("kong-ui-app-layout-html"), L.value = window == null ? void 0 : window.innerWidth, G(!0);
|
|
1914
1914
|
const $ = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1915
|
-
$ && (
|
|
1915
|
+
$ && (V.value = new ResizeObserver((d) => {
|
|
1916
1916
|
window.requestAnimationFrame(() => {
|
|
1917
|
-
if (!(!Array.isArray(
|
|
1918
|
-
for (const
|
|
1919
|
-
const
|
|
1920
|
-
x.value !==
|
|
1917
|
+
if (!(!Array.isArray(d) || !d.length))
|
|
1918
|
+
for (const s of d) {
|
|
1919
|
+
const f = s.contentRect.height;
|
|
1920
|
+
x.value !== f && (x.value = f);
|
|
1921
1921
|
}
|
|
1922
1922
|
});
|
|
1923
|
-
}),
|
|
1923
|
+
}), V.value.observe($)), window.addEventListener("resize", G);
|
|
1924
1924
|
}), Ht(() => {
|
|
1925
|
-
|
|
1926
|
-
}), ($,
|
|
1925
|
+
V.value && V.value.disconnect(), window.removeEventListener("resize", G);
|
|
1926
|
+
}), ($, B) => (p(), w("div", {
|
|
1927
1927
|
class: re(["kong-ui-app-layout", [
|
|
1928
1928
|
{ "navbar-hidden": y.hidden },
|
|
1929
1929
|
{ "sidebar-hidden": g.hidden }
|
|
1930
1930
|
]])
|
|
1931
1931
|
}, [
|
|
1932
|
-
|
|
1933
|
-
|
|
1932
|
+
O("div", ci, [
|
|
1933
|
+
I($.$slots, "notification", {}, void 0, !0)
|
|
1934
1934
|
]),
|
|
1935
|
-
y.hidden ? C("", !0) : (p(),
|
|
1935
|
+
y.hidden ? C("", !0) : (p(), X(er, {
|
|
1936
1936
|
key: String(g.hidden),
|
|
1937
1937
|
"left-offset": g.hidden ? 0 : void 0,
|
|
1938
1938
|
"top-offset": x.value
|
|
1939
1939
|
}, Ze({
|
|
1940
1940
|
"mobile-sidebar-toggle": R(() => [
|
|
1941
|
-
g.hidden ? C("", !0) : (p(),
|
|
1941
|
+
g.hidden ? C("", !0) : (p(), X(ti, {
|
|
1942
1942
|
key: 0,
|
|
1943
1943
|
active: E.value,
|
|
1944
1944
|
onToggle: D
|
|
@@ -1949,8 +1949,8 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1949
1949
|
o.navbarMobileLogo ? {
|
|
1950
1950
|
name: "mobile-logo",
|
|
1951
1951
|
fn: R(() => [
|
|
1952
|
-
|
|
1953
|
-
|
|
1952
|
+
O("div", li, [
|
|
1953
|
+
I($.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1954
1954
|
])
|
|
1955
1955
|
]),
|
|
1956
1956
|
key: "0"
|
|
@@ -1959,7 +1959,7 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1959
1959
|
name: "logo",
|
|
1960
1960
|
fn: R(() => [
|
|
1961
1961
|
g.hidden ? (p(), w("div", ui, [
|
|
1962
|
-
|
|
1962
|
+
I($.$slots, "navbar-logo", {}, void 0, !0)
|
|
1963
1963
|
])) : C("", !0)
|
|
1964
1964
|
]),
|
|
1965
1965
|
key: "1"
|
|
@@ -1967,32 +1967,32 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
1967
1967
|
o.navbarLeft ? {
|
|
1968
1968
|
name: "left",
|
|
1969
1969
|
fn: R(() => [
|
|
1970
|
-
|
|
1970
|
+
I($.$slots, "navbar-left", {}, void 0, !0)
|
|
1971
1971
|
]),
|
|
1972
1972
|
key: "2"
|
|
1973
1973
|
} : void 0,
|
|
1974
1974
|
o.navbarCenter ? {
|
|
1975
1975
|
name: "center",
|
|
1976
1976
|
fn: R(() => [
|
|
1977
|
-
|
|
1977
|
+
I($.$slots, "navbar-center", {}, void 0, !0)
|
|
1978
1978
|
]),
|
|
1979
1979
|
key: "3"
|
|
1980
1980
|
} : void 0,
|
|
1981
1981
|
o.navbarRight ? {
|
|
1982
1982
|
name: "right",
|
|
1983
1983
|
fn: R(() => [
|
|
1984
|
-
|
|
1984
|
+
I($.$slots, "navbar-right", {}, void 0, !0)
|
|
1985
1985
|
]),
|
|
1986
1986
|
key: "4"
|
|
1987
1987
|
} : void 0
|
|
1988
1988
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1989
|
-
g.hidden ? C("", !0) : (p(),
|
|
1989
|
+
g.hidden ? C("", !0) : (p(), X(Jr, {
|
|
1990
1990
|
key: 1,
|
|
1991
1991
|
"bottom-items": g.bottomItems,
|
|
1992
1992
|
"header-height": S.value,
|
|
1993
1993
|
"mobile-enabled": "",
|
|
1994
1994
|
"mobile-header-visible": !1,
|
|
1995
|
-
"mobile-top-offset":
|
|
1995
|
+
"mobile-top-offset": z.value,
|
|
1996
1996
|
open: E.value,
|
|
1997
1997
|
"top-items": g.topItems,
|
|
1998
1998
|
"top-offset": x.value,
|
|
@@ -2002,43 +2002,43 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
2002
2002
|
o.sidebarHeader ? {
|
|
2003
2003
|
name: "header",
|
|
2004
2004
|
fn: R(() => [
|
|
2005
|
-
|
|
2005
|
+
I($.$slots, "sidebar-header", {}, void 0, !0)
|
|
2006
2006
|
]),
|
|
2007
2007
|
key: "0"
|
|
2008
2008
|
} : void 0,
|
|
2009
2009
|
o.sidebarTop ? {
|
|
2010
2010
|
name: "top",
|
|
2011
2011
|
fn: R(() => [
|
|
2012
|
-
|
|
2012
|
+
I($.$slots, "sidebar-top", {}, void 0, !0)
|
|
2013
2013
|
]),
|
|
2014
2014
|
key: "1"
|
|
2015
2015
|
} : void 0,
|
|
2016
2016
|
o.sidebarFooter ? {
|
|
2017
2017
|
name: "footer",
|
|
2018
2018
|
fn: R(() => [
|
|
2019
|
-
|
|
2019
|
+
I($.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2020
2020
|
]),
|
|
2021
2021
|
key: "2"
|
|
2022
2022
|
} : void 0,
|
|
2023
|
-
Te([...g.topItems || [], ...g.bottomItems || []], (
|
|
2024
|
-
name: `sidebar-icon-${
|
|
2023
|
+
Te([...g.topItems || [], ...g.bottomItems || []], (_) => ({
|
|
2024
|
+
name: `sidebar-icon-${_.key}`,
|
|
2025
2025
|
fn: R(() => [
|
|
2026
|
-
|
|
2026
|
+
I($.$slots, `sidebar-icon-${_.key}`, {}, void 0, !0)
|
|
2027
2027
|
])
|
|
2028
2028
|
}))
|
|
2029
2029
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
v.value ? C("", !0) :
|
|
2030
|
+
O("main", di, [
|
|
2031
|
+
O("div", fi, [
|
|
2032
|
+
O("div", vi, [
|
|
2033
|
+
B[0] || (B[0] = O("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2034
|
+
I($.$slots, "app-error", {}, void 0, !0),
|
|
2035
|
+
v.value ? C("", !0) : I($.$slots, "default", { key: 0 }, void 0, !0)
|
|
2036
2036
|
])
|
|
2037
2037
|
])
|
|
2038
2038
|
])
|
|
2039
2039
|
], 2));
|
|
2040
2040
|
}
|
|
2041
|
-
}), hi = /* @__PURE__ */
|
|
2041
|
+
}), hi = /* @__PURE__ */ te(bi, [["__scopeId", "data-v-15a40b60"]]), pi = { class: "kong-ui-app-page-header" }, mi = {
|
|
2042
2042
|
key: 0,
|
|
2043
2043
|
class: "page-header-breadcrumbs",
|
|
2044
2044
|
"data-testid": "page-header-breadcrumbs"
|
|
@@ -2058,7 +2058,7 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
2058
2058
|
key: 1,
|
|
2059
2059
|
class: "page-header-section-below",
|
|
2060
2060
|
"data-testid": "page-header-section-below"
|
|
2061
|
-
}, Ii = /* @__PURE__ */
|
|
2061
|
+
}, Ii = /* @__PURE__ */ ee({
|
|
2062
2062
|
__name: "AppPageHeader",
|
|
2063
2063
|
props: {
|
|
2064
2064
|
title: {
|
|
@@ -2087,36 +2087,36 @@ const Kr = /* @__PURE__ */ jr(Zr), Hr = {
|
|
|
2087
2087
|
Te(l.value, (y) => ({
|
|
2088
2088
|
name: y,
|
|
2089
2089
|
fn: R(() => [
|
|
2090
|
-
|
|
2090
|
+
I(u.$slots, y, {}, void 0, !0)
|
|
2091
2091
|
])
|
|
2092
2092
|
}))
|
|
2093
2093
|
]), 1032, ["items"])
|
|
2094
2094
|
])) : C("", !0),
|
|
2095
|
-
|
|
2096
|
-
|
|
2095
|
+
O("div", gi, [
|
|
2096
|
+
O("div", yi, [
|
|
2097
2097
|
u.$slots["title-before"] ? (p(), w("div", wi, [
|
|
2098
|
-
|
|
2098
|
+
I(u.$slots, "title-before", {}, void 0, !0)
|
|
2099
2099
|
])) : C("", !0),
|
|
2100
|
-
|
|
2100
|
+
O("h1", {
|
|
2101
2101
|
class: "page-header-title",
|
|
2102
2102
|
"data-testid": "page-header-title",
|
|
2103
2103
|
title: n.title
|
|
2104
|
-
},
|
|
2104
|
+
}, q(n.title), 9, ki),
|
|
2105
2105
|
u.$slots["title-after"] ? (p(), w("div", Ti, [
|
|
2106
|
-
|
|
2106
|
+
I(u.$slots, "title-after", {}, void 0, !0)
|
|
2107
2107
|
])) : C("", !0)
|
|
2108
2108
|
]),
|
|
2109
2109
|
u.$slots.actions ? (p(), w("div", Si, [
|
|
2110
|
-
|
|
2110
|
+
I(u.$slots, "actions", {}, void 0, !0)
|
|
2111
2111
|
])) : C("", !0)
|
|
2112
2112
|
]),
|
|
2113
2113
|
u.$slots.below ? (p(), w("div", _i, [
|
|
2114
|
-
|
|
2114
|
+
I(u.$slots, "below", {}, void 0, !0)
|
|
2115
2115
|
])) : C("", !0)
|
|
2116
2116
|
]);
|
|
2117
2117
|
};
|
|
2118
2118
|
}
|
|
2119
|
-
}), Ni = /* @__PURE__ */
|
|
2119
|
+
}), Ni = /* @__PURE__ */ te(Ii, [["__scopeId", "data-v-204b7f98"]]), Ai = {
|
|
2120
2120
|
// Customize Vue plugin options as desired
|
|
2121
2121
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2122
2122
|
install: (n, t = {}) => {
|