@kong-ui-public/app-layout 4.3.9-pr.1951.58adfc393.0 → 4.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app-layout.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as J, resolveComponent as he, openBlock as h, createBlock as K, withCtx as D, renderSlot as S, createElementBlock as y, Fragment as Ce, renderList as Te, normalizeClass as ie, createTextVNode as He, toDisplayString as q, computed as k, createSlots as Ue, createVNode as Ne, createCommentVNode as _, createElementVNode as I, createStaticVNode as hn, useCssVars as ft, useSlots as Xe, reactive as Ze, onMounted as Ye, resolveDynamicComponent as Ke, withKeys as pn, ref as G, watch as Ae, onUnmounted as mn, Comment as gn, cloneVNode as yn, nextTick as Bt, onBeforeUnmount as Ut, unref as Wt, withModifiers as wn, watchEffect as kn, toRef as Tn } from "vue";
|
|
2
2
|
import { ChevronRightIcon as Sn } from "@kong/icons";
|
|
3
3
|
import { HeaderTags as _n } from "@kong/kongponents";
|
|
4
|
-
const In = /* @__PURE__ */
|
|
4
|
+
const In = /* @__PURE__ */ J({
|
|
5
5
|
__name: "AccountDropdown",
|
|
6
6
|
props: {
|
|
7
7
|
options: {
|
|
@@ -19,27 +19,27 @@ const In = /* @__PURE__ */ Q({
|
|
|
19
19
|
default: " "
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
22
|
+
setup(a) {
|
|
23
23
|
return (t, i) => {
|
|
24
|
-
const
|
|
24
|
+
const n = he("KDropdownItem"), c = he("KDropdown");
|
|
25
25
|
return h(), K(c, {
|
|
26
26
|
class: "account-dropdown",
|
|
27
27
|
"kpop-attributes": { placement: "bottom-end" },
|
|
28
|
-
"trigger-text":
|
|
29
|
-
width:
|
|
28
|
+
"trigger-text": a.userInitials,
|
|
29
|
+
width: a.width
|
|
30
30
|
}, {
|
|
31
|
-
items:
|
|
32
|
-
|
|
33
|
-
(h(!0), y(Ce, null, Te(
|
|
31
|
+
items: D(({ handleSelection: u }) => [
|
|
32
|
+
S(t.$slots, "default", {}, () => [
|
|
33
|
+
(h(!0), y(Ce, null, Te(a.options, (o) => (h(), K(n, {
|
|
34
34
|
key: o.value,
|
|
35
35
|
class: ie({ "has-divider": o.hasDivider }),
|
|
36
36
|
"data-testid": "select-" + o.value,
|
|
37
37
|
"has-divider": o.hasDivider,
|
|
38
38
|
onClick: (v) => u(o)
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
42
|
-
He(
|
|
40
|
+
default: D(() => [
|
|
41
|
+
S(t.$slots, "default", { option: o }, () => [
|
|
42
|
+
He(q(o.label), 1)
|
|
43
43
|
], !0)
|
|
44
44
|
]),
|
|
45
45
|
_: 2
|
|
@@ -50,12 +50,12 @@ const In = /* @__PURE__ */ Q({
|
|
|
50
50
|
}, 8, ["trigger-text", "width"]);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
54
|
-
const i =
|
|
55
|
-
for (const [
|
|
56
|
-
i[
|
|
53
|
+
}), Q = (a, t) => {
|
|
54
|
+
const i = a.__vccOpts || a;
|
|
55
|
+
for (const [n, c] of t)
|
|
56
|
+
i[n] = c;
|
|
57
57
|
return i;
|
|
58
|
-
}, Rr = /* @__PURE__ */
|
|
58
|
+
}, Rr = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-b33191a2"]]), On = {
|
|
59
59
|
class: "about-section-title",
|
|
60
60
|
"data-testid": "about-section-title"
|
|
61
61
|
}, $n = { class: "about-section-header-end" }, Cn = {
|
|
@@ -91,7 +91,7 @@ const In = /* @__PURE__ */ Q({
|
|
|
91
91
|
key: 3,
|
|
92
92
|
class: "about-divider-section",
|
|
93
93
|
"data-testid": "about-divider-section"
|
|
94
|
-
}, Pn = /* @__PURE__ */
|
|
94
|
+
}, Pn = /* @__PURE__ */ J({
|
|
95
95
|
__name: "AppAboutSection",
|
|
96
96
|
props: {
|
|
97
97
|
title: {
|
|
@@ -123,16 +123,16 @@ const In = /* @__PURE__ */ Q({
|
|
|
123
123
|
default: !1
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
|
-
setup(
|
|
127
|
-
const t =
|
|
128
|
-
return (
|
|
126
|
+
setup(a) {
|
|
127
|
+
const t = a, i = k(() => !!t.modified && t.modified !== t.created);
|
|
128
|
+
return (n, c) => {
|
|
129
129
|
const u = he("KSkeletonBox"), o = he("KCard");
|
|
130
130
|
return h(), K(o, {
|
|
131
131
|
class: "kong-ui-app-about-section",
|
|
132
132
|
"title-tag": "h2"
|
|
133
133
|
}, Ue({
|
|
134
|
-
default:
|
|
135
|
-
|
|
134
|
+
default: D(() => [
|
|
135
|
+
a.isLoading ? (h(), y("div", Fn, [
|
|
136
136
|
Ne(u, {
|
|
137
137
|
height: "2",
|
|
138
138
|
width: "100"
|
|
@@ -142,40 +142,40 @@ const In = /* @__PURE__ */ Q({
|
|
|
142
142
|
width: "100"
|
|
143
143
|
})
|
|
144
144
|
])) : (h(), y("div", Dn, [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
])) :
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
])) :
|
|
145
|
+
a.description ? (h(), y("p", xn, q(a.description), 1)) : _("", !0),
|
|
146
|
+
n.$slots.default ? (h(), y("div", Rn, [
|
|
147
|
+
S(n.$slots, "default", {}, void 0, !0)
|
|
148
|
+
])) : _("", !0),
|
|
149
|
+
n.$slots["divider-section"] ? (h(), y("hr", Bn)) : _("", !0),
|
|
150
|
+
n.$slots["divider-section"] ? (h(), y("div", Ln, [
|
|
151
|
+
S(n.$slots, "divider-section", {}, void 0, !0)
|
|
152
|
+
])) : _("", !0)
|
|
153
153
|
]))
|
|
154
154
|
]),
|
|
155
155
|
_: 2
|
|
156
156
|
}, [
|
|
157
|
-
|
|
157
|
+
a.title ? {
|
|
158
158
|
name: "title",
|
|
159
|
-
fn:
|
|
160
|
-
|
|
159
|
+
fn: D(() => [
|
|
160
|
+
I("span", On, q(a.title), 1)
|
|
161
161
|
]),
|
|
162
162
|
key: "0"
|
|
163
163
|
} : void 0,
|
|
164
|
-
|
|
164
|
+
n.$slots.actions || a.created || a.modified ? {
|
|
165
165
|
name: "actions",
|
|
166
|
-
fn:
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
fn: D(() => [
|
|
167
|
+
I("div", $n, [
|
|
168
|
+
a.created || a.modified ? (h(), y("div", {
|
|
169
169
|
key: 0,
|
|
170
|
-
class: ie(["about-section-timestamps", { "has-actions":
|
|
170
|
+
class: ie(["about-section-timestamps", { "has-actions": n.$slots.actions }])
|
|
171
171
|
}, [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
i.value ? (h(), y("span", Nn,
|
|
175
|
-
], 2)) :
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
])) :
|
|
172
|
+
a.created ? (h(), y("span", Cn, q(a.createdLabel) + ": " + q(a.created), 1)) : _("", !0),
|
|
173
|
+
a.created && i.value ? (h(), y("span", En, "->")) : _("", !0),
|
|
174
|
+
i.value ? (h(), y("span", Nn, q(a.modifiedLabel) + ": " + q(a.modified), 1)) : _("", !0)
|
|
175
|
+
], 2)) : _("", !0),
|
|
176
|
+
n.$slots.actions ? (h(), y("div", An, [
|
|
177
|
+
S(n.$slots, "actions", {}, void 0, !0)
|
|
178
|
+
])) : _("", !0)
|
|
179
179
|
])
|
|
180
180
|
]),
|
|
181
181
|
key: "1"
|
|
@@ -183,40 +183,40 @@ const In = /* @__PURE__ */ Q({
|
|
|
183
183
|
]), 1024);
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
}), Br = /* @__PURE__ */
|
|
186
|
+
}), Br = /* @__PURE__ */ Q(Pn, [["__scopeId", "data-v-521dcc27"]]), Mn = {}, jn = {
|
|
187
187
|
fill: "none",
|
|
188
188
|
height: "130",
|
|
189
189
|
width: "130",
|
|
190
190
|
xmlns: "http://www.w3.org/2000/svg"
|
|
191
191
|
};
|
|
192
|
-
function Zn(
|
|
192
|
+
function Zn(a, t) {
|
|
193
193
|
return h(), y("svg", jn, t[0] || (t[0] = [
|
|
194
194
|
hn('<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)
|
|
195
195
|
]));
|
|
196
196
|
}
|
|
197
|
-
const Kn = /* @__PURE__ */
|
|
197
|
+
const Kn = /* @__PURE__ */ Q(Mn, [["render", Zn]]), Hn = { class: "kong-ui-app-error" }, Un = { class: "banana-icon" }, Wn = { class: "kong-ui-app-error-content" }, zn = /* @__PURE__ */ J({
|
|
198
198
|
__name: "AppError",
|
|
199
|
-
setup(
|
|
199
|
+
setup(a) {
|
|
200
200
|
return (t, i) => (h(), y("section", Hn, [
|
|
201
|
-
|
|
201
|
+
I("div", Un, [
|
|
202
202
|
Ne(Kn)
|
|
203
203
|
]),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
i[0] || (i[0] =
|
|
207
|
-
i[1] || (i[1] =
|
|
204
|
+
I("div", Wn, [
|
|
205
|
+
S(t.$slots, "default", {}, () => [
|
|
206
|
+
i[0] || (i[0] = I("h2", null, "An unexpected error has occurred", -1)),
|
|
207
|
+
i[1] || (i[1] = I("p", null, [
|
|
208
208
|
He("Go back to the previous page or "),
|
|
209
|
-
|
|
209
|
+
I("a", { href: "/" }, "return home"),
|
|
210
210
|
He(".")
|
|
211
211
|
], -1))
|
|
212
212
|
], !0)
|
|
213
213
|
])
|
|
214
214
|
]));
|
|
215
215
|
}
|
|
216
|
-
}), Lr = /* @__PURE__ */
|
|
216
|
+
}), Lr = /* @__PURE__ */ Q(zn, [["__scopeId", "data-v-b6d8dc55"]]), Vn = { class: "kong-ui-app-navbar" }, Gn = { class: "header-content" }, qn = { class: "mobile-header-left" }, Xn = {
|
|
217
217
|
key: 0,
|
|
218
218
|
class: "app-navbar-logo"
|
|
219
|
-
}, Yn = { class: "navbar-content" }, Jn = { class: "navbar-content-left" }, Qn = { class: "navbar-content-center" }, ei = { class: "navbar-content-right" }, ti = /* @__PURE__ */
|
|
219
|
+
}, Yn = { class: "navbar-content" }, Jn = { class: "navbar-content-left" }, Qn = { class: "navbar-content-center" }, ei = { class: "navbar-content-right" }, ti = /* @__PURE__ */ J({
|
|
220
220
|
__name: "AppNavbar",
|
|
221
221
|
props: {
|
|
222
222
|
topOffset: {
|
|
@@ -233,7 +233,7 @@ const Kn = /* @__PURE__ */ ee(Mn, [["render", Zn]]), Hn = { class: "kong-ui-app-
|
|
|
233
233
|
default: 3
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
|
-
setup(
|
|
236
|
+
setup(a) {
|
|
237
237
|
ft((o) => ({
|
|
238
238
|
"27c93a10": u.value.top,
|
|
239
239
|
"0f284bf5": u.value.zIndex,
|
|
@@ -241,7 +241,7 @@ const Kn = /* @__PURE__ */ ee(Mn, [["render", Zn]]), Hn = { class: "kong-ui-app-
|
|
|
241
241
|
"3d9232e8": c.marginRight,
|
|
242
242
|
"038c3c78": c.width
|
|
243
243
|
}));
|
|
244
|
-
const t =
|
|
244
|
+
const t = a, i = Xe(), n = k(() => !!i.logo), c = Ze({
|
|
245
245
|
marginRight: "0",
|
|
246
246
|
width: "0"
|
|
247
247
|
});
|
|
@@ -249,35 +249,35 @@ const Kn = /* @__PURE__ */ ee(Mn, [["render", Zn]]), Hn = { class: "kong-ui-app-
|
|
|
249
249
|
var o, v;
|
|
250
250
|
(v = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && v.length ? (c.marginRight = "32px", c.width = "calc(240px - 32px)") : (c.marginRight = "0", c.width = "0");
|
|
251
251
|
});
|
|
252
|
-
const u =
|
|
252
|
+
const u = k(() => ({
|
|
253
253
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
254
254
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
255
255
|
zIndex: t.zIndex
|
|
256
256
|
}));
|
|
257
257
|
return (o, v) => (h(), y("header", Vn, [
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
I("div", Gn, [
|
|
259
|
+
I("div", qn, [
|
|
260
|
+
S(o.$slots, "mobile-sidebar-toggle"),
|
|
261
|
+
S(o.$slots, "mobile-logo")
|
|
262
262
|
]),
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
])) :
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
n.value ? (h(), y("div", Xn, [
|
|
264
|
+
S(o.$slots, "logo")
|
|
265
|
+
])) : _("", !0),
|
|
266
|
+
I("div", Yn, [
|
|
267
|
+
I("div", Jn, [
|
|
268
|
+
S(o.$slots, "left")
|
|
269
269
|
]),
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
I("div", Qn, [
|
|
271
|
+
S(o.$slots, "center")
|
|
272
272
|
]),
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
I("div", ei, [
|
|
274
|
+
S(o.$slots, "right")
|
|
275
275
|
])
|
|
276
276
|
])
|
|
277
277
|
])
|
|
278
278
|
]));
|
|
279
279
|
}
|
|
280
|
-
}), ai = /* @__PURE__ */
|
|
280
|
+
}), ai = /* @__PURE__ */ Q(ti, [["__scopeId", "data-v-2f6fc50f"]]), ni = ["title"], lt = 99, ii = /* @__PURE__ */ J({
|
|
281
281
|
__name: "ItemBadge",
|
|
282
282
|
props: {
|
|
283
283
|
count: {
|
|
@@ -286,21 +286,21 @@ const Kn = /* @__PURE__ */ ee(Mn, [["render", Zn]]), Hn = { class: "kong-ui-app-
|
|
|
286
286
|
default: void 0
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
|
-
setup(
|
|
290
|
-
const t =
|
|
291
|
-
return (
|
|
289
|
+
setup(a) {
|
|
290
|
+
const t = a, i = k(() => t.count ? t.count > lt ? `${lt}+` : t.count.toString() : "");
|
|
291
|
+
return (n, c) => i.value ? (h(), y("div", {
|
|
292
292
|
key: 0,
|
|
293
293
|
class: "item-badge",
|
|
294
|
-
title: (
|
|
295
|
-
},
|
|
294
|
+
title: (a.count || 0) > lt ? String(a.count) : void 0
|
|
295
|
+
}, q(i.value), 9, ni)) : _("", !0);
|
|
296
296
|
}
|
|
297
|
-
}), ri = /* @__PURE__ */
|
|
297
|
+
}), ri = /* @__PURE__ */ Q(ii, [["__scopeId", "data-v-afb0d903"]]), oi = ["data-testid"], si = ["aria-controls", "aria-current", "aria-expanded", "href", "target", "onClick", "onKeypress"], ci = {
|
|
298
298
|
key: 0,
|
|
299
299
|
class: "sidebar-item-icon"
|
|
300
300
|
}, li = { class: "sidebar-item-name-container" }, ui = { class: "sidebar-item-name has-tooltip" }, di = {
|
|
301
301
|
key: 2,
|
|
302
302
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
303
|
-
}, fi = ["id"], vi = /* @__PURE__ */
|
|
303
|
+
}, fi = ["id"], vi = /* @__PURE__ */ J({
|
|
304
304
|
__name: "SidebarItem",
|
|
305
305
|
props: {
|
|
306
306
|
item: {
|
|
@@ -314,133 +314,133 @@ const Kn = /* @__PURE__ */ ee(Mn, [["render", Zn]]), Hn = { class: "kong-ui-app-
|
|
|
314
314
|
}
|
|
315
315
|
},
|
|
316
316
|
emits: ["click"],
|
|
317
|
-
setup(
|
|
318
|
-
const i = t,
|
|
319
|
-
i("click",
|
|
320
|
-
},
|
|
321
|
-
|
|
317
|
+
setup(a, { emit: t }) {
|
|
318
|
+
const i = t, n = a, c = k(() => typeof n.item.to != "string" ? !1 : !!n.item.newWindow || !!n.item.external || n.item.to.startsWith("http")), u = k(() => !n.item.to || typeof n.item.to != "string" || !n.item.newWindow ? !1 : n.item.newWindow && (n.item.to.startsWith("http") || n.item.to.startsWith("/"))), o = k(() => n.subnavItem && n.item.badgeCount !== void 0), v = (O) => {
|
|
319
|
+
i("click", O);
|
|
320
|
+
}, m = (O, A, N) => {
|
|
321
|
+
v(A), typeof N == "function" && (O.preventDefault(), N());
|
|
322
322
|
};
|
|
323
|
-
return (
|
|
324
|
-
var
|
|
325
|
-
const
|
|
323
|
+
return (O, A) => {
|
|
324
|
+
var R;
|
|
325
|
+
const N = he("KTooltip"), x = he("SidebarItem", !0);
|
|
326
326
|
return h(), y("li", {
|
|
327
|
-
class: ie([
|
|
328
|
-
"data-testid":
|
|
327
|
+
class: ie([a.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: a.item.expanded }, { active: a.item.active }]),
|
|
328
|
+
"data-testid": a.item.testId ? `sidebar-item-${a.item.testId}` : void 0
|
|
329
329
|
}, [
|
|
330
330
|
(h(), K(Ke(c.value ? "div" : "router-link"), {
|
|
331
331
|
custom: c.value ? void 0 : !0,
|
|
332
|
-
to: !c.value && !u.value ?
|
|
332
|
+
to: !c.value && !u.value ? a.item.to : void 0
|
|
333
333
|
}, {
|
|
334
|
-
default:
|
|
335
|
-
var
|
|
334
|
+
default: D((w) => {
|
|
335
|
+
var P, Y;
|
|
336
336
|
return [
|
|
337
|
-
|
|
338
|
-
"aria-controls": (
|
|
339
|
-
"aria-current":
|
|
340
|
-
"aria-expanded": (
|
|
337
|
+
I("a", {
|
|
338
|
+
"aria-controls": (P = a.item.items) != null && P.length && a.item.expanded ? `subnav-${a.item.key}` : void 0,
|
|
339
|
+
"aria-current": a.item.active ? "page" : void 0,
|
|
340
|
+
"aria-expanded": (Y = a.item.items) != null && Y.length && a.item.expanded ? !0 : void 0,
|
|
341
341
|
class: ie(["sidebar-item-link", { "sidebar-item-external-link": u.value, "router-link": !c.value }]),
|
|
342
|
-
href: c.value ? String(
|
|
342
|
+
href: c.value ? String(a.item.to || "#") : w == null ? void 0 : w.href,
|
|
343
343
|
target: u.value ? "_blank" : void 0,
|
|
344
|
-
onClick: (
|
|
345
|
-
onKeypress: pn((
|
|
344
|
+
onClick: (B) => m(B, a.item, w == null ? void 0 : w.navigate),
|
|
345
|
+
onKeypress: pn((B) => m(B, a.item, w == null ? void 0 : w.navigate), ["enter"])
|
|
346
346
|
}, [
|
|
347
|
-
|
|
348
|
-
class: ie(["sidebar-item-display", { "has-label": !!
|
|
347
|
+
I("div", {
|
|
348
|
+
class: ie(["sidebar-item-display", { "has-label": !!a.item.label && a.item.expanded, "has-badge": o.value }])
|
|
349
349
|
}, [
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
])) :
|
|
353
|
-
|
|
354
|
-
|
|
350
|
+
O.$slots[`sidebar-icon-${a.item.key}`] ? (h(), y("div", ci, [
|
|
351
|
+
a.subnavItem ? _("", !0) : S(O.$slots, `sidebar-icon-${a.item.key}`, { key: 0 }, void 0, !0)
|
|
352
|
+
])) : _("", !0),
|
|
353
|
+
I("div", li, [
|
|
354
|
+
(a.subnavItem && !o.value ? a.item.name.length < 25 : a.item.name.length < 18) ? (h(), y("div", {
|
|
355
|
+
key: 0,
|
|
356
|
+
class: ie(["sidebar-item-name truncate-text", [a.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
357
|
+
}, q(a.item.name), 3)) : (h(), K(N, {
|
|
355
358
|
key: 1,
|
|
356
359
|
class: "sidebar-item-tooltip",
|
|
357
360
|
placement: "right",
|
|
358
361
|
"position-fixed": "",
|
|
359
|
-
text:
|
|
362
|
+
text: a.item.name
|
|
360
363
|
}, {
|
|
361
|
-
default:
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
class: ie(["truncate-text", [
|
|
365
|
-
},
|
|
364
|
+
default: D(() => [
|
|
365
|
+
I("div", ui, [
|
|
366
|
+
I("span", {
|
|
367
|
+
class: ie(["truncate-text", [a.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": o.value }]])
|
|
368
|
+
}, q(a.item.name), 3)
|
|
366
369
|
])
|
|
367
370
|
]),
|
|
368
371
|
_: 1
|
|
369
|
-
}, 8, ["text"]))
|
|
370
|
-
|
|
371
|
-
class: ie(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
372
|
-
}, X(n.item.name), 3)),
|
|
373
|
-
n.item.label && n.item.expanded ? (h(), y("div", di, X(n.item.label), 1)) : S("", !0)
|
|
372
|
+
}, 8, ["text"])),
|
|
373
|
+
a.item.label && a.item.expanded ? (h(), y("div", di, q(a.item.label), 1)) : _("", !0)
|
|
374
374
|
]),
|
|
375
375
|
o.value ? (h(), K(ri, {
|
|
376
376
|
key: 1,
|
|
377
|
-
count:
|
|
378
|
-
}, null, 8, ["count"])) :
|
|
377
|
+
count: a.item.badgeCount
|
|
378
|
+
}, null, 8, ["count"])) : _("", !0)
|
|
379
379
|
], 2)
|
|
380
380
|
], 42, si)
|
|
381
381
|
];
|
|
382
382
|
}),
|
|
383
383
|
_: 3
|
|
384
384
|
}, 8, ["custom", "to"])),
|
|
385
|
-
(
|
|
385
|
+
(R = a.item.items) != null && R.length && a.item.expanded ? (h(), y("ul", {
|
|
386
386
|
key: 0,
|
|
387
|
-
id: `subnav-${
|
|
387
|
+
id: `subnav-${a.item.key}`,
|
|
388
388
|
class: "level-secondary"
|
|
389
389
|
}, [
|
|
390
|
-
(h(!0), y(Ce, null, Te(
|
|
391
|
-
key:
|
|
392
|
-
item:
|
|
390
|
+
(h(!0), y(Ce, null, Te(a.item.items, (w) => (h(), K(x, {
|
|
391
|
+
key: w.name,
|
|
392
|
+
item: w,
|
|
393
393
|
"subnav-item": !0,
|
|
394
|
-
onClick: (
|
|
394
|
+
onClick: (P) => v(w)
|
|
395
395
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
396
|
-
], 8, fi)) :
|
|
396
|
+
], 8, fi)) : _("", !0)
|
|
397
397
|
], 10, oi);
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
}), Lt = /* @__PURE__ */
|
|
400
|
+
}), Lt = /* @__PURE__ */ Q(vi, [["__scopeId", "data-v-49ad078a"]]);
|
|
401
401
|
/*!
|
|
402
402
|
* tabbable 6.2.0
|
|
403
403
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
404
404
|
*/
|
|
405
405
|
var zt = ["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])"], We = /* @__PURE__ */ zt.join(","), Vt = typeof Element > "u", pe = Vt ? function() {
|
|
406
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, ze = !Vt && Element.prototype.getRootNode ? function(
|
|
406
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, ze = !Vt && Element.prototype.getRootNode ? function(a) {
|
|
407
407
|
var t;
|
|
408
|
-
return
|
|
409
|
-
} : function(
|
|
410
|
-
return
|
|
411
|
-
}, Ve = function
|
|
412
|
-
var
|
|
408
|
+
return a == null || (t = a.getRootNode) === null || t === void 0 ? void 0 : t.call(a);
|
|
409
|
+
} : function(a) {
|
|
410
|
+
return a == null ? void 0 : a.ownerDocument;
|
|
411
|
+
}, Ve = function a(t, i) {
|
|
412
|
+
var n;
|
|
413
413
|
i === void 0 && (i = !0);
|
|
414
|
-
var c = t == null || (
|
|
414
|
+
var c = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), u = c === "" || c === "true", o = u || i && t && a(t.parentNode);
|
|
415
415
|
return o;
|
|
416
416
|
}, bi = function(t) {
|
|
417
|
-
var i,
|
|
418
|
-
return
|
|
419
|
-
}, Gt = function(t, i,
|
|
417
|
+
var i, n = t == null || (i = t.getAttribute) === null || i === void 0 ? void 0 : i.call(t, "contenteditable");
|
|
418
|
+
return n === "" || n === "true";
|
|
419
|
+
}, Gt = function(t, i, n) {
|
|
420
420
|
if (Ve(t))
|
|
421
421
|
return [];
|
|
422
422
|
var c = Array.prototype.slice.apply(t.querySelectorAll(We));
|
|
423
|
-
return i && pe.call(t, We) && c.unshift(t), c = c.filter(
|
|
424
|
-
}, qt = function
|
|
423
|
+
return i && pe.call(t, We) && c.unshift(t), c = c.filter(n), c;
|
|
424
|
+
}, qt = function a(t, i, n) {
|
|
425
425
|
for (var c = [], u = Array.from(t); u.length; ) {
|
|
426
426
|
var o = u.shift();
|
|
427
427
|
if (!Ve(o, !1))
|
|
428
428
|
if (o.tagName === "SLOT") {
|
|
429
|
-
var v = o.assignedElements(), m = v.length ? v : o.children,
|
|
430
|
-
|
|
429
|
+
var v = o.assignedElements(), m = v.length ? v : o.children, O = a(m, !0, n);
|
|
430
|
+
n.flatten ? c.push.apply(c, O) : c.push({
|
|
431
431
|
scopeParent: o,
|
|
432
|
-
candidates:
|
|
432
|
+
candidates: O
|
|
433
433
|
});
|
|
434
434
|
} else {
|
|
435
|
-
var
|
|
436
|
-
|
|
437
|
-
var
|
|
438
|
-
typeof
|
|
439
|
-
if (
|
|
440
|
-
var
|
|
441
|
-
|
|
435
|
+
var A = pe.call(o, We);
|
|
436
|
+
A && n.filter(o) && (i || !t.includes(o)) && c.push(o);
|
|
437
|
+
var N = o.shadowRoot || // check for an undisclosed shadow
|
|
438
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(o), x = !Ve(N, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
439
|
+
if (N && x) {
|
|
440
|
+
var R = a(N === !0 ? o.children : N.children, !0, n);
|
|
441
|
+
n.flatten ? c.push.apply(c, R) : c.push({
|
|
442
442
|
scopeParent: o,
|
|
443
|
-
candidates:
|
|
443
|
+
candidates: R
|
|
444
444
|
});
|
|
445
445
|
} else
|
|
446
446
|
u.unshift.apply(u, o.children);
|
|
@@ -454,8 +454,8 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
454
454
|
throw new Error("No node provided");
|
|
455
455
|
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || bi(t)) && !Xt(t) ? 0 : t.tabIndex;
|
|
456
456
|
}, hi = function(t, i) {
|
|
457
|
-
var
|
|
458
|
-
return
|
|
457
|
+
var n = be(t);
|
|
458
|
+
return n < 0 && i && !Xt(t) ? 0 : n;
|
|
459
459
|
}, pi = function(t, i) {
|
|
460
460
|
return t.tabIndex === i.tabIndex ? t.documentOrder - i.documentOrder : t.tabIndex - i.tabIndex;
|
|
461
461
|
}, Yt = function(t) {
|
|
@@ -463,25 +463,25 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
463
463
|
}, mi = function(t) {
|
|
464
464
|
return Yt(t) && t.type === "hidden";
|
|
465
465
|
}, gi = function(t) {
|
|
466
|
-
var i = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(
|
|
467
|
-
return
|
|
466
|
+
var i = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
467
|
+
return n.tagName === "SUMMARY";
|
|
468
468
|
});
|
|
469
469
|
return i;
|
|
470
470
|
}, yi = function(t, i) {
|
|
471
|
-
for (var
|
|
472
|
-
if (t[
|
|
473
|
-
return t[
|
|
471
|
+
for (var n = 0; n < t.length; n++)
|
|
472
|
+
if (t[n].checked && t[n].form === i)
|
|
473
|
+
return t[n];
|
|
474
474
|
}, wi = function(t) {
|
|
475
475
|
if (!t.name)
|
|
476
476
|
return !0;
|
|
477
|
-
var i = t.form || ze(t),
|
|
477
|
+
var i = t.form || ze(t), n = function(v) {
|
|
478
478
|
return i.querySelectorAll('input[type="radio"][name="' + v + '"]');
|
|
479
479
|
}, c;
|
|
480
480
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
481
|
-
c =
|
|
481
|
+
c = n(window.CSS.escape(t.name));
|
|
482
482
|
else
|
|
483
483
|
try {
|
|
484
|
-
c =
|
|
484
|
+
c = n(t.name);
|
|
485
485
|
} catch (o) {
|
|
486
486
|
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;
|
|
487
487
|
}
|
|
@@ -492,48 +492,48 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
492
492
|
}, Ti = function(t) {
|
|
493
493
|
return ki(t) && !wi(t);
|
|
494
494
|
}, Si = function(t) {
|
|
495
|
-
var i,
|
|
496
|
-
if (
|
|
495
|
+
var i, n = t && ze(t), c = (i = n) === null || i === void 0 ? void 0 : i.host, u = !1;
|
|
496
|
+
if (n && n !== t) {
|
|
497
497
|
var o, v, m;
|
|
498
498
|
for (u = !!((o = c) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(c) || t != null && (m = t.ownerDocument) !== null && m !== void 0 && m.contains(t)); !u && c; ) {
|
|
499
|
-
var
|
|
500
|
-
|
|
499
|
+
var O, A, N;
|
|
500
|
+
n = ze(c), c = (O = n) === null || O === void 0 ? void 0 : O.host, u = !!((A = c) !== null && A !== void 0 && (N = A.ownerDocument) !== null && N !== void 0 && N.contains(c));
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
return u;
|
|
504
504
|
}, Pt = function(t) {
|
|
505
|
-
var i = t.getBoundingClientRect(),
|
|
506
|
-
return
|
|
505
|
+
var i = t.getBoundingClientRect(), n = i.width, c = i.height;
|
|
506
|
+
return n === 0 && c === 0;
|
|
507
507
|
}, _i = function(t, i) {
|
|
508
|
-
var
|
|
508
|
+
var n = i.displayCheck, c = i.getShadowRoot;
|
|
509
509
|
if (getComputedStyle(t).visibility === "hidden")
|
|
510
510
|
return !0;
|
|
511
511
|
var u = pe.call(t, "details>summary:first-of-type"), o = u ? t.parentElement : t;
|
|
512
512
|
if (pe.call(o, "details:not([open]) *"))
|
|
513
513
|
return !0;
|
|
514
|
-
if (!
|
|
514
|
+
if (!n || n === "full" || n === "legacy-full") {
|
|
515
515
|
if (typeof c == "function") {
|
|
516
516
|
for (var v = t; t; ) {
|
|
517
|
-
var m = t.parentElement,
|
|
517
|
+
var m = t.parentElement, O = ze(t);
|
|
518
518
|
if (m && !m.shadowRoot && c(m) === !0)
|
|
519
519
|
return Pt(t);
|
|
520
|
-
t.assignedSlot ? t = t.assignedSlot : !m &&
|
|
520
|
+
t.assignedSlot ? t = t.assignedSlot : !m && O !== t.ownerDocument ? t = O.host : t = m;
|
|
521
521
|
}
|
|
522
522
|
t = v;
|
|
523
523
|
}
|
|
524
524
|
if (Si(t))
|
|
525
525
|
return !t.getClientRects().length;
|
|
526
|
-
if (
|
|
526
|
+
if (n !== "legacy-full")
|
|
527
527
|
return !0;
|
|
528
|
-
} else if (
|
|
528
|
+
} else if (n === "non-zero-area")
|
|
529
529
|
return Pt(t);
|
|
530
530
|
return !1;
|
|
531
531
|
}, Ii = function(t) {
|
|
532
532
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
533
533
|
for (var i = t.parentElement; i; ) {
|
|
534
534
|
if (i.tagName === "FIELDSET" && i.disabled) {
|
|
535
|
-
for (var
|
|
536
|
-
var c = i.children.item(
|
|
535
|
+
for (var n = 0; n < i.children.length; n++) {
|
|
536
|
+
var c = i.children.item(n);
|
|
537
537
|
if (c.tagName === "LEGEND")
|
|
538
538
|
return pe.call(i, "fieldset[disabled] *") ? !0 : !c.contains(t);
|
|
539
539
|
}
|
|
@@ -553,37 +553,37 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
553
553
|
}, Oi = function(t) {
|
|
554
554
|
var i = parseInt(t.getAttribute("tabindex"), 10);
|
|
555
555
|
return !!(isNaN(i) || i >= 0);
|
|
556
|
-
}, $i = function
|
|
557
|
-
var i = [],
|
|
556
|
+
}, $i = function a(t) {
|
|
557
|
+
var i = [], n = [];
|
|
558
558
|
return t.forEach(function(c, u) {
|
|
559
|
-
var o = !!c.scopeParent, v = o ? c.scopeParent : c, m = hi(v, o),
|
|
560
|
-
m === 0 ? o ? i.push.apply(i,
|
|
559
|
+
var o = !!c.scopeParent, v = o ? c.scopeParent : c, m = hi(v, o), O = o ? a(c.candidates) : v;
|
|
560
|
+
m === 0 ? o ? i.push.apply(i, O) : i.push(v) : n.push({
|
|
561
561
|
documentOrder: u,
|
|
562
562
|
tabIndex: m,
|
|
563
563
|
item: c,
|
|
564
564
|
isScope: o,
|
|
565
|
-
content:
|
|
565
|
+
content: O
|
|
566
566
|
});
|
|
567
|
-
}),
|
|
567
|
+
}), n.sort(pi).reduce(function(c, u) {
|
|
568
568
|
return u.isScope ? c.push.apply(c, u.content) : c.push(u.content), c;
|
|
569
569
|
}, []).concat(i);
|
|
570
570
|
}, Ci = function(t, i) {
|
|
571
571
|
i = i || {};
|
|
572
|
-
var
|
|
573
|
-
return i.getShadowRoot ?
|
|
572
|
+
var n;
|
|
573
|
+
return i.getShadowRoot ? n = qt([t], i.includeContainer, {
|
|
574
574
|
filter: dt.bind(null, i),
|
|
575
575
|
flatten: !1,
|
|
576
576
|
getShadowRoot: i.getShadowRoot,
|
|
577
577
|
shadowRootFilter: Oi
|
|
578
|
-
}) :
|
|
578
|
+
}) : n = Gt(t, i.includeContainer, dt.bind(null, i)), $i(n);
|
|
579
579
|
}, Ei = function(t, i) {
|
|
580
580
|
i = i || {};
|
|
581
|
-
var
|
|
582
|
-
return i.getShadowRoot ?
|
|
581
|
+
var n;
|
|
582
|
+
return i.getShadowRoot ? n = qt([t], i.includeContainer, {
|
|
583
583
|
filter: Ge.bind(null, i),
|
|
584
584
|
flatten: !0,
|
|
585
585
|
getShadowRoot: i.getShadowRoot
|
|
586
|
-
}) :
|
|
586
|
+
}) : n = Gt(t, i.includeContainer, Ge.bind(null, i)), n;
|
|
587
587
|
}, ke = function(t, i) {
|
|
588
588
|
if (i = i || {}, !t)
|
|
589
589
|
throw new Error("No node provided");
|
|
@@ -597,61 +597,61 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
597
597
|
* focus-trap 7.6.0
|
|
598
598
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
599
599
|
*/
|
|
600
|
-
function Ai(
|
|
601
|
-
return (t = Di(t)) in
|
|
600
|
+
function Ai(a, t, i) {
|
|
601
|
+
return (t = Di(t)) in a ? Object.defineProperty(a, t, {
|
|
602
602
|
value: i,
|
|
603
603
|
enumerable: !0,
|
|
604
604
|
configurable: !0,
|
|
605
605
|
writable: !0
|
|
606
|
-
}) :
|
|
606
|
+
}) : a[t] = i, a;
|
|
607
607
|
}
|
|
608
|
-
function Mt(
|
|
609
|
-
var i = Object.keys(
|
|
608
|
+
function Mt(a, t) {
|
|
609
|
+
var i = Object.keys(a);
|
|
610
610
|
if (Object.getOwnPropertySymbols) {
|
|
611
|
-
var
|
|
612
|
-
t && (
|
|
613
|
-
return Object.getOwnPropertyDescriptor(
|
|
614
|
-
})), i.push.apply(i,
|
|
611
|
+
var n = Object.getOwnPropertySymbols(a);
|
|
612
|
+
t && (n = n.filter(function(c) {
|
|
613
|
+
return Object.getOwnPropertyDescriptor(a, c).enumerable;
|
|
614
|
+
})), i.push.apply(i, n);
|
|
615
615
|
}
|
|
616
616
|
return i;
|
|
617
617
|
}
|
|
618
|
-
function jt(
|
|
618
|
+
function jt(a) {
|
|
619
619
|
for (var t = 1; t < arguments.length; t++) {
|
|
620
620
|
var i = arguments[t] != null ? arguments[t] : {};
|
|
621
|
-
t % 2 ? Mt(Object(i), !0).forEach(function(
|
|
622
|
-
Ai(
|
|
623
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
624
|
-
Object.defineProperty(
|
|
621
|
+
t % 2 ? Mt(Object(i), !0).forEach(function(n) {
|
|
622
|
+
Ai(a, n, i[n]);
|
|
623
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(i)) : Mt(Object(i)).forEach(function(n) {
|
|
624
|
+
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(i, n));
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
|
-
return
|
|
627
|
+
return a;
|
|
628
628
|
}
|
|
629
|
-
function Fi(
|
|
630
|
-
if (typeof
|
|
631
|
-
var i =
|
|
629
|
+
function Fi(a, t) {
|
|
630
|
+
if (typeof a != "object" || !a) return a;
|
|
631
|
+
var i = a[Symbol.toPrimitive];
|
|
632
632
|
if (i !== void 0) {
|
|
633
|
-
var
|
|
634
|
-
if (typeof
|
|
633
|
+
var n = i.call(a, t || "default");
|
|
634
|
+
if (typeof n != "object") return n;
|
|
635
635
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
636
636
|
}
|
|
637
|
-
return (t === "string" ? String : Number)(
|
|
637
|
+
return (t === "string" ? String : Number)(a);
|
|
638
638
|
}
|
|
639
|
-
function Di(
|
|
640
|
-
var t = Fi(
|
|
639
|
+
function Di(a) {
|
|
640
|
+
var t = Fi(a, "string");
|
|
641
641
|
return typeof t == "symbol" ? t : t + "";
|
|
642
642
|
}
|
|
643
643
|
var Zt = {
|
|
644
644
|
activateTrap: function(t, i) {
|
|
645
645
|
if (t.length > 0) {
|
|
646
|
-
var
|
|
647
|
-
|
|
646
|
+
var n = t[t.length - 1];
|
|
647
|
+
n !== i && n.pause();
|
|
648
648
|
}
|
|
649
649
|
var c = t.indexOf(i);
|
|
650
650
|
c === -1 || t.splice(c, 1), t.push(i);
|
|
651
651
|
},
|
|
652
652
|
deactivateTrap: function(t, i) {
|
|
653
|
-
var
|
|
654
|
-
|
|
653
|
+
var n = t.indexOf(i);
|
|
654
|
+
n !== -1 && t.splice(n, 1), t.length > 0 && t[t.length - 1].unpause();
|
|
655
655
|
}
|
|
656
656
|
}, xi = function(t) {
|
|
657
657
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
@@ -666,18 +666,18 @@ var Zt = {
|
|
|
666
666
|
}, Kt = function(t) {
|
|
667
667
|
return setTimeout(t, 0);
|
|
668
668
|
}, Ht = function(t, i) {
|
|
669
|
-
var
|
|
669
|
+
var n = -1;
|
|
670
670
|
return t.every(function(c, u) {
|
|
671
|
-
return i(c) ? (
|
|
672
|
-
}),
|
|
671
|
+
return i(c) ? (n = u, !1) : !0;
|
|
672
|
+
}), n;
|
|
673
673
|
}, $e = function(t) {
|
|
674
|
-
for (var i = arguments.length,
|
|
675
|
-
|
|
676
|
-
return typeof t == "function" ? t.apply(void 0,
|
|
674
|
+
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), c = 1; c < i; c++)
|
|
675
|
+
n[c - 1] = arguments[c];
|
|
676
|
+
return typeof t == "function" ? t.apply(void 0, n) : t;
|
|
677
677
|
}, Me = function(t) {
|
|
678
678
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
679
679
|
}, Pi = [], Mi = function(t, i) {
|
|
680
|
-
var
|
|
680
|
+
var n = (i == null ? void 0 : i.document) || document, c = (i == null ? void 0 : i.trapStack) || Pi, u = jt({
|
|
681
681
|
returnFocusOnDeactivate: !0,
|
|
682
682
|
escapeDeactivates: !0,
|
|
683
683
|
delayInitialFocus: !0,
|
|
@@ -721,23 +721,23 @@ var Zt = {
|
|
|
721
721
|
recentNavEvent: void 0
|
|
722
722
|
}, v, m = function(d, s, f) {
|
|
723
723
|
return d && d[s] !== void 0 ? d[s] : u[f || s];
|
|
724
|
-
},
|
|
724
|
+
}, O = function(d, s) {
|
|
725
725
|
var f = typeof (s == null ? void 0 : s.composedPath) == "function" ? s.composedPath() : void 0;
|
|
726
726
|
return o.containerGroups.findIndex(function(b) {
|
|
727
|
-
var
|
|
728
|
-
return
|
|
727
|
+
var T = b.container, E = b.tabbableNodes;
|
|
728
|
+
return T.contains(d) || // fall back to explicit tabbable search which will take into consideration any
|
|
729
729
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
730
730
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
731
731
|
// look inside web components even if open)
|
|
732
|
-
(f == null ? void 0 : f.includes(
|
|
733
|
-
return
|
|
732
|
+
(f == null ? void 0 : f.includes(T)) || E.find(function(F) {
|
|
733
|
+
return F === d;
|
|
734
734
|
});
|
|
735
735
|
});
|
|
736
|
-
},
|
|
736
|
+
}, A = function(d) {
|
|
737
737
|
var s = u[d];
|
|
738
738
|
if (typeof s == "function") {
|
|
739
|
-
for (var f = arguments.length, b = new Array(f > 1 ? f - 1 : 0),
|
|
740
|
-
b[
|
|
739
|
+
for (var f = arguments.length, b = new Array(f > 1 ? f - 1 : 0), T = 1; T < f; T++)
|
|
740
|
+
b[T - 1] = arguments[T];
|
|
741
741
|
s = s.apply(void 0, b);
|
|
742
742
|
}
|
|
743
743
|
if (s === !0 && (s = void 0), !s) {
|
|
@@ -745,32 +745,32 @@ var Zt = {
|
|
|
745
745
|
return s;
|
|
746
746
|
throw new Error("`".concat(d, "` was specified but was not a node, or did not return a node"));
|
|
747
747
|
}
|
|
748
|
-
var
|
|
749
|
-
if (typeof s == "string" && (
|
|
748
|
+
var E = s;
|
|
749
|
+
if (typeof s == "string" && (E = n.querySelector(s), !E))
|
|
750
750
|
throw new Error("`".concat(d, "` as selector refers to no known node"));
|
|
751
|
-
return
|
|
752
|
-
},
|
|
753
|
-
var d =
|
|
751
|
+
return E;
|
|
752
|
+
}, N = function() {
|
|
753
|
+
var d = A("initialFocus");
|
|
754
754
|
if (d === !1)
|
|
755
755
|
return !1;
|
|
756
756
|
if (d === void 0 || !ut(d, u.tabbableOptions))
|
|
757
|
-
if (
|
|
758
|
-
d =
|
|
757
|
+
if (O(n.activeElement) >= 0)
|
|
758
|
+
d = n.activeElement;
|
|
759
759
|
else {
|
|
760
760
|
var s = o.tabbableGroups[0], f = s && s.firstTabbableNode;
|
|
761
|
-
d = f ||
|
|
761
|
+
d = f || A("fallbackFocus");
|
|
762
762
|
}
|
|
763
763
|
if (!d)
|
|
764
764
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
765
765
|
return d;
|
|
766
|
-
},
|
|
766
|
+
}, x = function() {
|
|
767
767
|
if (o.containerGroups = o.containers.map(function(d) {
|
|
768
|
-
var s = Ci(d, u.tabbableOptions), f = Ei(d, u.tabbableOptions), b = s.length > 0 ? s[0] : void 0,
|
|
769
|
-
return ke(
|
|
770
|
-
}),
|
|
771
|
-
return ke(
|
|
772
|
-
}), g = !!s.find(function(
|
|
773
|
-
return be(
|
|
768
|
+
var s = Ci(d, u.tabbableOptions), f = Ei(d, u.tabbableOptions), b = s.length > 0 ? s[0] : void 0, T = s.length > 0 ? s[s.length - 1] : void 0, E = f.find(function(L) {
|
|
769
|
+
return ke(L);
|
|
770
|
+
}), F = f.slice().reverse().find(function(L) {
|
|
771
|
+
return ke(L);
|
|
772
|
+
}), g = !!s.find(function(L) {
|
|
773
|
+
return be(L) > 0;
|
|
774
774
|
});
|
|
775
775
|
return {
|
|
776
776
|
container: d,
|
|
@@ -781,7 +781,7 @@ var Zt = {
|
|
|
781
781
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
782
782
|
firstTabbableNode: b,
|
|
783
783
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
784
|
-
lastTabbableNode:
|
|
784
|
+
lastTabbableNode: T,
|
|
785
785
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
786
786
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
787
787
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -790,9 +790,9 @@ var Zt = {
|
|
|
790
790
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
791
791
|
// be avoided anyway...
|
|
792
792
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
793
|
-
firstDomTabbableNode:
|
|
793
|
+
firstDomTabbableNode: E,
|
|
794
794
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
795
|
-
lastDomTabbableNode:
|
|
795
|
+
lastDomTabbableNode: F,
|
|
796
796
|
/**
|
|
797
797
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
798
798
|
* in this container, if any.
|
|
@@ -802,72 +802,72 @@ var Zt = {
|
|
|
802
802
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
803
803
|
*/
|
|
804
804
|
nextTabbableNode: function(re) {
|
|
805
|
-
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0,
|
|
806
|
-
return
|
|
805
|
+
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ae = s.indexOf(re);
|
|
806
|
+
return ae < 0 ? U ? f.slice(f.indexOf(re) + 1).find(function(le) {
|
|
807
807
|
return ke(le);
|
|
808
808
|
}) : f.slice(0, f.indexOf(re)).reverse().find(function(le) {
|
|
809
809
|
return ke(le);
|
|
810
|
-
}) : s[
|
|
810
|
+
}) : s[ae + (U ? 1 : -1)];
|
|
811
811
|
}
|
|
812
812
|
};
|
|
813
813
|
}), o.tabbableGroups = o.containerGroups.filter(function(d) {
|
|
814
814
|
return d.tabbableNodes.length > 0;
|
|
815
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
815
|
+
}), o.tabbableGroups.length <= 0 && !A("fallbackFocus"))
|
|
816
816
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
817
817
|
if (o.containerGroups.find(function(d) {
|
|
818
818
|
return d.posTabIndexesFound;
|
|
819
819
|
}) && o.containerGroups.length > 1)
|
|
820
820
|
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.");
|
|
821
|
-
},
|
|
821
|
+
}, R = function(d) {
|
|
822
822
|
var s = d.activeElement;
|
|
823
823
|
if (s)
|
|
824
|
-
return s.shadowRoot && s.shadowRoot.activeElement !== null ?
|
|
825
|
-
},
|
|
826
|
-
if (d !== !1 && d !==
|
|
824
|
+
return s.shadowRoot && s.shadowRoot.activeElement !== null ? R(s.shadowRoot) : s;
|
|
825
|
+
}, w = function(d) {
|
|
826
|
+
if (d !== !1 && d !== R(document)) {
|
|
827
827
|
if (!d || !d.focus) {
|
|
828
|
-
|
|
828
|
+
w(N());
|
|
829
829
|
return;
|
|
830
830
|
}
|
|
831
831
|
d.focus({
|
|
832
832
|
preventScroll: !!u.preventScroll
|
|
833
833
|
}), o.mostRecentlyFocusedNode = d, xi(d) && d.select();
|
|
834
834
|
}
|
|
835
|
-
},
|
|
836
|
-
var s =
|
|
835
|
+
}, P = function(d) {
|
|
836
|
+
var s = A("setReturnFocus", d);
|
|
837
837
|
return s || (s === !1 ? !1 : d);
|
|
838
838
|
}, Y = function(d) {
|
|
839
|
-
var s = d.target, f = d.event, b = d.isBackward,
|
|
840
|
-
s = s || Me(f),
|
|
841
|
-
var
|
|
839
|
+
var s = d.target, f = d.event, b = d.isBackward, T = b === void 0 ? !1 : b;
|
|
840
|
+
s = s || Me(f), x();
|
|
841
|
+
var E = null;
|
|
842
842
|
if (o.tabbableGroups.length > 0) {
|
|
843
|
-
var
|
|
844
|
-
if (
|
|
845
|
-
|
|
846
|
-
else if (
|
|
847
|
-
var
|
|
843
|
+
var F = O(s, f), g = F >= 0 ? o.containerGroups[F] : void 0;
|
|
844
|
+
if (F < 0)
|
|
845
|
+
T ? E = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : E = o.tabbableGroups[0].firstTabbableNode;
|
|
846
|
+
else if (T) {
|
|
847
|
+
var L = Ht(o.tabbableGroups, function(Se) {
|
|
848
848
|
var _e = Se.firstTabbableNode;
|
|
849
849
|
return s === _e;
|
|
850
850
|
});
|
|
851
|
-
if (
|
|
852
|
-
var re =
|
|
853
|
-
|
|
854
|
-
} else Ee(f) || (
|
|
851
|
+
if (L < 0 && (g.container === s || ut(s, u.tabbableOptions) && !ke(s, u.tabbableOptions) && !g.nextTabbableNode(s, !1)) && (L = F), L >= 0) {
|
|
852
|
+
var re = L === 0 ? o.tabbableGroups.length - 1 : L - 1, U = o.tabbableGroups[re];
|
|
853
|
+
E = be(s) >= 0 ? U.lastTabbableNode : U.lastDomTabbableNode;
|
|
854
|
+
} else Ee(f) || (E = g.nextTabbableNode(s, !1));
|
|
855
855
|
} else {
|
|
856
|
-
var
|
|
856
|
+
var ae = Ht(o.tabbableGroups, function(Se) {
|
|
857
857
|
var _e = Se.lastTabbableNode;
|
|
858
858
|
return s === _e;
|
|
859
859
|
});
|
|
860
|
-
if (
|
|
861
|
-
var le =
|
|
862
|
-
|
|
863
|
-
} else Ee(f) || (
|
|
860
|
+
if (ae < 0 && (g.container === s || ut(s, u.tabbableOptions) && !ke(s, u.tabbableOptions) && !g.nextTabbableNode(s)) && (ae = F), ae >= 0) {
|
|
861
|
+
var le = ae === o.tabbableGroups.length - 1 ? 0 : ae + 1, Fe = o.tabbableGroups[le];
|
|
862
|
+
E = be(s) >= 0 ? Fe.firstTabbableNode : Fe.firstDomTabbableNode;
|
|
863
|
+
} else Ee(f) || (E = g.nextTabbableNode(s));
|
|
864
864
|
}
|
|
865
865
|
} else
|
|
866
|
-
|
|
867
|
-
return
|
|
868
|
-
},
|
|
866
|
+
E = A("fallbackFocus");
|
|
867
|
+
return E;
|
|
868
|
+
}, B = function(d) {
|
|
869
869
|
var s = Me(d);
|
|
870
|
-
if (!(
|
|
870
|
+
if (!(O(s, d) >= 0)) {
|
|
871
871
|
if ($e(u.clickOutsideDeactivates, d)) {
|
|
872
872
|
v.deactivate({
|
|
873
873
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -882,36 +882,36 @@ var Zt = {
|
|
|
882
882
|
}
|
|
883
883
|
$e(u.allowOutsideClick, d) || d.preventDefault();
|
|
884
884
|
}
|
|
885
|
-
},
|
|
886
|
-
var s = Me(d), f =
|
|
885
|
+
}, ne = function(d) {
|
|
886
|
+
var s = Me(d), f = O(s, d) >= 0;
|
|
887
887
|
if (f || s instanceof Document)
|
|
888
888
|
f && (o.mostRecentlyFocusedNode = s);
|
|
889
889
|
else {
|
|
890
890
|
d.stopImmediatePropagation();
|
|
891
|
-
var b,
|
|
891
|
+
var b, T = !0;
|
|
892
892
|
if (o.mostRecentlyFocusedNode)
|
|
893
893
|
if (be(o.mostRecentlyFocusedNode) > 0) {
|
|
894
|
-
var
|
|
895
|
-
if (
|
|
896
|
-
var g =
|
|
897
|
-
return
|
|
894
|
+
var E = O(o.mostRecentlyFocusedNode), F = o.containerGroups[E].tabbableNodes;
|
|
895
|
+
if (F.length > 0) {
|
|
896
|
+
var g = F.findIndex(function(L) {
|
|
897
|
+
return L === o.mostRecentlyFocusedNode;
|
|
898
898
|
});
|
|
899
|
-
g >= 0 && (u.isKeyForward(o.recentNavEvent) ? g + 1 <
|
|
899
|
+
g >= 0 && (u.isKeyForward(o.recentNavEvent) ? g + 1 < F.length && (b = F[g + 1], T = !1) : g - 1 >= 0 && (b = F[g - 1], T = !1));
|
|
900
900
|
}
|
|
901
901
|
} else
|
|
902
|
-
o.containerGroups.some(function(
|
|
903
|
-
return
|
|
902
|
+
o.containerGroups.some(function(L) {
|
|
903
|
+
return L.tabbableNodes.some(function(re) {
|
|
904
904
|
return be(re) > 0;
|
|
905
905
|
});
|
|
906
|
-
}) || (
|
|
906
|
+
}) || (T = !1);
|
|
907
907
|
else
|
|
908
|
-
|
|
909
|
-
|
|
908
|
+
T = !1;
|
|
909
|
+
T && (b = Y({
|
|
910
910
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
911
911
|
// outside the trap causing the focus escape we're trying to fix)
|
|
912
912
|
target: o.mostRecentlyFocusedNode,
|
|
913
913
|
isBackward: u.isKeyBackward(o.recentNavEvent)
|
|
914
|
-
})),
|
|
914
|
+
})), w(b || o.mostRecentlyFocusedNode || N());
|
|
915
915
|
}
|
|
916
916
|
o.recentNavEvent = void 0;
|
|
917
917
|
}, ce = function(d) {
|
|
@@ -921,45 +921,45 @@ var Zt = {
|
|
|
921
921
|
event: d,
|
|
922
922
|
isBackward: s
|
|
923
923
|
});
|
|
924
|
-
f && (Ee(d) && d.preventDefault(),
|
|
925
|
-
},
|
|
924
|
+
f && (Ee(d) && d.preventDefault(), w(f));
|
|
925
|
+
}, ee = function(d) {
|
|
926
926
|
(u.isKeyForward(d) || u.isKeyBackward(d)) && ce(d, u.isKeyBackward(d));
|
|
927
|
-
},
|
|
927
|
+
}, te = function(d) {
|
|
928
928
|
Ri(d) && $e(u.escapeDeactivates, d) !== !1 && (d.preventDefault(), v.deactivate());
|
|
929
929
|
}, Z = function(d) {
|
|
930
930
|
var s = Me(d);
|
|
931
|
-
|
|
932
|
-
},
|
|
931
|
+
O(s, d) >= 0 || $e(u.clickOutsideDeactivates, d) || $e(u.allowOutsideClick, d) || (d.preventDefault(), d.stopImmediatePropagation());
|
|
932
|
+
}, X = function() {
|
|
933
933
|
if (o.active)
|
|
934
934
|
return Zt.activateTrap(c, v), o.delayInitialFocusTimer = u.delayInitialFocus ? Kt(function() {
|
|
935
|
-
|
|
936
|
-
}) :
|
|
935
|
+
w(N());
|
|
936
|
+
}) : w(N()), n.addEventListener("focusin", ne, !0), n.addEventListener("mousedown", B, {
|
|
937
937
|
capture: !0,
|
|
938
938
|
passive: !1
|
|
939
|
-
}),
|
|
939
|
+
}), n.addEventListener("touchstart", B, {
|
|
940
940
|
capture: !0,
|
|
941
941
|
passive: !1
|
|
942
|
-
}),
|
|
942
|
+
}), n.addEventListener("click", Z, {
|
|
943
943
|
capture: !0,
|
|
944
944
|
passive: !1
|
|
945
|
-
}),
|
|
945
|
+
}), n.addEventListener("keydown", ee, {
|
|
946
946
|
capture: !0,
|
|
947
947
|
passive: !1
|
|
948
|
-
}),
|
|
949
|
-
},
|
|
948
|
+
}), n.addEventListener("keydown", te), v;
|
|
949
|
+
}, $ = function() {
|
|
950
950
|
if (o.active)
|
|
951
|
-
return
|
|
951
|
+
return n.removeEventListener("focusin", ne, !0), n.removeEventListener("mousedown", B, !0), n.removeEventListener("touchstart", B, !0), n.removeEventListener("click", Z, !0), n.removeEventListener("keydown", ee, !0), n.removeEventListener("keydown", te), v;
|
|
952
952
|
}, M = function(d) {
|
|
953
953
|
var s = d.some(function(f) {
|
|
954
954
|
var b = Array.from(f.removedNodes);
|
|
955
|
-
return b.some(function(
|
|
956
|
-
return
|
|
955
|
+
return b.some(function(T) {
|
|
956
|
+
return T === o.mostRecentlyFocusedNode;
|
|
957
957
|
});
|
|
958
958
|
});
|
|
959
|
-
s &&
|
|
960
|
-
},
|
|
961
|
-
|
|
962
|
-
|
|
959
|
+
s && w(N());
|
|
960
|
+
}, W = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(M) : void 0, H = function() {
|
|
961
|
+
W && (W.disconnect(), o.active && !o.paused && o.containers.map(function(d) {
|
|
962
|
+
W.observe(d, {
|
|
963
963
|
subtree: !0,
|
|
964
964
|
childList: !0
|
|
965
965
|
});
|
|
@@ -976,11 +976,11 @@ var Zt = {
|
|
|
976
976
|
if (o.active)
|
|
977
977
|
return this;
|
|
978
978
|
var s = m(d, "onActivate"), f = m(d, "onPostActivate"), b = m(d, "checkCanFocusTrap");
|
|
979
|
-
b ||
|
|
980
|
-
var
|
|
981
|
-
b &&
|
|
979
|
+
b || x(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = n.activeElement, s == null || s();
|
|
980
|
+
var T = function() {
|
|
981
|
+
b && x(), X(), H(), f == null || f();
|
|
982
982
|
};
|
|
983
|
-
return b ? (b(o.containers.concat()).then(
|
|
983
|
+
return b ? (b(o.containers.concat()).then(T, T), this) : (T(), this);
|
|
984
984
|
},
|
|
985
985
|
deactivate: function(d) {
|
|
986
986
|
if (!o.active)
|
|
@@ -990,33 +990,33 @@ var Zt = {
|
|
|
990
990
|
onPostDeactivate: u.onPostDeactivate,
|
|
991
991
|
checkCanReturnFocus: u.checkCanReturnFocus
|
|
992
992
|
}, d);
|
|
993
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
994
|
-
var f = m(s, "onDeactivate"), b = m(s, "onPostDeactivate"),
|
|
993
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, $(), o.active = !1, o.paused = !1, H(), Zt.deactivateTrap(c, v);
|
|
994
|
+
var f = m(s, "onDeactivate"), b = m(s, "onPostDeactivate"), T = m(s, "checkCanReturnFocus"), E = m(s, "returnFocus", "returnFocusOnDeactivate");
|
|
995
995
|
f == null || f();
|
|
996
|
-
var
|
|
996
|
+
var F = function() {
|
|
997
997
|
Kt(function() {
|
|
998
|
-
|
|
998
|
+
E && w(P(o.nodeFocusedBeforeActivation)), b == null || b();
|
|
999
999
|
});
|
|
1000
1000
|
};
|
|
1001
|
-
return
|
|
1001
|
+
return E && T ? (T(P(o.nodeFocusedBeforeActivation)).then(F, F), this) : (F(), this);
|
|
1002
1002
|
},
|
|
1003
1003
|
pause: function(d) {
|
|
1004
1004
|
if (o.paused || !o.active)
|
|
1005
1005
|
return this;
|
|
1006
1006
|
var s = m(d, "onPause"), f = m(d, "onPostPause");
|
|
1007
|
-
return o.paused = !0, s == null || s(),
|
|
1007
|
+
return o.paused = !0, s == null || s(), $(), H(), f == null || f(), this;
|
|
1008
1008
|
},
|
|
1009
1009
|
unpause: function(d) {
|
|
1010
1010
|
if (!o.paused || !o.active)
|
|
1011
1011
|
return this;
|
|
1012
1012
|
var s = m(d, "onUnpause"), f = m(d, "onPostUnpause");
|
|
1013
|
-
return o.paused = !1, s == null || s(),
|
|
1013
|
+
return o.paused = !1, s == null || s(), x(), X(), H(), f == null || f(), this;
|
|
1014
1014
|
},
|
|
1015
1015
|
updateContainerElements: function(d) {
|
|
1016
1016
|
var s = [].concat(d).filter(Boolean);
|
|
1017
1017
|
return o.containers = s.map(function(f) {
|
|
1018
|
-
return typeof f == "string" ?
|
|
1019
|
-
}), o.active &&
|
|
1018
|
+
return typeof f == "string" ? n.querySelector(f) : f;
|
|
1019
|
+
}), o.active && x(), H(), this;
|
|
1020
1020
|
}
|
|
1021
1021
|
}, v.updateContainerElements(t), v;
|
|
1022
1022
|
};
|
|
@@ -1051,7 +1051,7 @@ const ji = {
|
|
|
1051
1051
|
preventScroll: Boolean,
|
|
1052
1052
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1053
1053
|
tabbableOptions: Object
|
|
1054
|
-
}, Zi =
|
|
1054
|
+
}, Zi = J({
|
|
1055
1055
|
props: Object.assign({
|
|
1056
1056
|
active: {
|
|
1057
1057
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
@@ -1069,18 +1069,18 @@ const ji = {
|
|
|
1069
1069
|
render() {
|
|
1070
1070
|
return this.renderImpl();
|
|
1071
1071
|
},
|
|
1072
|
-
setup(
|
|
1073
|
-
let
|
|
1074
|
-
const c =
|
|
1072
|
+
setup(a, { slots: t, emit: i }) {
|
|
1073
|
+
let n;
|
|
1074
|
+
const c = G(null), u = k(() => {
|
|
1075
1075
|
const v = c.value;
|
|
1076
1076
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1077
1077
|
});
|
|
1078
1078
|
function o() {
|
|
1079
|
-
return
|
|
1080
|
-
escapeDeactivates:
|
|
1081
|
-
allowOutsideClick:
|
|
1082
|
-
returnFocusOnDeactivate:
|
|
1083
|
-
clickOutsideDeactivates:
|
|
1079
|
+
return n || (n = Mi(u.value, {
|
|
1080
|
+
escapeDeactivates: a.escapeDeactivates,
|
|
1081
|
+
allowOutsideClick: a.allowOutsideClick,
|
|
1082
|
+
returnFocusOnDeactivate: a.returnFocusOnDeactivate,
|
|
1083
|
+
clickOutsideDeactivates: a.clickOutsideDeactivates,
|
|
1084
1084
|
onActivate: () => {
|
|
1085
1085
|
i("update:active", !0), i("activate");
|
|
1086
1086
|
},
|
|
@@ -1089,30 +1089,30 @@ const ji = {
|
|
|
1089
1089
|
},
|
|
1090
1090
|
onPostActivate: () => i("postActivate"),
|
|
1091
1091
|
onPostDeactivate: () => i("postDeactivate"),
|
|
1092
|
-
initialFocus:
|
|
1093
|
-
fallbackFocus:
|
|
1094
|
-
tabbableOptions:
|
|
1095
|
-
delayInitialFocus:
|
|
1096
|
-
preventScroll:
|
|
1092
|
+
initialFocus: a.initialFocus,
|
|
1093
|
+
fallbackFocus: a.fallbackFocus,
|
|
1094
|
+
tabbableOptions: a.tabbableOptions,
|
|
1095
|
+
delayInitialFocus: a.delayInitialFocus,
|
|
1096
|
+
preventScroll: a.preventScroll
|
|
1097
1097
|
}));
|
|
1098
1098
|
}
|
|
1099
1099
|
return Ye(() => {
|
|
1100
|
-
Ae(() =>
|
|
1101
|
-
v && u.value ? o().activate() :
|
|
1100
|
+
Ae(() => a.active, (v) => {
|
|
1101
|
+
v && u.value ? o().activate() : n && (n.deactivate(), (!u.value || u.value.nodeType === Node.COMMENT_NODE) && (n = null));
|
|
1102
1102
|
}, { immediate: !0, flush: "post" });
|
|
1103
1103
|
}), mn(() => {
|
|
1104
|
-
|
|
1104
|
+
n && n.deactivate(), n = null;
|
|
1105
1105
|
}), {
|
|
1106
1106
|
activate() {
|
|
1107
1107
|
o().activate();
|
|
1108
1108
|
},
|
|
1109
1109
|
deactivate() {
|
|
1110
|
-
|
|
1110
|
+
n && n.deactivate();
|
|
1111
1111
|
},
|
|
1112
1112
|
renderImpl() {
|
|
1113
1113
|
if (!t.default)
|
|
1114
1114
|
return null;
|
|
1115
|
-
const v = t.default().filter((
|
|
1115
|
+
const v = t.default().filter((O) => O.type !== gn);
|
|
1116
1116
|
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : yn(v[0], { ref: c });
|
|
1117
1117
|
}
|
|
1118
1118
|
};
|
|
@@ -1121,9 +1121,9 @@ const ji = {
|
|
|
1121
1121
|
function Jt() {
|
|
1122
1122
|
return {
|
|
1123
1123
|
debounce: (t, i) => {
|
|
1124
|
-
let
|
|
1124
|
+
let n;
|
|
1125
1125
|
return (...c) => {
|
|
1126
|
-
clearTimeout(
|
|
1126
|
+
clearTimeout(n), n = window == null ? void 0 : window.setTimeout(() => {
|
|
1127
1127
|
t(...c);
|
|
1128
1128
|
}, i);
|
|
1129
1129
|
};
|
|
@@ -1131,15 +1131,15 @@ function Jt() {
|
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
1133
|
var je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1134
|
-
function Ki(
|
|
1135
|
-
return
|
|
1134
|
+
function Ki(a) {
|
|
1135
|
+
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1136
1136
|
}
|
|
1137
1137
|
var qe = { exports: {} };
|
|
1138
1138
|
qe.exports;
|
|
1139
|
-
(function(
|
|
1140
|
-
var i = 200,
|
|
1141
|
-
g[u] = g[o] = g[
|
|
1142
|
-
var
|
|
1139
|
+
(function(a, t) {
|
|
1140
|
+
var i = 200, n = "__lodash_hash_undefined__", c = 9007199254740991, u = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", m = "[object Date]", O = "[object Error]", A = "[object Function]", N = "[object GeneratorFunction]", x = "[object Map]", R = "[object Number]", w = "[object Object]", P = "[object Promise]", Y = "[object RegExp]", B = "[object Set]", ne = "[object String]", ce = "[object Symbol]", ee = "[object WeakMap]", te = "[object ArrayBuffer]", Z = "[object DataView]", X = "[object Float32Array]", $ = "[object Float64Array]", M = "[object Int8Array]", W = "[object Int16Array]", H = "[object Int32Array]", C = "[object Uint8Array]", d = "[object Uint8ClampedArray]", s = "[object Uint16Array]", f = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, T = /\w*$/, E = /^\[object .+?Constructor\]$/, F = /^(?:0|[1-9]\d*)$/, g = {};
|
|
1141
|
+
g[u] = g[o] = g[te] = g[Z] = g[v] = g[m] = g[X] = g[$] = g[M] = g[W] = g[H] = g[x] = g[R] = g[w] = g[Y] = g[B] = g[ne] = g[ce] = g[C] = g[d] = g[s] = g[f] = !0, g[O] = g[A] = g[ee] = !1;
|
|
1142
|
+
var L = typeof je == "object" && je && je.Object === Object && je, re = typeof self == "object" && self && self.Object === Object && self, U = L || re || Function("return this")(), ae = t && !t.nodeType && t, le = ae && !0 && a && !a.nodeType && a, Fe = le && le.exports === ae;
|
|
1143
1143
|
function Se(e, r) {
|
|
1144
1144
|
return e.set(r[0], r[1]), e;
|
|
1145
1145
|
}
|
|
@@ -1157,7 +1157,7 @@ qe.exports;
|
|
|
1157
1157
|
return e;
|
|
1158
1158
|
}
|
|
1159
1159
|
function vt(e, r, l, p) {
|
|
1160
|
-
for (var j = -1,
|
|
1160
|
+
for (var j = -1, z = e ? e.length : 0; ++j < z; )
|
|
1161
1161
|
l = r(l, e[j], j, e);
|
|
1162
1162
|
return l;
|
|
1163
1163
|
}
|
|
@@ -1218,7 +1218,7 @@ qe.exports;
|
|
|
1218
1218
|
var r = this.__data__;
|
|
1219
1219
|
if (Oe) {
|
|
1220
1220
|
var l = r[e];
|
|
1221
|
-
return l ===
|
|
1221
|
+
return l === n ? void 0 : l;
|
|
1222
1222
|
}
|
|
1223
1223
|
return ue.call(r, e) ? r[e] : void 0;
|
|
1224
1224
|
}
|
|
@@ -1228,7 +1228,7 @@ qe.exports;
|
|
|
1228
1228
|
}
|
|
1229
1229
|
function ka(e, r) {
|
|
1230
1230
|
var l = this.__data__;
|
|
1231
|
-
return l[e] = Oe && r === void 0 ?
|
|
1231
|
+
return l[e] = Oe && r === void 0 ? n : r, this;
|
|
1232
1232
|
}
|
|
1233
1233
|
de.prototype.clear = ma, de.prototype.delete = ga, de.prototype.get = ya, de.prototype.has = wa, de.prototype.set = ka;
|
|
1234
1234
|
function oe(e) {
|
|
@@ -1315,8 +1315,8 @@ qe.exports;
|
|
|
1315
1315
|
ge.prototype.clear = Fa, ge.prototype.delete = Da, ge.prototype.get = xa, ge.prototype.has = Ra, ge.prototype.set = Ba;
|
|
1316
1316
|
function La(e, r) {
|
|
1317
1317
|
var l = ot(e) || cn(e) ? ta(e.length, String) : [], p = l.length, j = !!p;
|
|
1318
|
-
for (var
|
|
1319
|
-
ue.call(e,
|
|
1318
|
+
for (var z in e)
|
|
1319
|
+
ue.call(e, z) && !(j && (z == "length" || nn(z, p))) && l.push(z);
|
|
1320
1320
|
return l;
|
|
1321
1321
|
}
|
|
1322
1322
|
function It(e, r, l) {
|
|
@@ -1332,40 +1332,40 @@ qe.exports;
|
|
|
1332
1332
|
function Pa(e, r) {
|
|
1333
1333
|
return e && Ot(r, st(r), e);
|
|
1334
1334
|
}
|
|
1335
|
-
function it(e, r, l, p, j,
|
|
1336
|
-
var
|
|
1337
|
-
if (p && (
|
|
1338
|
-
return
|
|
1335
|
+
function it(e, r, l, p, j, z, se) {
|
|
1336
|
+
var V;
|
|
1337
|
+
if (p && (V = z ? p(e, j, z, se) : p(e)), V !== void 0)
|
|
1338
|
+
return V;
|
|
1339
1339
|
if (!Le(e))
|
|
1340
1340
|
return e;
|
|
1341
1341
|
var Ft = ot(e);
|
|
1342
1342
|
if (Ft) {
|
|
1343
|
-
if (
|
|
1344
|
-
return Ya(e,
|
|
1343
|
+
if (V = en(e), !r)
|
|
1344
|
+
return Ya(e, V);
|
|
1345
1345
|
} else {
|
|
1346
|
-
var we = fe(e), Dt = we ==
|
|
1346
|
+
var we = fe(e), Dt = we == A || we == N;
|
|
1347
1347
|
if (un(e))
|
|
1348
1348
|
return Ua(e, r);
|
|
1349
|
-
if (we ==
|
|
1349
|
+
if (we == w || we == u || Dt && !z) {
|
|
1350
1350
|
if (bt(e))
|
|
1351
|
-
return
|
|
1352
|
-
if (
|
|
1353
|
-
return Ja(e, Pa(
|
|
1351
|
+
return z ? e : {};
|
|
1352
|
+
if (V = tn(Dt ? {} : e), !r)
|
|
1353
|
+
return Ja(e, Pa(V, e));
|
|
1354
1354
|
} else {
|
|
1355
1355
|
if (!g[we])
|
|
1356
|
-
return
|
|
1357
|
-
|
|
1356
|
+
return z ? e : {};
|
|
1357
|
+
V = an(e, we, it, r);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
se || (se = new ge());
|
|
1361
1361
|
var xt = se.get(e);
|
|
1362
1362
|
if (xt)
|
|
1363
1363
|
return xt;
|
|
1364
|
-
if (se.set(e,
|
|
1364
|
+
if (se.set(e, V), !Ft)
|
|
1365
1365
|
var Rt = l ? Qa(e) : st(e);
|
|
1366
1366
|
return Qt(Rt || e, function(ct, Pe) {
|
|
1367
|
-
Rt && (Pe = ct, ct = e[Pe]), It(
|
|
1368
|
-
}),
|
|
1367
|
+
Rt && (Pe = ct, ct = e[Pe]), It(V, Pe, it(ct, r, l, p, Pe, e, se));
|
|
1368
|
+
}), V;
|
|
1369
1369
|
}
|
|
1370
1370
|
function Ma(e) {
|
|
1371
1371
|
return Le(e) ? sa(e) : {};
|
|
@@ -1380,7 +1380,7 @@ qe.exports;
|
|
|
1380
1380
|
function Ka(e) {
|
|
1381
1381
|
if (!Le(e) || on(e))
|
|
1382
1382
|
return !1;
|
|
1383
|
-
var r = At(e) || bt(e) ? ra :
|
|
1383
|
+
var r = At(e) || bt(e) ? ra : E;
|
|
1384
1384
|
return r.test(ve(e));
|
|
1385
1385
|
}
|
|
1386
1386
|
function Ha(e) {
|
|
@@ -1410,7 +1410,7 @@ qe.exports;
|
|
|
1410
1410
|
return vt(p, Se, new e.constructor());
|
|
1411
1411
|
}
|
|
1412
1412
|
function Va(e) {
|
|
1413
|
-
var r = new e.constructor(e.source,
|
|
1413
|
+
var r = new e.constructor(e.source, T.exec(e));
|
|
1414
1414
|
return r.lastIndex = e.lastIndex, r;
|
|
1415
1415
|
}
|
|
1416
1416
|
function Ga(e, r, l) {
|
|
@@ -1432,9 +1432,9 @@ qe.exports;
|
|
|
1432
1432
|
}
|
|
1433
1433
|
function Ot(e, r, l, p) {
|
|
1434
1434
|
l || (l = {});
|
|
1435
|
-
for (var j = -1,
|
|
1436
|
-
var se = r[j],
|
|
1437
|
-
It(l, se,
|
|
1435
|
+
for (var j = -1, z = r.length; ++j < z; ) {
|
|
1436
|
+
var se = r[j], V = void 0;
|
|
1437
|
+
It(l, se, V === void 0 ? e[se] : V);
|
|
1438
1438
|
}
|
|
1439
1439
|
return l;
|
|
1440
1440
|
}
|
|
@@ -1453,20 +1453,20 @@ qe.exports;
|
|
|
1453
1453
|
return Ka(l) ? l : void 0;
|
|
1454
1454
|
}
|
|
1455
1455
|
var $t = Tt ? Je(Tt, Object) : vn, fe = Za;
|
|
1456
|
-
(et && fe(new et(new ArrayBuffer(1))) != Z || Ie && fe(new Ie()) !=
|
|
1457
|
-
var r = xe.call(e), l = r ==
|
|
1456
|
+
(et && fe(new et(new ArrayBuffer(1))) != Z || Ie && fe(new Ie()) != x || tt && fe(tt.resolve()) != P || at && fe(new at()) != B || nt && fe(new nt()) != ee) && (fe = function(e) {
|
|
1457
|
+
var r = xe.call(e), l = r == w ? e.constructor : void 0, p = l ? ve(l) : void 0;
|
|
1458
1458
|
if (p)
|
|
1459
1459
|
switch (p) {
|
|
1460
1460
|
case fa:
|
|
1461
1461
|
return Z;
|
|
1462
1462
|
case va:
|
|
1463
|
-
return
|
|
1463
|
+
return x;
|
|
1464
1464
|
case ba:
|
|
1465
|
-
return A;
|
|
1466
|
-
case ha:
|
|
1467
1465
|
return P;
|
|
1466
|
+
case ha:
|
|
1467
|
+
return B;
|
|
1468
1468
|
case pa:
|
|
1469
|
-
return
|
|
1469
|
+
return ee;
|
|
1470
1470
|
}
|
|
1471
1471
|
return r;
|
|
1472
1472
|
});
|
|
@@ -1480,38 +1480,38 @@ qe.exports;
|
|
|
1480
1480
|
function an(e, r, l, p) {
|
|
1481
1481
|
var j = e.constructor;
|
|
1482
1482
|
switch (r) {
|
|
1483
|
-
case
|
|
1483
|
+
case te:
|
|
1484
1484
|
return rt(e);
|
|
1485
1485
|
case v:
|
|
1486
1486
|
case m:
|
|
1487
1487
|
return new j(+e);
|
|
1488
1488
|
case Z:
|
|
1489
1489
|
return Wa(e, p);
|
|
1490
|
-
case
|
|
1491
|
-
case
|
|
1490
|
+
case X:
|
|
1491
|
+
case $:
|
|
1492
1492
|
case M:
|
|
1493
|
-
case
|
|
1493
|
+
case W:
|
|
1494
1494
|
case H:
|
|
1495
|
-
case
|
|
1495
|
+
case C:
|
|
1496
1496
|
case d:
|
|
1497
1497
|
case s:
|
|
1498
1498
|
case f:
|
|
1499
1499
|
return Xa(e, p);
|
|
1500
|
-
case
|
|
1500
|
+
case x:
|
|
1501
1501
|
return za(e, p, l);
|
|
1502
|
-
case
|
|
1503
|
-
case
|
|
1502
|
+
case R:
|
|
1503
|
+
case ne:
|
|
1504
1504
|
return new j(e);
|
|
1505
1505
|
case Y:
|
|
1506
1506
|
return Va(e);
|
|
1507
|
-
case
|
|
1507
|
+
case B:
|
|
1508
1508
|
return Ga(e, p, l);
|
|
1509
1509
|
case ce:
|
|
1510
1510
|
return qa(e);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
1513
|
function nn(e, r) {
|
|
1514
|
-
return r = r ?? c, !!r && (typeof e == "number" ||
|
|
1514
|
+
return r = r ?? c, !!r && (typeof e == "number" || F.test(e)) && e > -1 && e % 1 == 0 && e < r;
|
|
1515
1515
|
}
|
|
1516
1516
|
function rn(e) {
|
|
1517
1517
|
var r = typeof e;
|
|
@@ -1556,7 +1556,7 @@ qe.exports;
|
|
|
1556
1556
|
var un = ua || bn;
|
|
1557
1557
|
function At(e) {
|
|
1558
1558
|
var r = Le(e) ? xe.call(e) : "";
|
|
1559
|
-
return r ==
|
|
1559
|
+
return r == A || r == N;
|
|
1560
1560
|
}
|
|
1561
1561
|
function dn(e) {
|
|
1562
1562
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= c;
|
|
@@ -1577,7 +1577,7 @@ qe.exports;
|
|
|
1577
1577
|
function bn() {
|
|
1578
1578
|
return !1;
|
|
1579
1579
|
}
|
|
1580
|
-
|
|
1580
|
+
a.exports = sn;
|
|
1581
1581
|
})(qe, qe.exports);
|
|
1582
1582
|
var Hi = qe.exports;
|
|
1583
1583
|
const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
@@ -1596,7 +1596,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1596
1596
|
}, Yi = {
|
|
1597
1597
|
key: 2,
|
|
1598
1598
|
class: "level-primary bottom-items"
|
|
1599
|
-
}, Ji = { class: "sidebar-footer" }, Qi = /* @__PURE__ */
|
|
1599
|
+
}, Ji = { class: "sidebar-footer" }, Qi = /* @__PURE__ */ J({
|
|
1600
1600
|
__name: "AppSidebar",
|
|
1601
1601
|
props: {
|
|
1602
1602
|
topItems: {
|
|
@@ -1654,66 +1654,66 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
},
|
|
1656
1656
|
emits: ["click", "toggle"],
|
|
1657
|
-
setup(
|
|
1657
|
+
setup(a, { emit: t }) {
|
|
1658
1658
|
ft((s) => ({
|
|
1659
1659
|
ed9817ee: v.value.mobileHeight,
|
|
1660
1660
|
"283219b3": v.value.mobileTop,
|
|
1661
|
-
"1e921eff":
|
|
1661
|
+
"1e921eff": a.zIndex,
|
|
1662
1662
|
"17659e72": v.value.height,
|
|
1663
1663
|
"2fcb7496": v.value.top,
|
|
1664
|
-
"17bdc609":
|
|
1665
|
-
"4329f5c0":
|
|
1664
|
+
"17bdc609": O.value.marginTop,
|
|
1665
|
+
"4329f5c0": C.value,
|
|
1666
1666
|
dc71923a: m.value.display,
|
|
1667
1667
|
"261cb7fa": m.value.minHeight,
|
|
1668
|
-
"07598d84":
|
|
1669
|
-
"568185e9":
|
|
1668
|
+
"07598d84": A.value.top,
|
|
1669
|
+
"568185e9": A.value.zIndex
|
|
1670
1670
|
}));
|
|
1671
|
-
const i = t,
|
|
1672
|
-
mobileTop:
|
|
1673
|
-
top:
|
|
1674
|
-
mobileHeight:
|
|
1675
|
-
height:
|
|
1676
|
-
})), m =
|
|
1677
|
-
display: !
|
|
1678
|
-
minHeight: `${
|
|
1679
|
-
})),
|
|
1680
|
-
marginTop: u.value ? `${
|
|
1681
|
-
})),
|
|
1682
|
-
top:
|
|
1683
|
-
zIndex:
|
|
1684
|
-
})),
|
|
1685
|
-
var
|
|
1671
|
+
const i = t, n = a, c = Xe(), u = k(() => !!c.header), o = k(() => !!c.top), v = k(() => ({
|
|
1672
|
+
mobileTop: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : n.topOffset ? `${n.topOffset}px` : "0",
|
|
1673
|
+
top: n.topOffset ? `${n.topOffset}px` : "0",
|
|
1674
|
+
mobileHeight: n.mobileTopOffset && n.mobileEnabled ? `calc(100% - ${n.mobileTopOffset}px)` : "100%",
|
|
1675
|
+
height: n.topOffset ? `calc(100% - ${n.topOffset}px)` : "100%"
|
|
1676
|
+
})), m = k(() => ({
|
|
1677
|
+
display: !n.mobileHeaderVisible && n.mobileEnabled ? "none" : "flex",
|
|
1678
|
+
minHeight: `${n.headerHeight}px`
|
|
1679
|
+
})), O = k(() => ({
|
|
1680
|
+
marginTop: u.value ? `${n.headerHeight}px` : "0"
|
|
1681
|
+
})), A = k(() => ({
|
|
1682
|
+
top: n.mobileTopOffset && n.mobileEnabled ? `${n.mobileTopOffset}px` : "0",
|
|
1683
|
+
zIndex: n.mobileOverlayZIndex !== null ? n.mobileOverlayZIndex : n.zIndex > 1 ? n.zIndex - 1 : 1
|
|
1684
|
+
})), N = (s) => Ui(s).map((b) => {
|
|
1685
|
+
var T, E, F;
|
|
1686
1686
|
if (b) {
|
|
1687
|
-
(!b.key || !((
|
|
1687
|
+
(!b.key || !((T = b.key) != null && T.trim())) && (b.key = String(b.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!b.testId || !((E = b.testId) != null && E.trim())) && (b.testId = String(b.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1688
1688
|
for (const g of b.items || [])
|
|
1689
|
-
g.parentKey = b.key, (!g.testId || !((
|
|
1689
|
+
g.parentKey = b.key, (!g.testId || !((F = g.testId) != null && F.trim())) && (g.testId = String(g.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1690
1690
|
}
|
|
1691
1691
|
return b;
|
|
1692
|
-
}),
|
|
1692
|
+
}), x = k(() => n.topItems.length ? N(n.topItems) : []), R = k(() => n.bottomItems.length ? N(n.bottomItems) : []), w = G(n.open), P = (s) => {
|
|
1693
1693
|
var f, b;
|
|
1694
|
-
|
|
1694
|
+
w.value !== s && (w.value = s, i("toggle", s)), s ? (f = document == null ? void 0 : document.body) == null || f.classList.add("kong-ui-app-sidebar-open") : (b = document == null ? void 0 : document.body) == null || b.classList.remove("kong-ui-app-sidebar-open"), B.value = !1;
|
|
1695
1695
|
}, Y = () => {
|
|
1696
|
-
|
|
1697
|
-
},
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
},
|
|
1696
|
+
n.mobileOverlayCloseOnClick && P(!1);
|
|
1697
|
+
}, B = G(!1), ne = (s) => {
|
|
1698
|
+
B.value = !0, i("click", s), setTimeout(() => {
|
|
1699
|
+
P(!1);
|
|
1700
|
+
}, n.mobileCloseDelay);
|
|
1701
1701
|
};
|
|
1702
|
-
Ae(() =>
|
|
1703
|
-
|
|
1702
|
+
Ae(() => n.open, (s) => {
|
|
1703
|
+
P(s);
|
|
1704
1704
|
});
|
|
1705
|
-
const { debounce: ce } = Jt(),
|
|
1706
|
-
|
|
1707
|
-
}, 200),
|
|
1708
|
-
Z.value || (Z.value = !0, clearTimeout(
|
|
1709
|
-
}, M =
|
|
1705
|
+
const { debounce: ce } = Jt(), ee = ce(() => {
|
|
1706
|
+
w.value && te.value !== (window == null ? void 0 : window.innerWidth) && (te.value = window == null ? void 0 : window.innerWidth, P(!1));
|
|
1707
|
+
}, 200), te = G(), Z = G(!1), X = G(), $ = () => {
|
|
1708
|
+
Z.value || (Z.value = !0, clearTimeout(X.value), X.value = setTimeout(() => Z.value = !1, 1300));
|
|
1709
|
+
}, M = G(null), W = k(() => w.value && n.mobileEnabled), H = async (s) => {
|
|
1710
1710
|
var f, b;
|
|
1711
|
-
s ? (await Bt(), await new Promise((
|
|
1711
|
+
s ? (await Bt(), await new Promise((T) => setTimeout(T, 300)), (f = M.value) == null || f.activate()) : (b = M.value) == null || b.deactivate();
|
|
1712
1712
|
};
|
|
1713
|
-
Ae(
|
|
1713
|
+
Ae(W, async (s) => {
|
|
1714
1714
|
s ? await H(!0) : await H(!1);
|
|
1715
1715
|
}, { immediate: !0 });
|
|
1716
|
-
const
|
|
1716
|
+
const C = G("0px"), d = () => {
|
|
1717
1717
|
var g;
|
|
1718
1718
|
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((g = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : g.platform)))
|
|
1719
1719
|
return;
|
|
@@ -1721,21 +1721,21 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1721
1721
|
f.style.visibility = "hidden", f.style.width = "100px", document.body.appendChild(f);
|
|
1722
1722
|
const b = f.offsetWidth;
|
|
1723
1723
|
f.style.overflow = "scroll";
|
|
1724
|
-
const
|
|
1725
|
-
|
|
1726
|
-
const
|
|
1727
|
-
f.parentNode && f.parentNode.removeChild(f), b -
|
|
1724
|
+
const T = document.createElement("div");
|
|
1725
|
+
T.style.width = "100%", f.appendChild(T);
|
|
1726
|
+
const E = T.offsetWidth;
|
|
1727
|
+
f.parentNode && f.parentNode.removeChild(f), b - E === 0 && (C.value = "8px");
|
|
1728
1728
|
};
|
|
1729
1729
|
return Ye(async () => {
|
|
1730
|
-
|
|
1730
|
+
te.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", ee), window.addEventListener("resize", $), await Bt(), d();
|
|
1731
1731
|
}), Ut(() => {
|
|
1732
|
-
window.removeEventListener("resize",
|
|
1732
|
+
window.removeEventListener("resize", ee), window.removeEventListener("resize", $);
|
|
1733
1733
|
}), (s, f) => (h(), y(Ce, null, [
|
|
1734
|
-
|
|
1734
|
+
w.value && a.mobileOverlay && a.mobileEnabled ? (h(), y("div", {
|
|
1735
1735
|
key: 0,
|
|
1736
1736
|
class: "kong-ui-app-sidebar-overlay",
|
|
1737
1737
|
onClick: Y
|
|
1738
|
-
})) :
|
|
1738
|
+
})) : _("", !0),
|
|
1739
1739
|
Ne(Wt(Zi), {
|
|
1740
1740
|
ref_key: "focusTrap",
|
|
1741
1741
|
ref: M,
|
|
@@ -1743,54 +1743,54 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1743
1743
|
"allow-outside-click": "",
|
|
1744
1744
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1745
1745
|
}, {
|
|
1746
|
-
default:
|
|
1747
|
-
|
|
1746
|
+
default: D(() => [
|
|
1747
|
+
I("aside", {
|
|
1748
1748
|
class: ie(["kong-ui-app-sidebar", {
|
|
1749
|
-
"sidebar-open":
|
|
1749
|
+
"sidebar-open": w.value,
|
|
1750
1750
|
"no-sidebar-header": !u.value,
|
|
1751
|
-
"mobile-header-hidden":
|
|
1752
|
-
"mobile-disabled": !
|
|
1751
|
+
"mobile-header-hidden": a.mobileEnabled && (!u.value || !a.mobileHeaderVisible),
|
|
1752
|
+
"mobile-disabled": !a.mobileEnabled,
|
|
1753
1753
|
"disable-transitions": Z.value
|
|
1754
1754
|
}]),
|
|
1755
1755
|
tabindex: "-1"
|
|
1756
1756
|
}, [
|
|
1757
1757
|
u.value ? (h(), y("div", Wi, [
|
|
1758
|
-
|
|
1759
|
-
])) :
|
|
1760
|
-
|
|
1758
|
+
S(s.$slots, "header", {}, void 0, !0)
|
|
1759
|
+
])) : _("", !0),
|
|
1760
|
+
I("div", zi, [
|
|
1761
1761
|
o.value ? (h(), y("div", Vi, [
|
|
1762
|
-
|
|
1763
|
-
])) :
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
(h(!0), y(Ce, null, Te(
|
|
1762
|
+
S(s.$slots, "top", {}, void 0, !0)
|
|
1763
|
+
])) : _("", !0),
|
|
1764
|
+
I("nav", Gi, [
|
|
1765
|
+
x.value.length ? (h(), y("ul", qi, [
|
|
1766
|
+
(h(!0), y(Ce, null, Te(x.value, (b) => (h(), K(Lt, {
|
|
1767
1767
|
key: b.name,
|
|
1768
1768
|
item: b,
|
|
1769
|
-
onClick:
|
|
1769
|
+
onClick: ne
|
|
1770
1770
|
}, {
|
|
1771
|
-
[`sidebar-icon-${b.key}`]:
|
|
1772
|
-
|
|
1771
|
+
[`sidebar-icon-${b.key}`]: D(() => [
|
|
1772
|
+
S(s.$slots, `sidebar-icon-${b.key}`, {}, void 0, !0)
|
|
1773
1773
|
]),
|
|
1774
1774
|
_: 2
|
|
1775
1775
|
}, 1032, ["item"]))), 128))
|
|
1776
|
-
])) :
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
(h(!0), y(Ce, null, Te(
|
|
1776
|
+
])) : _("", !0),
|
|
1777
|
+
x.value.length && R.value.length ? (h(), y("div", Xi)) : _("", !0),
|
|
1778
|
+
R.value.length ? (h(), y("ul", Yi, [
|
|
1779
|
+
(h(!0), y(Ce, null, Te(R.value, (b) => (h(), K(Lt, {
|
|
1780
1780
|
key: b.name,
|
|
1781
1781
|
item: b,
|
|
1782
|
-
onClick:
|
|
1782
|
+
onClick: ne
|
|
1783
1783
|
}, {
|
|
1784
|
-
[`sidebar-icon-${b.key}`]:
|
|
1785
|
-
|
|
1784
|
+
[`sidebar-icon-${b.key}`]: D(() => [
|
|
1785
|
+
S(s.$slots, `sidebar-icon-${b.key}`, {}, void 0, !0)
|
|
1786
1786
|
]),
|
|
1787
1787
|
_: 2
|
|
1788
1788
|
}, 1032, ["item"]))), 128))
|
|
1789
|
-
])) :
|
|
1789
|
+
])) : _("", !0)
|
|
1790
1790
|
])
|
|
1791
1791
|
]),
|
|
1792
|
-
|
|
1793
|
-
|
|
1792
|
+
I("div", Ji, [
|
|
1793
|
+
S(s.$slots, "footer", {}, void 0, !0)
|
|
1794
1794
|
])
|
|
1795
1795
|
], 2)
|
|
1796
1796
|
]),
|
|
@@ -1798,7 +1798,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1798
1798
|
}, 512)
|
|
1799
1799
|
], 64));
|
|
1800
1800
|
}
|
|
1801
|
-
}), er = /* @__PURE__ */
|
|
1801
|
+
}), er = /* @__PURE__ */ Q(Qi, [["__scopeId", "data-v-084541f1"]]), tr = ["aria-label"], ar = /* @__PURE__ */ J({
|
|
1802
1802
|
__name: "SidebarToggle",
|
|
1803
1803
|
props: {
|
|
1804
1804
|
active: {
|
|
@@ -1807,11 +1807,11 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
},
|
|
1809
1809
|
emits: ["toggle"],
|
|
1810
|
-
setup(
|
|
1811
|
-
const i = t,
|
|
1810
|
+
setup(a, { emit: t }) {
|
|
1811
|
+
const i = t, n = a, c = G(n.active || !1), u = (o) => {
|
|
1812
1812
|
o.preventDefault(), c.value = !c.value, i("toggle", c.value);
|
|
1813
1813
|
};
|
|
1814
|
-
return Ae(() =>
|
|
1814
|
+
return Ae(() => n.active, (o) => {
|
|
1815
1815
|
c.value = o;
|
|
1816
1816
|
}), (o, v) => (h(), y("a", {
|
|
1817
1817
|
"aria-haspopup": "true",
|
|
@@ -1821,18 +1821,18 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1821
1821
|
role: "button",
|
|
1822
1822
|
onClick: wn(u, ["prevent"])
|
|
1823
1823
|
}, v[0] || (v[0] = [
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1824
|
+
I("span", { class: "line" }, null, -1),
|
|
1825
|
+
I("span", { class: "line" }, null, -1),
|
|
1826
|
+
I("span", { class: "line" }, null, -1)
|
|
1827
1827
|
]), 10, tr));
|
|
1828
1828
|
}
|
|
1829
|
-
}), nr = /* @__PURE__ */
|
|
1829
|
+
}), nr = /* @__PURE__ */ Q(ar, [["__scopeId", "data-v-cbb41bbd"]]), ir = "#ffffff", rr = "#000933", or = "#000933", sr = "#ffffff", cr = "0px", lr = "4px", ur = { id: "kong-ui-app-layout-notification" }, dr = { class: "mobile-logo" }, fr = {
|
|
1830
1830
|
key: 0,
|
|
1831
1831
|
class: "navbar-logo"
|
|
1832
1832
|
}, vr = {
|
|
1833
1833
|
class: "kong-ui-app-layout-main",
|
|
1834
1834
|
"data-testid": "kong-ui-app-layout-main"
|
|
1835
|
-
}, br = { class: "kong-ui-app-layout-content" }, hr = { class: "kong-ui-app-layout-content-inner" }, pr = /* @__PURE__ */
|
|
1835
|
+
}, br = { class: "kong-ui-app-layout-content" }, hr = { class: "kong-ui-app-layout-content-inner" }, pr = /* @__PURE__ */ J({
|
|
1836
1836
|
__name: "AppLayout",
|
|
1837
1837
|
props: {
|
|
1838
1838
|
hideDefaultSlot: {
|
|
@@ -1864,182 +1864,182 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1864
1864
|
theme: {
|
|
1865
1865
|
type: String,
|
|
1866
1866
|
default: "light",
|
|
1867
|
-
validator: (
|
|
1867
|
+
validator: (a) => ["light", "dark"].includes(a)
|
|
1868
1868
|
}
|
|
1869
1869
|
},
|
|
1870
1870
|
emits: ["sidebar-click", "update:topOffset"],
|
|
1871
|
-
setup(
|
|
1872
|
-
ft((
|
|
1873
|
-
"2235c6e4":
|
|
1874
|
-
"29d04344":
|
|
1871
|
+
setup(a, { emit: t }) {
|
|
1872
|
+
ft(($) => ({
|
|
1873
|
+
"2235c6e4": B.value,
|
|
1874
|
+
"29d04344": ne.value,
|
|
1875
1875
|
"3d470f48": Y.value,
|
|
1876
1876
|
"81803d80": ce.value,
|
|
1877
|
-
"64da7a33":
|
|
1877
|
+
"64da7a33": ee.value
|
|
1878
1878
|
}));
|
|
1879
|
-
const i =
|
|
1880
|
-
navbarLeft:
|
|
1881
|
-
navbarCenter:
|
|
1882
|
-
navbarRight:
|
|
1883
|
-
navbarLogo:
|
|
1884
|
-
navbarMobileLogo:
|
|
1885
|
-
sidebarHeader:
|
|
1886
|
-
sidebarTop:
|
|
1887
|
-
sidebarFooter:
|
|
1888
|
-
}), o =
|
|
1889
|
-
hidden:
|
|
1879
|
+
const i = a, n = t, c = Xe(), u = Ze({
|
|
1880
|
+
navbarLeft: k(() => !!c["navbar-left"]),
|
|
1881
|
+
navbarCenter: k(() => !!c["navbar-center"]),
|
|
1882
|
+
navbarRight: k(() => !!c["navbar-right"]),
|
|
1883
|
+
navbarLogo: k(() => !!c["navbar-logo"]),
|
|
1884
|
+
navbarMobileLogo: k(() => !!c["navbar-mobile-logo"]),
|
|
1885
|
+
sidebarHeader: k(() => !!c["sidebar-header"]),
|
|
1886
|
+
sidebarTop: k(() => !!c["sidebar-top"]),
|
|
1887
|
+
sidebarFooter: k(() => !!c["sidebar-footer"])
|
|
1888
|
+
}), o = k(() => i.hideDefaultSlot), v = Ze({
|
|
1889
|
+
hidden: k(() => i.navbarHidden)
|
|
1890
1890
|
}), m = Ze({
|
|
1891
|
-
topItems:
|
|
1892
|
-
bottomItems:
|
|
1893
|
-
open:
|
|
1894
|
-
hidden:
|
|
1895
|
-
}),
|
|
1896
|
-
|
|
1897
|
-
},
|
|
1898
|
-
|
|
1891
|
+
topItems: k(() => i.sidebarTopItems),
|
|
1892
|
+
bottomItems: k(() => i.sidebarBottomItems),
|
|
1893
|
+
open: k(() => i.sidebarOpen),
|
|
1894
|
+
hidden: k(() => i.sidebarHidden)
|
|
1895
|
+
}), O = ($) => {
|
|
1896
|
+
n("sidebar-click", $);
|
|
1897
|
+
}, A = G(!1), N = ($) => {
|
|
1898
|
+
A.value = $;
|
|
1899
1899
|
};
|
|
1900
1900
|
kn(() => {
|
|
1901
|
-
|
|
1901
|
+
A.value = Tn(m, "open").value || !1;
|
|
1902
1902
|
});
|
|
1903
|
-
const
|
|
1904
|
-
if (
|
|
1905
|
-
|
|
1903
|
+
const x = G(0), R = G(60), w = G(0), P = k(() => v.hidden ? w.value : R.value + w.value), Y = k(() => i.theme === "light" ? or : sr), B = k(() => i.theme === "light" ? ir : rr), ne = k(() => i.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), ce = k(() => `${P.value}px`), ee = k(() => m.hidden || v.hidden ? cr : lr), { debounce: te } = Jt(), Z = te(($ = !1) => {
|
|
1904
|
+
if ($ || x.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1905
|
+
x.value = window == null ? void 0 : window.innerWidth;
|
|
1906
1906
|
const M = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1907
|
-
M && (
|
|
1907
|
+
M && (w.value = M.offsetHeight);
|
|
1908
1908
|
}
|
|
1909
|
-
}, 200),
|
|
1910
|
-
return Ae(
|
|
1911
|
-
|
|
1909
|
+
}, 200), X = G();
|
|
1910
|
+
return Ae(w, ($) => {
|
|
1911
|
+
n("update:topOffset", $ || 0);
|
|
1912
1912
|
}, { immediate: !0 }), Ye(() => {
|
|
1913
|
-
var M,
|
|
1914
|
-
(M = document == null ? void 0 : document.body) == null || M.classList.add("kong-ui-app-layout-body"), (
|
|
1915
|
-
const
|
|
1916
|
-
|
|
1913
|
+
var M, W;
|
|
1914
|
+
(M = document == null ? void 0 : document.body) == null || M.classList.add("kong-ui-app-layout-body"), (W = document == null ? void 0 : document.documentElement) == null || W.classList.add("kong-ui-app-layout-html"), x.value = window == null ? void 0 : window.innerWidth, Z(!0);
|
|
1915
|
+
const $ = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1916
|
+
$ && (X.value = new ResizeObserver((H) => {
|
|
1917
1917
|
window.requestAnimationFrame(() => {
|
|
1918
1918
|
if (!(!Array.isArray(H) || !H.length))
|
|
1919
|
-
for (const
|
|
1920
|
-
const d =
|
|
1921
|
-
|
|
1919
|
+
for (const C of H) {
|
|
1920
|
+
const d = C.contentRect.height;
|
|
1921
|
+
w.value !== d && (w.value = d);
|
|
1922
1922
|
}
|
|
1923
1923
|
});
|
|
1924
|
-
}),
|
|
1924
|
+
}), X.value.observe($)), window.addEventListener("resize", Z);
|
|
1925
1925
|
}), Ut(() => {
|
|
1926
|
-
|
|
1927
|
-
}), (
|
|
1926
|
+
X.value && X.value.disconnect(), window.removeEventListener("resize", Z);
|
|
1927
|
+
}), ($, M) => (h(), y("div", {
|
|
1928
1928
|
class: ie(["kong-ui-app-layout", [
|
|
1929
1929
|
{ "navbar-hidden": v.hidden },
|
|
1930
1930
|
{ "sidebar-hidden": m.hidden }
|
|
1931
1931
|
]])
|
|
1932
1932
|
}, [
|
|
1933
|
-
|
|
1934
|
-
|
|
1933
|
+
I("div", ur, [
|
|
1934
|
+
S($.$slots, "notification", {}, void 0, !0)
|
|
1935
1935
|
]),
|
|
1936
|
-
v.hidden ?
|
|
1936
|
+
v.hidden ? _("", !0) : (h(), K(ai, {
|
|
1937
1937
|
key: String(m.hidden),
|
|
1938
1938
|
"left-offset": m.hidden ? 0 : void 0,
|
|
1939
|
-
"top-offset":
|
|
1939
|
+
"top-offset": w.value
|
|
1940
1940
|
}, Ue({
|
|
1941
|
-
"mobile-sidebar-toggle":
|
|
1942
|
-
m.hidden ?
|
|
1941
|
+
"mobile-sidebar-toggle": D(() => [
|
|
1942
|
+
m.hidden ? _("", !0) : (h(), K(nr, {
|
|
1943
1943
|
key: 0,
|
|
1944
|
-
active:
|
|
1945
|
-
onToggle:
|
|
1944
|
+
active: A.value,
|
|
1945
|
+
onToggle: N
|
|
1946
1946
|
}, null, 8, ["active"]))
|
|
1947
1947
|
]),
|
|
1948
1948
|
_: 2
|
|
1949
1949
|
}, [
|
|
1950
1950
|
u.navbarMobileLogo ? {
|
|
1951
1951
|
name: "mobile-logo",
|
|
1952
|
-
fn:
|
|
1953
|
-
|
|
1954
|
-
|
|
1952
|
+
fn: D(() => [
|
|
1953
|
+
I("div", dr, [
|
|
1954
|
+
S($.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1955
1955
|
])
|
|
1956
1956
|
]),
|
|
1957
1957
|
key: "0"
|
|
1958
1958
|
} : void 0,
|
|
1959
1959
|
u.navbarLogo ? {
|
|
1960
1960
|
name: "logo",
|
|
1961
|
-
fn:
|
|
1961
|
+
fn: D(() => [
|
|
1962
1962
|
m.hidden ? (h(), y("div", fr, [
|
|
1963
|
-
|
|
1964
|
-
])) :
|
|
1963
|
+
S($.$slots, "navbar-logo", {}, void 0, !0)
|
|
1964
|
+
])) : _("", !0)
|
|
1965
1965
|
]),
|
|
1966
1966
|
key: "1"
|
|
1967
1967
|
} : void 0,
|
|
1968
1968
|
u.navbarLeft ? {
|
|
1969
1969
|
name: "left",
|
|
1970
|
-
fn:
|
|
1971
|
-
|
|
1970
|
+
fn: D(() => [
|
|
1971
|
+
S($.$slots, "navbar-left", {}, void 0, !0)
|
|
1972
1972
|
]),
|
|
1973
1973
|
key: "2"
|
|
1974
1974
|
} : void 0,
|
|
1975
1975
|
u.navbarCenter ? {
|
|
1976
1976
|
name: "center",
|
|
1977
|
-
fn:
|
|
1978
|
-
|
|
1977
|
+
fn: D(() => [
|
|
1978
|
+
S($.$slots, "navbar-center", {}, void 0, !0)
|
|
1979
1979
|
]),
|
|
1980
1980
|
key: "3"
|
|
1981
1981
|
} : void 0,
|
|
1982
1982
|
u.navbarRight ? {
|
|
1983
1983
|
name: "right",
|
|
1984
|
-
fn:
|
|
1985
|
-
|
|
1984
|
+
fn: D(() => [
|
|
1985
|
+
S($.$slots, "navbar-right", {}, void 0, !0)
|
|
1986
1986
|
]),
|
|
1987
1987
|
key: "4"
|
|
1988
1988
|
} : void 0
|
|
1989
1989
|
]), 1032, ["left-offset", "top-offset"])),
|
|
1990
|
-
m.hidden ?
|
|
1990
|
+
m.hidden ? _("", !0) : (h(), K(er, {
|
|
1991
1991
|
key: 1,
|
|
1992
1992
|
"bottom-items": m.bottomItems,
|
|
1993
|
-
"header-height":
|
|
1993
|
+
"header-height": R.value,
|
|
1994
1994
|
"mobile-enabled": "",
|
|
1995
1995
|
"mobile-header-visible": !1,
|
|
1996
|
-
"mobile-top-offset":
|
|
1997
|
-
open:
|
|
1996
|
+
"mobile-top-offset": P.value,
|
|
1997
|
+
open: A.value,
|
|
1998
1998
|
"top-items": m.topItems,
|
|
1999
|
-
"top-offset":
|
|
2000
|
-
onClick:
|
|
2001
|
-
onToggle:
|
|
1999
|
+
"top-offset": w.value,
|
|
2000
|
+
onClick: O,
|
|
2001
|
+
onToggle: N
|
|
2002
2002
|
}, Ue({ _: 2 }, [
|
|
2003
2003
|
u.sidebarHeader ? {
|
|
2004
2004
|
name: "header",
|
|
2005
|
-
fn:
|
|
2006
|
-
|
|
2005
|
+
fn: D(() => [
|
|
2006
|
+
S($.$slots, "sidebar-header", {}, void 0, !0)
|
|
2007
2007
|
]),
|
|
2008
2008
|
key: "0"
|
|
2009
2009
|
} : void 0,
|
|
2010
2010
|
u.sidebarTop ? {
|
|
2011
2011
|
name: "top",
|
|
2012
|
-
fn:
|
|
2013
|
-
|
|
2012
|
+
fn: D(() => [
|
|
2013
|
+
S($.$slots, "sidebar-top", {}, void 0, !0)
|
|
2014
2014
|
]),
|
|
2015
2015
|
key: "1"
|
|
2016
2016
|
} : void 0,
|
|
2017
2017
|
u.sidebarFooter ? {
|
|
2018
2018
|
name: "footer",
|
|
2019
|
-
fn:
|
|
2020
|
-
|
|
2019
|
+
fn: D(() => [
|
|
2020
|
+
S($.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2021
2021
|
]),
|
|
2022
2022
|
key: "2"
|
|
2023
2023
|
} : void 0,
|
|
2024
|
-
Te([...m.topItems || [], ...m.bottomItems || []], (
|
|
2025
|
-
name: `sidebar-icon-${
|
|
2026
|
-
fn:
|
|
2027
|
-
|
|
2024
|
+
Te([...m.topItems || [], ...m.bottomItems || []], (W) => ({
|
|
2025
|
+
name: `sidebar-icon-${W.key}`,
|
|
2026
|
+
fn: D(() => [
|
|
2027
|
+
S($.$slots, `sidebar-icon-${W.key}`, {}, void 0, !0)
|
|
2028
2028
|
])
|
|
2029
2029
|
}))
|
|
2030
2030
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
M[0] || (M[0] =
|
|
2035
|
-
|
|
2036
|
-
o.value ?
|
|
2031
|
+
I("main", vr, [
|
|
2032
|
+
I("div", br, [
|
|
2033
|
+
I("div", hr, [
|
|
2034
|
+
M[0] || (M[0] = I("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2035
|
+
S($.$slots, "app-error", {}, void 0, !0),
|
|
2036
|
+
o.value ? _("", !0) : S($.$slots, "default", { key: 0 }, void 0, !0)
|
|
2037
2037
|
])
|
|
2038
2038
|
])
|
|
2039
2039
|
])
|
|
2040
2040
|
], 2));
|
|
2041
2041
|
}
|
|
2042
|
-
}), mr = /* @__PURE__ */
|
|
2042
|
+
}), mr = /* @__PURE__ */ Q(pr, [["__scopeId", "data-v-8e8c270a"]]), gr = { class: "kong-ui-app-page-header" }, yr = {
|
|
2043
2043
|
key: 0,
|
|
2044
2044
|
class: "page-header-breadcrumbs",
|
|
2045
2045
|
"data-testid": "page-header-breadcrumbs"
|
|
@@ -2059,7 +2059,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2059
2059
|
key: 1,
|
|
2060
2060
|
class: "page-header-section-below",
|
|
2061
2061
|
"data-testid": "page-header-section-below"
|
|
2062
|
-
}, $r = /* @__PURE__ */
|
|
2062
|
+
}, $r = /* @__PURE__ */ J({
|
|
2063
2063
|
__name: "AppPageHeader",
|
|
2064
2064
|
props: {
|
|
2065
2065
|
title: {
|
|
@@ -2072,52 +2072,52 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2072
2072
|
default: () => []
|
|
2073
2073
|
}
|
|
2074
2074
|
},
|
|
2075
|
-
setup(
|
|
2076
|
-
const t =
|
|
2075
|
+
setup(a) {
|
|
2076
|
+
const t = a, i = Xe(), n = k(() => {
|
|
2077
2077
|
var u;
|
|
2078
2078
|
return !!((u = t.breadcrumbs) != null && u.length);
|
|
2079
|
-
}), c =
|
|
2079
|
+
}), c = k(() => Object.keys(i).filter((u) => u.startsWith("icon-")));
|
|
2080
2080
|
return (u, o) => {
|
|
2081
2081
|
const v = he("KBreadcrumbs");
|
|
2082
2082
|
return h(), y("div", gr, [
|
|
2083
|
-
|
|
2083
|
+
n.value ? (h(), y("div", yr, [
|
|
2084
2084
|
Ne(v, {
|
|
2085
2085
|
"item-max-width": "150",
|
|
2086
|
-
items:
|
|
2086
|
+
items: a.breadcrumbs
|
|
2087
2087
|
}, Ue({ _: 2 }, [
|
|
2088
2088
|
Te(c.value, (m) => ({
|
|
2089
2089
|
name: m,
|
|
2090
|
-
fn:
|
|
2091
|
-
|
|
2090
|
+
fn: D(() => [
|
|
2091
|
+
S(u.$slots, m, {}, void 0, !0)
|
|
2092
2092
|
])
|
|
2093
2093
|
}))
|
|
2094
2094
|
]), 1032, ["items"])
|
|
2095
|
-
])) :
|
|
2096
|
-
|
|
2097
|
-
|
|
2095
|
+
])) : _("", !0),
|
|
2096
|
+
I("div", wr, [
|
|
2097
|
+
I("div", kr, [
|
|
2098
2098
|
u.$slots["title-before"] ? (h(), y("div", Tr, [
|
|
2099
|
-
|
|
2100
|
-
])) :
|
|
2101
|
-
|
|
2099
|
+
S(u.$slots, "title-before", {}, void 0, !0)
|
|
2100
|
+
])) : _("", !0),
|
|
2101
|
+
I("h1", {
|
|
2102
2102
|
class: "page-header-title",
|
|
2103
2103
|
"data-testid": "page-header-title",
|
|
2104
|
-
title:
|
|
2105
|
-
},
|
|
2104
|
+
title: a.title
|
|
2105
|
+
}, q(a.title), 9, Sr),
|
|
2106
2106
|
u.$slots["title-after"] ? (h(), y("div", _r, [
|
|
2107
|
-
|
|
2108
|
-
])) :
|
|
2107
|
+
S(u.$slots, "title-after", {}, void 0, !0)
|
|
2108
|
+
])) : _("", !0)
|
|
2109
2109
|
]),
|
|
2110
2110
|
u.$slots.actions ? (h(), y("div", Ir, [
|
|
2111
|
-
|
|
2112
|
-
])) :
|
|
2111
|
+
S(u.$slots, "actions", {}, void 0, !0)
|
|
2112
|
+
])) : _("", !0)
|
|
2113
2113
|
]),
|
|
2114
2114
|
u.$slots.below ? (h(), y("div", Or, [
|
|
2115
|
-
|
|
2116
|
-
])) :
|
|
2115
|
+
S(u.$slots, "below", {}, void 0, !0)
|
|
2116
|
+
])) : _("", !0)
|
|
2117
2117
|
]);
|
|
2118
2118
|
};
|
|
2119
2119
|
}
|
|
2120
|
-
}), Pr = /* @__PURE__ */
|
|
2120
|
+
}), Pr = /* @__PURE__ */ Q($r, [["__scopeId", "data-v-204b7f98"]]), Cr = { class: "app-page-info-section-default-header" }, Er = {
|
|
2121
2121
|
key: 1,
|
|
2122
2122
|
class: "app-page-info-section-description",
|
|
2123
2123
|
"data-testid": "app-page-info-section-description"
|
|
@@ -2125,7 +2125,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2125
2125
|
key: 0,
|
|
2126
2126
|
class: "app-page-info-section-content",
|
|
2127
2127
|
"data-testid": "app-page-info-section-content"
|
|
2128
|
-
}, Ar = /* @__PURE__ */
|
|
2128
|
+
}, Ar = /* @__PURE__ */ J({
|
|
2129
2129
|
__name: "AppPageInfoSection",
|
|
2130
2130
|
props: {
|
|
2131
2131
|
collapsible: {
|
|
@@ -2143,55 +2143,55 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2143
2143
|
titleTag: {
|
|
2144
2144
|
type: String,
|
|
2145
2145
|
default: "div",
|
|
2146
|
-
validator: (
|
|
2146
|
+
validator: (a) => _n.includes(a)
|
|
2147
2147
|
}
|
|
2148
2148
|
},
|
|
2149
|
-
setup(
|
|
2150
|
-
return (t, i) => (h(), K(Ke(
|
|
2149
|
+
setup(a) {
|
|
2150
|
+
return (t, i) => (h(), K(Ke(a.collapsible ? "details" : "div"), {
|
|
2151
2151
|
class: "app-page-info-section",
|
|
2152
2152
|
"data-testid": "app-page-info-section"
|
|
2153
2153
|
}, {
|
|
2154
|
-
default:
|
|
2155
|
-
(h(), K(Ke(
|
|
2154
|
+
default: D(() => [
|
|
2155
|
+
(h(), K(Ke(a.collapsible ? "summary" : "div"), {
|
|
2156
2156
|
class: "app-page-info-section-header",
|
|
2157
2157
|
"data-testid": "app-page-info-section-header"
|
|
2158
2158
|
}, {
|
|
2159
|
-
default:
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2159
|
+
default: D(() => [
|
|
2160
|
+
S(t.$slots, "header", {}, () => [
|
|
2161
|
+
I("div", Cr, [
|
|
2162
|
+
a.title ? (h(), K(Ke(a.titleTag), {
|
|
2163
2163
|
key: 0,
|
|
2164
2164
|
class: "app-page-info-section-title",
|
|
2165
2165
|
"data-testid": "app-page-info-section-title"
|
|
2166
2166
|
}, {
|
|
2167
|
-
default:
|
|
2168
|
-
He(
|
|
2167
|
+
default: D(() => [
|
|
2168
|
+
He(q(a.title), 1)
|
|
2169
2169
|
]),
|
|
2170
2170
|
_: 1
|
|
2171
|
-
})) :
|
|
2172
|
-
|
|
2171
|
+
})) : _("", !0),
|
|
2172
|
+
a.description ? (h(), y("div", Er, q(a.description), 1)) : _("", !0)
|
|
2173
2173
|
])
|
|
2174
2174
|
]),
|
|
2175
|
-
|
|
2175
|
+
a.collapsible ? (h(), K(Wt(Sn), {
|
|
2176
2176
|
key: 0,
|
|
2177
2177
|
class: "app-page-info-section-chevron-icon",
|
|
2178
2178
|
decorative: ""
|
|
2179
|
-
})) : t.$slots.actions ?
|
|
2179
|
+
})) : t.$slots.actions ? S(t.$slots, "actions", { key: 1 }) : _("", !0)
|
|
2180
2180
|
]),
|
|
2181
2181
|
_: 3
|
|
2182
2182
|
})),
|
|
2183
2183
|
t.$slots.default ? (h(), y("div", Nr, [
|
|
2184
|
-
|
|
2185
|
-
])) :
|
|
2184
|
+
S(t.$slots, "default")
|
|
2185
|
+
])) : _("", !0)
|
|
2186
2186
|
]),
|
|
2187
2187
|
_: 3
|
|
2188
2188
|
}));
|
|
2189
2189
|
}
|
|
2190
|
-
}), Mr = /* @__PURE__ */
|
|
2190
|
+
}), Mr = /* @__PURE__ */ Q(Ar, [["__scopeId", "data-v-21cd75da"]]), jr = {
|
|
2191
2191
|
// Customize Vue plugin options as desired
|
|
2192
2192
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2193
|
-
install: (
|
|
2194
|
-
|
|
2193
|
+
install: (a, t = {}) => {
|
|
2194
|
+
a.component(t.name || "AppLayout", mr);
|
|
2195
2195
|
}
|
|
2196
2196
|
};
|
|
2197
2197
|
export {
|