@kong-ui-public/app-layout 0.22.21 → 0.22.23-pr.782.059111c0.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/dist/app-layout.es.js +671 -573
- package/dist/app-layout.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/components/aboutSection/AppAboutSection.vue.d.ts +69 -0
- package/dist/types/components/aboutSection/AppAboutSection.vue.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/app-layout.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const Cn = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as te, resolveComponent as ve, openBlock as h, createBlock as Q, withCtx as B, renderSlot as $, createElementBlock as m, Fragment as $e, renderList as Oe, normalizeClass as ie, createTextVNode as ct, toDisplayString as J, computed as g, createSlots as Pe, createCommentVNode as C, createElementVNode as _, createStaticVNode as pn, createVNode as Ve, pushScopeId as Ge, popScopeId as Ue, useCssVars as ut, useSlots as dt, reactive as Le, onMounted as We, resolveDynamicComponent as mn, withKeys as gn, ref as q, watch as Me, onUnmounted as yn, Comment as _n, cloneVNode as wn, onBeforeUnmount as Ht, unref as Tn, nextTick as kn, withModifiers as Sn, watchEffect as In, toRef as $n } from "vue";
|
|
2
|
+
const Cn = /* @__PURE__ */ te({
|
|
3
3
|
__name: "AccountDropdown",
|
|
4
4
|
props: {
|
|
5
5
|
options: {
|
|
@@ -19,26 +19,26 @@ const Cn = /* @__PURE__ */ ae({
|
|
|
19
19
|
},
|
|
20
20
|
setup(n) {
|
|
21
21
|
return (t, a) => {
|
|
22
|
-
const r =
|
|
23
|
-
return
|
|
22
|
+
const r = ve("KDropdownItem"), l = ve("KDropdownMenu");
|
|
23
|
+
return h(), Q(l, {
|
|
24
24
|
class: "account-dropdown",
|
|
25
25
|
"kpop-attributes": { placement: "bottomStart" },
|
|
26
26
|
label: n.userInitials,
|
|
27
27
|
size: "small",
|
|
28
28
|
width: n.width
|
|
29
29
|
}, {
|
|
30
|
-
items:
|
|
31
|
-
|
|
32
|
-
(
|
|
30
|
+
items: B(({ handleSelection: d }) => [
|
|
31
|
+
$(t.$slots, "default", {}, () => [
|
|
32
|
+
(h(!0), m($e, null, Oe(n.options, (o) => (h(), Q(r, {
|
|
33
33
|
key: o.value,
|
|
34
34
|
class: ie({ "has-divider": o.hasDivider }),
|
|
35
35
|
"data-testid": "select-" + o.value,
|
|
36
36
|
"has-divider": o.hasDivider,
|
|
37
37
|
onClick: (v) => d(o)
|
|
38
38
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
default: B(() => [
|
|
40
|
+
$(t.$slots, "default", { option: o }, () => [
|
|
41
|
+
ct(J(o.label), 1)
|
|
42
42
|
], !0)
|
|
43
43
|
]),
|
|
44
44
|
_: 2
|
|
@@ -50,46 +50,143 @@ const Cn = /* @__PURE__ */ ae({
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
const
|
|
53
|
+
const ae = (n, t) => {
|
|
54
54
|
const a = n.__vccOpts || n;
|
|
55
55
|
for (const [r, l] of t)
|
|
56
56
|
a[r] = l;
|
|
57
57
|
return a;
|
|
58
|
-
},
|
|
58
|
+
}, Li = /* @__PURE__ */ ae(Cn, [["__scopeId", "data-v-c4652497"]]), On = { class: "about-section-title" }, An = { class: "about-section-header-end" }, Nn = {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "about-section-timestamps-created"
|
|
61
|
+
}, En = {
|
|
62
|
+
key: 1,
|
|
63
|
+
class: "about-section-timestamps-arrow"
|
|
64
|
+
}, Fn = {
|
|
65
|
+
key: 2,
|
|
66
|
+
class: "about-section-timestamps-modified"
|
|
67
|
+
}, xn = {
|
|
68
|
+
key: 1,
|
|
69
|
+
class: "about-section-actions",
|
|
70
|
+
"data-testid": "about-section-actions"
|
|
71
|
+
}, Dn = {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: "about-section-description"
|
|
74
|
+
}, Bn = {
|
|
75
|
+
key: 1,
|
|
76
|
+
class: "about-section-content"
|
|
77
|
+
}, Rn = { key: 2 }, Ln = {
|
|
78
|
+
key: 3,
|
|
79
|
+
class: "about-divider-section"
|
|
80
|
+
}, Pn = /* @__PURE__ */ te({
|
|
81
|
+
__name: "AppAboutSection",
|
|
82
|
+
props: {
|
|
83
|
+
title: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: ""
|
|
86
|
+
},
|
|
87
|
+
description: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: ""
|
|
90
|
+
},
|
|
91
|
+
created: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: ""
|
|
94
|
+
},
|
|
95
|
+
createdLabel: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: ""
|
|
98
|
+
},
|
|
99
|
+
modified: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: ""
|
|
102
|
+
},
|
|
103
|
+
modifiedLabel: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: ""
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
setup(n) {
|
|
109
|
+
const t = n, a = g(() => !!t.modified && t.modified !== t.created);
|
|
110
|
+
return (r, l) => {
|
|
111
|
+
const d = ve("KCard");
|
|
112
|
+
return h(), Q(d, { class: "kong-ui-app-about-section" }, Pe({
|
|
113
|
+
body: B(() => [
|
|
114
|
+
n.description ? (h(), m("p", Dn, J(n.description), 1)) : C("", !0),
|
|
115
|
+
r.$slots.default ? (h(), m("div", Bn, [
|
|
116
|
+
$(r.$slots, "default", {}, void 0, !0)
|
|
117
|
+
])) : C("", !0),
|
|
118
|
+
r.$slots["divider-section"] ? (h(), m("hr", Rn)) : C("", !0),
|
|
119
|
+
r.$slots["divider-section"] ? (h(), m("div", Ln, [
|
|
120
|
+
$(r.$slots, "divider-section", {}, void 0, !0)
|
|
121
|
+
])) : C("", !0)
|
|
122
|
+
]),
|
|
123
|
+
_: 2
|
|
124
|
+
}, [
|
|
125
|
+
n.title ? {
|
|
126
|
+
name: "title",
|
|
127
|
+
fn: B(() => [
|
|
128
|
+
_("span", On, J(n.title), 1)
|
|
129
|
+
]),
|
|
130
|
+
key: "0"
|
|
131
|
+
} : void 0,
|
|
132
|
+
r.$slots.actions || n.created || n.modified ? {
|
|
133
|
+
name: "actions",
|
|
134
|
+
fn: B(() => [
|
|
135
|
+
_("div", An, [
|
|
136
|
+
n.created || n.modified ? (h(), m("div", {
|
|
137
|
+
key: 0,
|
|
138
|
+
class: ie(["about-section-timestamps", { "has-actions": r.$slots.actions }])
|
|
139
|
+
}, [
|
|
140
|
+
n.created ? (h(), m("span", Nn, J(n.createdLabel || "Created") + ": " + J(n.created), 1)) : C("", !0),
|
|
141
|
+
n.created && a.value ? (h(), m("span", En, "->")) : C("", !0),
|
|
142
|
+
a.value ? (h(), m("span", Fn, J(n.modifiedLabel || "Modified") + ": " + J(n.modified), 1)) : C("", !0)
|
|
143
|
+
], 2)) : C("", !0),
|
|
144
|
+
r.$slots.actions ? (h(), m("div", xn, [
|
|
145
|
+
$(r.$slots, "actions", {}, void 0, !0)
|
|
146
|
+
])) : C("", !0)
|
|
147
|
+
])
|
|
148
|
+
]),
|
|
149
|
+
key: "1"
|
|
150
|
+
} : void 0
|
|
151
|
+
]), 1024);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
const Pi = /* @__PURE__ */ ae(Pn, [["__scopeId", "data-v-de29ad3b"]]), Mn = {}, Zn = {
|
|
59
156
|
fill: "none",
|
|
60
157
|
height: "130",
|
|
61
158
|
width: "130",
|
|
62
159
|
xmlns: "http://www.w3.org/2000/svg"
|
|
63
|
-
},
|
|
64
|
-
|
|
160
|
+
}, jn = /* @__PURE__ */ pn('<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), Kn = [
|
|
161
|
+
jn
|
|
65
162
|
];
|
|
66
|
-
function
|
|
67
|
-
return
|
|
163
|
+
function Hn(n, t) {
|
|
164
|
+
return h(), m("svg", Zn, Kn);
|
|
68
165
|
}
|
|
69
|
-
const
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
], -1)),
|
|
166
|
+
const zn = /* @__PURE__ */ ae(Mn, [["render", Hn]]), zt = (n) => (Ge("data-v-5cbccc66"), n = n(), Ue(), n), Vn = { class: "kong-ui-app-error" }, Gn = { class: "banana-icon" }, Un = { class: "kong-ui-app-error-content" }, Wn = /* @__PURE__ */ zt(() => /* @__PURE__ */ _("h2", null, "An unexpected error has occurred", -1)), qn = /* @__PURE__ */ zt(() => /* @__PURE__ */ _("p", null, [
|
|
167
|
+
/* @__PURE__ */ ct("Go back to the previous page or "),
|
|
168
|
+
/* @__PURE__ */ _("a", { href: "/" }, "return home"),
|
|
169
|
+
/* @__PURE__ */ ct(".")
|
|
170
|
+
], -1)), Yn = /* @__PURE__ */ te({
|
|
74
171
|
__name: "AppError",
|
|
75
172
|
setup(n) {
|
|
76
|
-
return (t, a) => (
|
|
77
|
-
|
|
78
|
-
|
|
173
|
+
return (t, a) => (h(), m("section", Vn, [
|
|
174
|
+
_("div", Gn, [
|
|
175
|
+
Ve(zn)
|
|
79
176
|
]),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
177
|
+
_("div", Un, [
|
|
178
|
+
$(t.$slots, "default", {}, () => [
|
|
179
|
+
Wn,
|
|
180
|
+
qn
|
|
84
181
|
], !0)
|
|
85
182
|
])
|
|
86
183
|
]));
|
|
87
184
|
}
|
|
88
185
|
});
|
|
89
|
-
const
|
|
186
|
+
const Mi = /* @__PURE__ */ ae(Yn, [["__scopeId", "data-v-5cbccc66"]]), Xn = { class: "kong-ui-app-navbar" }, Jn = { class: "header-content" }, Qn = { class: "mobile-header-left" }, er = {
|
|
90
187
|
key: 0,
|
|
91
188
|
class: "app-navbar-logo"
|
|
92
|
-
},
|
|
189
|
+
}, tr = { class: "navbar-content" }, ar = { class: "navbar-content-left" }, nr = { class: "navbar-content-center" }, rr = { class: "navbar-content-right" }, ir = /* @__PURE__ */ te({
|
|
93
190
|
__name: "AppNavbar",
|
|
94
191
|
props: {
|
|
95
192
|
topOffset: {
|
|
@@ -119,7 +216,7 @@ const Ci = /* @__PURE__ */ ne(Mn, [["__scopeId", "data-v-5cbccc66"]]), Zn = { cl
|
|
|
119
216
|
marginRight: "0",
|
|
120
217
|
width: "0"
|
|
121
218
|
});
|
|
122
|
-
|
|
219
|
+
We(() => {
|
|
123
220
|
var o, v;
|
|
124
221
|
(v = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && v.length ? (l.marginRight = "32px", l.width = "calc(240px - 32px)") : (l.marginRight = "0", l.width = "0");
|
|
125
222
|
});
|
|
@@ -128,31 +225,31 @@ const Ci = /* @__PURE__ */ ne(Mn, [["__scopeId", "data-v-5cbccc66"]]), Zn = { cl
|
|
|
128
225
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
129
226
|
zIndex: t.zIndex
|
|
130
227
|
}));
|
|
131
|
-
return (o, v) => (
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
228
|
+
return (o, v) => (h(), m("header", Xn, [
|
|
229
|
+
_("div", Jn, [
|
|
230
|
+
_("div", Qn, [
|
|
231
|
+
$(o.$slots, "mobile-sidebar-toggle"),
|
|
232
|
+
$(o.$slots, "mobile-logo")
|
|
136
233
|
]),
|
|
137
|
-
r.value ? (
|
|
138
|
-
|
|
139
|
-
])) :
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
234
|
+
r.value ? (h(), m("div", er, [
|
|
235
|
+
$(o.$slots, "logo")
|
|
236
|
+
])) : C("", !0),
|
|
237
|
+
_("div", tr, [
|
|
238
|
+
_("div", ar, [
|
|
239
|
+
$(o.$slots, "left")
|
|
143
240
|
]),
|
|
144
|
-
|
|
145
|
-
|
|
241
|
+
_("div", nr, [
|
|
242
|
+
$(o.$slots, "center")
|
|
146
243
|
]),
|
|
147
|
-
|
|
148
|
-
|
|
244
|
+
_("div", rr, [
|
|
245
|
+
$(o.$slots, "right")
|
|
149
246
|
])
|
|
150
247
|
])
|
|
151
248
|
])
|
|
152
249
|
]));
|
|
153
250
|
}
|
|
154
251
|
});
|
|
155
|
-
const
|
|
252
|
+
const or = /* @__PURE__ */ ae(ir, [["__scopeId", "data-v-7a2a459a"]]), sr = ["title"], ot = 99, cr = /* @__PURE__ */ te({
|
|
156
253
|
__name: "ItemBadge",
|
|
157
254
|
props: {
|
|
158
255
|
count: {
|
|
@@ -162,21 +259,21 @@ const qn = /* @__PURE__ */ ne(Wn, [["__scopeId", "data-v-7a2a459a"]]), Yn = ["ti
|
|
|
162
259
|
}
|
|
163
260
|
},
|
|
164
261
|
setup(n) {
|
|
165
|
-
const t = n, a = g(() => t.count ? t.count >
|
|
166
|
-
return (r, l) => a.value ? (
|
|
262
|
+
const t = n, a = g(() => t.count ? t.count > ot ? `${ot}+` : t.count.toString() : "");
|
|
263
|
+
return (r, l) => a.value ? (h(), m("div", {
|
|
167
264
|
key: 0,
|
|
168
265
|
class: "item-badge",
|
|
169
|
-
title: (n.count || 0) >
|
|
170
|
-
},
|
|
266
|
+
title: (n.count || 0) > ot ? String(n.count) : void 0
|
|
267
|
+
}, J(a.value), 9, sr)) : C("", !0);
|
|
171
268
|
}
|
|
172
269
|
});
|
|
173
|
-
const
|
|
270
|
+
const lr = /* @__PURE__ */ ae(cr, [["__scopeId", "data-v-912b1a1b"]]), ur = ["data-testid"], dr = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], fr = {
|
|
174
271
|
key: 0,
|
|
175
272
|
class: "sidebar-item-icon"
|
|
176
|
-
},
|
|
273
|
+
}, vr = { class: "sidebar-item-name-container" }, br = { class: "sidebar-item-name has-tooltip" }, hr = {
|
|
177
274
|
key: 2,
|
|
178
275
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
179
|
-
},
|
|
276
|
+
}, pr = ["id"], mr = /* @__PURE__ */ te({
|
|
180
277
|
__name: "SidebarItem",
|
|
181
278
|
props: {
|
|
182
279
|
item: {
|
|
@@ -190,135 +287,135 @@ const Jn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-912b1a1b"]]), Qn = ["da
|
|
|
190
287
|
},
|
|
191
288
|
emits: ["click"],
|
|
192
289
|
setup(n, { emit: t }) {
|
|
193
|
-
const a = n, r = g(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), l = g(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), d = g(() => a.subnavItem && a.item.badgeCount !== void 0), o = (
|
|
194
|
-
t("click",
|
|
195
|
-
}, v = (
|
|
196
|
-
o(
|
|
290
|
+
const a = n, r = g(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), l = g(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), d = g(() => a.subnavItem && a.item.badgeCount !== void 0), o = (p) => {
|
|
291
|
+
t("click", p);
|
|
292
|
+
}, v = (p, w, x) => {
|
|
293
|
+
o(w), typeof x == "function" && (p.preventDefault(), x());
|
|
197
294
|
};
|
|
198
|
-
return (
|
|
199
|
-
var
|
|
200
|
-
const
|
|
201
|
-
return
|
|
295
|
+
return (p, w) => {
|
|
296
|
+
var I;
|
|
297
|
+
const x = ve("KIcon"), N = ve("KTooltip"), D = ve("SidebarItem", !0);
|
|
298
|
+
return h(), m("li", {
|
|
202
299
|
class: ie([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
203
300
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
204
301
|
}, [
|
|
205
|
-
(
|
|
302
|
+
(h(), Q(mn(r.value ? "div" : "router-link"), {
|
|
206
303
|
custom: r.value ? void 0 : !0,
|
|
207
304
|
to: !r.value && !l.value ? n.item.to : void 0
|
|
208
305
|
}, {
|
|
209
|
-
default:
|
|
306
|
+
default: B((O) => {
|
|
210
307
|
var V, j;
|
|
211
308
|
return [
|
|
212
|
-
|
|
309
|
+
_("a", {
|
|
213
310
|
"aria-controls": (V = n.item.items) != null && V.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
214
311
|
"aria-expanded": (j = n.item.items) != null && j.length && n.item.expanded ? !0 : void 0,
|
|
215
312
|
class: ie(["sidebar-item-link", { "sidebar-item-external-link": l.value, "router-link": !r.value }]),
|
|
216
313
|
href: r.value ? String(n.item.to || "#") : O == null ? void 0 : O.href,
|
|
217
314
|
target: l.value ? "_blank" : void 0,
|
|
218
|
-
onClick: (
|
|
219
|
-
onKeypress: gn((
|
|
315
|
+
onClick: (Z) => v(Z, n.item, O == null ? void 0 : O.navigate),
|
|
316
|
+
onKeypress: gn((Z) => v(Z, n.item, O == null ? void 0 : O.navigate), ["enter"])
|
|
220
317
|
}, [
|
|
221
|
-
|
|
318
|
+
_("div", {
|
|
222
319
|
class: ie(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": d.value }])
|
|
223
320
|
}, [
|
|
224
|
-
n.item.icon ? (
|
|
225
|
-
|
|
321
|
+
n.item.icon ? (h(), m("div", fr, [
|
|
322
|
+
Ve(x, {
|
|
226
323
|
icon: String(n.item.icon),
|
|
227
324
|
size: "20"
|
|
228
325
|
}, null, 8, ["icon"])
|
|
229
|
-
])) :
|
|
230
|
-
|
|
231
|
-
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (
|
|
326
|
+
])) : C("", !0),
|
|
327
|
+
_("div", vr, [
|
|
328
|
+
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (h(), m("div", {
|
|
232
329
|
key: 0,
|
|
233
330
|
class: ie(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
234
|
-
},
|
|
331
|
+
}, J(n.item.name), 3)) : (h(), Q(N, {
|
|
235
332
|
key: 1,
|
|
236
333
|
class: "sidebar-item-tooltip",
|
|
237
334
|
label: n.item.name,
|
|
238
335
|
placement: "right",
|
|
239
336
|
"position-fixed": ""
|
|
240
337
|
}, {
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
|
|
338
|
+
default: B(() => [
|
|
339
|
+
_("div", br, [
|
|
340
|
+
_("span", {
|
|
244
341
|
class: ie(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": d.value }]])
|
|
245
|
-
},
|
|
342
|
+
}, J(n.item.name), 3)
|
|
246
343
|
])
|
|
247
344
|
]),
|
|
248
345
|
_: 1
|
|
249
346
|
}, 8, ["label"])),
|
|
250
|
-
n.item.label && n.item.expanded ? (
|
|
347
|
+
n.item.label && n.item.expanded ? (h(), m("div", hr, J(n.item.label), 1)) : C("", !0)
|
|
251
348
|
]),
|
|
252
|
-
d.value ? (
|
|
349
|
+
d.value ? (h(), Q(lr, {
|
|
253
350
|
key: 1,
|
|
254
351
|
count: n.item.badgeCount
|
|
255
|
-
}, null, 8, ["count"])) :
|
|
352
|
+
}, null, 8, ["count"])) : C("", !0)
|
|
256
353
|
], 2)
|
|
257
|
-
], 42,
|
|
354
|
+
], 42, dr)
|
|
258
355
|
];
|
|
259
356
|
}),
|
|
260
357
|
_: 1
|
|
261
358
|
}, 8, ["custom", "to"])),
|
|
262
|
-
(
|
|
359
|
+
(I = n.item.items) != null && I.length && n.item.expanded ? (h(), m("ul", {
|
|
263
360
|
key: 0,
|
|
264
361
|
id: `subnav-${n.item.key}`,
|
|
265
362
|
class: "level-secondary"
|
|
266
363
|
}, [
|
|
267
|
-
(
|
|
364
|
+
(h(!0), m($e, null, Oe(n.item.items, (O) => (h(), Q(D, {
|
|
268
365
|
key: O.name,
|
|
269
366
|
item: O,
|
|
270
367
|
"subnav-item": !0,
|
|
271
368
|
onClick: (V) => o(O)
|
|
272
369
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
273
|
-
], 8,
|
|
274
|
-
], 10,
|
|
370
|
+
], 8, pr)) : C("", !0)
|
|
371
|
+
], 10, ur);
|
|
275
372
|
};
|
|
276
373
|
}
|
|
277
374
|
});
|
|
278
|
-
const Rt = /* @__PURE__ */
|
|
375
|
+
const Rt = /* @__PURE__ */ ae(mr, [["__scopeId", "data-v-859aa5c3"]]);
|
|
279
376
|
/*!
|
|
280
377
|
* tabbable 6.2.0
|
|
281
378
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
282
379
|
*/
|
|
283
|
-
var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"],
|
|
284
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
380
|
+
var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ze = /* @__PURE__ */ Vt.join(","), Gt = typeof Element > "u", be = Gt ? function() {
|
|
381
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, je = !Gt && Element.prototype.getRootNode ? function(n) {
|
|
285
382
|
var t;
|
|
286
383
|
return n == null || (t = n.getRootNode) === null || t === void 0 ? void 0 : t.call(n);
|
|
287
384
|
} : function(n) {
|
|
288
385
|
return n == null ? void 0 : n.ownerDocument;
|
|
289
|
-
},
|
|
386
|
+
}, Ke = function n(t, a) {
|
|
290
387
|
var r;
|
|
291
388
|
a === void 0 && (a = !0);
|
|
292
389
|
var l = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), d = l === "" || l === "true", o = d || a && t && n(t.parentNode);
|
|
293
390
|
return o;
|
|
294
|
-
},
|
|
391
|
+
}, gr = function(t) {
|
|
295
392
|
var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
296
393
|
return r === "" || r === "true";
|
|
297
394
|
}, Ut = function(t, a, r) {
|
|
298
|
-
if (
|
|
395
|
+
if (Ke(t))
|
|
299
396
|
return [];
|
|
300
|
-
var l = Array.prototype.slice.apply(t.querySelectorAll(
|
|
301
|
-
return a &&
|
|
397
|
+
var l = Array.prototype.slice.apply(t.querySelectorAll(Ze));
|
|
398
|
+
return a && be.call(t, Ze) && l.unshift(t), l = l.filter(r), l;
|
|
302
399
|
}, Wt = function n(t, a, r) {
|
|
303
400
|
for (var l = [], d = Array.from(t); d.length; ) {
|
|
304
401
|
var o = d.shift();
|
|
305
|
-
if (!
|
|
402
|
+
if (!Ke(o, !1))
|
|
306
403
|
if (o.tagName === "SLOT") {
|
|
307
|
-
var v = o.assignedElements(),
|
|
308
|
-
r.flatten ? l.push.apply(l,
|
|
404
|
+
var v = o.assignedElements(), p = v.length ? v : o.children, w = n(p, !0, r);
|
|
405
|
+
r.flatten ? l.push.apply(l, w) : l.push({
|
|
309
406
|
scopeParent: o,
|
|
310
|
-
candidates:
|
|
407
|
+
candidates: w
|
|
311
408
|
});
|
|
312
409
|
} else {
|
|
313
|
-
var
|
|
314
|
-
|
|
315
|
-
var
|
|
316
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !
|
|
317
|
-
if (
|
|
318
|
-
var
|
|
319
|
-
r.flatten ? l.push.apply(l,
|
|
410
|
+
var x = be.call(o, Ze);
|
|
411
|
+
x && r.filter(o) && (a || !t.includes(o)) && l.push(o);
|
|
412
|
+
var N = o.shadowRoot || // check for an undisclosed shadow
|
|
413
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !Ke(N, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
414
|
+
if (N && D) {
|
|
415
|
+
var I = n(N === !0 ? o.children : N.children, !0, r);
|
|
416
|
+
r.flatten ? l.push.apply(l, I) : l.push({
|
|
320
417
|
scopeParent: o,
|
|
321
|
-
candidates:
|
|
418
|
+
candidates: I
|
|
322
419
|
});
|
|
323
420
|
} else
|
|
324
421
|
d.unshift.apply(d, o.children);
|
|
@@ -327,32 +424,32 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
327
424
|
return l;
|
|
328
425
|
}, qt = function(t) {
|
|
329
426
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
330
|
-
},
|
|
427
|
+
}, fe = function(t) {
|
|
331
428
|
if (!t)
|
|
332
429
|
throw new Error("No node provided");
|
|
333
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
334
|
-
},
|
|
335
|
-
var r =
|
|
430
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || gr(t)) && !qt(t) ? 0 : t.tabIndex;
|
|
431
|
+
}, yr = function(t, a) {
|
|
432
|
+
var r = fe(t);
|
|
336
433
|
return r < 0 && a && !qt(t) ? 0 : r;
|
|
337
|
-
},
|
|
434
|
+
}, _r = function(t, a) {
|
|
338
435
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
339
436
|
}, Yt = function(t) {
|
|
340
437
|
return t.tagName === "INPUT";
|
|
341
|
-
},
|
|
438
|
+
}, wr = function(t) {
|
|
342
439
|
return Yt(t) && t.type === "hidden";
|
|
343
|
-
},
|
|
440
|
+
}, Tr = function(t) {
|
|
344
441
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
345
442
|
return r.tagName === "SUMMARY";
|
|
346
443
|
});
|
|
347
444
|
return a;
|
|
348
|
-
},
|
|
445
|
+
}, kr = function(t, a) {
|
|
349
446
|
for (var r = 0; r < t.length; r++)
|
|
350
447
|
if (t[r].checked && t[r].form === a)
|
|
351
448
|
return t[r];
|
|
352
|
-
},
|
|
449
|
+
}, Sr = function(t) {
|
|
353
450
|
if (!t.name)
|
|
354
451
|
return !0;
|
|
355
|
-
var a = t.form ||
|
|
452
|
+
var a = t.form || je(t), r = function(v) {
|
|
356
453
|
return a.querySelectorAll('input[type="radio"][name="' + v + '"]');
|
|
357
454
|
}, l;
|
|
358
455
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -363,57 +460,57 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
363
460
|
} catch (o) {
|
|
364
461
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
365
462
|
}
|
|
366
|
-
var d =
|
|
463
|
+
var d = kr(l, t.form);
|
|
367
464
|
return !d || d === t;
|
|
368
|
-
},
|
|
465
|
+
}, Ir = function(t) {
|
|
369
466
|
return Yt(t) && t.type === "radio";
|
|
370
|
-
},
|
|
371
|
-
return
|
|
372
|
-
},
|
|
373
|
-
var a, r = t &&
|
|
467
|
+
}, $r = function(t) {
|
|
468
|
+
return Ir(t) && !Sr(t);
|
|
469
|
+
}, Cr = function(t) {
|
|
470
|
+
var a, r = t && je(t), l = (a = r) === null || a === void 0 ? void 0 : a.host, d = !1;
|
|
374
471
|
if (r && r !== t) {
|
|
375
|
-
var o, v,
|
|
376
|
-
for (d = !!((o = l) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(l) || t != null && (
|
|
377
|
-
var
|
|
378
|
-
r =
|
|
472
|
+
var o, v, p;
|
|
473
|
+
for (d = !!((o = l) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(l) || t != null && (p = t.ownerDocument) !== null && p !== void 0 && p.contains(t)); !d && l; ) {
|
|
474
|
+
var w, x, N;
|
|
475
|
+
r = je(l), l = (w = r) === null || w === void 0 ? void 0 : w.host, d = !!((x = l) !== null && x !== void 0 && (N = x.ownerDocument) !== null && N !== void 0 && N.contains(l));
|
|
379
476
|
}
|
|
380
477
|
}
|
|
381
478
|
return d;
|
|
382
479
|
}, Lt = function(t) {
|
|
383
480
|
var a = t.getBoundingClientRect(), r = a.width, l = a.height;
|
|
384
481
|
return r === 0 && l === 0;
|
|
385
|
-
},
|
|
482
|
+
}, Or = function(t, a) {
|
|
386
483
|
var r = a.displayCheck, l = a.getShadowRoot;
|
|
387
484
|
if (getComputedStyle(t).visibility === "hidden")
|
|
388
485
|
return !0;
|
|
389
|
-
var d =
|
|
390
|
-
if (
|
|
486
|
+
var d = be.call(t, "details>summary:first-of-type"), o = d ? t.parentElement : t;
|
|
487
|
+
if (be.call(o, "details:not([open]) *"))
|
|
391
488
|
return !0;
|
|
392
489
|
if (!r || r === "full" || r === "legacy-full") {
|
|
393
490
|
if (typeof l == "function") {
|
|
394
491
|
for (var v = t; t; ) {
|
|
395
|
-
var
|
|
396
|
-
if (
|
|
492
|
+
var p = t.parentElement, w = je(t);
|
|
493
|
+
if (p && !p.shadowRoot && l(p) === !0)
|
|
397
494
|
return Lt(t);
|
|
398
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
495
|
+
t.assignedSlot ? t = t.assignedSlot : !p && w !== t.ownerDocument ? t = w.host : t = p;
|
|
399
496
|
}
|
|
400
497
|
t = v;
|
|
401
498
|
}
|
|
402
|
-
if (
|
|
499
|
+
if (Cr(t))
|
|
403
500
|
return !t.getClientRects().length;
|
|
404
501
|
if (r !== "legacy-full")
|
|
405
502
|
return !0;
|
|
406
503
|
} else if (r === "non-zero-area")
|
|
407
504
|
return Lt(t);
|
|
408
505
|
return !1;
|
|
409
|
-
},
|
|
506
|
+
}, Ar = function(t) {
|
|
410
507
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
411
508
|
for (var a = t.parentElement; a; ) {
|
|
412
509
|
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
413
510
|
for (var r = 0; r < a.children.length; r++) {
|
|
414
511
|
var l = a.children.item(r);
|
|
415
512
|
if (l.tagName === "LEGEND")
|
|
416
|
-
return
|
|
513
|
+
return be.call(a, "fieldset[disabled] *") ? !0 : !l.contains(t);
|
|
417
514
|
}
|
|
418
515
|
return !0;
|
|
419
516
|
}
|
|
@@ -424,37 +521,37 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
424
521
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
425
522
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
426
523
|
// note related to `candidateSelectors`)
|
|
427
|
-
|
|
428
|
-
|
|
524
|
+
Ke(a) || wr(a) || Or(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
525
|
+
Tr(a) || Ar(a));
|
|
429
526
|
}, lt = function(t, a) {
|
|
430
|
-
return !(
|
|
431
|
-
},
|
|
527
|
+
return !($r(a) || fe(a) < 0 || !He(t, a));
|
|
528
|
+
}, Nr = function(t) {
|
|
432
529
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
433
530
|
return !!(isNaN(a) || a >= 0);
|
|
434
|
-
},
|
|
531
|
+
}, Er = function n(t) {
|
|
435
532
|
var a = [], r = [];
|
|
436
533
|
return t.forEach(function(l, d) {
|
|
437
|
-
var o = !!l.scopeParent, v = o ? l.scopeParent : l,
|
|
438
|
-
|
|
534
|
+
var o = !!l.scopeParent, v = o ? l.scopeParent : l, p = yr(v, o), w = o ? n(l.candidates) : v;
|
|
535
|
+
p === 0 ? o ? a.push.apply(a, w) : a.push(v) : r.push({
|
|
439
536
|
documentOrder: d,
|
|
440
|
-
tabIndex:
|
|
537
|
+
tabIndex: p,
|
|
441
538
|
item: l,
|
|
442
539
|
isScope: o,
|
|
443
|
-
content:
|
|
540
|
+
content: w
|
|
444
541
|
});
|
|
445
|
-
}), r.sort(
|
|
542
|
+
}), r.sort(_r).reduce(function(l, d) {
|
|
446
543
|
return d.isScope ? l.push.apply(l, d.content) : l.push(d.content), l;
|
|
447
544
|
}, []).concat(a);
|
|
448
|
-
},
|
|
545
|
+
}, Fr = function(t, a) {
|
|
449
546
|
a = a || {};
|
|
450
547
|
var r;
|
|
451
548
|
return a.getShadowRoot ? r = Wt([t], a.includeContainer, {
|
|
452
549
|
filter: lt.bind(null, a),
|
|
453
550
|
flatten: !1,
|
|
454
551
|
getShadowRoot: a.getShadowRoot,
|
|
455
|
-
shadowRootFilter:
|
|
456
|
-
}) : r = Ut(t, a.includeContainer, lt.bind(null, a)),
|
|
457
|
-
},
|
|
552
|
+
shadowRootFilter: Nr
|
|
553
|
+
}) : r = Ut(t, a.includeContainer, lt.bind(null, a)), Er(r);
|
|
554
|
+
}, xr = function(t, a) {
|
|
458
555
|
a = a || {};
|
|
459
556
|
var r;
|
|
460
557
|
return a.getShadowRoot ? r = Wt([t], a.includeContainer, {
|
|
@@ -462,14 +559,14 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
462
559
|
flatten: !0,
|
|
463
560
|
getShadowRoot: a.getShadowRoot
|
|
464
561
|
}) : r = Ut(t, a.includeContainer, He.bind(null, a)), r;
|
|
465
|
-
},
|
|
562
|
+
}, _e = function(t, a) {
|
|
466
563
|
if (a = a || {}, !t)
|
|
467
564
|
throw new Error("No node provided");
|
|
468
|
-
return
|
|
469
|
-
},
|
|
565
|
+
return be.call(t, Ze) === !1 ? !1 : lt(a, t);
|
|
566
|
+
}, Dr = /* @__PURE__ */ Vt.concat("iframe").join(","), st = function(t, a) {
|
|
470
567
|
if (a = a || {}, !t)
|
|
471
568
|
throw new Error("No node provided");
|
|
472
|
-
return
|
|
569
|
+
return be.call(t, Dr) === !1 ? !1 : He(a, t);
|
|
473
570
|
};
|
|
474
571
|
/*!
|
|
475
572
|
* focus-trap 7.5.2
|
|
@@ -489,22 +586,22 @@ function Mt(n) {
|
|
|
489
586
|
for (var t = 1; t < arguments.length; t++) {
|
|
490
587
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
491
588
|
t % 2 ? Pt(Object(a), !0).forEach(function(r) {
|
|
492
|
-
|
|
589
|
+
Br(n, r, a[r]);
|
|
493
590
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(a)) : Pt(Object(a)).forEach(function(r) {
|
|
494
591
|
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(a, r));
|
|
495
592
|
});
|
|
496
593
|
}
|
|
497
594
|
return n;
|
|
498
595
|
}
|
|
499
|
-
function
|
|
500
|
-
return t =
|
|
596
|
+
function Br(n, t, a) {
|
|
597
|
+
return t = Lr(t), t in n ? Object.defineProperty(n, t, {
|
|
501
598
|
value: a,
|
|
502
599
|
enumerable: !0,
|
|
503
600
|
configurable: !0,
|
|
504
601
|
writable: !0
|
|
505
602
|
}) : n[t] = a, n;
|
|
506
603
|
}
|
|
507
|
-
function
|
|
604
|
+
function Rr(n, t) {
|
|
508
605
|
if (typeof n != "object" || n === null)
|
|
509
606
|
return n;
|
|
510
607
|
var a = n[Symbol.toPrimitive];
|
|
@@ -516,8 +613,8 @@ function Ir(n, t) {
|
|
|
516
613
|
}
|
|
517
614
|
return (t === "string" ? String : Number)(n);
|
|
518
615
|
}
|
|
519
|
-
function
|
|
520
|
-
var t =
|
|
616
|
+
function Lr(n) {
|
|
617
|
+
var t = Rr(n, "string");
|
|
521
618
|
return typeof t == "symbol" ? t : String(t);
|
|
522
619
|
}
|
|
523
620
|
var Zt = {
|
|
@@ -533,19 +630,19 @@ var Zt = {
|
|
|
533
630
|
var r = t.indexOf(a);
|
|
534
631
|
r !== -1 && t.splice(r, 1), t.length > 0 && t[t.length - 1].unpause();
|
|
535
632
|
}
|
|
536
|
-
},
|
|
633
|
+
}, Pr = function(t) {
|
|
537
634
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
538
|
-
},
|
|
635
|
+
}, Mr = function(t) {
|
|
539
636
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
540
637
|
}, Ce = function(t) {
|
|
541
638
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
542
|
-
},
|
|
639
|
+
}, Zr = function(t) {
|
|
543
640
|
return Ce(t) && !t.shiftKey;
|
|
544
|
-
},
|
|
641
|
+
}, jr = function(t) {
|
|
545
642
|
return Ce(t) && t.shiftKey;
|
|
546
643
|
}, jt = function(t) {
|
|
547
644
|
return setTimeout(t, 0);
|
|
548
|
-
},
|
|
645
|
+
}, Kt = function(t, a) {
|
|
549
646
|
var r = -1;
|
|
550
647
|
return t.every(function(l, d) {
|
|
551
648
|
return a(l) ? (r = d, !1) : !0;
|
|
@@ -556,13 +653,13 @@ var Zt = {
|
|
|
556
653
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
557
654
|
}, Be = function(t) {
|
|
558
655
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
559
|
-
},
|
|
560
|
-
var r = (a == null ? void 0 : a.document) || document, l = (a == null ? void 0 : a.trapStack) ||
|
|
656
|
+
}, Kr = [], Hr = function(t, a) {
|
|
657
|
+
var r = (a == null ? void 0 : a.document) || document, l = (a == null ? void 0 : a.trapStack) || Kr, d = Mt({
|
|
561
658
|
returnFocusOnDeactivate: !0,
|
|
562
659
|
escapeDeactivates: !0,
|
|
563
660
|
delayInitialFocus: !0,
|
|
564
|
-
isKeyForward:
|
|
565
|
-
isKeyBackward:
|
|
661
|
+
isKeyForward: Zr,
|
|
662
|
+
isKeyBackward: jr
|
|
566
663
|
}, a), o = {
|
|
567
664
|
// containers given to createFocusTrap()
|
|
568
665
|
// @type {Array<HTMLElement>}
|
|
@@ -599,69 +696,69 @@ var Zt = {
|
|
|
599
696
|
delayInitialFocusTimer: void 0,
|
|
600
697
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
601
698
|
recentNavEvent: void 0
|
|
602
|
-
}, v,
|
|
699
|
+
}, v, p = function(s, u, f) {
|
|
603
700
|
return s && s[u] !== void 0 ? s[u] : d[f || u];
|
|
604
|
-
},
|
|
701
|
+
}, w = function(s, u) {
|
|
605
702
|
var f = typeof (u == null ? void 0 : u.composedPath) == "function" ? u.composedPath() : void 0;
|
|
606
|
-
return o.containerGroups.findIndex(function(
|
|
607
|
-
var
|
|
608
|
-
return
|
|
703
|
+
return o.containerGroups.findIndex(function(y) {
|
|
704
|
+
var k = y.container, E = y.tabbableNodes;
|
|
705
|
+
return k.contains(s) || // fall back to explicit tabbable search which will take into consideration any
|
|
609
706
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
610
707
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
611
708
|
// look inside web components even if open)
|
|
612
|
-
(f == null ? void 0 : f.includes(
|
|
613
|
-
return
|
|
709
|
+
(f == null ? void 0 : f.includes(k)) || E.find(function(F) {
|
|
710
|
+
return F === s;
|
|
614
711
|
});
|
|
615
712
|
});
|
|
616
|
-
},
|
|
713
|
+
}, x = function(s) {
|
|
617
714
|
var u = d[s];
|
|
618
715
|
if (typeof u == "function") {
|
|
619
|
-
for (var f = arguments.length,
|
|
620
|
-
|
|
621
|
-
u = u.apply(void 0,
|
|
716
|
+
for (var f = arguments.length, y = new Array(f > 1 ? f - 1 : 0), k = 1; k < f; k++)
|
|
717
|
+
y[k - 1] = arguments[k];
|
|
718
|
+
u = u.apply(void 0, y);
|
|
622
719
|
}
|
|
623
720
|
if (u === !0 && (u = void 0), !u) {
|
|
624
721
|
if (u === void 0 || u === !1)
|
|
625
722
|
return u;
|
|
626
723
|
throw new Error("`".concat(s, "` was specified but was not a node, or did not return a node"));
|
|
627
724
|
}
|
|
628
|
-
var
|
|
629
|
-
if (typeof u == "string" && (
|
|
725
|
+
var E = u;
|
|
726
|
+
if (typeof u == "string" && (E = r.querySelector(u), !E))
|
|
630
727
|
throw new Error("`".concat(s, "` as selector refers to no known node"));
|
|
631
|
-
return
|
|
632
|
-
},
|
|
633
|
-
var s =
|
|
728
|
+
return E;
|
|
729
|
+
}, N = function() {
|
|
730
|
+
var s = x("initialFocus");
|
|
634
731
|
if (s === !1)
|
|
635
732
|
return !1;
|
|
636
|
-
if (s === void 0 || !
|
|
637
|
-
if (
|
|
733
|
+
if (s === void 0 || !st(s, d.tabbableOptions))
|
|
734
|
+
if (w(r.activeElement) >= 0)
|
|
638
735
|
s = r.activeElement;
|
|
639
736
|
else {
|
|
640
737
|
var u = o.tabbableGroups[0], f = u && u.firstTabbableNode;
|
|
641
|
-
s = f ||
|
|
738
|
+
s = f || x("fallbackFocus");
|
|
642
739
|
}
|
|
643
740
|
if (!s)
|
|
644
741
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
645
742
|
return s;
|
|
646
743
|
}, D = function() {
|
|
647
744
|
if (o.containerGroups = o.containers.map(function(s) {
|
|
648
|
-
var u =
|
|
649
|
-
return
|
|
650
|
-
}),
|
|
651
|
-
return
|
|
652
|
-
}),
|
|
653
|
-
return
|
|
745
|
+
var u = Fr(s, d.tabbableOptions), f = xr(s, d.tabbableOptions), y = u.length > 0 ? u[0] : void 0, k = u.length > 0 ? u[u.length - 1] : void 0, E = f.find(function(R) {
|
|
746
|
+
return _e(R);
|
|
747
|
+
}), F = f.slice().reverse().find(function(R) {
|
|
748
|
+
return _e(R);
|
|
749
|
+
}), M = !!u.find(function(R) {
|
|
750
|
+
return fe(R) > 0;
|
|
654
751
|
});
|
|
655
752
|
return {
|
|
656
753
|
container: s,
|
|
657
754
|
tabbableNodes: u,
|
|
658
755
|
focusableNodes: f,
|
|
659
756
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
660
|
-
posTabIndexesFound:
|
|
757
|
+
posTabIndexesFound: M,
|
|
661
758
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
662
|
-
firstTabbableNode:
|
|
759
|
+
firstTabbableNode: y,
|
|
663
760
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
664
|
-
lastTabbableNode:
|
|
761
|
+
lastTabbableNode: k,
|
|
665
762
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
666
763
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
667
764
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -670,9 +767,9 @@ var Zt = {
|
|
|
670
767
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
671
768
|
// be avoided anyway...
|
|
672
769
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
673
|
-
firstDomTabbableNode:
|
|
770
|
+
firstDomTabbableNode: E,
|
|
674
771
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
675
|
-
lastDomTabbableNode:
|
|
772
|
+
lastDomTabbableNode: F,
|
|
676
773
|
/**
|
|
677
774
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
678
775
|
* in this container, if any.
|
|
@@ -681,71 +778,71 @@ var Zt = {
|
|
|
681
778
|
* in reverse.
|
|
682
779
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
683
780
|
*/
|
|
684
|
-
nextTabbableNode: function(
|
|
685
|
-
var
|
|
686
|
-
return
|
|
687
|
-
return
|
|
688
|
-
}) : f.slice(0, f.indexOf(
|
|
689
|
-
return
|
|
690
|
-
}) : u[
|
|
781
|
+
nextTabbableNode: function(T) {
|
|
782
|
+
var ce = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, re = u.indexOf(T);
|
|
783
|
+
return re < 0 ? ce ? f.slice(f.indexOf(T) + 1).find(function(K) {
|
|
784
|
+
return _e(K);
|
|
785
|
+
}) : f.slice(0, f.indexOf(T)).reverse().find(function(K) {
|
|
786
|
+
return _e(K);
|
|
787
|
+
}) : u[re + (ce ? 1 : -1)];
|
|
691
788
|
}
|
|
692
789
|
};
|
|
693
790
|
}), o.tabbableGroups = o.containerGroups.filter(function(s) {
|
|
694
791
|
return s.tabbableNodes.length > 0;
|
|
695
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
792
|
+
}), o.tabbableGroups.length <= 0 && !x("fallbackFocus"))
|
|
696
793
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
697
794
|
if (o.containerGroups.find(function(s) {
|
|
698
795
|
return s.posTabIndexesFound;
|
|
699
796
|
}) && o.containerGroups.length > 1)
|
|
700
797
|
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.");
|
|
701
|
-
},
|
|
798
|
+
}, I = function A(s) {
|
|
702
799
|
if (s !== !1 && s !== r.activeElement) {
|
|
703
800
|
if (!s || !s.focus) {
|
|
704
|
-
|
|
801
|
+
A(N());
|
|
705
802
|
return;
|
|
706
803
|
}
|
|
707
804
|
s.focus({
|
|
708
805
|
preventScroll: !!d.preventScroll
|
|
709
|
-
}), o.mostRecentlyFocusedNode = s,
|
|
806
|
+
}), o.mostRecentlyFocusedNode = s, Pr(s) && s.select();
|
|
710
807
|
}
|
|
711
808
|
}, O = function(s) {
|
|
712
|
-
var u =
|
|
809
|
+
var u = x("setReturnFocus", s);
|
|
713
810
|
return u || (u === !1 ? !1 : s);
|
|
714
811
|
}, V = function(s) {
|
|
715
|
-
var u = s.target, f = s.event,
|
|
812
|
+
var u = s.target, f = s.event, y = s.isBackward, k = y === void 0 ? !1 : y;
|
|
716
813
|
u = u || Be(f), D();
|
|
717
|
-
var
|
|
814
|
+
var E = null;
|
|
718
815
|
if (o.tabbableGroups.length > 0) {
|
|
719
|
-
var
|
|
720
|
-
if (
|
|
721
|
-
|
|
722
|
-
else if (
|
|
723
|
-
var
|
|
724
|
-
var Te =
|
|
816
|
+
var F = w(u, f), M = F >= 0 ? o.containerGroups[F] : void 0;
|
|
817
|
+
if (F < 0)
|
|
818
|
+
k ? E = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : E = o.tabbableGroups[0].firstTabbableNode;
|
|
819
|
+
else if (k) {
|
|
820
|
+
var R = Kt(o.tabbableGroups, function(he) {
|
|
821
|
+
var Te = he.firstTabbableNode;
|
|
725
822
|
return u === Te;
|
|
726
823
|
});
|
|
727
|
-
if (
|
|
728
|
-
var
|
|
729
|
-
|
|
824
|
+
if (R < 0 && (M.container === u || st(u, d.tabbableOptions) && !_e(u, d.tabbableOptions) && !M.nextTabbableNode(u, !1)) && (R = F), R >= 0) {
|
|
825
|
+
var T = R === 0 ? o.tabbableGroups.length - 1 : R - 1, ce = o.tabbableGroups[T];
|
|
826
|
+
E = fe(u) >= 0 ? ce.lastTabbableNode : ce.lastDomTabbableNode;
|
|
730
827
|
} else
|
|
731
|
-
Ce(f) || (
|
|
828
|
+
Ce(f) || (E = M.nextTabbableNode(u, !1));
|
|
732
829
|
} else {
|
|
733
|
-
var
|
|
734
|
-
var Te =
|
|
830
|
+
var re = Kt(o.tabbableGroups, function(he) {
|
|
831
|
+
var Te = he.lastTabbableNode;
|
|
735
832
|
return u === Te;
|
|
736
833
|
});
|
|
737
|
-
if (
|
|
738
|
-
var
|
|
739
|
-
|
|
834
|
+
if (re < 0 && (M.container === u || st(u, d.tabbableOptions) && !_e(u, d.tabbableOptions) && !M.nextTabbableNode(u)) && (re = F), re >= 0) {
|
|
835
|
+
var K = re === o.tabbableGroups.length - 1 ? 0 : re + 1, we = o.tabbableGroups[K];
|
|
836
|
+
E = fe(u) >= 0 ? we.firstTabbableNode : we.firstDomTabbableNode;
|
|
740
837
|
} else
|
|
741
|
-
Ce(f) || (
|
|
838
|
+
Ce(f) || (E = M.nextTabbableNode(u));
|
|
742
839
|
}
|
|
743
840
|
} else
|
|
744
|
-
|
|
745
|
-
return
|
|
841
|
+
E = x("fallbackFocus");
|
|
842
|
+
return E;
|
|
746
843
|
}, j = function(s) {
|
|
747
844
|
var u = Be(s);
|
|
748
|
-
if (!(
|
|
845
|
+
if (!(w(u, s) >= 0)) {
|
|
749
846
|
if (Ie(d.clickOutsideDeactivates, s)) {
|
|
750
847
|
v.deactivate({
|
|
751
848
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -760,66 +857,66 @@ var Zt = {
|
|
|
760
857
|
}
|
|
761
858
|
Ie(d.allowOutsideClick, s) || s.preventDefault();
|
|
762
859
|
}
|
|
763
|
-
},
|
|
764
|
-
var u = Be(s), f =
|
|
860
|
+
}, Z = function(s) {
|
|
861
|
+
var u = Be(s), f = w(u, s) >= 0;
|
|
765
862
|
if (f || u instanceof Document)
|
|
766
863
|
f && (o.mostRecentlyFocusedNode = u);
|
|
767
864
|
else {
|
|
768
865
|
s.stopImmediatePropagation();
|
|
769
|
-
var
|
|
866
|
+
var y, k = !0;
|
|
770
867
|
if (o.mostRecentlyFocusedNode)
|
|
771
|
-
if (
|
|
772
|
-
var
|
|
773
|
-
if (
|
|
774
|
-
var
|
|
775
|
-
return
|
|
868
|
+
if (fe(o.mostRecentlyFocusedNode) > 0) {
|
|
869
|
+
var E = w(o.mostRecentlyFocusedNode), F = o.containerGroups[E].tabbableNodes;
|
|
870
|
+
if (F.length > 0) {
|
|
871
|
+
var M = F.findIndex(function(R) {
|
|
872
|
+
return R === o.mostRecentlyFocusedNode;
|
|
776
873
|
});
|
|
777
|
-
|
|
874
|
+
M >= 0 && (d.isKeyForward(o.recentNavEvent) ? M + 1 < F.length && (y = F[M + 1], k = !1) : M - 1 >= 0 && (y = F[M - 1], k = !1));
|
|
778
875
|
}
|
|
779
876
|
} else
|
|
780
|
-
o.containerGroups.some(function(
|
|
781
|
-
return
|
|
782
|
-
return
|
|
877
|
+
o.containerGroups.some(function(R) {
|
|
878
|
+
return R.tabbableNodes.some(function(T) {
|
|
879
|
+
return fe(T) > 0;
|
|
783
880
|
});
|
|
784
|
-
}) || (
|
|
881
|
+
}) || (k = !1);
|
|
785
882
|
else
|
|
786
|
-
|
|
787
|
-
|
|
883
|
+
k = !1;
|
|
884
|
+
k && (y = V({
|
|
788
885
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
789
886
|
// outside the trap causing the focus escape we're trying to fix)
|
|
790
887
|
target: o.mostRecentlyFocusedNode,
|
|
791
888
|
isBackward: d.isKeyBackward(o.recentNavEvent)
|
|
792
|
-
})),
|
|
889
|
+
})), I(y || o.mostRecentlyFocusedNode || N());
|
|
793
890
|
}
|
|
794
891
|
o.recentNavEvent = void 0;
|
|
795
|
-
},
|
|
892
|
+
}, ne = function(s) {
|
|
796
893
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
797
894
|
o.recentNavEvent = s;
|
|
798
895
|
var f = V({
|
|
799
896
|
event: s,
|
|
800
897
|
isBackward: u
|
|
801
898
|
});
|
|
802
|
-
f && (Ce(s) && s.preventDefault(),
|
|
899
|
+
f && (Ce(s) && s.preventDefault(), I(f));
|
|
803
900
|
}, G = function(s) {
|
|
804
|
-
if (
|
|
901
|
+
if (Mr(s) && Ie(d.escapeDeactivates, s) !== !1) {
|
|
805
902
|
s.preventDefault(), v.deactivate();
|
|
806
903
|
return;
|
|
807
904
|
}
|
|
808
|
-
(d.isKeyForward(s) || d.isKeyBackward(s)) &&
|
|
809
|
-
},
|
|
905
|
+
(d.isKeyForward(s) || d.isKeyBackward(s)) && ne(s, d.isKeyBackward(s));
|
|
906
|
+
}, S = function(s) {
|
|
810
907
|
var u = Be(s);
|
|
811
|
-
|
|
812
|
-
},
|
|
908
|
+
w(u, s) >= 0 || Ie(d.clickOutsideDeactivates, s) || Ie(d.allowOutsideClick, s) || (s.preventDefault(), s.stopImmediatePropagation());
|
|
909
|
+
}, P = function() {
|
|
813
910
|
if (o.active)
|
|
814
911
|
return Zt.activateTrap(l, v), o.delayInitialFocusTimer = d.delayInitialFocus ? jt(function() {
|
|
815
|
-
|
|
816
|
-
}) :
|
|
912
|
+
I(N());
|
|
913
|
+
}) : I(N()), r.addEventListener("focusin", Z, !0), r.addEventListener("mousedown", j, {
|
|
817
914
|
capture: !0,
|
|
818
915
|
passive: !1
|
|
819
916
|
}), r.addEventListener("touchstart", j, {
|
|
820
917
|
capture: !0,
|
|
821
918
|
passive: !1
|
|
822
|
-
}), r.addEventListener("click",
|
|
919
|
+
}), r.addEventListener("click", S, {
|
|
823
920
|
capture: !0,
|
|
824
921
|
passive: !1
|
|
825
922
|
}), r.addEventListener("keydown", G, {
|
|
@@ -828,16 +925,16 @@ var Zt = {
|
|
|
828
925
|
}), v;
|
|
829
926
|
}, U = function() {
|
|
830
927
|
if (o.active)
|
|
831
|
-
return r.removeEventListener("focusin",
|
|
832
|
-
},
|
|
928
|
+
return r.removeEventListener("focusin", Z, !0), r.removeEventListener("mousedown", j, !0), r.removeEventListener("touchstart", j, !0), r.removeEventListener("click", S, !0), r.removeEventListener("keydown", G, !0), v;
|
|
929
|
+
}, ee = function(s) {
|
|
833
930
|
var u = s.some(function(f) {
|
|
834
|
-
var
|
|
835
|
-
return
|
|
836
|
-
return
|
|
931
|
+
var y = Array.from(f.removedNodes);
|
|
932
|
+
return y.some(function(k) {
|
|
933
|
+
return k === o.mostRecentlyFocusedNode;
|
|
837
934
|
});
|
|
838
935
|
});
|
|
839
|
-
u &&
|
|
840
|
-
}, Y = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(
|
|
936
|
+
u && I(N());
|
|
937
|
+
}, Y = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(ee) : void 0, W = function() {
|
|
841
938
|
Y && (Y.disconnect(), o.active && !o.paused && o.containers.map(function(s) {
|
|
842
939
|
Y.observe(s, {
|
|
843
940
|
subtree: !0,
|
|
@@ -855,12 +952,12 @@ var Zt = {
|
|
|
855
952
|
activate: function(s) {
|
|
856
953
|
if (o.active)
|
|
857
954
|
return this;
|
|
858
|
-
var u =
|
|
859
|
-
|
|
860
|
-
var
|
|
861
|
-
|
|
955
|
+
var u = p(s, "onActivate"), f = p(s, "onPostActivate"), y = p(s, "checkCanFocusTrap");
|
|
956
|
+
y || D(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, u == null || u();
|
|
957
|
+
var k = function() {
|
|
958
|
+
y && D(), P(), W(), f == null || f();
|
|
862
959
|
};
|
|
863
|
-
return
|
|
960
|
+
return y ? (y(o.containers.concat()).then(k, k), this) : (k(), this);
|
|
864
961
|
},
|
|
865
962
|
deactivate: function(s) {
|
|
866
963
|
if (!o.active)
|
|
@@ -871,26 +968,26 @@ var Zt = {
|
|
|
871
968
|
checkCanReturnFocus: d.checkCanReturnFocus
|
|
872
969
|
}, s);
|
|
873
970
|
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, U(), o.active = !1, o.paused = !1, W(), Zt.deactivateTrap(l, v);
|
|
874
|
-
var f =
|
|
971
|
+
var f = p(u, "onDeactivate"), y = p(u, "onPostDeactivate"), k = p(u, "checkCanReturnFocus"), E = p(u, "returnFocus", "returnFocusOnDeactivate");
|
|
875
972
|
f == null || f();
|
|
876
|
-
var
|
|
973
|
+
var F = function() {
|
|
877
974
|
jt(function() {
|
|
878
|
-
|
|
975
|
+
E && I(O(o.nodeFocusedBeforeActivation)), y == null || y();
|
|
879
976
|
});
|
|
880
977
|
};
|
|
881
|
-
return
|
|
978
|
+
return E && k ? (k(O(o.nodeFocusedBeforeActivation)).then(F, F), this) : (F(), this);
|
|
882
979
|
},
|
|
883
980
|
pause: function(s) {
|
|
884
981
|
if (o.paused || !o.active)
|
|
885
982
|
return this;
|
|
886
|
-
var u =
|
|
983
|
+
var u = p(s, "onPause"), f = p(s, "onPostPause");
|
|
887
984
|
return o.paused = !0, u == null || u(), U(), W(), f == null || f(), this;
|
|
888
985
|
},
|
|
889
986
|
unpause: function(s) {
|
|
890
987
|
if (!o.paused || !o.active)
|
|
891
988
|
return this;
|
|
892
|
-
var u =
|
|
893
|
-
return o.paused = !1, u == null || u(), D(),
|
|
989
|
+
var u = p(s, "onUnpause"), f = p(s, "onPostUnpause");
|
|
990
|
+
return o.paused = !1, u == null || u(), D(), P(), W(), f == null || f(), this;
|
|
894
991
|
},
|
|
895
992
|
updateContainerElements: function(s) {
|
|
896
993
|
var u = [].concat(s).filter(Boolean);
|
|
@@ -905,7 +1002,7 @@ var Zt = {
|
|
|
905
1002
|
* (c) 2023 Eduardo San Martin Morote
|
|
906
1003
|
* @license MIT
|
|
907
1004
|
*/
|
|
908
|
-
const
|
|
1005
|
+
const zr = {
|
|
909
1006
|
escapeDeactivates: {
|
|
910
1007
|
type: Boolean,
|
|
911
1008
|
default: !0
|
|
@@ -931,14 +1028,14 @@ const xr = {
|
|
|
931
1028
|
preventScroll: Boolean,
|
|
932
1029
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
933
1030
|
tabbableOptions: Object
|
|
934
|
-
},
|
|
1031
|
+
}, Vr = te({
|
|
935
1032
|
props: Object.assign({
|
|
936
1033
|
active: {
|
|
937
1034
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
938
1035
|
type: Boolean,
|
|
939
1036
|
default: !0
|
|
940
1037
|
}
|
|
941
|
-
},
|
|
1038
|
+
}, zr),
|
|
942
1039
|
emits: [
|
|
943
1040
|
"update:active",
|
|
944
1041
|
"activate",
|
|
@@ -956,7 +1053,7 @@ const xr = {
|
|
|
956
1053
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
957
1054
|
});
|
|
958
1055
|
function o() {
|
|
959
|
-
return r || (r =
|
|
1056
|
+
return r || (r = Hr(d.value, {
|
|
960
1057
|
escapeDeactivates: n.escapeDeactivates,
|
|
961
1058
|
allowOutsideClick: n.allowOutsideClick,
|
|
962
1059
|
returnFocusOnDeactivate: n.returnFocusOnDeactivate,
|
|
@@ -975,8 +1072,8 @@ const xr = {
|
|
|
975
1072
|
delayInitialFocus: n.delayInitialFocus
|
|
976
1073
|
}));
|
|
977
1074
|
}
|
|
978
|
-
return
|
|
979
|
-
|
|
1075
|
+
return We(() => {
|
|
1076
|
+
Me(() => n.active, (v) => {
|
|
980
1077
|
v && d.value ? o().activate() : r && (r.deactivate(), (!d.value || d.value.nodeType === Node.COMMENT_NODE) && (r = null));
|
|
981
1078
|
}, { immediate: !0, flush: "post" });
|
|
982
1079
|
}), yn(() => {
|
|
@@ -991,7 +1088,7 @@ const xr = {
|
|
|
991
1088
|
renderImpl() {
|
|
992
1089
|
if (!t.default)
|
|
993
1090
|
return null;
|
|
994
|
-
const v = t.default().filter((
|
|
1091
|
+
const v = t.default().filter((w) => w.type !== _n);
|
|
995
1092
|
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : wn(v[0], { ref: l });
|
|
996
1093
|
}
|
|
997
1094
|
};
|
|
@@ -1010,15 +1107,15 @@ function Xt() {
|
|
|
1010
1107
|
};
|
|
1011
1108
|
}
|
|
1012
1109
|
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1013
|
-
function
|
|
1110
|
+
function Gr(n) {
|
|
1014
1111
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1015
1112
|
}
|
|
1016
|
-
var
|
|
1017
|
-
|
|
1113
|
+
var ze = { exports: {} };
|
|
1114
|
+
ze.exports;
|
|
1018
1115
|
(function(n, t) {
|
|
1019
|
-
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]",
|
|
1020
|
-
|
|
1021
|
-
var
|
|
1116
|
+
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", p = "[object Date]", w = "[object Error]", x = "[object Function]", N = "[object GeneratorFunction]", D = "[object Map]", I = "[object Number]", O = "[object Object]", V = "[object Promise]", j = "[object RegExp]", Z = "[object Set]", ne = "[object String]", G = "[object Symbol]", S = "[object WeakMap]", P = "[object ArrayBuffer]", U = "[object DataView]", ee = "[object Float32Array]", Y = "[object Float64Array]", W = "[object Int8Array]", A = "[object Int16Array]", s = "[object Int32Array]", u = "[object Uint8Array]", f = "[object Uint8ClampedArray]", y = "[object Uint16Array]", k = "[object Uint32Array]", E = /[\\^$.*+?()[\]{}|]/g, F = /\w*$/, M = /^\[object .+?Constructor\]$/, R = /^(?:0|[1-9]\d*)$/, T = {};
|
|
1117
|
+
T[d] = T[o] = T[P] = T[U] = T[v] = T[p] = T[ee] = T[Y] = T[W] = T[A] = T[s] = T[D] = T[I] = T[O] = T[j] = T[Z] = T[ne] = T[G] = T[u] = T[f] = T[y] = T[k] = !0, T[w] = T[x] = T[S] = !1;
|
|
1118
|
+
var ce = typeof Re == "object" && Re && Re.Object === Object && Re, re = typeof self == "object" && self && self.Object === Object && self, K = ce || re || Function("return this")(), we = t && !t.nodeType && t, he = we && !0 && n && !n.nodeType && n, Te = he && he.exports === we;
|
|
1022
1119
|
function Jt(e, i) {
|
|
1023
1120
|
return e.set(i[0], i[1]), e;
|
|
1024
1121
|
}
|
|
@@ -1031,14 +1128,14 @@ Ke.exports;
|
|
|
1031
1128
|
return e;
|
|
1032
1129
|
}
|
|
1033
1130
|
function ta(e, i) {
|
|
1034
|
-
for (var c = -1, b = i.length,
|
|
1035
|
-
e[
|
|
1131
|
+
for (var c = -1, b = i.length, L = e.length; ++c < b; )
|
|
1132
|
+
e[L + c] = i[c];
|
|
1036
1133
|
return e;
|
|
1037
1134
|
}
|
|
1038
1135
|
function vt(e, i, c, b) {
|
|
1039
|
-
var
|
|
1040
|
-
for (b &&
|
|
1041
|
-
c = i(c, e[
|
|
1136
|
+
var L = -1, H = e ? e.length : 0;
|
|
1137
|
+
for (b && H && (c = e[++L]); ++L < H; )
|
|
1138
|
+
c = i(c, e[L], L, e);
|
|
1042
1139
|
return c;
|
|
1043
1140
|
}
|
|
1044
1141
|
function aa(e, i) {
|
|
@@ -1060,11 +1157,11 @@ Ke.exports;
|
|
|
1060
1157
|
}
|
|
1061
1158
|
function ht(e) {
|
|
1062
1159
|
var i = -1, c = Array(e.size);
|
|
1063
|
-
return e.forEach(function(b,
|
|
1064
|
-
c[++i] = [
|
|
1160
|
+
return e.forEach(function(b, L) {
|
|
1161
|
+
c[++i] = [L, b];
|
|
1065
1162
|
}), c;
|
|
1066
1163
|
}
|
|
1067
|
-
function
|
|
1164
|
+
function qe(e, i) {
|
|
1068
1165
|
return function(c) {
|
|
1069
1166
|
return e(i(c));
|
|
1070
1167
|
};
|
|
@@ -1075,13 +1172,13 @@ Ke.exports;
|
|
|
1075
1172
|
c[++i] = b;
|
|
1076
1173
|
}), c;
|
|
1077
1174
|
}
|
|
1078
|
-
var ra = Array.prototype, ia = Function.prototype,
|
|
1079
|
-
var e = /[^.]+$/.exec(
|
|
1175
|
+
var ra = Array.prototype, ia = Function.prototype, Ae = Object.prototype, Ye = K["__core-js_shared__"], mt = function() {
|
|
1176
|
+
var e = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
|
|
1080
1177
|
return e ? "Symbol(src)_1." + e : "";
|
|
1081
|
-
}(), gt = ia.toString,
|
|
1082
|
-
"^" + gt.call(
|
|
1083
|
-
), yt = Te ?
|
|
1084
|
-
function
|
|
1178
|
+
}(), gt = ia.toString, se = Ae.hasOwnProperty, Ne = Ae.toString, oa = RegExp(
|
|
1179
|
+
"^" + gt.call(se).replace(E, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1180
|
+
), yt = Te ? K.Buffer : void 0, _t = K.Symbol, wt = K.Uint8Array, sa = qe(Object.getPrototypeOf, Object), ca = Object.create, la = Ae.propertyIsEnumerable, ua = ra.splice, Tt = Object.getOwnPropertySymbols, da = yt ? yt.isBuffer : void 0, fa = qe(Object.keys, Object), Xe = ge(K, "DataView"), ke = ge(K, "Map"), Je = ge(K, "Promise"), Qe = ge(K, "Set"), et = ge(K, "WeakMap"), Se = ge(Object, "create"), va = de(Xe), ba = de(ke), ha = de(Je), pa = de(Qe), ma = de(et), kt = _t ? _t.prototype : void 0, St = kt ? kt.valueOf : void 0;
|
|
1181
|
+
function le(e) {
|
|
1085
1182
|
var i = -1, c = e ? e.length : 0;
|
|
1086
1183
|
for (this.clear(); ++i < c; ) {
|
|
1087
1184
|
var b = e[i];
|
|
@@ -1100,18 +1197,18 @@ Ke.exports;
|
|
|
1100
1197
|
var c = i[e];
|
|
1101
1198
|
return c === r ? void 0 : c;
|
|
1102
1199
|
}
|
|
1103
|
-
return
|
|
1200
|
+
return se.call(i, e) ? i[e] : void 0;
|
|
1104
1201
|
}
|
|
1105
1202
|
function wa(e) {
|
|
1106
1203
|
var i = this.__data__;
|
|
1107
|
-
return Se ? i[e] !== void 0 :
|
|
1204
|
+
return Se ? i[e] !== void 0 : se.call(i, e);
|
|
1108
1205
|
}
|
|
1109
1206
|
function Ta(e, i) {
|
|
1110
1207
|
var c = this.__data__;
|
|
1111
1208
|
return c[e] = Se && i === void 0 ? r : i, this;
|
|
1112
1209
|
}
|
|
1113
|
-
|
|
1114
|
-
function
|
|
1210
|
+
le.prototype.clear = ga, le.prototype.delete = ya, le.prototype.get = _a, le.prototype.has = wa, le.prototype.set = Ta;
|
|
1211
|
+
function oe(e) {
|
|
1115
1212
|
var i = -1, c = e ? e.length : 0;
|
|
1116
1213
|
for (this.clear(); ++i < c; ) {
|
|
1117
1214
|
var b = e[i];
|
|
@@ -1132,32 +1229,32 @@ Ke.exports;
|
|
|
1132
1229
|
var i = this.__data__, c = Ee(i, e);
|
|
1133
1230
|
return c < 0 ? void 0 : i[c][1];
|
|
1134
1231
|
}
|
|
1135
|
-
function
|
|
1232
|
+
function $a(e) {
|
|
1136
1233
|
return Ee(this.__data__, e) > -1;
|
|
1137
1234
|
}
|
|
1138
1235
|
function Ca(e, i) {
|
|
1139
1236
|
var c = this.__data__, b = Ee(c, e);
|
|
1140
1237
|
return b < 0 ? c.push([e, i]) : c[b][1] = i, this;
|
|
1141
1238
|
}
|
|
1142
|
-
|
|
1143
|
-
function
|
|
1239
|
+
oe.prototype.clear = ka, oe.prototype.delete = Sa, oe.prototype.get = Ia, oe.prototype.has = $a, oe.prototype.set = Ca;
|
|
1240
|
+
function pe(e) {
|
|
1144
1241
|
var i = -1, c = e ? e.length : 0;
|
|
1145
1242
|
for (this.clear(); ++i < c; ) {
|
|
1146
1243
|
var b = e[i];
|
|
1147
1244
|
this.set(b[0], b[1]);
|
|
1148
1245
|
}
|
|
1149
1246
|
}
|
|
1150
|
-
function
|
|
1247
|
+
function Oa() {
|
|
1151
1248
|
this.__data__ = {
|
|
1152
|
-
hash: new
|
|
1153
|
-
map: new (ke ||
|
|
1154
|
-
string: new
|
|
1249
|
+
hash: new le(),
|
|
1250
|
+
map: new (ke || oe)(),
|
|
1251
|
+
string: new le()
|
|
1155
1252
|
};
|
|
1156
1253
|
}
|
|
1157
|
-
function
|
|
1254
|
+
function Aa(e) {
|
|
1158
1255
|
return Fe(this, e).delete(e);
|
|
1159
1256
|
}
|
|
1160
|
-
function
|
|
1257
|
+
function Na(e) {
|
|
1161
1258
|
return Fe(this, e).get(e);
|
|
1162
1259
|
}
|
|
1163
1260
|
function Ea(e) {
|
|
@@ -1166,12 +1263,12 @@ Ke.exports;
|
|
|
1166
1263
|
function Fa(e, i) {
|
|
1167
1264
|
return Fe(this, e).set(e, i), this;
|
|
1168
1265
|
}
|
|
1169
|
-
|
|
1170
|
-
function
|
|
1171
|
-
this.__data__ = new
|
|
1266
|
+
pe.prototype.clear = Oa, pe.prototype.delete = Aa, pe.prototype.get = Na, pe.prototype.has = Ea, pe.prototype.set = Fa;
|
|
1267
|
+
function me(e) {
|
|
1268
|
+
this.__data__ = new oe(e);
|
|
1172
1269
|
}
|
|
1173
1270
|
function xa() {
|
|
1174
|
-
this.__data__ = new
|
|
1271
|
+
this.__data__ = new oe();
|
|
1175
1272
|
}
|
|
1176
1273
|
function Da(e) {
|
|
1177
1274
|
return this.__data__.delete(e);
|
|
@@ -1184,67 +1281,67 @@ Ke.exports;
|
|
|
1184
1281
|
}
|
|
1185
1282
|
function La(e, i) {
|
|
1186
1283
|
var c = this.__data__;
|
|
1187
|
-
if (c instanceof
|
|
1284
|
+
if (c instanceof oe) {
|
|
1188
1285
|
var b = c.__data__;
|
|
1189
1286
|
if (!ke || b.length < a - 1)
|
|
1190
1287
|
return b.push([e, i]), this;
|
|
1191
|
-
c = this.__data__ = new
|
|
1288
|
+
c = this.__data__ = new pe(b);
|
|
1192
1289
|
}
|
|
1193
1290
|
return c.set(e, i), this;
|
|
1194
1291
|
}
|
|
1195
|
-
|
|
1292
|
+
me.prototype.clear = xa, me.prototype.delete = Da, me.prototype.get = Ba, me.prototype.has = Ra, me.prototype.set = La;
|
|
1196
1293
|
function Pa(e, i) {
|
|
1197
|
-
var c =
|
|
1198
|
-
for (var
|
|
1199
|
-
(i ||
|
|
1294
|
+
var c = nt(e) || ln(e) ? aa(e.length, String) : [], b = c.length, L = !!b;
|
|
1295
|
+
for (var H in e)
|
|
1296
|
+
(i || se.call(e, H)) && !(L && (H == "length" || rn(H, b))) && c.push(H);
|
|
1200
1297
|
return c;
|
|
1201
1298
|
}
|
|
1202
1299
|
function It(e, i, c) {
|
|
1203
1300
|
var b = e[i];
|
|
1204
|
-
(!(
|
|
1301
|
+
(!(se.call(e, i) && At(b, c)) || c === void 0 && !(i in e)) && (e[i] = c);
|
|
1205
1302
|
}
|
|
1206
1303
|
function Ee(e, i) {
|
|
1207
1304
|
for (var c = e.length; c--; )
|
|
1208
|
-
if (
|
|
1305
|
+
if (At(e[c][0], i))
|
|
1209
1306
|
return c;
|
|
1210
1307
|
return -1;
|
|
1211
1308
|
}
|
|
1212
1309
|
function Ma(e, i) {
|
|
1213
|
-
return e &&
|
|
1310
|
+
return e && $t(i, rt(i), e);
|
|
1214
1311
|
}
|
|
1215
|
-
function
|
|
1312
|
+
function tt(e, i, c, b, L, H, X) {
|
|
1216
1313
|
var z;
|
|
1217
|
-
if (b && (z =
|
|
1314
|
+
if (b && (z = H ? b(e, L, H, X) : b(e)), z !== void 0)
|
|
1218
1315
|
return z;
|
|
1219
1316
|
if (!xe(e))
|
|
1220
1317
|
return e;
|
|
1221
|
-
var Ft =
|
|
1318
|
+
var Ft = nt(e);
|
|
1222
1319
|
if (Ft) {
|
|
1223
1320
|
if (z = tn(e), !i)
|
|
1224
1321
|
return Ja(e, z);
|
|
1225
1322
|
} else {
|
|
1226
|
-
var
|
|
1323
|
+
var ye = ue(e), xt = ye == x || ye == N;
|
|
1227
1324
|
if (dn(e))
|
|
1228
1325
|
return Va(e, i);
|
|
1229
|
-
if (
|
|
1326
|
+
if (ye == O || ye == d || xt && !H) {
|
|
1230
1327
|
if (bt(e))
|
|
1231
|
-
return
|
|
1328
|
+
return H ? e : {};
|
|
1232
1329
|
if (z = an(xt ? {} : e), !i)
|
|
1233
1330
|
return Qa(e, Ma(z, e));
|
|
1234
1331
|
} else {
|
|
1235
|
-
if (!
|
|
1236
|
-
return
|
|
1237
|
-
z = nn(e,
|
|
1332
|
+
if (!T[ye])
|
|
1333
|
+
return H ? e : {};
|
|
1334
|
+
z = nn(e, ye, tt, i);
|
|
1238
1335
|
}
|
|
1239
1336
|
}
|
|
1240
|
-
X || (X = new
|
|
1337
|
+
X || (X = new me());
|
|
1241
1338
|
var Dt = X.get(e);
|
|
1242
1339
|
if (Dt)
|
|
1243
1340
|
return Dt;
|
|
1244
1341
|
if (X.set(e, z), !Ft)
|
|
1245
|
-
var Bt = c ? en(e) :
|
|
1246
|
-
return ea(Bt || e, function(
|
|
1247
|
-
Bt && (De =
|
|
1342
|
+
var Bt = c ? en(e) : rt(e);
|
|
1343
|
+
return ea(Bt || e, function(it, De) {
|
|
1344
|
+
Bt && (De = it, it = e[De]), It(z, De, tt(it, i, c, b, De, e, X));
|
|
1248
1345
|
}), z;
|
|
1249
1346
|
}
|
|
1250
1347
|
function Za(e) {
|
|
@@ -1252,23 +1349,23 @@ Ke.exports;
|
|
|
1252
1349
|
}
|
|
1253
1350
|
function ja(e, i, c) {
|
|
1254
1351
|
var b = i(e);
|
|
1255
|
-
return
|
|
1256
|
-
}
|
|
1257
|
-
function Ha(e) {
|
|
1258
|
-
return Ae.call(e);
|
|
1352
|
+
return nt(e) ? b : ta(b, c(e));
|
|
1259
1353
|
}
|
|
1260
1354
|
function Ka(e) {
|
|
1355
|
+
return Ne.call(e);
|
|
1356
|
+
}
|
|
1357
|
+
function Ha(e) {
|
|
1261
1358
|
if (!xe(e) || sn(e))
|
|
1262
1359
|
return !1;
|
|
1263
|
-
var i = Et(e) || bt(e) ? oa :
|
|
1264
|
-
return i.test(
|
|
1360
|
+
var i = Et(e) || bt(e) ? oa : M;
|
|
1361
|
+
return i.test(de(e));
|
|
1265
1362
|
}
|
|
1266
1363
|
function za(e) {
|
|
1267
|
-
if (!
|
|
1364
|
+
if (!Ot(e))
|
|
1268
1365
|
return fa(e);
|
|
1269
1366
|
var i = [];
|
|
1270
1367
|
for (var c in Object(e))
|
|
1271
|
-
|
|
1368
|
+
se.call(e, c) && c != "constructor" && i.push(c);
|
|
1272
1369
|
return i;
|
|
1273
1370
|
}
|
|
1274
1371
|
function Va(e, i) {
|
|
@@ -1277,12 +1374,12 @@ Ke.exports;
|
|
|
1277
1374
|
var c = new e.constructor(e.length);
|
|
1278
1375
|
return e.copy(c), c;
|
|
1279
1376
|
}
|
|
1280
|
-
function
|
|
1377
|
+
function at(e) {
|
|
1281
1378
|
var i = new e.constructor(e.byteLength);
|
|
1282
1379
|
return new wt(i).set(new wt(e)), i;
|
|
1283
1380
|
}
|
|
1284
1381
|
function Ga(e, i) {
|
|
1285
|
-
var c = i ?
|
|
1382
|
+
var c = i ? at(e.buffer) : e.buffer;
|
|
1286
1383
|
return new e.constructor(c, e.byteOffset, e.byteLength);
|
|
1287
1384
|
}
|
|
1288
1385
|
function Ua(e, i, c) {
|
|
@@ -1290,7 +1387,7 @@ Ke.exports;
|
|
|
1290
1387
|
return vt(b, Jt, new e.constructor());
|
|
1291
1388
|
}
|
|
1292
1389
|
function Wa(e) {
|
|
1293
|
-
var i = new e.constructor(e.source,
|
|
1390
|
+
var i = new e.constructor(e.source, F.exec(e));
|
|
1294
1391
|
return i.lastIndex = e.lastIndex, i;
|
|
1295
1392
|
}
|
|
1296
1393
|
function qa(e, i, c) {
|
|
@@ -1301,7 +1398,7 @@ Ke.exports;
|
|
|
1301
1398
|
return St ? Object(St.call(e)) : {};
|
|
1302
1399
|
}
|
|
1303
1400
|
function Xa(e, i) {
|
|
1304
|
-
var c = i ?
|
|
1401
|
+
var c = i ? at(e.buffer) : e.buffer;
|
|
1305
1402
|
return new e.constructor(c, e.byteOffset, e.length);
|
|
1306
1403
|
}
|
|
1307
1404
|
function Ja(e, i) {
|
|
@@ -1310,31 +1407,31 @@ Ke.exports;
|
|
|
1310
1407
|
i[c] = e[c];
|
|
1311
1408
|
return i;
|
|
1312
1409
|
}
|
|
1313
|
-
function
|
|
1410
|
+
function $t(e, i, c, b) {
|
|
1314
1411
|
c || (c = {});
|
|
1315
|
-
for (var
|
|
1316
|
-
var X = i[
|
|
1412
|
+
for (var L = -1, H = i.length; ++L < H; ) {
|
|
1413
|
+
var X = i[L], z = b ? b(c[X], e[X], X, c, e) : void 0;
|
|
1317
1414
|
It(c, X, z === void 0 ? e[X] : z);
|
|
1318
1415
|
}
|
|
1319
1416
|
return c;
|
|
1320
1417
|
}
|
|
1321
1418
|
function Qa(e, i) {
|
|
1322
|
-
return
|
|
1419
|
+
return $t(e, Ct(e), i);
|
|
1323
1420
|
}
|
|
1324
1421
|
function en(e) {
|
|
1325
|
-
return ja(e,
|
|
1422
|
+
return ja(e, rt, Ct);
|
|
1326
1423
|
}
|
|
1327
1424
|
function Fe(e, i) {
|
|
1328
1425
|
var c = e.__data__;
|
|
1329
1426
|
return on(i) ? c[typeof i == "string" ? "string" : "hash"] : c.map;
|
|
1330
1427
|
}
|
|
1331
|
-
function
|
|
1428
|
+
function ge(e, i) {
|
|
1332
1429
|
var c = na(e, i);
|
|
1333
|
-
return
|
|
1430
|
+
return Ha(c) ? c : void 0;
|
|
1334
1431
|
}
|
|
1335
|
-
var Ct = Tt ?
|
|
1336
|
-
(
|
|
1337
|
-
var i =
|
|
1432
|
+
var Ct = Tt ? qe(Tt, Object) : bn, ue = Ka;
|
|
1433
|
+
(Xe && ue(new Xe(new ArrayBuffer(1))) != U || ke && ue(new ke()) != D || Je && ue(Je.resolve()) != V || Qe && ue(new Qe()) != Z || et && ue(new et()) != S) && (ue = function(e) {
|
|
1434
|
+
var i = Ne.call(e), c = i == O ? e.constructor : void 0, b = c ? de(c) : void 0;
|
|
1338
1435
|
if (b)
|
|
1339
1436
|
switch (b) {
|
|
1340
1437
|
case va:
|
|
@@ -1344,54 +1441,54 @@ Ke.exports;
|
|
|
1344
1441
|
case ha:
|
|
1345
1442
|
return V;
|
|
1346
1443
|
case pa:
|
|
1347
|
-
return
|
|
1444
|
+
return Z;
|
|
1348
1445
|
case ma:
|
|
1349
|
-
return
|
|
1446
|
+
return S;
|
|
1350
1447
|
}
|
|
1351
1448
|
return i;
|
|
1352
1449
|
});
|
|
1353
1450
|
function tn(e) {
|
|
1354
1451
|
var i = e.length, c = e.constructor(i);
|
|
1355
|
-
return i && typeof e[0] == "string" &&
|
|
1452
|
+
return i && typeof e[0] == "string" && se.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
1356
1453
|
}
|
|
1357
1454
|
function an(e) {
|
|
1358
|
-
return typeof e.constructor == "function" && !
|
|
1455
|
+
return typeof e.constructor == "function" && !Ot(e) ? Za(sa(e)) : {};
|
|
1359
1456
|
}
|
|
1360
1457
|
function nn(e, i, c, b) {
|
|
1361
|
-
var
|
|
1458
|
+
var L = e.constructor;
|
|
1362
1459
|
switch (i) {
|
|
1363
|
-
case
|
|
1364
|
-
return
|
|
1460
|
+
case P:
|
|
1461
|
+
return at(e);
|
|
1365
1462
|
case v:
|
|
1366
|
-
case
|
|
1367
|
-
return new
|
|
1463
|
+
case p:
|
|
1464
|
+
return new L(+e);
|
|
1368
1465
|
case U:
|
|
1369
1466
|
return Ga(e, b);
|
|
1370
|
-
case
|
|
1467
|
+
case ee:
|
|
1371
1468
|
case Y:
|
|
1372
1469
|
case W:
|
|
1373
|
-
case
|
|
1470
|
+
case A:
|
|
1374
1471
|
case s:
|
|
1375
1472
|
case u:
|
|
1376
1473
|
case f:
|
|
1377
|
-
case
|
|
1378
|
-
case
|
|
1474
|
+
case y:
|
|
1475
|
+
case k:
|
|
1379
1476
|
return Xa(e, b);
|
|
1380
1477
|
case D:
|
|
1381
1478
|
return Ua(e, b, c);
|
|
1382
|
-
case
|
|
1383
|
-
case
|
|
1384
|
-
return new
|
|
1479
|
+
case I:
|
|
1480
|
+
case ne:
|
|
1481
|
+
return new L(e);
|
|
1385
1482
|
case j:
|
|
1386
1483
|
return Wa(e);
|
|
1387
|
-
case
|
|
1484
|
+
case Z:
|
|
1388
1485
|
return qa(e, b, c);
|
|
1389
1486
|
case G:
|
|
1390
1487
|
return Ya(e);
|
|
1391
1488
|
}
|
|
1392
1489
|
}
|
|
1393
1490
|
function rn(e, i) {
|
|
1394
|
-
return i = i ?? l, !!i && (typeof e == "number" ||
|
|
1491
|
+
return i = i ?? l, !!i && (typeof e == "number" || R.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1395
1492
|
}
|
|
1396
1493
|
function on(e) {
|
|
1397
1494
|
var i = typeof e;
|
|
@@ -1400,11 +1497,11 @@ Ke.exports;
|
|
|
1400
1497
|
function sn(e) {
|
|
1401
1498
|
return !!mt && mt in e;
|
|
1402
1499
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var i = e && e.constructor, c = typeof i == "function" && i.prototype ||
|
|
1500
|
+
function Ot(e) {
|
|
1501
|
+
var i = e && e.constructor, c = typeof i == "function" && i.prototype || Ae;
|
|
1405
1502
|
return e === c;
|
|
1406
1503
|
}
|
|
1407
|
-
function
|
|
1504
|
+
function de(e) {
|
|
1408
1505
|
if (e != null) {
|
|
1409
1506
|
try {
|
|
1410
1507
|
return gt.call(e);
|
|
@@ -1418,25 +1515,25 @@ Ke.exports;
|
|
|
1418
1515
|
return "";
|
|
1419
1516
|
}
|
|
1420
1517
|
function cn(e) {
|
|
1421
|
-
return
|
|
1518
|
+
return tt(e, !0, !0);
|
|
1422
1519
|
}
|
|
1423
|
-
function
|
|
1520
|
+
function At(e, i) {
|
|
1424
1521
|
return e === i || e !== e && i !== i;
|
|
1425
1522
|
}
|
|
1426
1523
|
function ln(e) {
|
|
1427
|
-
return un(e) &&
|
|
1524
|
+
return un(e) && se.call(e, "callee") && (!la.call(e, "callee") || Ne.call(e) == d);
|
|
1428
1525
|
}
|
|
1429
|
-
var
|
|
1430
|
-
function
|
|
1526
|
+
var nt = Array.isArray;
|
|
1527
|
+
function Nt(e) {
|
|
1431
1528
|
return e != null && fn(e.length) && !Et(e);
|
|
1432
1529
|
}
|
|
1433
1530
|
function un(e) {
|
|
1434
|
-
return vn(e) &&
|
|
1531
|
+
return vn(e) && Nt(e);
|
|
1435
1532
|
}
|
|
1436
1533
|
var dn = da || hn;
|
|
1437
1534
|
function Et(e) {
|
|
1438
|
-
var i = xe(e) ?
|
|
1439
|
-
return i ==
|
|
1535
|
+
var i = xe(e) ? Ne.call(e) : "";
|
|
1536
|
+
return i == x || i == N;
|
|
1440
1537
|
}
|
|
1441
1538
|
function fn(e) {
|
|
1442
1539
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
@@ -1448,8 +1545,8 @@ Ke.exports;
|
|
|
1448
1545
|
function vn(e) {
|
|
1449
1546
|
return !!e && typeof e == "object";
|
|
1450
1547
|
}
|
|
1451
|
-
function
|
|
1452
|
-
return
|
|
1548
|
+
function rt(e) {
|
|
1549
|
+
return Nt(e) ? Pa(e) : za(e);
|
|
1453
1550
|
}
|
|
1454
1551
|
function bn() {
|
|
1455
1552
|
return [];
|
|
@@ -1458,25 +1555,25 @@ Ke.exports;
|
|
|
1458
1555
|
return !1;
|
|
1459
1556
|
}
|
|
1460
1557
|
n.exports = cn;
|
|
1461
|
-
})(
|
|
1462
|
-
var
|
|
1463
|
-
const
|
|
1558
|
+
})(ze, ze.exports);
|
|
1559
|
+
var Ur = ze.exports;
|
|
1560
|
+
const Wr = /* @__PURE__ */ Gr(Ur), qr = {
|
|
1464
1561
|
key: 0,
|
|
1465
1562
|
class: "sidebar-header"
|
|
1466
|
-
},
|
|
1563
|
+
}, Yr = { class: "sidebar-content-container" }, Xr = {
|
|
1467
1564
|
key: 0,
|
|
1468
1565
|
class: "sidebar-top"
|
|
1469
|
-
},
|
|
1566
|
+
}, Jr = { "aria-label": "Main menu" }, Qr = {
|
|
1470
1567
|
key: 0,
|
|
1471
1568
|
class: "level-primary top-items"
|
|
1472
|
-
},
|
|
1569
|
+
}, ei = {
|
|
1473
1570
|
key: 1,
|
|
1474
1571
|
class: "sidebar-level-divider",
|
|
1475
1572
|
role: "separator"
|
|
1476
|
-
},
|
|
1573
|
+
}, ti = {
|
|
1477
1574
|
key: 2,
|
|
1478
1575
|
class: "level-primary bottom-items"
|
|
1479
|
-
},
|
|
1576
|
+
}, ai = { class: "sidebar-footer" }, ni = /* @__PURE__ */ te({
|
|
1480
1577
|
__name: "AppSidebar",
|
|
1481
1578
|
props: {
|
|
1482
1579
|
topItems: {
|
|
@@ -1542,11 +1639,11 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1542
1639
|
bff1d830: n.zIndex,
|
|
1543
1640
|
"2c1e7484": o.value.height,
|
|
1544
1641
|
"68c4ac1e": o.value.top,
|
|
1545
|
-
cf2fa71c:
|
|
1642
|
+
cf2fa71c: p.value.marginTop,
|
|
1546
1643
|
f12a684c: v.value.display,
|
|
1547
1644
|
"412eeb31": v.value.minHeight,
|
|
1548
|
-
"290c7a2d":
|
|
1549
|
-
"29b826c0":
|
|
1645
|
+
"290c7a2d": w.value.top,
|
|
1646
|
+
"29b826c0": w.value.zIndex
|
|
1550
1647
|
}));
|
|
1551
1648
|
const r = dt(), l = g(() => !!r.header), d = g(() => !!r.top), o = g(() => ({
|
|
1552
1649
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
@@ -1556,97 +1653,97 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1556
1653
|
})), v = g(() => ({
|
|
1557
1654
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1558
1655
|
minHeight: `${a.headerHeight}px`
|
|
1559
|
-
})),
|
|
1656
|
+
})), p = g(() => ({
|
|
1560
1657
|
marginTop: l.value ? `${a.headerHeight}px` : "0"
|
|
1561
|
-
})),
|
|
1658
|
+
})), w = g(() => ({
|
|
1562
1659
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1563
1660
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1564
|
-
})),
|
|
1565
|
-
var
|
|
1661
|
+
})), x = (s) => Wr(s).map((f) => {
|
|
1662
|
+
var y, k, E;
|
|
1566
1663
|
if (f) {
|
|
1567
|
-
(!f.key || !((
|
|
1568
|
-
for (const
|
|
1569
|
-
|
|
1664
|
+
(!f.key || !((y = f.key) != null && y.trim())) && (f.key = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!f.testId || !((k = f.testId) != null && k.trim())) && (f.testId = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1665
|
+
for (const F of f.items || [])
|
|
1666
|
+
F.parentKey = f.key, (!F.testId || !((E = F.testId) != null && E.trim())) && (F.testId = String(F.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1570
1667
|
}
|
|
1571
1668
|
return f;
|
|
1572
|
-
}),
|
|
1669
|
+
}), N = g(() => a.topItems.length ? x(a.topItems) : []), D = g(() => a.bottomItems.length ? x(a.bottomItems) : []), I = q(a.open), O = (s) => {
|
|
1573
1670
|
var u, f;
|
|
1574
|
-
|
|
1671
|
+
I.value !== s && (I.value = s, t("toggle", s)), s ? (u = document == null ? void 0 : document.body) == null || u.classList.add("kong-ui-app-sidebar-open") : (f = document == null ? void 0 : document.body) == null || f.classList.remove("kong-ui-app-sidebar-open"), j.value = !1;
|
|
1575
1672
|
}, V = () => {
|
|
1576
1673
|
a.mobileOverlayCloseOnClick && O(!1);
|
|
1577
|
-
}, j = q(!1),
|
|
1674
|
+
}, j = q(!1), Z = (s) => {
|
|
1578
1675
|
j.value = !0, t("click", s), setTimeout(() => {
|
|
1579
1676
|
O(!1);
|
|
1580
1677
|
}, a.mobileCloseDelay);
|
|
1581
1678
|
};
|
|
1582
|
-
|
|
1679
|
+
Me(() => a.open, (s) => {
|
|
1583
1680
|
O(s);
|
|
1584
1681
|
});
|
|
1585
|
-
const { debounce:
|
|
1586
|
-
|
|
1587
|
-
}, 200),
|
|
1588
|
-
|
|
1589
|
-
}, Y = q(null), W = g(() =>
|
|
1682
|
+
const { debounce: ne } = Xt(), G = ne(() => {
|
|
1683
|
+
I.value && S.value !== (window == null ? void 0 : window.innerWidth) && (S.value = window == null ? void 0 : window.innerWidth, O(!1));
|
|
1684
|
+
}, 200), S = q(), P = q(!1), U = q(), ee = () => {
|
|
1685
|
+
P.value || (P.value = !0, clearTimeout(U.value), U.value = setTimeout(() => P.value = !1, 1300));
|
|
1686
|
+
}, Y = q(null), W = g(() => I.value && a.mobileEnabled), A = async (s) => {
|
|
1590
1687
|
var u, f;
|
|
1591
|
-
s ? (await kn(), await new Promise((
|
|
1688
|
+
s ? (await kn(), await new Promise((y) => setTimeout(y, 300)), (u = Y.value) == null || u.activate()) : (f = Y.value) == null || f.deactivate();
|
|
1592
1689
|
};
|
|
1593
|
-
return
|
|
1594
|
-
s ? await
|
|
1595
|
-
}, { immediate: !0 }),
|
|
1596
|
-
|
|
1597
|
-
}),
|
|
1598
|
-
window.removeEventListener("resize", G), window.removeEventListener("resize",
|
|
1599
|
-
}), (s, u) => (
|
|
1600
|
-
|
|
1690
|
+
return Me(W, async (s) => {
|
|
1691
|
+
s ? await A(!0) : await A(!1);
|
|
1692
|
+
}, { immediate: !0 }), We(() => {
|
|
1693
|
+
S.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", G), window.addEventListener("resize", ee);
|
|
1694
|
+
}), Ht(() => {
|
|
1695
|
+
window.removeEventListener("resize", G), window.removeEventListener("resize", ee);
|
|
1696
|
+
}), (s, u) => (h(), m($e, null, [
|
|
1697
|
+
I.value && n.mobileOverlay && n.mobileEnabled ? (h(), m("div", {
|
|
1601
1698
|
key: 0,
|
|
1602
1699
|
class: "kong-ui-app-sidebar-overlay",
|
|
1603
1700
|
onClick: V
|
|
1604
|
-
})) :
|
|
1605
|
-
|
|
1701
|
+
})) : C("", !0),
|
|
1702
|
+
Ve(Tn(Vr), {
|
|
1606
1703
|
ref_key: "focusTrap",
|
|
1607
1704
|
ref: Y,
|
|
1608
1705
|
active: !1,
|
|
1609
1706
|
"allow-outside-click": "",
|
|
1610
1707
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1611
1708
|
}, {
|
|
1612
|
-
default:
|
|
1613
|
-
|
|
1709
|
+
default: B(() => [
|
|
1710
|
+
_("aside", {
|
|
1614
1711
|
class: ie(["kong-ui-app-sidebar", {
|
|
1615
|
-
"sidebar-open":
|
|
1712
|
+
"sidebar-open": I.value,
|
|
1616
1713
|
"no-sidebar-header": !l.value,
|
|
1617
1714
|
"mobile-header-hidden": n.mobileEnabled && (!l.value || !n.mobileHeaderVisible),
|
|
1618
1715
|
"mobile-disabled": !n.mobileEnabled,
|
|
1619
|
-
"disable-transitions":
|
|
1716
|
+
"disable-transitions": P.value
|
|
1620
1717
|
}]),
|
|
1621
1718
|
tabindex: "-1"
|
|
1622
1719
|
}, [
|
|
1623
|
-
l.value ? (
|
|
1624
|
-
|
|
1625
|
-
])) :
|
|
1626
|
-
|
|
1627
|
-
d.value ? (
|
|
1628
|
-
|
|
1629
|
-
])) :
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
(
|
|
1720
|
+
l.value ? (h(), m("div", qr, [
|
|
1721
|
+
$(s.$slots, "header", {}, void 0, !0)
|
|
1722
|
+
])) : C("", !0),
|
|
1723
|
+
_("div", Yr, [
|
|
1724
|
+
d.value ? (h(), m("div", Xr, [
|
|
1725
|
+
$(s.$slots, "top", {}, void 0, !0)
|
|
1726
|
+
])) : C("", !0),
|
|
1727
|
+
_("nav", Jr, [
|
|
1728
|
+
N.value.length ? (h(), m("ul", Qr, [
|
|
1729
|
+
(h(!0), m($e, null, Oe(N.value, (f) => (h(), Q(Rt, {
|
|
1633
1730
|
key: f.name,
|
|
1634
1731
|
item: f,
|
|
1635
|
-
onClick:
|
|
1732
|
+
onClick: Z
|
|
1636
1733
|
}, null, 8, ["item"]))), 128))
|
|
1637
|
-
])) :
|
|
1638
|
-
|
|
1639
|
-
D.value.length ? (
|
|
1640
|
-
(
|
|
1734
|
+
])) : C("", !0),
|
|
1735
|
+
N.value.length && D.value.length ? (h(), m("div", ei)) : C("", !0),
|
|
1736
|
+
D.value.length ? (h(), m("ul", ti, [
|
|
1737
|
+
(h(!0), m($e, null, Oe(D.value, (f) => (h(), Q(Rt, {
|
|
1641
1738
|
key: f.name,
|
|
1642
1739
|
item: f,
|
|
1643
|
-
onClick:
|
|
1740
|
+
onClick: Z
|
|
1644
1741
|
}, null, 8, ["item"]))), 128))
|
|
1645
|
-
])) :
|
|
1742
|
+
])) : C("", !0)
|
|
1646
1743
|
])
|
|
1647
1744
|
]),
|
|
1648
|
-
|
|
1649
|
-
|
|
1745
|
+
_("div", ai, [
|
|
1746
|
+
$(s.$slots, "footer", {}, void 0, !0)
|
|
1650
1747
|
])
|
|
1651
1748
|
], 2)
|
|
1652
1749
|
]),
|
|
@@ -1655,11 +1752,11 @@ const Lr = /* @__PURE__ */ Br(Rr), Pr = {
|
|
|
1655
1752
|
], 64));
|
|
1656
1753
|
}
|
|
1657
1754
|
});
|
|
1658
|
-
const
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
],
|
|
1755
|
+
const ri = /* @__PURE__ */ ae(ni, [["__scopeId", "data-v-00a9a4d3"]]), ft = (n) => (Ge("data-v-00a332e0"), n = n(), Ue(), n), ii = ["aria-label", "onClick"], oi = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), si = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), ci = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), li = [
|
|
1756
|
+
oi,
|
|
1757
|
+
si,
|
|
1758
|
+
ci
|
|
1759
|
+
], ui = /* @__PURE__ */ te({
|
|
1663
1760
|
__name: "SidebarToggle",
|
|
1664
1761
|
props: {
|
|
1665
1762
|
active: {
|
|
@@ -1672,25 +1769,25 @@ const Ur = /* @__PURE__ */ ne(Gr, [["__scopeId", "data-v-00a9a4d3"]]), ft = (n)
|
|
|
1672
1769
|
const a = n, r = q(a.active || !1), l = () => {
|
|
1673
1770
|
r.value = !r.value, t("toggle", r.value);
|
|
1674
1771
|
};
|
|
1675
|
-
return
|
|
1772
|
+
return Me(() => a.active, (d) => {
|
|
1676
1773
|
r.value = d;
|
|
1677
|
-
}), (d, o) => (
|
|
1774
|
+
}), (d, o) => (h(), m("a", {
|
|
1678
1775
|
"aria-haspopup": "true",
|
|
1679
1776
|
"aria-label": r.value ? "Close Main Menu" : "Open Main Menu",
|
|
1680
1777
|
class: ie(["sidebar-menu-toggle", { active: r.value }]),
|
|
1681
1778
|
href: "#",
|
|
1682
1779
|
role: "button",
|
|
1683
1780
|
onClick: Sn(l, ["prevent"])
|
|
1684
|
-
},
|
|
1781
|
+
}, li, 10, ii));
|
|
1685
1782
|
}
|
|
1686
1783
|
});
|
|
1687
|
-
const
|
|
1784
|
+
const di = /* @__PURE__ */ ae(ui, [["__scopeId", "data-v-00a332e0"]]), fi = "0px", vi = "16px", bi = (n) => (Ge("data-v-0a4e6b30"), n = n(), Ue(), n), hi = { id: "kong-ui-app-layout-notification" }, pi = { class: "mobile-logo" }, mi = {
|
|
1688
1785
|
key: 0,
|
|
1689
1786
|
class: "navbar-logo"
|
|
1690
|
-
},
|
|
1787
|
+
}, gi = {
|
|
1691
1788
|
class: "kong-ui-app-layout-main",
|
|
1692
1789
|
"data-testid": "kong-ui-app-layout-main"
|
|
1693
|
-
},
|
|
1790
|
+
}, yi = { class: "kong-ui-app-layout-content" }, _i = { class: "kong-ui-app-layout-content-inner" }, wi = /* @__PURE__ */ bi(() => /* @__PURE__ */ _("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), Ti = /* @__PURE__ */ te({
|
|
1694
1791
|
__name: "AppLayout",
|
|
1695
1792
|
props: {
|
|
1696
1793
|
hideDefaultSlot: {
|
|
@@ -1723,7 +1820,7 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1723
1820
|
emits: ["sidebar-click"],
|
|
1724
1821
|
setup(n, { emit: t }) {
|
|
1725
1822
|
const a = n;
|
|
1726
|
-
ut((
|
|
1823
|
+
ut((S) => ({
|
|
1727
1824
|
"65a18e83": V.value,
|
|
1728
1825
|
"6abaa094": j.value
|
|
1729
1826
|
}));
|
|
@@ -1743,167 +1840,167 @@ const ei = /* @__PURE__ */ ne(Qr, [["__scopeId", "data-v-00a332e0"]]), ti = "0px
|
|
|
1743
1840
|
bottomItems: g(() => a.sidebarBottomItems),
|
|
1744
1841
|
open: g(() => a.sidebarOpen),
|
|
1745
1842
|
hidden: g(() => a.sidebarHidden)
|
|
1746
|
-
}),
|
|
1747
|
-
t("sidebar-click",
|
|
1748
|
-
},
|
|
1749
|
-
|
|
1843
|
+
}), p = (S) => {
|
|
1844
|
+
t("sidebar-click", S);
|
|
1845
|
+
}, w = q(!1), x = (S) => {
|
|
1846
|
+
w.value = S;
|
|
1750
1847
|
};
|
|
1751
1848
|
In(() => {
|
|
1752
|
-
|
|
1849
|
+
w.value = $n(v, "open").value || !1;
|
|
1753
1850
|
});
|
|
1754
|
-
const
|
|
1755
|
-
if (
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
|
|
1851
|
+
const N = q(0), D = q(60), I = q(0), O = g(() => o.hidden ? I.value : D.value + I.value), V = g(() => `${O.value}px`), j = g(() => v.hidden || o.hidden ? fi : vi), { debounce: Z } = Xt(), ne = Z((S = !1) => {
|
|
1852
|
+
if (S || N.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1853
|
+
N.value = window == null ? void 0 : window.innerWidth;
|
|
1854
|
+
const P = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1855
|
+
P && (I.value = P.offsetHeight);
|
|
1759
1856
|
}
|
|
1760
1857
|
}, 200), G = q();
|
|
1761
|
-
return
|
|
1762
|
-
var
|
|
1763
|
-
(
|
|
1764
|
-
const
|
|
1765
|
-
|
|
1858
|
+
return We(() => {
|
|
1859
|
+
var P, U;
|
|
1860
|
+
(P = document == null ? void 0 : document.body) == null || P.classList.add("kong-ui-app-layout-body"), (U = document == null ? void 0 : document.documentElement) == null || U.classList.add("kong-ui-app-layout-html"), N.value = window == null ? void 0 : window.innerWidth, ne(!0);
|
|
1861
|
+
const S = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1862
|
+
S && (G.value = new ResizeObserver((ee) => {
|
|
1766
1863
|
window.requestAnimationFrame(() => {
|
|
1767
|
-
if (!(!Array.isArray(
|
|
1768
|
-
for (const Y of
|
|
1864
|
+
if (!(!Array.isArray(ee) || !ee.length))
|
|
1865
|
+
for (const Y of ee) {
|
|
1769
1866
|
const W = Y.contentRect.height;
|
|
1770
|
-
|
|
1867
|
+
I.value !== W && (I.value = W);
|
|
1771
1868
|
}
|
|
1772
1869
|
});
|
|
1773
|
-
}), G.value.observe(
|
|
1774
|
-
}),
|
|
1775
|
-
G.value && G.value.disconnect(), window.removeEventListener("resize",
|
|
1776
|
-
}), (
|
|
1870
|
+
}), G.value.observe(S)), window.addEventListener("resize", ne);
|
|
1871
|
+
}), Ht(() => {
|
|
1872
|
+
G.value && G.value.disconnect(), window.removeEventListener("resize", ne);
|
|
1873
|
+
}), (S, P) => (h(), m("div", {
|
|
1777
1874
|
class: ie(["kong-ui-app-layout", [
|
|
1778
1875
|
{ "navbar-hidden": o.hidden },
|
|
1779
1876
|
{ "sidebar-hidden": v.hidden }
|
|
1780
1877
|
]])
|
|
1781
1878
|
}, [
|
|
1782
|
-
|
|
1783
|
-
|
|
1879
|
+
_("div", hi, [
|
|
1880
|
+
$(S.$slots, "notification", {}, void 0, !0)
|
|
1784
1881
|
]),
|
|
1785
|
-
o.hidden ?
|
|
1882
|
+
o.hidden ? C("", !0) : (h(), Q(or, {
|
|
1786
1883
|
key: String(v.hidden),
|
|
1787
1884
|
"left-offset": v.hidden ? 0 : void 0,
|
|
1788
|
-
"top-offset":
|
|
1789
|
-
},
|
|
1790
|
-
"mobile-sidebar-toggle":
|
|
1791
|
-
v.hidden ?
|
|
1885
|
+
"top-offset": I.value
|
|
1886
|
+
}, Pe({
|
|
1887
|
+
"mobile-sidebar-toggle": B(() => [
|
|
1888
|
+
v.hidden ? C("", !0) : (h(), Q(di, {
|
|
1792
1889
|
key: 0,
|
|
1793
|
-
active:
|
|
1794
|
-
onToggle:
|
|
1890
|
+
active: w.value,
|
|
1891
|
+
onToggle: x
|
|
1795
1892
|
}, null, 8, ["active"]))
|
|
1796
1893
|
]),
|
|
1797
1894
|
_: 2
|
|
1798
1895
|
}, [
|
|
1799
1896
|
l.navbarMobileLogo ? {
|
|
1800
1897
|
name: "mobile-logo",
|
|
1801
|
-
fn:
|
|
1802
|
-
|
|
1803
|
-
|
|
1898
|
+
fn: B(() => [
|
|
1899
|
+
_("div", pi, [
|
|
1900
|
+
$(S.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1804
1901
|
])
|
|
1805
1902
|
]),
|
|
1806
1903
|
key: "0"
|
|
1807
1904
|
} : void 0,
|
|
1808
1905
|
l.navbarLogo ? {
|
|
1809
1906
|
name: "logo",
|
|
1810
|
-
fn:
|
|
1811
|
-
v.hidden ? (
|
|
1812
|
-
|
|
1813
|
-
])) :
|
|
1907
|
+
fn: B(() => [
|
|
1908
|
+
v.hidden ? (h(), m("div", mi, [
|
|
1909
|
+
$(S.$slots, "navbar-logo", {}, void 0, !0)
|
|
1910
|
+
])) : C("", !0)
|
|
1814
1911
|
]),
|
|
1815
1912
|
key: "1"
|
|
1816
1913
|
} : void 0,
|
|
1817
1914
|
l.navbarLeft ? {
|
|
1818
1915
|
name: "left",
|
|
1819
|
-
fn:
|
|
1820
|
-
|
|
1916
|
+
fn: B(() => [
|
|
1917
|
+
$(S.$slots, "navbar-left", {}, void 0, !0)
|
|
1821
1918
|
]),
|
|
1822
1919
|
key: "2"
|
|
1823
1920
|
} : void 0,
|
|
1824
1921
|
l.navbarCenter ? {
|
|
1825
1922
|
name: "center",
|
|
1826
|
-
fn:
|
|
1827
|
-
|
|
1923
|
+
fn: B(() => [
|
|
1924
|
+
$(S.$slots, "navbar-center", {}, void 0, !0)
|
|
1828
1925
|
]),
|
|
1829
1926
|
key: "3"
|
|
1830
1927
|
} : void 0,
|
|
1831
1928
|
l.navbarRight ? {
|
|
1832
1929
|
name: "right",
|
|
1833
|
-
fn:
|
|
1834
|
-
|
|
1930
|
+
fn: B(() => [
|
|
1931
|
+
$(S.$slots, "navbar-right", {}, void 0, !0)
|
|
1835
1932
|
]),
|
|
1836
1933
|
key: "4"
|
|
1837
1934
|
} : void 0
|
|
1838
1935
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1839
|
-
v.hidden ?
|
|
1936
|
+
v.hidden ? C("", !0) : (h(), Q(ri, {
|
|
1840
1937
|
key: 1,
|
|
1841
1938
|
"bottom-items": v.bottomItems,
|
|
1842
1939
|
"header-height": D.value,
|
|
1843
1940
|
"mobile-enabled": "",
|
|
1844
1941
|
"mobile-header-visible": !1,
|
|
1845
1942
|
"mobile-top-offset": O.value,
|
|
1846
|
-
open:
|
|
1943
|
+
open: w.value,
|
|
1847
1944
|
"top-items": v.topItems,
|
|
1848
|
-
"top-offset":
|
|
1849
|
-
onClick:
|
|
1850
|
-
onToggle:
|
|
1851
|
-
},
|
|
1945
|
+
"top-offset": I.value,
|
|
1946
|
+
onClick: p,
|
|
1947
|
+
onToggle: x
|
|
1948
|
+
}, Pe({ _: 2 }, [
|
|
1852
1949
|
l.sidebarHeader ? {
|
|
1853
1950
|
name: "header",
|
|
1854
|
-
fn:
|
|
1855
|
-
|
|
1951
|
+
fn: B(() => [
|
|
1952
|
+
$(S.$slots, "sidebar-header", {}, void 0, !0)
|
|
1856
1953
|
]),
|
|
1857
1954
|
key: "0"
|
|
1858
1955
|
} : void 0,
|
|
1859
1956
|
l.sidebarTop ? {
|
|
1860
1957
|
name: "top",
|
|
1861
|
-
fn:
|
|
1862
|
-
|
|
1958
|
+
fn: B(() => [
|
|
1959
|
+
$(S.$slots, "sidebar-top", {}, void 0, !0)
|
|
1863
1960
|
]),
|
|
1864
1961
|
key: "1"
|
|
1865
1962
|
} : void 0,
|
|
1866
1963
|
l.sidebarFooter ? {
|
|
1867
1964
|
name: "footer",
|
|
1868
|
-
fn:
|
|
1869
|
-
|
|
1965
|
+
fn: B(() => [
|
|
1966
|
+
$(S.$slots, "sidebar-footer", {}, void 0, !0)
|
|
1870
1967
|
]),
|
|
1871
1968
|
key: "2"
|
|
1872
1969
|
} : void 0
|
|
1873
1970
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
d.value ?
|
|
1971
|
+
_("main", gi, [
|
|
1972
|
+
_("div", yi, [
|
|
1973
|
+
_("div", _i, [
|
|
1974
|
+
wi,
|
|
1975
|
+
$(S.$slots, "app-error", {}, void 0, !0),
|
|
1976
|
+
d.value ? C("", !0) : $(S.$slots, "default", { key: 0 }, void 0, !0)
|
|
1880
1977
|
])
|
|
1881
1978
|
])
|
|
1882
1979
|
])
|
|
1883
1980
|
], 2));
|
|
1884
1981
|
}
|
|
1885
1982
|
});
|
|
1886
|
-
const
|
|
1983
|
+
const ki = /* @__PURE__ */ ae(Ti, [["__scopeId", "data-v-0a4e6b30"]]), Si = (n) => (Ge("data-v-d7e33427"), n = n(), Ue(), n), Ii = { class: "kong-ui-app-page-header" }, $i = {
|
|
1887
1984
|
key: 0,
|
|
1888
1985
|
class: "page-header-breadcrumbs",
|
|
1889
1986
|
"data-testid": "page-header-breadcrumbs"
|
|
1890
|
-
},
|
|
1987
|
+
}, Ci = /* @__PURE__ */ Si(() => /* @__PURE__ */ _("span", { class: "page-header-breadcrumb-divider" }, "/", -1)), Oi = { class: "page-header-title-section" }, Ai = { class: "page-header-title-wrapper" }, Ni = {
|
|
1891
1988
|
key: 0,
|
|
1892
1989
|
class: "page-header-title-before",
|
|
1893
1990
|
"data-testid": "page-header-title-before"
|
|
1894
|
-
},
|
|
1991
|
+
}, Ei = ["title"], Fi = {
|
|
1895
1992
|
key: 1,
|
|
1896
1993
|
class: "page-header-title-after",
|
|
1897
1994
|
"data-testid": "page-header-title-after"
|
|
1898
|
-
},
|
|
1995
|
+
}, xi = {
|
|
1899
1996
|
key: 0,
|
|
1900
1997
|
class: "page-header-actions",
|
|
1901
1998
|
"data-testid": "page-header-actions"
|
|
1902
|
-
},
|
|
1999
|
+
}, Di = {
|
|
1903
2000
|
key: 1,
|
|
1904
2001
|
class: "page-header-section-below",
|
|
1905
2002
|
"data-testid": "page-header-section-below"
|
|
1906
|
-
},
|
|
2003
|
+
}, Bi = /* @__PURE__ */ te({
|
|
1907
2004
|
__name: "AppPageHeader",
|
|
1908
2005
|
props: {
|
|
1909
2006
|
title: {
|
|
@@ -1921,62 +2018,63 @@ const fi = /* @__PURE__ */ ne(di, [["__scopeId", "data-v-0a4e6b30"]]), vi = (n)
|
|
|
1921
2018
|
return !!((d = t.breadcrumbs) != null && d.length);
|
|
1922
2019
|
}), r = (d, o) => d.key || `breadcrumb-${o}`, l = g(() => t.breadcrumbs.map((d, o) => `icon-${r(d, o)}`) || []);
|
|
1923
2020
|
return (d, o) => {
|
|
1924
|
-
const v =
|
|
1925
|
-
return
|
|
1926
|
-
a.value ? (
|
|
1927
|
-
|
|
1928
|
-
divider:
|
|
1929
|
-
|
|
2021
|
+
const v = ve("KBreadcrumbs");
|
|
2022
|
+
return h(), m("div", Ii, [
|
|
2023
|
+
a.value ? (h(), m("div", $i, [
|
|
2024
|
+
Ve(v, { items: n.breadcrumbs }, Pe({
|
|
2025
|
+
divider: B(() => [
|
|
2026
|
+
Ci
|
|
1930
2027
|
]),
|
|
1931
2028
|
_: 2
|
|
1932
2029
|
}, [
|
|
1933
|
-
|
|
1934
|
-
name:
|
|
1935
|
-
fn:
|
|
1936
|
-
|
|
2030
|
+
Oe(l.value, (p) => ({
|
|
2031
|
+
name: p,
|
|
2032
|
+
fn: B(() => [
|
|
2033
|
+
$(d.$slots, p, {}, void 0, !0)
|
|
1937
2034
|
])
|
|
1938
2035
|
}))
|
|
1939
2036
|
]), 1032, ["items"])
|
|
1940
|
-
])) :
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
d.$slots["title-before"] ? (
|
|
1944
|
-
|
|
1945
|
-
])) :
|
|
1946
|
-
|
|
2037
|
+
])) : C("", !0),
|
|
2038
|
+
_("div", Oi, [
|
|
2039
|
+
_("div", Ai, [
|
|
2040
|
+
d.$slots["title-before"] ? (h(), m("div", Ni, [
|
|
2041
|
+
$(d.$slots, "title-before", {}, void 0, !0)
|
|
2042
|
+
])) : C("", !0),
|
|
2043
|
+
_("h1", {
|
|
1947
2044
|
class: "page-header-title",
|
|
1948
2045
|
"data-testid": "page-header-title",
|
|
1949
2046
|
title: n.title
|
|
1950
|
-
},
|
|
1951
|
-
d.$slots["title-after"] ? (
|
|
1952
|
-
|
|
1953
|
-
])) :
|
|
2047
|
+
}, J(n.title), 9, Ei),
|
|
2048
|
+
d.$slots["title-after"] ? (h(), m("div", Fi, [
|
|
2049
|
+
$(d.$slots, "title-after", {}, void 0, !0)
|
|
2050
|
+
])) : C("", !0)
|
|
1954
2051
|
]),
|
|
1955
|
-
d.$slots.actions ? (
|
|
1956
|
-
|
|
1957
|
-
])) :
|
|
2052
|
+
d.$slots.actions ? (h(), m("div", xi, [
|
|
2053
|
+
$(d.$slots, "actions", {}, void 0, !0)
|
|
2054
|
+
])) : C("", !0)
|
|
1958
2055
|
]),
|
|
1959
|
-
d.$slots.below ? (
|
|
1960
|
-
|
|
1961
|
-
])) :
|
|
2056
|
+
d.$slots.below ? (h(), m("div", Di, [
|
|
2057
|
+
$(d.$slots, "below", {}, void 0, !0)
|
|
2058
|
+
])) : C("", !0)
|
|
1962
2059
|
]);
|
|
1963
2060
|
};
|
|
1964
2061
|
}
|
|
1965
2062
|
});
|
|
1966
|
-
const
|
|
2063
|
+
const Zi = /* @__PURE__ */ ae(Bi, [["__scopeId", "data-v-d7e33427"]]), ji = {
|
|
1967
2064
|
// Customize Vue plugin options as desired
|
|
1968
2065
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
1969
2066
|
install: (n, t = {}) => {
|
|
1970
|
-
n.component(t.name || "AppLayout",
|
|
2067
|
+
n.component(t.name || "AppLayout", ki);
|
|
1971
2068
|
}
|
|
1972
2069
|
};
|
|
1973
2070
|
export {
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
2071
|
+
Li as AccountDropdown,
|
|
2072
|
+
Pi as AppAboutSection,
|
|
2073
|
+
Mi as AppError,
|
|
2074
|
+
ki as AppLayout,
|
|
2075
|
+
or as AppNavbar,
|
|
2076
|
+
Zi as AppPageHeader,
|
|
2077
|
+
ri as AppSidebar,
|
|
2078
|
+
di as SidebarToggle,
|
|
2079
|
+
ji as default
|
|
1982
2080
|
};
|