@kong-ui-public/app-layout 4.6.6-pr.2439.aae7e7bcf.0 → 4.6.6-pr.2439.b49e2ee24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-layout.es.js +701 -697
- package/dist/app-layout.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/components/AppLayout.vue.d.ts +10 -8
- package/dist/types/components/AppLayout.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts +2 -0
- package/dist/types/components/sidebar/AppSidebar.vue.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/app-layout.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ChevronRightIcon as Wt, ChevronDownIcon as
|
|
3
|
-
import { KButton as
|
|
4
|
-
const $n = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as re, resolveComponent as ve, createBlock as K, openBlock as b, withCtx as B, renderSlot as T, createElementBlock as w, Fragment as Oe, renderList as we, normalizeClass as oe, createTextVNode as Re, toDisplayString as Y, computed as _, createSlots as Ue, createVNode as xe, createCommentVNode as C, createElementVNode as O, createStaticVNode as mn, useCssVars as pt, reactive as Ge, useSlots as Je, onMounted as Qe, resolveDynamicComponent as $e, withKeys as gn, ref as ee, watch as Be, onUnmounted as yn, Comment as wn, cloneVNode as kn, nextTick as Pt, onBeforeUnmount as Ut, unref as ge, withModifiers as _n, watchEffect as Tn, toRef as Sn } from "vue";
|
|
2
|
+
import { ChevronRightIcon as Wt, ChevronDownIcon as Cn } from "@kong/icons";
|
|
3
|
+
import { KButton as In, HeaderTags as On } from "@kong/kongponents";
|
|
4
|
+
const $n = /* @__PURE__ */ re({
|
|
5
5
|
__name: "AccountDropdown",
|
|
6
6
|
props: {
|
|
7
7
|
options: {
|
|
@@ -21,25 +21,25 @@ const $n = /* @__PURE__ */ ne({
|
|
|
21
21
|
},
|
|
22
22
|
setup(n) {
|
|
23
23
|
return (t, r) => {
|
|
24
|
-
const a =
|
|
25
|
-
return
|
|
24
|
+
const a = ve("KDropdownItem"), s = ve("KDropdown");
|
|
25
|
+
return b(), K(s, {
|
|
26
26
|
class: "account-dropdown",
|
|
27
27
|
"kpop-attributes": { placement: "bottom-end" },
|
|
28
28
|
"trigger-text": n.userInitials,
|
|
29
29
|
width: n.width
|
|
30
30
|
}, {
|
|
31
|
-
items:
|
|
31
|
+
items: B(({ handleSelection: u }) => [
|
|
32
32
|
T(t.$slots, "default", {}, () => [
|
|
33
|
-
(
|
|
33
|
+
(b(!0), w(Oe, null, we(n.options, (o) => (b(), K(a, {
|
|
34
34
|
key: o.value,
|
|
35
|
-
class:
|
|
35
|
+
class: oe({ "has-divider": o.hasDivider }),
|
|
36
36
|
"data-testid": "select-" + o.value,
|
|
37
37
|
"has-divider": o.hasDivider,
|
|
38
|
-
onClick: (
|
|
38
|
+
onClick: (v) => u(o)
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
40
|
+
default: B(() => [
|
|
41
41
|
T(t.$slots, "default", { option: o }, () => [
|
|
42
|
-
Re(
|
|
42
|
+
Re(Y(o.label), 1)
|
|
43
43
|
], !0)
|
|
44
44
|
]),
|
|
45
45
|
_: 2
|
|
@@ -50,12 +50,12 @@ const $n = /* @__PURE__ */ ne({
|
|
|
50
50
|
}, 8, ["trigger-text", "width"]);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), ie = (n, t) => {
|
|
54
54
|
const r = n.__vccOpts || n;
|
|
55
55
|
for (const [a, s] of t)
|
|
56
56
|
r[a] = s;
|
|
57
57
|
return r;
|
|
58
|
-
}, Ui = /* @__PURE__ */
|
|
58
|
+
}, Ui = /* @__PURE__ */ ie($n, [["__scopeId", "data-v-b33191a2"]]), En = {
|
|
59
59
|
class: "about-section-title",
|
|
60
60
|
"data-testid": "about-section-title"
|
|
61
61
|
}, An = { class: "about-section-header-end" }, Fn = {
|
|
@@ -91,7 +91,7 @@ const $n = /* @__PURE__ */ ne({
|
|
|
91
91
|
key: 3,
|
|
92
92
|
class: "about-divider-section",
|
|
93
93
|
"data-testid": "about-divider-section"
|
|
94
|
-
}, Kn = /* @__PURE__ */
|
|
94
|
+
}, Kn = /* @__PURE__ */ re({
|
|
95
95
|
__name: "AppAboutSection",
|
|
96
96
|
props: {
|
|
97
97
|
title: { default: "" },
|
|
@@ -105,13 +105,13 @@ const $n = /* @__PURE__ */ ne({
|
|
|
105
105
|
setup(n) {
|
|
106
106
|
const t = n, r = _(() => !!t.modified && t.modified !== t.created);
|
|
107
107
|
return (a, s) => {
|
|
108
|
-
const u =
|
|
109
|
-
return
|
|
108
|
+
const u = ve("KSkeletonBox"), o = ve("KCard");
|
|
109
|
+
return b(), K(o, {
|
|
110
110
|
class: "kong-ui-app-about-section",
|
|
111
111
|
"title-tag": "h2"
|
|
112
112
|
}, Ue({
|
|
113
|
-
default:
|
|
114
|
-
a.isLoading ? (
|
|
113
|
+
default: B(() => [
|
|
114
|
+
a.isLoading ? (b(), w("div", xn, [
|
|
115
115
|
xe(u, {
|
|
116
116
|
height: "2",
|
|
117
117
|
width: "100"
|
|
@@ -120,25 +120,25 @@ const $n = /* @__PURE__ */ ne({
|
|
|
120
120
|
height: "2",
|
|
121
121
|
width: "100"
|
|
122
122
|
})
|
|
123
|
-
])) : (
|
|
124
|
-
a.description ? (
|
|
125
|
-
a.$slots.default ? (
|
|
123
|
+
])) : (b(), w("div", Bn, [
|
|
124
|
+
a.description ? (b(), w("p", Ln, Y(a.description), 1)) : C("", !0),
|
|
125
|
+
a.$slots.default ? (b(), w("div", Mn, [
|
|
126
126
|
T(a.$slots, "default", {}, void 0, !0)
|
|
127
|
-
])) :
|
|
128
|
-
a.$slots["divider-section"] ? (
|
|
129
|
-
a.$slots["divider-section"] ? (
|
|
127
|
+
])) : C("", !0),
|
|
128
|
+
a.$slots["divider-section"] ? (b(), w("hr", Pn)) : C("", !0),
|
|
129
|
+
a.$slots["divider-section"] ? (b(), w("div", jn, [
|
|
130
130
|
T(a.$slots, "divider-section", {}, void 0, !0)
|
|
131
|
-
])) :
|
|
131
|
+
])) : C("", !0)
|
|
132
132
|
]))
|
|
133
133
|
]),
|
|
134
134
|
_: 2
|
|
135
135
|
}, [
|
|
136
136
|
a.$slots.title || a.title ? {
|
|
137
137
|
name: "title",
|
|
138
|
-
fn:
|
|
139
|
-
|
|
138
|
+
fn: B(() => [
|
|
139
|
+
O("span", En, [
|
|
140
140
|
T(a.$slots, "title", {}, () => [
|
|
141
|
-
Re(
|
|
141
|
+
Re(Y(a.title), 1)
|
|
142
142
|
], !0)
|
|
143
143
|
])
|
|
144
144
|
]),
|
|
@@ -146,19 +146,19 @@ const $n = /* @__PURE__ */ ne({
|
|
|
146
146
|
} : void 0,
|
|
147
147
|
a.$slots.actions || a.created || a.modified ? {
|
|
148
148
|
name: "actions",
|
|
149
|
-
fn:
|
|
150
|
-
|
|
151
|
-
a.created || a.modified ? (
|
|
149
|
+
fn: B(() => [
|
|
150
|
+
O("div", An, [
|
|
151
|
+
a.created || a.modified ? (b(), w("div", {
|
|
152
152
|
key: 0,
|
|
153
|
-
class:
|
|
153
|
+
class: oe(["about-section-timestamps", { "has-actions": a.$slots.actions }])
|
|
154
154
|
}, [
|
|
155
|
-
a.created ? (
|
|
156
|
-
a.created && r.value ? (
|
|
157
|
-
r.value ? (
|
|
158
|
-
], 2)) :
|
|
159
|
-
a.$slots.actions ? (
|
|
155
|
+
a.created ? (b(), w("span", Fn, Y(a.createdLabel) + ": " + Y(a.created), 1)) : C("", !0),
|
|
156
|
+
a.created && r.value ? (b(), w("span", Nn, "->")) : C("", !0),
|
|
157
|
+
r.value ? (b(), w("span", Dn, Y(a.modifiedLabel) + ": " + Y(a.modified), 1)) : C("", !0)
|
|
158
|
+
], 2)) : C("", !0),
|
|
159
|
+
a.$slots.actions ? (b(), w("div", Rn, [
|
|
160
160
|
T(a.$slots, "actions", {}, void 0, !0)
|
|
161
|
-
])) :
|
|
161
|
+
])) : C("", !0)
|
|
162
162
|
])
|
|
163
163
|
]),
|
|
164
164
|
key: "1"
|
|
@@ -166,40 +166,40 @@ const $n = /* @__PURE__ */ ne({
|
|
|
166
166
|
]), 1024);
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
}), Wi = /* @__PURE__ */
|
|
169
|
+
}), Wi = /* @__PURE__ */ ie(Kn, [["__scopeId", "data-v-f5864a9c"]]), Zn = {}, Hn = {
|
|
170
170
|
fill: "none",
|
|
171
171
|
height: "130",
|
|
172
172
|
width: "130",
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg"
|
|
174
174
|
};
|
|
175
175
|
function zn(n, t) {
|
|
176
|
-
return
|
|
176
|
+
return b(), w("svg", Hn, t[0] || (t[0] = [
|
|
177
177
|
mn('<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)
|
|
178
178
|
]));
|
|
179
179
|
}
|
|
180
|
-
const Gn = /* @__PURE__ */
|
|
180
|
+
const Gn = /* @__PURE__ */ ie(Zn, [["render", zn]]), Un = { class: "kong-ui-app-error" }, Wn = { class: "banana-icon" }, Vn = { class: "kong-ui-app-error-content" }, qn = /* @__PURE__ */ re({
|
|
181
181
|
__name: "AppError",
|
|
182
182
|
setup(n) {
|
|
183
|
-
return (t, r) => (
|
|
184
|
-
|
|
183
|
+
return (t, r) => (b(), w("section", Un, [
|
|
184
|
+
O("div", Wn, [
|
|
185
185
|
xe(Gn)
|
|
186
186
|
]),
|
|
187
|
-
|
|
187
|
+
O("div", Vn, [
|
|
188
188
|
T(t.$slots, "default", {}, () => [
|
|
189
|
-
r[0] || (r[0] =
|
|
190
|
-
r[1] || (r[1] =
|
|
189
|
+
r[0] || (r[0] = O("h2", null, "An unexpected error has occurred", -1)),
|
|
190
|
+
r[1] || (r[1] = O("p", null, [
|
|
191
191
|
Re("Go back to the previous page or "),
|
|
192
|
-
|
|
192
|
+
O("a", { href: "/" }, "return home"),
|
|
193
193
|
Re(".")
|
|
194
194
|
], -1))
|
|
195
195
|
], !0)
|
|
196
196
|
])
|
|
197
197
|
]));
|
|
198
198
|
}
|
|
199
|
-
}), Vi = /* @__PURE__ */
|
|
199
|
+
}), Vi = /* @__PURE__ */ ie(qn, [["__scopeId", "data-v-b6d8dc55"]]), Xn = { class: "kong-ui-app-navbar" }, Yn = { class: "header-content" }, Jn = { class: "mobile-header-left" }, Qn = {
|
|
200
200
|
key: 0,
|
|
201
201
|
class: "app-navbar-logo"
|
|
202
|
-
}, er = { class: "navbar-content" }, tr = { class: "navbar-content-left" }, ar = { class: "navbar-content-center" }, nr = { class: "navbar-content-right" }, rr = /* @__PURE__ */
|
|
202
|
+
}, er = { class: "navbar-content" }, tr = { class: "navbar-content-left" }, ar = { class: "navbar-content-center" }, nr = { class: "navbar-content-right" }, rr = /* @__PURE__ */ re({
|
|
203
203
|
__name: "AppNavbar",
|
|
204
204
|
props: {
|
|
205
205
|
topOffset: {
|
|
@@ -229,38 +229,38 @@ const Gn = /* @__PURE__ */ re(Zn, [["render", zn]]), Un = { class: "kong-ui-app-
|
|
|
229
229
|
width: "0"
|
|
230
230
|
});
|
|
231
231
|
Qe(() => {
|
|
232
|
-
var o,
|
|
233
|
-
(
|
|
232
|
+
var o, v;
|
|
233
|
+
(v = (o = document == null ? void 0 : document.querySelector(".kong-ui-app-navbar .app-navbar-logo")) == null ? void 0 : o.children) != null && v.length ? (s.marginRight = "32px", s.width = "calc(240px - 32px)") : (s.marginRight = "0", s.width = "0");
|
|
234
234
|
});
|
|
235
235
|
const u = _(() => ({
|
|
236
236
|
top: t.topOffset ? `${t.topOffset}px` : "0",
|
|
237
237
|
left: t.leftOffset ? `${t.leftOffset}px` : "0",
|
|
238
238
|
zIndex: t.zIndex
|
|
239
239
|
}));
|
|
240
|
-
return (o,
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
return (o, v) => (b(), w("header", Xn, [
|
|
241
|
+
O("div", Yn, [
|
|
242
|
+
O("div", Jn, [
|
|
243
243
|
T(o.$slots, "mobile-sidebar-toggle"),
|
|
244
244
|
T(o.$slots, "mobile-logo")
|
|
245
245
|
]),
|
|
246
|
-
a.value ? (
|
|
246
|
+
a.value ? (b(), w("div", Qn, [
|
|
247
247
|
T(o.$slots, "logo")
|
|
248
|
-
])) :
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
])) : C("", !0),
|
|
249
|
+
O("div", er, [
|
|
250
|
+
O("div", tr, [
|
|
251
251
|
T(o.$slots, "left")
|
|
252
252
|
]),
|
|
253
|
-
|
|
253
|
+
O("div", ar, [
|
|
254
254
|
T(o.$slots, "center")
|
|
255
255
|
]),
|
|
256
|
-
|
|
256
|
+
O("div", nr, [
|
|
257
257
|
T(o.$slots, "right")
|
|
258
258
|
])
|
|
259
259
|
])
|
|
260
260
|
])
|
|
261
261
|
]));
|
|
262
262
|
}
|
|
263
|
-
}), ir = /* @__PURE__ */
|
|
263
|
+
}), ir = /* @__PURE__ */ ie(rr, [["__scopeId", "data-v-2f6fc50f"]]), or = "#ffffff", sr = "#000933", lr = "#000933", cr = "#ffffff", ur = "0px", dr = "4px", fr = "16px", vr = "#bee2ff", br = ["title"], dt = 99, pr = /* @__PURE__ */ re({
|
|
264
264
|
__name: "ItemBadge",
|
|
265
265
|
props: {
|
|
266
266
|
count: {
|
|
@@ -271,19 +271,19 @@ const Gn = /* @__PURE__ */ re(Zn, [["render", zn]]), Un = { class: "kong-ui-app-
|
|
|
271
271
|
},
|
|
272
272
|
setup(n) {
|
|
273
273
|
const t = n, r = _(() => t.count ? t.count > dt ? `${dt}+` : t.count.toString() : "");
|
|
274
|
-
return (a, s) => r.value ? (
|
|
274
|
+
return (a, s) => r.value ? (b(), w("div", {
|
|
275
275
|
key: 0,
|
|
276
276
|
class: "item-badge",
|
|
277
277
|
title: (n.count || 0) > dt ? String(n.count) : void 0
|
|
278
|
-
},
|
|
278
|
+
}, Y(r.value), 9, br)) : C("", !0);
|
|
279
279
|
}
|
|
280
|
-
}), hr = /* @__PURE__ */
|
|
280
|
+
}), hr = /* @__PURE__ */ ie(pr, [["__scopeId", "data-v-afb0d903"]]), mr = ["data-testid"], gr = ["aria-controls", "aria-current", "aria-expanded", "href", "target", "onClick", "onKeypress"], yr = {
|
|
281
281
|
key: 0,
|
|
282
282
|
class: "sidebar-item-icon"
|
|
283
283
|
}, wr = { class: "sidebar-item-name-container" }, kr = { class: "sidebar-item-name has-tooltip" }, _r = {
|
|
284
284
|
key: 2,
|
|
285
285
|
class: "sidebar-item-label truncate-text truncate-18"
|
|
286
|
-
}, Tr = ["id"], Sr = /* @__PURE__ */
|
|
286
|
+
}, Tr = ["id"], Sr = /* @__PURE__ */ re({
|
|
287
287
|
__name: "SidebarItem",
|
|
288
288
|
props: {
|
|
289
289
|
item: {
|
|
@@ -298,94 +298,94 @@ const Gn = /* @__PURE__ */ re(Zn, [["render", zn]]), Un = { class: "kong-ui-app-
|
|
|
298
298
|
},
|
|
299
299
|
emits: ["click"],
|
|
300
300
|
setup(n, { emit: t }) {
|
|
301
|
-
const r = t, a = n, s = _(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), u = _(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), o = _(() => a.subnavItem && a.item.badgeCount !== void 0 && a.item.badgeCount !== 0),
|
|
302
|
-
r("click",
|
|
303
|
-
},
|
|
304
|
-
|
|
301
|
+
const r = t, a = n, s = _(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), u = _(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), o = _(() => a.subnavItem && a.item.badgeCount !== void 0 && a.item.badgeCount !== 0), v = (E) => {
|
|
302
|
+
r("click", E);
|
|
303
|
+
}, g = (E, x, R) => {
|
|
304
|
+
v(x), typeof R == "function" && (E.preventDefault(), R());
|
|
305
305
|
};
|
|
306
|
-
return (
|
|
306
|
+
return (E, x) => {
|
|
307
307
|
var j;
|
|
308
|
-
const
|
|
309
|
-
return
|
|
310
|
-
class:
|
|
308
|
+
const R = ve("KTooltip"), M = ve("SidebarItem", !0);
|
|
309
|
+
return b(), w("li", {
|
|
310
|
+
class: oe([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
311
311
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
312
312
|
}, [
|
|
313
|
-
(
|
|
313
|
+
(b(), K($e(s.value ? "div" : "router-link"), {
|
|
314
314
|
custom: s.value ? void 0 : !0,
|
|
315
315
|
to: !s.value && !u.value ? n.item.to : void 0
|
|
316
316
|
}, {
|
|
317
|
-
default:
|
|
318
|
-
var
|
|
317
|
+
default: B((S) => {
|
|
318
|
+
var W, V;
|
|
319
319
|
return [
|
|
320
|
-
|
|
321
|
-
"aria-controls": (
|
|
320
|
+
O("a", {
|
|
321
|
+
"aria-controls": (W = n.item.items) != null && W.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
322
322
|
"aria-current": n.item.active ? "page" : void 0,
|
|
323
|
-
"aria-expanded": (
|
|
324
|
-
class:
|
|
323
|
+
"aria-expanded": (V = n.item.items) != null && V.length && n.item.expanded ? !0 : void 0,
|
|
324
|
+
class: oe(["sidebar-item-link", { "sidebar-item-external-link": u.value, "router-link": !s.value }]),
|
|
325
325
|
href: s.value ? String(n.item.to || "#") : S == null ? void 0 : S.href,
|
|
326
326
|
target: u.value ? "_blank" : void 0,
|
|
327
|
-
onClick: (
|
|
328
|
-
onKeypress: gn((
|
|
327
|
+
onClick: (L) => g(L, n.item, S == null ? void 0 : S.navigate),
|
|
328
|
+
onKeypress: gn((L) => g(L, n.item, S == null ? void 0 : S.navigate), ["enter"])
|
|
329
329
|
}, [
|
|
330
|
-
|
|
331
|
-
class:
|
|
330
|
+
O("div", {
|
|
331
|
+
class: oe(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": o.value }])
|
|
332
332
|
}, [
|
|
333
|
-
|
|
334
|
-
n.subnavItem ?
|
|
335
|
-
])) :
|
|
336
|
-
|
|
337
|
-
(n.subnavItem && !o.value ? n.item.name.length < 25 : n.item.name.length < 18) ? (
|
|
333
|
+
E.$slots[`sidebar-icon-${n.item.key}`] ? (b(), w("div", yr, [
|
|
334
|
+
n.subnavItem ? C("", !0) : T(E.$slots, `sidebar-icon-${n.item.key}`, { key: 0 }, void 0, !0)
|
|
335
|
+
])) : C("", !0),
|
|
336
|
+
O("div", wr, [
|
|
337
|
+
(n.subnavItem && !o.value ? n.item.name.length < 25 : n.item.name.length < 18) ? (b(), w("div", {
|
|
338
338
|
key: 0,
|
|
339
|
-
class:
|
|
340
|
-
},
|
|
339
|
+
class: oe(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
340
|
+
}, Y(n.item.name), 3)) : (b(), K(R, {
|
|
341
341
|
key: 1,
|
|
342
342
|
class: "sidebar-item-tooltip",
|
|
343
343
|
placement: "right",
|
|
344
344
|
"position-fixed": "",
|
|
345
345
|
text: n.item.name
|
|
346
346
|
}, {
|
|
347
|
-
default:
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
class:
|
|
351
|
-
},
|
|
347
|
+
default: B(() => [
|
|
348
|
+
O("div", kr, [
|
|
349
|
+
O("span", {
|
|
350
|
+
class: oe(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": o.value }]])
|
|
351
|
+
}, Y(n.item.name), 3)
|
|
352
352
|
])
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
355
|
}, 8, ["text"])),
|
|
356
|
-
n.item.label && n.item.expanded ? (
|
|
356
|
+
n.item.label && n.item.expanded ? (b(), w("div", _r, Y(n.item.label), 1)) : C("", !0)
|
|
357
357
|
]),
|
|
358
|
-
o.value ? (
|
|
358
|
+
o.value ? (b(), K(hr, {
|
|
359
359
|
key: 1,
|
|
360
360
|
count: n.item.badgeCount
|
|
361
|
-
}, null, 8, ["count"])) :
|
|
361
|
+
}, null, 8, ["count"])) : C("", !0)
|
|
362
362
|
], 2)
|
|
363
363
|
], 42, gr)
|
|
364
364
|
];
|
|
365
365
|
}),
|
|
366
366
|
_: 3
|
|
367
367
|
}, 8, ["custom", "to"])),
|
|
368
|
-
(j = n.item.items) != null && j.length && n.item.expanded ? (
|
|
368
|
+
(j = n.item.items) != null && j.length && n.item.expanded ? (b(), w("ul", {
|
|
369
369
|
key: 0,
|
|
370
370
|
id: `subnav-${n.item.key}`,
|
|
371
371
|
class: "level-secondary"
|
|
372
372
|
}, [
|
|
373
|
-
(
|
|
373
|
+
(b(!0), w(Oe, null, we(n.item.items, (S) => (b(), K(M, {
|
|
374
374
|
key: S.name,
|
|
375
375
|
item: S,
|
|
376
376
|
"subnav-item": !0,
|
|
377
|
-
onClick: (
|
|
377
|
+
onClick: (W) => v(S)
|
|
378
378
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
379
|
-
], 8, Tr)) :
|
|
379
|
+
], 8, Tr)) : C("", !0)
|
|
380
380
|
], 10, mr);
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
}), jt = /* @__PURE__ */
|
|
383
|
+
}), jt = /* @__PURE__ */ ie(Sr, [["__scopeId", "data-v-d0b5bc3d"]]);
|
|
384
384
|
/*!
|
|
385
385
|
* tabbable 6.2.0
|
|
386
386
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
387
387
|
*/
|
|
388
|
-
var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], We = /* @__PURE__ */ Vt.join(","), qt = typeof Element > "u",
|
|
388
|
+
var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], We = /* @__PURE__ */ Vt.join(","), qt = typeof Element > "u", ke = qt ? function() {
|
|
389
389
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ve = !qt && Element.prototype.getRootNode ? function(n) {
|
|
390
390
|
var t;
|
|
391
391
|
return n == null || (t = n.getRootNode) === null || t === void 0 ? void 0 : t.call(n);
|
|
@@ -396,31 +396,31 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
396
396
|
r === void 0 && (r = !0);
|
|
397
397
|
var s = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "inert"), u = s === "" || s === "true", o = u || r && t && n(t.parentNode);
|
|
398
398
|
return o;
|
|
399
|
-
},
|
|
399
|
+
}, Cr = function(t) {
|
|
400
400
|
var r, a = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
401
401
|
return a === "" || a === "true";
|
|
402
402
|
}, Xt = function(t, r, a) {
|
|
403
403
|
if (qe(t))
|
|
404
404
|
return [];
|
|
405
405
|
var s = Array.prototype.slice.apply(t.querySelectorAll(We));
|
|
406
|
-
return r &&
|
|
406
|
+
return r && ke.call(t, We) && s.unshift(t), s = s.filter(a), s;
|
|
407
407
|
}, Yt = function n(t, r, a) {
|
|
408
408
|
for (var s = [], u = Array.from(t); u.length; ) {
|
|
409
409
|
var o = u.shift();
|
|
410
410
|
if (!qe(o, !1))
|
|
411
411
|
if (o.tagName === "SLOT") {
|
|
412
|
-
var
|
|
413
|
-
a.flatten ? s.push.apply(s,
|
|
412
|
+
var v = o.assignedElements(), g = v.length ? v : o.children, E = n(g, !0, a);
|
|
413
|
+
a.flatten ? s.push.apply(s, E) : s.push({
|
|
414
414
|
scopeParent: o,
|
|
415
|
-
candidates:
|
|
415
|
+
candidates: E
|
|
416
416
|
});
|
|
417
417
|
} else {
|
|
418
|
-
var
|
|
419
|
-
|
|
420
|
-
var
|
|
421
|
-
typeof a.getShadowRoot == "function" && a.getShadowRoot(o),
|
|
422
|
-
if (
|
|
423
|
-
var j = n(
|
|
418
|
+
var x = ke.call(o, We);
|
|
419
|
+
x && a.filter(o) && (r || !t.includes(o)) && s.push(o);
|
|
420
|
+
var R = o.shadowRoot || // check for an undisclosed shadow
|
|
421
|
+
typeof a.getShadowRoot == "function" && a.getShadowRoot(o), M = !qe(R, !1) && (!a.shadowRootFilter || a.shadowRootFilter(o));
|
|
422
|
+
if (R && M) {
|
|
423
|
+
var j = n(R === !0 ? o.children : R.children, !0, a);
|
|
424
424
|
a.flatten ? s.push.apply(s, j) : s.push({
|
|
425
425
|
scopeParent: o,
|
|
426
426
|
candidates: j
|
|
@@ -432,12 +432,12 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
432
432
|
return s;
|
|
433
433
|
}, Jt = function(t) {
|
|
434
434
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
435
|
-
},
|
|
435
|
+
}, ye = function(t) {
|
|
436
436
|
if (!t)
|
|
437
437
|
throw new Error("No node provided");
|
|
438
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
439
|
-
},
|
|
440
|
-
var a =
|
|
438
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Cr(t)) && !Jt(t) ? 0 : t.tabIndex;
|
|
439
|
+
}, Ir = function(t, r) {
|
|
440
|
+
var a = ye(t);
|
|
441
441
|
return a < 0 && r && !Jt(t) ? 0 : a;
|
|
442
442
|
}, Or = function(t, r) {
|
|
443
443
|
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
@@ -457,8 +457,8 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
457
457
|
}, Fr = function(t) {
|
|
458
458
|
if (!t.name)
|
|
459
459
|
return !0;
|
|
460
|
-
var r = t.form || Ve(t), a = function(
|
|
461
|
-
return r.querySelectorAll('input[type="radio"][name="' +
|
|
460
|
+
var r = t.form || Ve(t), a = function(v) {
|
|
461
|
+
return r.querySelectorAll('input[type="radio"][name="' + v + '"]');
|
|
462
462
|
}, s;
|
|
463
463
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
464
464
|
s = a(window.CSS.escape(t.name));
|
|
@@ -477,10 +477,10 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
477
477
|
}, Rr = function(t) {
|
|
478
478
|
var r, a = t && Ve(t), s = (r = a) === null || r === void 0 ? void 0 : r.host, u = !1;
|
|
479
479
|
if (a && a !== t) {
|
|
480
|
-
var o,
|
|
481
|
-
for (u = !!((o = s) !== null && o !== void 0 && (
|
|
482
|
-
var
|
|
483
|
-
a = Ve(s), s = (
|
|
480
|
+
var o, v, g;
|
|
481
|
+
for (u = !!((o = s) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(s) || t != null && (g = t.ownerDocument) !== null && g !== void 0 && g.contains(t)); !u && s; ) {
|
|
482
|
+
var E, x, R;
|
|
483
|
+
a = Ve(s), s = (E = a) === null || E === void 0 ? void 0 : E.host, u = !!((x = s) !== null && x !== void 0 && (R = x.ownerDocument) !== null && R !== void 0 && R.contains(s));
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
return u;
|
|
@@ -491,18 +491,18 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
491
491
|
var a = r.displayCheck, s = r.getShadowRoot;
|
|
492
492
|
if (getComputedStyle(t).visibility === "hidden")
|
|
493
493
|
return !0;
|
|
494
|
-
var u =
|
|
495
|
-
if (
|
|
494
|
+
var u = ke.call(t, "details>summary:first-of-type"), o = u ? t.parentElement : t;
|
|
495
|
+
if (ke.call(o, "details:not([open]) *"))
|
|
496
496
|
return !0;
|
|
497
497
|
if (!a || a === "full" || a === "legacy-full") {
|
|
498
498
|
if (typeof s == "function") {
|
|
499
|
-
for (var
|
|
500
|
-
var
|
|
501
|
-
if (
|
|
499
|
+
for (var v = t; t; ) {
|
|
500
|
+
var g = t.parentElement, E = Ve(t);
|
|
501
|
+
if (g && !g.shadowRoot && s(g) === !0)
|
|
502
502
|
return Kt(t);
|
|
503
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
503
|
+
t.assignedSlot ? t = t.assignedSlot : !g && E !== t.ownerDocument ? t = E.host : t = g;
|
|
504
504
|
}
|
|
505
|
-
t =
|
|
505
|
+
t = v;
|
|
506
506
|
}
|
|
507
507
|
if (Rr(t))
|
|
508
508
|
return !t.getClientRects().length;
|
|
@@ -518,7 +518,7 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
518
518
|
for (var a = 0; a < r.children.length; a++) {
|
|
519
519
|
var s = r.children.item(a);
|
|
520
520
|
if (s.tagName === "LEGEND")
|
|
521
|
-
return
|
|
521
|
+
return ke.call(r, "fieldset[disabled] *") ? !0 : !s.contains(t);
|
|
522
522
|
}
|
|
523
523
|
return !0;
|
|
524
524
|
}
|
|
@@ -532,20 +532,20 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
532
532
|
qe(r) || $r(r) || xr(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
533
533
|
Er(r) || Br(r));
|
|
534
534
|
}, vt = function(t, r) {
|
|
535
|
-
return !(Dr(r) ||
|
|
535
|
+
return !(Dr(r) || ye(r) < 0 || !Xe(t, r));
|
|
536
536
|
}, Lr = function(t) {
|
|
537
537
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
538
538
|
return !!(isNaN(r) || r >= 0);
|
|
539
539
|
}, Mr = function n(t) {
|
|
540
540
|
var r = [], a = [];
|
|
541
541
|
return t.forEach(function(s, u) {
|
|
542
|
-
var o = !!s.scopeParent,
|
|
543
|
-
|
|
542
|
+
var o = !!s.scopeParent, v = o ? s.scopeParent : s, g = Ir(v, o), E = o ? n(s.candidates) : v;
|
|
543
|
+
g === 0 ? o ? r.push.apply(r, E) : r.push(v) : a.push({
|
|
544
544
|
documentOrder: u,
|
|
545
|
-
tabIndex:
|
|
545
|
+
tabIndex: g,
|
|
546
546
|
item: s,
|
|
547
547
|
isScope: o,
|
|
548
|
-
content:
|
|
548
|
+
content: E
|
|
549
549
|
});
|
|
550
550
|
}), a.sort(Or).reduce(function(s, u) {
|
|
551
551
|
return u.isScope ? s.push.apply(s, u.content) : s.push(u.content), s;
|
|
@@ -570,11 +570,11 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
570
570
|
}, Ie = function(t, r) {
|
|
571
571
|
if (r = r || {}, !t)
|
|
572
572
|
throw new Error("No node provided");
|
|
573
|
-
return
|
|
573
|
+
return ke.call(t, We) === !1 ? !1 : vt(r, t);
|
|
574
574
|
}, Kr = /* @__PURE__ */ Vt.concat("iframe").join(","), ft = function(t, r) {
|
|
575
575
|
if (r = r || {}, !t)
|
|
576
576
|
throw new Error("No node provided");
|
|
577
|
-
return
|
|
577
|
+
return ke.call(t, Kr) === !1 ? !1 : Xe(r, t);
|
|
578
578
|
};
|
|
579
579
|
/*!
|
|
580
580
|
* focus-trap 7.6.5
|
|
@@ -723,74 +723,74 @@ var zt = {
|
|
|
723
723
|
delayInitialFocusTimer: void 0,
|
|
724
724
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
725
725
|
recentNavEvent: void 0
|
|
726
|
-
},
|
|
727
|
-
return c && c[
|
|
728
|
-
},
|
|
729
|
-
var
|
|
730
|
-
return o.containerGroups.findIndex(function(
|
|
731
|
-
var
|
|
732
|
-
return
|
|
726
|
+
}, v, g = function(c, f, m) {
|
|
727
|
+
return c && c[f] !== void 0 ? c[f] : u[m || f];
|
|
728
|
+
}, E = function(c, f) {
|
|
729
|
+
var m = typeof (f == null ? void 0 : f.composedPath) == "function" ? f.composedPath() : void 0;
|
|
730
|
+
return o.containerGroups.findIndex(function(A) {
|
|
731
|
+
var F = A.container, D = A.tabbableNodes;
|
|
732
|
+
return F.contains(c) || // fall back to explicit tabbable search which will take into consideration any
|
|
733
733
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
734
734
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
735
735
|
// look inside web components even if open)
|
|
736
|
-
(
|
|
737
|
-
return
|
|
736
|
+
(m == null ? void 0 : m.includes(F)) || D.find(function(I) {
|
|
737
|
+
return I === c;
|
|
738
738
|
});
|
|
739
739
|
});
|
|
740
|
-
},
|
|
741
|
-
var
|
|
742
|
-
if (typeof
|
|
743
|
-
if (
|
|
744
|
-
return
|
|
740
|
+
}, x = function(c) {
|
|
741
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = f.hasFallback, A = m === void 0 ? !1 : m, F = f.params, D = F === void 0 ? [] : F, I = u[c];
|
|
742
|
+
if (typeof I == "function" && (I = I.apply(void 0, Ur(D))), I === !0 && (I = void 0), !I) {
|
|
743
|
+
if (I === void 0 || I === !1)
|
|
744
|
+
return I;
|
|
745
745
|
throw new Error("`".concat(c, "` was specified but was not a node, or did not return a node"));
|
|
746
746
|
}
|
|
747
|
-
var
|
|
748
|
-
if (typeof
|
|
747
|
+
var d = I;
|
|
748
|
+
if (typeof I == "string") {
|
|
749
749
|
try {
|
|
750
|
-
|
|
750
|
+
d = a.querySelector(I);
|
|
751
751
|
} catch (y) {
|
|
752
752
|
throw new Error("`".concat(c, '` appears to be an invalid selector; error="').concat(y.message, '"'));
|
|
753
753
|
}
|
|
754
|
-
if (!
|
|
754
|
+
if (!d && !A)
|
|
755
755
|
throw new Error("`".concat(c, "` as selector refers to no known node"));
|
|
756
756
|
}
|
|
757
|
-
return
|
|
758
|
-
},
|
|
759
|
-
var c =
|
|
757
|
+
return d;
|
|
758
|
+
}, R = function() {
|
|
759
|
+
var c = x("initialFocus", {
|
|
760
760
|
hasFallback: !0
|
|
761
761
|
});
|
|
762
762
|
if (c === !1)
|
|
763
763
|
return !1;
|
|
764
764
|
if (c === void 0 || c && !ft(c, u.tabbableOptions))
|
|
765
|
-
if (
|
|
765
|
+
if (E(a.activeElement) >= 0)
|
|
766
766
|
c = a.activeElement;
|
|
767
767
|
else {
|
|
768
|
-
var
|
|
769
|
-
c =
|
|
768
|
+
var f = o.tabbableGroups[0], m = f && f.firstTabbableNode;
|
|
769
|
+
c = m || x("fallbackFocus");
|
|
770
770
|
}
|
|
771
|
-
else c === null && (c =
|
|
771
|
+
else c === null && (c = x("fallbackFocus"));
|
|
772
772
|
if (!c)
|
|
773
773
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
774
774
|
return c;
|
|
775
|
-
},
|
|
775
|
+
}, M = function() {
|
|
776
776
|
if (o.containerGroups = o.containers.map(function(c) {
|
|
777
|
-
var
|
|
777
|
+
var f = Pr(c, u.tabbableOptions), m = jr(c, u.tabbableOptions), A = f.length > 0 ? f[0] : void 0, F = f.length > 0 ? f[f.length - 1] : void 0, D = m.find(function(y) {
|
|
778
778
|
return Ie(y);
|
|
779
|
-
}),
|
|
779
|
+
}), I = m.slice().reverse().find(function(y) {
|
|
780
780
|
return Ie(y);
|
|
781
|
-
}),
|
|
782
|
-
return
|
|
781
|
+
}), d = !!f.find(function(y) {
|
|
782
|
+
return ye(y) > 0;
|
|
783
783
|
});
|
|
784
784
|
return {
|
|
785
785
|
container: c,
|
|
786
|
-
tabbableNodes:
|
|
787
|
-
focusableNodes:
|
|
786
|
+
tabbableNodes: f,
|
|
787
|
+
focusableNodes: m,
|
|
788
788
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
789
|
-
posTabIndexesFound:
|
|
789
|
+
posTabIndexesFound: d,
|
|
790
790
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
791
|
-
firstTabbableNode:
|
|
791
|
+
firstTabbableNode: A,
|
|
792
792
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
793
|
-
lastTabbableNode:
|
|
793
|
+
lastTabbableNode: F,
|
|
794
794
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
795
795
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
796
796
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -801,7 +801,7 @@ var zt = {
|
|
|
801
801
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
802
802
|
firstDomTabbableNode: D,
|
|
803
803
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
804
|
-
lastDomTabbableNode:
|
|
804
|
+
lastDomTabbableNode: I,
|
|
805
805
|
/**
|
|
806
806
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
807
807
|
* in this container, if any.
|
|
@@ -810,77 +810,77 @@ var zt = {
|
|
|
810
810
|
* in reverse.
|
|
811
811
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
812
812
|
*/
|
|
813
|
-
nextTabbableNode: function(
|
|
814
|
-
var
|
|
815
|
-
return
|
|
816
|
-
return Ie(
|
|
817
|
-
}) :
|
|
818
|
-
return Ie(
|
|
819
|
-
}) :
|
|
813
|
+
nextTabbableNode: function(k) {
|
|
814
|
+
var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, H = f.indexOf(k);
|
|
815
|
+
return H < 0 ? h ? m.slice(m.indexOf(k) + 1).find(function(P) {
|
|
816
|
+
return Ie(P);
|
|
817
|
+
}) : m.slice(0, m.indexOf(k)).reverse().find(function(P) {
|
|
818
|
+
return Ie(P);
|
|
819
|
+
}) : f[H + (h ? 1 : -1)];
|
|
820
820
|
}
|
|
821
821
|
};
|
|
822
822
|
}), o.tabbableGroups = o.containerGroups.filter(function(c) {
|
|
823
823
|
return c.tabbableNodes.length > 0;
|
|
824
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
824
|
+
}), o.tabbableGroups.length <= 0 && !x("fallbackFocus"))
|
|
825
825
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
826
826
|
if (o.containerGroups.find(function(c) {
|
|
827
827
|
return c.posTabIndexesFound;
|
|
828
828
|
}) && o.containerGroups.length > 1)
|
|
829
829
|
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.");
|
|
830
830
|
}, j = function(c) {
|
|
831
|
-
var
|
|
832
|
-
if (
|
|
833
|
-
return
|
|
831
|
+
var f = c.activeElement;
|
|
832
|
+
if (f)
|
|
833
|
+
return f.shadowRoot && f.shadowRoot.activeElement !== null ? j(f.shadowRoot) : f;
|
|
834
834
|
}, S = function(c) {
|
|
835
835
|
if (c !== !1 && c !== j(document)) {
|
|
836
836
|
if (!c || !c.focus) {
|
|
837
|
-
S(
|
|
837
|
+
S(R());
|
|
838
838
|
return;
|
|
839
839
|
}
|
|
840
840
|
c.focus({
|
|
841
841
|
preventScroll: !!u.preventScroll
|
|
842
842
|
}), o.mostRecentlyFocusedNode = c, Xr(c) && c.select();
|
|
843
843
|
}
|
|
844
|
-
},
|
|
845
|
-
var
|
|
844
|
+
}, W = function(c) {
|
|
845
|
+
var f = x("setReturnFocus", {
|
|
846
846
|
params: [c]
|
|
847
847
|
});
|
|
848
|
-
return
|
|
849
|
-
},
|
|
850
|
-
var
|
|
851
|
-
|
|
848
|
+
return f || (f === !1 ? !1 : c);
|
|
849
|
+
}, V = function(c) {
|
|
850
|
+
var f = c.target, m = c.event, A = c.isBackward, F = A === void 0 ? !1 : A;
|
|
851
|
+
f = f || He(m), M();
|
|
852
852
|
var D = null;
|
|
853
853
|
if (o.tabbableGroups.length > 0) {
|
|
854
|
-
var
|
|
855
|
-
if (
|
|
856
|
-
|
|
857
|
-
else if (
|
|
858
|
-
var y = o.tabbableGroups.findIndex(function(
|
|
859
|
-
var Ee =
|
|
860
|
-
return
|
|
854
|
+
var I = E(f, m), d = I >= 0 ? o.containerGroups[I] : void 0;
|
|
855
|
+
if (I < 0)
|
|
856
|
+
F ? D = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : D = o.tabbableGroups[0].firstTabbableNode;
|
|
857
|
+
else if (F) {
|
|
858
|
+
var y = o.tabbableGroups.findIndex(function(le) {
|
|
859
|
+
var Ee = le.firstTabbableNode;
|
|
860
|
+
return f === Ee;
|
|
861
861
|
});
|
|
862
|
-
if (y < 0 && (
|
|
863
|
-
var
|
|
864
|
-
D =
|
|
865
|
-
} else De(
|
|
862
|
+
if (y < 0 && (d.container === f || ft(f, u.tabbableOptions) && !Ie(f, u.tabbableOptions) && !d.nextTabbableNode(f, !1)) && (y = I), y >= 0) {
|
|
863
|
+
var k = y === 0 ? o.tabbableGroups.length - 1 : y - 1, h = o.tabbableGroups[k];
|
|
864
|
+
D = ye(f) >= 0 ? h.lastTabbableNode : h.lastDomTabbableNode;
|
|
865
|
+
} else De(m) || (D = d.nextTabbableNode(f, !1));
|
|
866
866
|
} else {
|
|
867
|
-
var
|
|
868
|
-
var Ee =
|
|
869
|
-
return
|
|
867
|
+
var H = o.tabbableGroups.findIndex(function(le) {
|
|
868
|
+
var Ee = le.lastTabbableNode;
|
|
869
|
+
return f === Ee;
|
|
870
870
|
});
|
|
871
|
-
if (
|
|
872
|
-
var
|
|
873
|
-
D =
|
|
874
|
-
} else De(
|
|
871
|
+
if (H < 0 && (d.container === f || ft(f, u.tabbableOptions) && !Ie(f, u.tabbableOptions) && !d.nextTabbableNode(f)) && (H = I), H >= 0) {
|
|
872
|
+
var P = H === o.tabbableGroups.length - 1 ? 0 : H + 1, X = o.tabbableGroups[P];
|
|
873
|
+
D = ye(f) >= 0 ? X.firstTabbableNode : X.firstDomTabbableNode;
|
|
874
|
+
} else De(m) || (D = d.nextTabbableNode(f));
|
|
875
875
|
}
|
|
876
876
|
} else
|
|
877
|
-
D =
|
|
877
|
+
D = x("fallbackFocus");
|
|
878
878
|
return D;
|
|
879
|
-
},
|
|
880
|
-
var
|
|
881
|
-
if (!(
|
|
879
|
+
}, L = function(c) {
|
|
880
|
+
var f = He(c);
|
|
881
|
+
if (!(E(f, c) >= 0)) {
|
|
882
882
|
if (Ne(u.clickOutsideDeactivates, c)) {
|
|
883
|
-
|
|
883
|
+
v.deactivate({
|
|
884
884
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
885
885
|
// which will result in the outside click setting focus to the node
|
|
886
886
|
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
@@ -893,90 +893,90 @@ var zt = {
|
|
|
893
893
|
}
|
|
894
894
|
Ne(u.allowOutsideClick, c) || c.preventDefault();
|
|
895
895
|
}
|
|
896
|
-
},
|
|
897
|
-
var
|
|
898
|
-
if (
|
|
899
|
-
|
|
896
|
+
}, se = function(c) {
|
|
897
|
+
var f = He(c), m = E(f, c) >= 0;
|
|
898
|
+
if (m || f instanceof Document)
|
|
899
|
+
m && (o.mostRecentlyFocusedNode = f);
|
|
900
900
|
else {
|
|
901
901
|
c.stopImmediatePropagation();
|
|
902
|
-
var
|
|
902
|
+
var A, F = !0;
|
|
903
903
|
if (o.mostRecentlyFocusedNode)
|
|
904
|
-
if (
|
|
905
|
-
var D =
|
|
906
|
-
if (
|
|
907
|
-
var
|
|
904
|
+
if (ye(o.mostRecentlyFocusedNode) > 0) {
|
|
905
|
+
var D = E(o.mostRecentlyFocusedNode), I = o.containerGroups[D].tabbableNodes;
|
|
906
|
+
if (I.length > 0) {
|
|
907
|
+
var d = I.findIndex(function(y) {
|
|
908
908
|
return y === o.mostRecentlyFocusedNode;
|
|
909
909
|
});
|
|
910
|
-
|
|
910
|
+
d >= 0 && (u.isKeyForward(o.recentNavEvent) ? d + 1 < I.length && (A = I[d + 1], F = !1) : d - 1 >= 0 && (A = I[d - 1], F = !1));
|
|
911
911
|
}
|
|
912
912
|
} else
|
|
913
913
|
o.containerGroups.some(function(y) {
|
|
914
|
-
return y.tabbableNodes.some(function(
|
|
915
|
-
return
|
|
914
|
+
return y.tabbableNodes.some(function(k) {
|
|
915
|
+
return ye(k) > 0;
|
|
916
916
|
});
|
|
917
|
-
}) || (
|
|
917
|
+
}) || (F = !1);
|
|
918
918
|
else
|
|
919
|
-
|
|
920
|
-
|
|
919
|
+
F = !1;
|
|
920
|
+
F && (A = V({
|
|
921
921
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
922
922
|
// outside the trap causing the focus escape we're trying to fix)
|
|
923
923
|
target: o.mostRecentlyFocusedNode,
|
|
924
924
|
isBackward: u.isKeyBackward(o.recentNavEvent)
|
|
925
|
-
})), S(
|
|
925
|
+
})), S(A || o.mostRecentlyFocusedNode || R());
|
|
926
926
|
}
|
|
927
927
|
o.recentNavEvent = void 0;
|
|
928
|
-
},
|
|
929
|
-
var
|
|
928
|
+
}, de = function(c) {
|
|
929
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
930
930
|
o.recentNavEvent = c;
|
|
931
|
-
var
|
|
931
|
+
var m = V({
|
|
932
932
|
event: c,
|
|
933
|
-
isBackward:
|
|
933
|
+
isBackward: f
|
|
934
934
|
});
|
|
935
|
-
|
|
935
|
+
m && (De(c) && c.preventDefault(), S(m));
|
|
936
|
+
}, q = function(c) {
|
|
937
|
+
(u.isKeyForward(c) || u.isKeyBackward(c)) && de(c, u.isKeyBackward(c));
|
|
938
|
+
}, ne = function(c) {
|
|
939
|
+
Yr(c) && Ne(u.escapeDeactivates, c) !== !1 && (c.preventDefault(), v.deactivate());
|
|
936
940
|
}, te = function(c) {
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
Yr(c) && Ne(u.escapeDeactivates, c) !== !1 && (c.preventDefault(), b.deactivate());
|
|
940
|
-
}, X = function(c) {
|
|
941
|
-
var d = He(c);
|
|
942
|
-
$(d, c) >= 0 || Ne(u.clickOutsideDeactivates, c) || Ne(u.allowOutsideClick, c) || (c.preventDefault(), c.stopImmediatePropagation());
|
|
941
|
+
var f = He(c);
|
|
942
|
+
E(f, c) >= 0 || Ne(u.clickOutsideDeactivates, c) || Ne(u.allowOutsideClick, c) || (c.preventDefault(), c.stopImmediatePropagation());
|
|
943
943
|
}, ae = function() {
|
|
944
944
|
if (o.active)
|
|
945
|
-
return zt.activateTrap(s,
|
|
946
|
-
S(
|
|
947
|
-
}) : S(
|
|
945
|
+
return zt.activateTrap(s, v), o.delayInitialFocusTimer = u.delayInitialFocus ? Gt(function() {
|
|
946
|
+
S(R());
|
|
947
|
+
}) : S(R()), a.addEventListener("focusin", se, !0), a.addEventListener("mousedown", L, {
|
|
948
948
|
capture: !0,
|
|
949
949
|
passive: !1
|
|
950
|
-
}), a.addEventListener("touchstart",
|
|
950
|
+
}), a.addEventListener("touchstart", L, {
|
|
951
951
|
capture: !0,
|
|
952
952
|
passive: !1
|
|
953
|
-
}), a.addEventListener("click",
|
|
953
|
+
}), a.addEventListener("click", te, {
|
|
954
954
|
capture: !0,
|
|
955
955
|
passive: !1
|
|
956
|
-
}), a.addEventListener("keydown",
|
|
956
|
+
}), a.addEventListener("keydown", q, {
|
|
957
957
|
capture: !0,
|
|
958
958
|
passive: !1
|
|
959
|
-
}), a.addEventListener("keydown",
|
|
960
|
-
},
|
|
959
|
+
}), a.addEventListener("keydown", ne), v;
|
|
960
|
+
}, N = function() {
|
|
961
961
|
if (o.active)
|
|
962
|
-
return a.removeEventListener("focusin",
|
|
963
|
-
},
|
|
964
|
-
var
|
|
965
|
-
var
|
|
966
|
-
return
|
|
967
|
-
return
|
|
962
|
+
return a.removeEventListener("focusin", se, !0), a.removeEventListener("mousedown", L, !0), a.removeEventListener("touchstart", L, !0), a.removeEventListener("click", te, !0), a.removeEventListener("keydown", q, !0), a.removeEventListener("keydown", ne), v;
|
|
963
|
+
}, z = function(c) {
|
|
964
|
+
var f = c.some(function(m) {
|
|
965
|
+
var A = Array.from(m.removedNodes);
|
|
966
|
+
return A.some(function(F) {
|
|
967
|
+
return F === o.mostRecentlyFocusedNode;
|
|
968
968
|
});
|
|
969
969
|
});
|
|
970
|
-
|
|
971
|
-
},
|
|
972
|
-
|
|
973
|
-
|
|
970
|
+
f && S(R());
|
|
971
|
+
}, G = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(z) : void 0, Z = function() {
|
|
972
|
+
G && (G.disconnect(), o.active && !o.paused && o.containers.map(function(c) {
|
|
973
|
+
G.observe(c, {
|
|
974
974
|
subtree: !0,
|
|
975
975
|
childList: !0
|
|
976
976
|
});
|
|
977
977
|
}));
|
|
978
978
|
};
|
|
979
|
-
return
|
|
979
|
+
return v = {
|
|
980
980
|
get active() {
|
|
981
981
|
return o.active;
|
|
982
982
|
},
|
|
@@ -986,30 +986,30 @@ var zt = {
|
|
|
986
986
|
activate: function(c) {
|
|
987
987
|
if (o.active)
|
|
988
988
|
return this;
|
|
989
|
-
var
|
|
990
|
-
|
|
991
|
-
var
|
|
992
|
-
|
|
989
|
+
var f = g(c, "onActivate"), m = g(c, "onPostActivate"), A = g(c, "checkCanFocusTrap");
|
|
990
|
+
A || M(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = j(a), f == null || f();
|
|
991
|
+
var F = function() {
|
|
992
|
+
A && M(), ae(), Z(), m == null || m();
|
|
993
993
|
};
|
|
994
|
-
return
|
|
994
|
+
return A ? (A(o.containers.concat()).then(F, F), this) : (F(), this);
|
|
995
995
|
},
|
|
996
996
|
deactivate: function(c) {
|
|
997
997
|
if (!o.active)
|
|
998
998
|
return this;
|
|
999
|
-
var
|
|
999
|
+
var f = Ht({
|
|
1000
1000
|
onDeactivate: u.onDeactivate,
|
|
1001
1001
|
onPostDeactivate: u.onPostDeactivate,
|
|
1002
1002
|
checkCanReturnFocus: u.checkCanReturnFocus
|
|
1003
1003
|
}, c);
|
|
1004
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1007
|
-
var
|
|
1004
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, N(), o.active = !1, o.paused = !1, Z(), zt.deactivateTrap(s, v);
|
|
1005
|
+
var m = g(f, "onDeactivate"), A = g(f, "onPostDeactivate"), F = g(f, "checkCanReturnFocus"), D = g(f, "returnFocus", "returnFocusOnDeactivate");
|
|
1006
|
+
m == null || m();
|
|
1007
|
+
var I = function() {
|
|
1008
1008
|
Gt(function() {
|
|
1009
|
-
D && S(
|
|
1009
|
+
D && S(W(o.nodeFocusedBeforeActivation)), A == null || A();
|
|
1010
1010
|
});
|
|
1011
1011
|
};
|
|
1012
|
-
return D &&
|
|
1012
|
+
return D && F ? (F(W(o.nodeFocusedBeforeActivation)).then(I, I), this) : (I(), this);
|
|
1013
1013
|
},
|
|
1014
1014
|
pause: function(c) {
|
|
1015
1015
|
return o.active ? (o.manuallyPaused = !0, this._setPausedState(!0, c)) : this;
|
|
@@ -1018,32 +1018,32 @@ var zt = {
|
|
|
1018
1018
|
return o.active ? (o.manuallyPaused = !1, s[s.length - 1] !== this ? this : this._setPausedState(!1, c)) : this;
|
|
1019
1019
|
},
|
|
1020
1020
|
updateContainerElements: function(c) {
|
|
1021
|
-
var
|
|
1022
|
-
return o.containers =
|
|
1023
|
-
return typeof
|
|
1024
|
-
}), o.active &&
|
|
1021
|
+
var f = [].concat(c).filter(Boolean);
|
|
1022
|
+
return o.containers = f.map(function(m) {
|
|
1023
|
+
return typeof m == "string" ? a.querySelector(m) : m;
|
|
1024
|
+
}), o.active && M(), Z(), this;
|
|
1025
1025
|
}
|
|
1026
|
-
}, Object.defineProperties(
|
|
1026
|
+
}, Object.defineProperties(v, {
|
|
1027
1027
|
_isManuallyPaused: {
|
|
1028
1028
|
value: function() {
|
|
1029
1029
|
return o.manuallyPaused;
|
|
1030
1030
|
}
|
|
1031
1031
|
},
|
|
1032
1032
|
_setPausedState: {
|
|
1033
|
-
value: function(c,
|
|
1033
|
+
value: function(c, f) {
|
|
1034
1034
|
if (o.paused === c)
|
|
1035
1035
|
return this;
|
|
1036
1036
|
if (o.paused = c, c) {
|
|
1037
|
-
var
|
|
1038
|
-
|
|
1037
|
+
var m = g(f, "onPause"), A = g(f, "onPostPause");
|
|
1038
|
+
m == null || m(), N(), Z(), A == null || A();
|
|
1039
1039
|
} else {
|
|
1040
|
-
var
|
|
1041
|
-
|
|
1040
|
+
var F = g(f, "onUnpause"), D = g(f, "onPostUnpause");
|
|
1041
|
+
F == null || F(), M(), ae(), Z(), D == null || D();
|
|
1042
1042
|
}
|
|
1043
1043
|
return this;
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
|
-
}),
|
|
1046
|
+
}), v.updateContainerElements(t), v;
|
|
1047
1047
|
};
|
|
1048
1048
|
/*!
|
|
1049
1049
|
* focus-trap-vue v4.0.3
|
|
@@ -1076,7 +1076,7 @@ const ai = {
|
|
|
1076
1076
|
preventScroll: Boolean,
|
|
1077
1077
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
1078
1078
|
tabbableOptions: Object
|
|
1079
|
-
}, ni =
|
|
1079
|
+
}, ni = re({
|
|
1080
1080
|
name: "FocusTrap",
|
|
1081
1081
|
props: Object.assign({
|
|
1082
1082
|
active: {
|
|
@@ -1097,9 +1097,9 @@ const ai = {
|
|
|
1097
1097
|
},
|
|
1098
1098
|
setup(n, { slots: t, emit: r }) {
|
|
1099
1099
|
let a;
|
|
1100
|
-
const s =
|
|
1101
|
-
const
|
|
1102
|
-
return
|
|
1100
|
+
const s = ee(null), u = _(() => {
|
|
1101
|
+
const v = s.value;
|
|
1102
|
+
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1103
1103
|
});
|
|
1104
1104
|
function o() {
|
|
1105
1105
|
return a || (a = ti(u.value, {
|
|
@@ -1123,8 +1123,8 @@ const ai = {
|
|
|
1123
1123
|
}));
|
|
1124
1124
|
}
|
|
1125
1125
|
return Qe(() => {
|
|
1126
|
-
Be(() => n.active, (
|
|
1127
|
-
|
|
1126
|
+
Be(() => n.active, (v) => {
|
|
1127
|
+
v && u.value ? o().activate() : a && (a.deactivate(), (!u.value || u.value.nodeType === Node.COMMENT_NODE) && (a = null));
|
|
1128
1128
|
}, { immediate: !0, flush: "post" });
|
|
1129
1129
|
}), yn(() => {
|
|
1130
1130
|
a && a.deactivate(), a = null;
|
|
@@ -1138,8 +1138,8 @@ const ai = {
|
|
|
1138
1138
|
renderImpl() {
|
|
1139
1139
|
if (!t.default)
|
|
1140
1140
|
return null;
|
|
1141
|
-
const
|
|
1142
|
-
return !
|
|
1141
|
+
const v = t.default().filter((E) => E.type !== wn);
|
|
1142
|
+
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : kn(v[0], { ref: s });
|
|
1143
1143
|
}
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
@@ -1163,34 +1163,34 @@ function ri(n) {
|
|
|
1163
1163
|
var Ye = { exports: {} };
|
|
1164
1164
|
Ye.exports;
|
|
1165
1165
|
(function(n, t) {
|
|
1166
|
-
var r = 200, a = "__lodash_hash_undefined__", s = 9007199254740991, u = "[object Arguments]", o = "[object Array]",
|
|
1167
|
-
|
|
1168
|
-
var y = typeof ze == "object" && ze && ze.Object === Object && ze,
|
|
1169
|
-
function
|
|
1166
|
+
var r = 200, a = "__lodash_hash_undefined__", s = 9007199254740991, u = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", g = "[object Date]", E = "[object Error]", x = "[object Function]", R = "[object GeneratorFunction]", M = "[object Map]", j = "[object Number]", S = "[object Object]", W = "[object Promise]", V = "[object RegExp]", L = "[object Set]", se = "[object String]", de = "[object Symbol]", q = "[object WeakMap]", ne = "[object ArrayBuffer]", te = "[object DataView]", ae = "[object Float32Array]", N = "[object Float64Array]", z = "[object Int8Array]", G = "[object Int16Array]", Z = "[object Int32Array]", $ = "[object Uint8Array]", c = "[object Uint8ClampedArray]", f = "[object Uint16Array]", m = "[object Uint32Array]", A = /[\\^$.*+?()[\]{}|]/g, F = /\w*$/, D = /^\[object .+?Constructor\]$/, I = /^(?:0|[1-9]\d*)$/, d = {};
|
|
1167
|
+
d[u] = d[o] = d[ne] = d[te] = d[v] = d[g] = d[ae] = d[N] = d[z] = d[G] = d[Z] = d[M] = d[j] = d[S] = d[V] = d[L] = d[se] = d[de] = d[$] = d[c] = d[f] = d[m] = !0, d[E] = d[x] = d[q] = !1;
|
|
1168
|
+
var y = typeof ze == "object" && ze && ze.Object === Object && ze, k = typeof self == "object" && self && self.Object === Object && self, h = y || k || Function("return this")(), H = t && !t.nodeType && t, P = H && !0 && n && !n.nodeType && n, X = P && P.exports === H;
|
|
1169
|
+
function le(e, i) {
|
|
1170
1170
|
return e.set(i[0], i[1]), e;
|
|
1171
1171
|
}
|
|
1172
1172
|
function Ee(e, i) {
|
|
1173
1173
|
return e.add(i), e;
|
|
1174
1174
|
}
|
|
1175
1175
|
function ta(e, i) {
|
|
1176
|
-
for (var l = -1,
|
|
1176
|
+
for (var l = -1, p = e ? e.length : 0; ++l < p && i(e[l], l, e) !== !1; )
|
|
1177
1177
|
;
|
|
1178
1178
|
return e;
|
|
1179
1179
|
}
|
|
1180
1180
|
function aa(e, i) {
|
|
1181
|
-
for (var l = -1,
|
|
1182
|
-
e[
|
|
1181
|
+
for (var l = -1, p = i.length, U = e.length; ++l < p; )
|
|
1182
|
+
e[U + l] = i[l];
|
|
1183
1183
|
return e;
|
|
1184
1184
|
}
|
|
1185
|
-
function ht(e, i, l,
|
|
1186
|
-
for (var
|
|
1187
|
-
l = i(l, e[
|
|
1185
|
+
function ht(e, i, l, p) {
|
|
1186
|
+
for (var U = -1, J = e ? e.length : 0; ++U < J; )
|
|
1187
|
+
l = i(l, e[U], U, e);
|
|
1188
1188
|
return l;
|
|
1189
1189
|
}
|
|
1190
1190
|
function na(e, i) {
|
|
1191
|
-
for (var l = -1,
|
|
1192
|
-
|
|
1193
|
-
return
|
|
1191
|
+
for (var l = -1, p = Array(e); ++l < e; )
|
|
1192
|
+
p[l] = i(l);
|
|
1193
|
+
return p;
|
|
1194
1194
|
}
|
|
1195
1195
|
function ra(e, i) {
|
|
1196
1196
|
return e == null ? void 0 : e[i];
|
|
@@ -1206,8 +1206,8 @@ Ye.exports;
|
|
|
1206
1206
|
}
|
|
1207
1207
|
function gt(e) {
|
|
1208
1208
|
var i = -1, l = Array(e.size);
|
|
1209
|
-
return e.forEach(function(
|
|
1210
|
-
l[++i] = [
|
|
1209
|
+
return e.forEach(function(p, U) {
|
|
1210
|
+
l[++i] = [U, p];
|
|
1211
1211
|
}), l;
|
|
1212
1212
|
}
|
|
1213
1213
|
function et(e, i) {
|
|
@@ -1217,21 +1217,21 @@ Ye.exports;
|
|
|
1217
1217
|
}
|
|
1218
1218
|
function yt(e) {
|
|
1219
1219
|
var i = -1, l = Array(e.size);
|
|
1220
|
-
return e.forEach(function(
|
|
1221
|
-
l[++i] =
|
|
1220
|
+
return e.forEach(function(p) {
|
|
1221
|
+
l[++i] = p;
|
|
1222
1222
|
}), l;
|
|
1223
1223
|
}
|
|
1224
|
-
var ia = Array.prototype, oa = Function.prototype, Le = Object.prototype, tt =
|
|
1224
|
+
var ia = Array.prototype, oa = Function.prototype, Le = Object.prototype, tt = h["__core-js_shared__"], wt = function() {
|
|
1225
1225
|
var e = /[^.]+$/.exec(tt && tt.keys && tt.keys.IE_PROTO || "");
|
|
1226
1226
|
return e ? "Symbol(src)_1." + e : "";
|
|
1227
|
-
}(), kt = oa.toString,
|
|
1228
|
-
"^" + kt.call(
|
|
1229
|
-
), _t =
|
|
1230
|
-
function
|
|
1227
|
+
}(), kt = oa.toString, fe = Le.hasOwnProperty, Me = Le.toString, sa = RegExp(
|
|
1228
|
+
"^" + kt.call(fe).replace(A, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1229
|
+
), _t = X ? h.Buffer : void 0, Tt = h.Symbol, St = h.Uint8Array, la = et(Object.getPrototypeOf, Object), ca = Object.create, ua = Le.propertyIsEnumerable, da = ia.splice, Ct = Object.getOwnPropertySymbols, fa = _t ? _t.isBuffer : void 0, va = et(Object.keys, Object), at = Se(h, "DataView"), Ae = Se(h, "Map"), nt = Se(h, "Promise"), rt = Se(h, "Set"), it = Se(h, "WeakMap"), Fe = Se(Object, "create"), ba = he(at), pa = he(Ae), ha = he(nt), ma = he(rt), ga = he(it), It = Tt ? Tt.prototype : void 0, Ot = It ? It.valueOf : void 0;
|
|
1230
|
+
function be(e) {
|
|
1231
1231
|
var i = -1, l = e ? e.length : 0;
|
|
1232
1232
|
for (this.clear(); ++i < l; ) {
|
|
1233
|
-
var
|
|
1234
|
-
this.set(
|
|
1233
|
+
var p = e[i];
|
|
1234
|
+
this.set(p[0], p[1]);
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
function ya() {
|
|
@@ -1246,35 +1246,35 @@ Ye.exports;
|
|
|
1246
1246
|
var l = i[e];
|
|
1247
1247
|
return l === a ? void 0 : l;
|
|
1248
1248
|
}
|
|
1249
|
-
return
|
|
1249
|
+
return fe.call(i, e) ? i[e] : void 0;
|
|
1250
1250
|
}
|
|
1251
1251
|
function _a(e) {
|
|
1252
1252
|
var i = this.__data__;
|
|
1253
|
-
return Fe ? i[e] !== void 0 :
|
|
1253
|
+
return Fe ? i[e] !== void 0 : fe.call(i, e);
|
|
1254
1254
|
}
|
|
1255
1255
|
function Ta(e, i) {
|
|
1256
1256
|
var l = this.__data__;
|
|
1257
1257
|
return l[e] = Fe && i === void 0 ? a : i, this;
|
|
1258
1258
|
}
|
|
1259
|
-
|
|
1260
|
-
function
|
|
1259
|
+
be.prototype.clear = ya, be.prototype.delete = wa, be.prototype.get = ka, be.prototype.has = _a, be.prototype.set = Ta;
|
|
1260
|
+
function ce(e) {
|
|
1261
1261
|
var i = -1, l = e ? e.length : 0;
|
|
1262
1262
|
for (this.clear(); ++i < l; ) {
|
|
1263
|
-
var
|
|
1264
|
-
this.set(
|
|
1263
|
+
var p = e[i];
|
|
1264
|
+
this.set(p[0], p[1]);
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
function Sa() {
|
|
1268
1268
|
this.__data__ = [];
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Ca(e) {
|
|
1271
1271
|
var i = this.__data__, l = Pe(i, e);
|
|
1272
1272
|
if (l < 0)
|
|
1273
1273
|
return !1;
|
|
1274
|
-
var
|
|
1275
|
-
return l ==
|
|
1274
|
+
var p = i.length - 1;
|
|
1275
|
+
return l == p ? i.pop() : da.call(i, l, 1), !0;
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Ia(e) {
|
|
1278
1278
|
var i = this.__data__, l = Pe(i, e);
|
|
1279
1279
|
return l < 0 ? void 0 : i[l][1];
|
|
1280
1280
|
}
|
|
@@ -1282,22 +1282,22 @@ Ye.exports;
|
|
|
1282
1282
|
return Pe(this.__data__, e) > -1;
|
|
1283
1283
|
}
|
|
1284
1284
|
function $a(e, i) {
|
|
1285
|
-
var l = this.__data__,
|
|
1286
|
-
return
|
|
1285
|
+
var l = this.__data__, p = Pe(l, e);
|
|
1286
|
+
return p < 0 ? l.push([e, i]) : l[p][1] = i, this;
|
|
1287
1287
|
}
|
|
1288
|
-
|
|
1289
|
-
function
|
|
1288
|
+
ce.prototype.clear = Sa, ce.prototype.delete = Ca, ce.prototype.get = Ia, ce.prototype.has = Oa, ce.prototype.set = $a;
|
|
1289
|
+
function _e(e) {
|
|
1290
1290
|
var i = -1, l = e ? e.length : 0;
|
|
1291
1291
|
for (this.clear(); ++i < l; ) {
|
|
1292
|
-
var
|
|
1293
|
-
this.set(
|
|
1292
|
+
var p = e[i];
|
|
1293
|
+
this.set(p[0], p[1]);
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
function Ea() {
|
|
1297
1297
|
this.__data__ = {
|
|
1298
|
-
hash: new
|
|
1299
|
-
map: new (Ae ||
|
|
1300
|
-
string: new
|
|
1298
|
+
hash: new be(),
|
|
1299
|
+
map: new (Ae || ce)(),
|
|
1300
|
+
string: new be()
|
|
1301
1301
|
};
|
|
1302
1302
|
}
|
|
1303
1303
|
function Aa(e) {
|
|
@@ -1312,12 +1312,12 @@ Ye.exports;
|
|
|
1312
1312
|
function Da(e, i) {
|
|
1313
1313
|
return je(this, e).set(e, i), this;
|
|
1314
1314
|
}
|
|
1315
|
-
|
|
1316
|
-
function
|
|
1317
|
-
this.__data__ = new
|
|
1315
|
+
_e.prototype.clear = Ea, _e.prototype.delete = Aa, _e.prototype.get = Fa, _e.prototype.has = Na, _e.prototype.set = Da;
|
|
1316
|
+
function Te(e) {
|
|
1317
|
+
this.__data__ = new ce(e);
|
|
1318
1318
|
}
|
|
1319
1319
|
function Ra() {
|
|
1320
|
-
this.__data__ = new
|
|
1320
|
+
this.__data__ = new ce();
|
|
1321
1321
|
}
|
|
1322
1322
|
function xa(e) {
|
|
1323
1323
|
return this.__data__.delete(e);
|
|
@@ -1330,24 +1330,24 @@ Ye.exports;
|
|
|
1330
1330
|
}
|
|
1331
1331
|
function Ma(e, i) {
|
|
1332
1332
|
var l = this.__data__;
|
|
1333
|
-
if (l instanceof
|
|
1334
|
-
var
|
|
1335
|
-
if (!Ae ||
|
|
1336
|
-
return
|
|
1337
|
-
l = this.__data__ = new
|
|
1333
|
+
if (l instanceof ce) {
|
|
1334
|
+
var p = l.__data__;
|
|
1335
|
+
if (!Ae || p.length < r - 1)
|
|
1336
|
+
return p.push([e, i]), this;
|
|
1337
|
+
l = this.__data__ = new _e(p);
|
|
1338
1338
|
}
|
|
1339
1339
|
return l.set(e, i), this;
|
|
1340
1340
|
}
|
|
1341
|
-
|
|
1341
|
+
Te.prototype.clear = Ra, Te.prototype.delete = xa, Te.prototype.get = Ba, Te.prototype.has = La, Te.prototype.set = Ma;
|
|
1342
1342
|
function Pa(e, i) {
|
|
1343
|
-
var l = lt(e) || un(e) ? na(e.length, String) : [],
|
|
1344
|
-
for (var
|
|
1345
|
-
|
|
1343
|
+
var l = lt(e) || un(e) ? na(e.length, String) : [], p = l.length, U = !!p;
|
|
1344
|
+
for (var J in e)
|
|
1345
|
+
fe.call(e, J) && !(U && (J == "length" || on(J, p))) && l.push(J);
|
|
1346
1346
|
return l;
|
|
1347
1347
|
}
|
|
1348
1348
|
function $t(e, i, l) {
|
|
1349
|
-
var
|
|
1350
|
-
(!(
|
|
1349
|
+
var p = e[i];
|
|
1350
|
+
(!(fe.call(e, i) && Nt(p, l)) || l === void 0 && !(i in e)) && (e[i] = l);
|
|
1351
1351
|
}
|
|
1352
1352
|
function Pe(e, i) {
|
|
1353
1353
|
for (var l = e.length; l--; )
|
|
@@ -1358,47 +1358,47 @@ Ye.exports;
|
|
|
1358
1358
|
function ja(e, i) {
|
|
1359
1359
|
return e && Et(i, ct(i), e);
|
|
1360
1360
|
}
|
|
1361
|
-
function ot(e, i, l,
|
|
1362
|
-
var
|
|
1363
|
-
if (
|
|
1364
|
-
return
|
|
1361
|
+
function ot(e, i, l, p, U, J, ue) {
|
|
1362
|
+
var Q;
|
|
1363
|
+
if (p && (Q = J ? p(e, U, J, ue) : p(e)), Q !== void 0)
|
|
1364
|
+
return Q;
|
|
1365
1365
|
if (!Ke(e))
|
|
1366
1366
|
return e;
|
|
1367
1367
|
var xt = lt(e);
|
|
1368
1368
|
if (xt) {
|
|
1369
|
-
if (
|
|
1370
|
-
return Qa(e,
|
|
1369
|
+
if (Q = an(e), !i)
|
|
1370
|
+
return Qa(e, Q);
|
|
1371
1371
|
} else {
|
|
1372
|
-
var
|
|
1372
|
+
var Ce = pe(e), Bt = Ce == x || Ce == R;
|
|
1373
1373
|
if (fn(e))
|
|
1374
1374
|
return Ua(e, i);
|
|
1375
|
-
if (
|
|
1375
|
+
if (Ce == S || Ce == u || Bt && !J) {
|
|
1376
1376
|
if (mt(e))
|
|
1377
|
-
return
|
|
1378
|
-
if (
|
|
1379
|
-
return en(e, ja(
|
|
1377
|
+
return J ? e : {};
|
|
1378
|
+
if (Q = nn(Bt ? {} : e), !i)
|
|
1379
|
+
return en(e, ja(Q, e));
|
|
1380
1380
|
} else {
|
|
1381
|
-
if (!
|
|
1382
|
-
return
|
|
1383
|
-
|
|
1381
|
+
if (!d[Ce])
|
|
1382
|
+
return J ? e : {};
|
|
1383
|
+
Q = rn(e, Ce, ot, i);
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
|
-
|
|
1387
|
-
var Lt =
|
|
1386
|
+
ue || (ue = new Te());
|
|
1387
|
+
var Lt = ue.get(e);
|
|
1388
1388
|
if (Lt)
|
|
1389
1389
|
return Lt;
|
|
1390
|
-
if (
|
|
1390
|
+
if (ue.set(e, Q), !xt)
|
|
1391
1391
|
var Mt = l ? tn(e) : ct(e);
|
|
1392
1392
|
return ta(Mt || e, function(ut, Ze) {
|
|
1393
|
-
Mt && (Ze = ut, ut = e[Ze]), $t(
|
|
1394
|
-
}),
|
|
1393
|
+
Mt && (Ze = ut, ut = e[Ze]), $t(Q, Ze, ot(ut, i, l, p, Ze, e, ue));
|
|
1394
|
+
}), Q;
|
|
1395
1395
|
}
|
|
1396
1396
|
function Ka(e) {
|
|
1397
1397
|
return Ke(e) ? ca(e) : {};
|
|
1398
1398
|
}
|
|
1399
1399
|
function Za(e, i, l) {
|
|
1400
|
-
var
|
|
1401
|
-
return lt(e) ?
|
|
1400
|
+
var p = i(e);
|
|
1401
|
+
return lt(e) ? p : aa(p, l(e));
|
|
1402
1402
|
}
|
|
1403
1403
|
function Ha(e) {
|
|
1404
1404
|
return Me.call(e);
|
|
@@ -1407,14 +1407,14 @@ Ye.exports;
|
|
|
1407
1407
|
if (!Ke(e) || ln(e))
|
|
1408
1408
|
return !1;
|
|
1409
1409
|
var i = Rt(e) || mt(e) ? sa : D;
|
|
1410
|
-
return i.test(
|
|
1410
|
+
return i.test(he(e));
|
|
1411
1411
|
}
|
|
1412
1412
|
function Ga(e) {
|
|
1413
1413
|
if (!Ft(e))
|
|
1414
1414
|
return va(e);
|
|
1415
1415
|
var i = [];
|
|
1416
1416
|
for (var l in Object(e))
|
|
1417
|
-
|
|
1417
|
+
fe.call(e, l) && l != "constructor" && i.push(l);
|
|
1418
1418
|
return i;
|
|
1419
1419
|
}
|
|
1420
1420
|
function Ua(e, i) {
|
|
@@ -1432,16 +1432,16 @@ Ye.exports;
|
|
|
1432
1432
|
return new e.constructor(l, e.byteOffset, e.byteLength);
|
|
1433
1433
|
}
|
|
1434
1434
|
function Va(e, i, l) {
|
|
1435
|
-
var
|
|
1436
|
-
return ht(
|
|
1435
|
+
var p = i ? l(gt(e), !0) : gt(e);
|
|
1436
|
+
return ht(p, le, new e.constructor());
|
|
1437
1437
|
}
|
|
1438
1438
|
function qa(e) {
|
|
1439
|
-
var i = new e.constructor(e.source,
|
|
1439
|
+
var i = new e.constructor(e.source, F.exec(e));
|
|
1440
1440
|
return i.lastIndex = e.lastIndex, i;
|
|
1441
1441
|
}
|
|
1442
1442
|
function Xa(e, i, l) {
|
|
1443
|
-
var
|
|
1444
|
-
return ht(
|
|
1443
|
+
var p = i ? l(yt(e), !0) : yt(e);
|
|
1444
|
+
return ht(p, Ee, new e.constructor());
|
|
1445
1445
|
}
|
|
1446
1446
|
function Ya(e) {
|
|
1447
1447
|
return Ot ? Object(Ot.call(e)) : {};
|
|
@@ -1451,16 +1451,16 @@ Ye.exports;
|
|
|
1451
1451
|
return new e.constructor(l, e.byteOffset, e.length);
|
|
1452
1452
|
}
|
|
1453
1453
|
function Qa(e, i) {
|
|
1454
|
-
var l = -1,
|
|
1455
|
-
for (i || (i = Array(
|
|
1454
|
+
var l = -1, p = e.length;
|
|
1455
|
+
for (i || (i = Array(p)); ++l < p; )
|
|
1456
1456
|
i[l] = e[l];
|
|
1457
1457
|
return i;
|
|
1458
1458
|
}
|
|
1459
|
-
function Et(e, i, l,
|
|
1459
|
+
function Et(e, i, l, p) {
|
|
1460
1460
|
l || (l = {});
|
|
1461
|
-
for (var
|
|
1462
|
-
var
|
|
1463
|
-
$t(l,
|
|
1461
|
+
for (var U = -1, J = i.length; ++U < J; ) {
|
|
1462
|
+
var ue = i[U], Q = void 0;
|
|
1463
|
+
$t(l, ue, Q === void 0 ? e[ue] : Q);
|
|
1464
1464
|
}
|
|
1465
1465
|
return l;
|
|
1466
1466
|
}
|
|
@@ -1474,70 +1474,70 @@ Ye.exports;
|
|
|
1474
1474
|
var l = e.__data__;
|
|
1475
1475
|
return sn(i) ? l[typeof i == "string" ? "string" : "hash"] : l.map;
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function Se(e, i) {
|
|
1478
1478
|
var l = ra(e, i);
|
|
1479
1479
|
return za(l) ? l : void 0;
|
|
1480
1480
|
}
|
|
1481
|
-
var At =
|
|
1482
|
-
(at &&
|
|
1483
|
-
var i = Me.call(e), l = i == S ? e.constructor : void 0,
|
|
1484
|
-
if (
|
|
1485
|
-
switch (
|
|
1481
|
+
var At = Ct ? et(Ct, Object) : pn, pe = Ha;
|
|
1482
|
+
(at && pe(new at(new ArrayBuffer(1))) != te || Ae && pe(new Ae()) != M || nt && pe(nt.resolve()) != W || rt && pe(new rt()) != L || it && pe(new it()) != q) && (pe = function(e) {
|
|
1483
|
+
var i = Me.call(e), l = i == S ? e.constructor : void 0, p = l ? he(l) : void 0;
|
|
1484
|
+
if (p)
|
|
1485
|
+
switch (p) {
|
|
1486
1486
|
case ba:
|
|
1487
|
-
return
|
|
1487
|
+
return te;
|
|
1488
1488
|
case pa:
|
|
1489
|
-
return
|
|
1489
|
+
return M;
|
|
1490
1490
|
case ha:
|
|
1491
|
-
return
|
|
1491
|
+
return W;
|
|
1492
1492
|
case ma:
|
|
1493
|
-
return
|
|
1493
|
+
return L;
|
|
1494
1494
|
case ga:
|
|
1495
|
-
return
|
|
1495
|
+
return q;
|
|
1496
1496
|
}
|
|
1497
1497
|
return i;
|
|
1498
1498
|
});
|
|
1499
1499
|
function an(e) {
|
|
1500
1500
|
var i = e.length, l = e.constructor(i);
|
|
1501
|
-
return i && typeof e[0] == "string" &&
|
|
1501
|
+
return i && typeof e[0] == "string" && fe.call(e, "index") && (l.index = e.index, l.input = e.input), l;
|
|
1502
1502
|
}
|
|
1503
1503
|
function nn(e) {
|
|
1504
1504
|
return typeof e.constructor == "function" && !Ft(e) ? Ka(la(e)) : {};
|
|
1505
1505
|
}
|
|
1506
|
-
function rn(e, i, l,
|
|
1507
|
-
var
|
|
1506
|
+
function rn(e, i, l, p) {
|
|
1507
|
+
var U = e.constructor;
|
|
1508
1508
|
switch (i) {
|
|
1509
|
-
case
|
|
1509
|
+
case ne:
|
|
1510
1510
|
return st(e);
|
|
1511
|
-
case
|
|
1512
|
-
case
|
|
1513
|
-
return new
|
|
1514
|
-
case
|
|
1515
|
-
return Wa(e,
|
|
1511
|
+
case v:
|
|
1512
|
+
case g:
|
|
1513
|
+
return new U(+e);
|
|
1514
|
+
case te:
|
|
1515
|
+
return Wa(e, p);
|
|
1516
1516
|
case ae:
|
|
1517
|
-
case
|
|
1518
|
-
case
|
|
1519
|
-
case
|
|
1520
|
-
case
|
|
1521
|
-
case
|
|
1517
|
+
case N:
|
|
1518
|
+
case z:
|
|
1519
|
+
case G:
|
|
1520
|
+
case Z:
|
|
1521
|
+
case $:
|
|
1522
1522
|
case c:
|
|
1523
|
-
case
|
|
1524
|
-
case
|
|
1525
|
-
return Ja(e,
|
|
1526
|
-
case
|
|
1527
|
-
return Va(e,
|
|
1523
|
+
case f:
|
|
1524
|
+
case m:
|
|
1525
|
+
return Ja(e, p);
|
|
1526
|
+
case M:
|
|
1527
|
+
return Va(e, p, l);
|
|
1528
1528
|
case j:
|
|
1529
|
-
case
|
|
1530
|
-
return new
|
|
1531
|
-
case
|
|
1529
|
+
case se:
|
|
1530
|
+
return new U(e);
|
|
1531
|
+
case V:
|
|
1532
1532
|
return qa(e);
|
|
1533
|
-
case
|
|
1534
|
-
return Xa(e,
|
|
1535
|
-
case
|
|
1533
|
+
case L:
|
|
1534
|
+
return Xa(e, p, l);
|
|
1535
|
+
case de:
|
|
1536
1536
|
return Ya(e);
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
function on(e, i) {
|
|
1540
|
-
return i = i ?? s, !!i && (typeof e == "number" ||
|
|
1540
|
+
return i = i ?? s, !!i && (typeof e == "number" || I.test(e)) && e > -1 && e % 1 == 0 && e < i;
|
|
1541
1541
|
}
|
|
1542
1542
|
function sn(e) {
|
|
1543
1543
|
var i = typeof e;
|
|
@@ -1550,7 +1550,7 @@ Ye.exports;
|
|
|
1550
1550
|
var i = e && e.constructor, l = typeof i == "function" && i.prototype || Le;
|
|
1551
1551
|
return e === l;
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function he(e) {
|
|
1554
1554
|
if (e != null) {
|
|
1555
1555
|
try {
|
|
1556
1556
|
return kt.call(e);
|
|
@@ -1570,7 +1570,7 @@ Ye.exports;
|
|
|
1570
1570
|
return e === i || e !== e && i !== i;
|
|
1571
1571
|
}
|
|
1572
1572
|
function un(e) {
|
|
1573
|
-
return dn(e) &&
|
|
1573
|
+
return dn(e) && fe.call(e, "callee") && (!ua.call(e, "callee") || Me.call(e) == u);
|
|
1574
1574
|
}
|
|
1575
1575
|
var lt = Array.isArray;
|
|
1576
1576
|
function Dt(e) {
|
|
@@ -1582,7 +1582,7 @@ Ye.exports;
|
|
|
1582
1582
|
var fn = fa || hn;
|
|
1583
1583
|
function Rt(e) {
|
|
1584
1584
|
var i = Ke(e) ? Me.call(e) : "";
|
|
1585
|
-
return i ==
|
|
1585
|
+
return i == x || i == R;
|
|
1586
1586
|
}
|
|
1587
1587
|
function vn(e) {
|
|
1588
1588
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= s;
|
|
@@ -1619,7 +1619,7 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
1619
1619
|
}, bi = {
|
|
1620
1620
|
key: 2,
|
|
1621
1621
|
class: "level-primary bottom-items"
|
|
1622
|
-
}, pi = { class: "sidebar-footer" },
|
|
1622
|
+
}, pi = { class: "sidebar-footer" }, me = "_ungrouped", hi = /* @__PURE__ */ re({
|
|
1623
1623
|
__name: "AppSidebar",
|
|
1624
1624
|
props: {
|
|
1625
1625
|
topItems: {
|
|
@@ -1680,215 +1680,218 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
1680
1680
|
default: !0
|
|
1681
1681
|
}
|
|
1682
1682
|
},
|
|
1683
|
-
emits: ["click", "toggle"],
|
|
1683
|
+
emits: ["click", "toggle", "toggle-collapse"],
|
|
1684
1684
|
setup(n, { emit: t }) {
|
|
1685
|
-
pt((
|
|
1686
|
-
|
|
1687
|
-
"
|
|
1688
|
-
"
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
"
|
|
1693
|
-
"
|
|
1694
|
-
"
|
|
1695
|
-
"
|
|
1696
|
-
"
|
|
1685
|
+
pt((d) => ({
|
|
1686
|
+
"284cc9ac": v.value.mobileHeight,
|
|
1687
|
+
"58c2def0": v.value.mobileTop,
|
|
1688
|
+
"4e5c767c": n.zIndex,
|
|
1689
|
+
"3593bcaa": v.value.height,
|
|
1690
|
+
"7102fcb2": v.value.top,
|
|
1691
|
+
beb305f4: E.value.marginTop,
|
|
1692
|
+
"067fd6ba": D.value,
|
|
1693
|
+
"59e47a74": g.value.display,
|
|
1694
|
+
"2fefd71d": g.value.minHeight,
|
|
1695
|
+
"27e4407e": x.value.top,
|
|
1696
|
+
"2aa0a2e8": x.value.zIndex
|
|
1697
1697
|
}));
|
|
1698
|
-
const r = t, a = n, s = Je(), u = _(() => !!s.header), o = _(() => !!s.top),
|
|
1698
|
+
const r = t, a = n, s = Je(), u = _(() => !!s.header), o = _(() => !!s.top), v = _(() => ({
|
|
1699
1699
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
1700
1700
|
top: a.topOffset ? `${a.topOffset}px` : "0",
|
|
1701
1701
|
mobileHeight: a.mobileTopOffset && a.mobileEnabled ? `calc(100% - ${a.mobileTopOffset}px)` : "100%",
|
|
1702
1702
|
height: a.topOffset ? `calc(100% - ${a.topOffset}px)` : "100%"
|
|
1703
|
-
})),
|
|
1703
|
+
})), g = _(() => ({
|
|
1704
1704
|
display: !a.mobileHeaderVisible && a.mobileEnabled ? "none" : "flex",
|
|
1705
1705
|
minHeight: `${a.headerHeight}px`
|
|
1706
|
-
})),
|
|
1706
|
+
})), E = _(() => ({
|
|
1707
1707
|
marginTop: u.value ? `${a.headerHeight}px` : "0"
|
|
1708
|
-
})),
|
|
1708
|
+
})), x = _(() => ({
|
|
1709
1709
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1710
1710
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1711
|
-
})),
|
|
1712
|
-
var
|
|
1713
|
-
if (
|
|
1714
|
-
(!
|
|
1715
|
-
for (const
|
|
1716
|
-
|
|
1711
|
+
})), R = (d) => oi(d).map((k) => {
|
|
1712
|
+
var h, H, P;
|
|
1713
|
+
if (k) {
|
|
1714
|
+
(!k.key || !((h = k.key) != null && h.trim())) && (k.key = String(k.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!k.testId || !((H = k.testId) != null && H.trim())) && (k.testId = String(k.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1715
|
+
for (const X of k.items || [])
|
|
1716
|
+
X.parentKey = k.key, (!X.testId || !((P = X.testId) != null && P.trim())) && (X.testId = String(X.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1717
1717
|
}
|
|
1718
|
-
return
|
|
1719
|
-
}),
|
|
1720
|
-
var
|
|
1721
|
-
const
|
|
1722
|
-
|
|
1723
|
-
for (const
|
|
1724
|
-
const
|
|
1725
|
-
|
|
1718
|
+
return k;
|
|
1719
|
+
}), M = _(() => a.topItems.length ? R(a.topItems) : []), j = _(() => a.bottomItems.length ? R(a.bottomItems) : []), S = (d = "") => d.trim().replace(" ", "").replace(/[^a-z0-9]+/gi, "-").toLowerCase(), W = _(() => {
|
|
1720
|
+
var y;
|
|
1721
|
+
const d = /* @__PURE__ */ new Map();
|
|
1722
|
+
d.set(me, []);
|
|
1723
|
+
for (const k of M.value) {
|
|
1724
|
+
const h = k.group || me;
|
|
1725
|
+
d.has(h) || d.set(h, []), (y = d.get(h)) == null || y.push(k);
|
|
1726
1726
|
}
|
|
1727
|
-
return
|
|
1728
|
-
}),
|
|
1729
|
-
if (
|
|
1727
|
+
return d;
|
|
1728
|
+
}), V = (d = "") => {
|
|
1729
|
+
if (d === me || !d.trim())
|
|
1730
1730
|
return null;
|
|
1731
|
-
const
|
|
1732
|
-
label:
|
|
1731
|
+
const y = {
|
|
1732
|
+
label: d,
|
|
1733
1733
|
collapsible: !1,
|
|
1734
1734
|
collapsed: !1
|
|
1735
1735
|
};
|
|
1736
|
-
let
|
|
1737
|
-
return
|
|
1738
|
-
},
|
|
1739
|
-
var
|
|
1740
|
-
return !!((
|
|
1741
|
-
},
|
|
1742
|
-
var
|
|
1743
|
-
return !!((
|
|
1744
|
-
},
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
},
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1736
|
+
let k = d.trim().replace(" ", "");
|
|
1737
|
+
return k = k.charAt(0).toLowerCase() + k.slice(1), d && a.groupConfig && (a.groupConfig[d] || a.groupConfig[k]) ? a.groupConfig[d] || a.groupConfig[k] : y;
|
|
1738
|
+
}, L = (d) => {
|
|
1739
|
+
var y;
|
|
1740
|
+
return !!((y = V(d)) != null && y.collapsible);
|
|
1741
|
+
}, se = (d) => {
|
|
1742
|
+
var y;
|
|
1743
|
+
return !!((y = V(d)) != null && y.collapsed);
|
|
1744
|
+
}, de = (d, y, k) => {
|
|
1745
|
+
const h = V(d);
|
|
1746
|
+
h && (h.collapsed = y), k(), r("toggle-collapse", d, h);
|
|
1747
|
+
}, q = ee(a.open), ne = (d) => {
|
|
1748
|
+
var y, k;
|
|
1749
|
+
q.value !== d && (q.value = d, r("toggle", d)), d ? (y = document == null ? void 0 : document.body) == null || y.classList.add("kong-ui-app-sidebar-open") : (k = document == null ? void 0 : document.body) == null || k.classList.remove("kong-ui-app-sidebar-open"), ae.value = !1;
|
|
1750
|
+
}, te = () => {
|
|
1751
|
+
a.mobileOverlayCloseOnClick && ne(!1);
|
|
1752
|
+
}, ae = ee(!1), N = (d) => {
|
|
1753
|
+
ae.value = !0, r("click", d), setTimeout(() => {
|
|
1754
|
+
ne(!1);
|
|
1752
1755
|
}, a.mobileCloseDelay);
|
|
1753
1756
|
};
|
|
1754
|
-
Be(() => a.open, (
|
|
1755
|
-
|
|
1757
|
+
Be(() => a.open, (d) => {
|
|
1758
|
+
ne(d);
|
|
1756
1759
|
});
|
|
1757
|
-
const { debounce:
|
|
1758
|
-
|
|
1759
|
-
}, 200),
|
|
1760
|
-
|
|
1761
|
-
},
|
|
1762
|
-
var
|
|
1763
|
-
|
|
1760
|
+
const { debounce: z } = ea(), G = z(() => {
|
|
1761
|
+
q.value && Z.value !== (window == null ? void 0 : window.innerWidth) && (Z.value = window == null ? void 0 : window.innerWidth, ne(!1));
|
|
1762
|
+
}, 200), Z = ee(), $ = ee(!1), c = ee(), f = () => {
|
|
1763
|
+
$.value || ($.value = !0, clearTimeout(c.value), c.value = setTimeout(() => $.value = !1, 1300));
|
|
1764
|
+
}, m = ee(null), A = _(() => q.value && a.mobileEnabled), F = async (d) => {
|
|
1765
|
+
var y, k;
|
|
1766
|
+
d ? (await Pt(), await new Promise((h) => setTimeout(h, 300)), (y = m.value) == null || y.activate()) : (k = m.value) == null || k.deactivate();
|
|
1764
1767
|
};
|
|
1765
|
-
Be(
|
|
1766
|
-
|
|
1768
|
+
Be(A, async (d) => {
|
|
1769
|
+
d ? await F(!0) : await F(!1);
|
|
1767
1770
|
}, { immediate: !0 });
|
|
1768
|
-
const
|
|
1769
|
-
var
|
|
1770
|
-
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((
|
|
1771
|
+
const D = ee("0px"), I = () => {
|
|
1772
|
+
var X;
|
|
1773
|
+
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((X = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : X.platform)))
|
|
1771
1774
|
return;
|
|
1772
|
-
const
|
|
1773
|
-
|
|
1774
|
-
const
|
|
1775
|
-
|
|
1776
|
-
const
|
|
1777
|
-
|
|
1778
|
-
const
|
|
1779
|
-
|
|
1775
|
+
const y = document.createElement("div");
|
|
1776
|
+
y.style.visibility = "hidden", y.style.width = "100px", document.body.appendChild(y);
|
|
1777
|
+
const k = y.offsetWidth;
|
|
1778
|
+
y.style.overflow = "scroll";
|
|
1779
|
+
const h = document.createElement("div");
|
|
1780
|
+
h.style.width = "100%", y.appendChild(h);
|
|
1781
|
+
const H = h.offsetWidth;
|
|
1782
|
+
y.parentNode && y.parentNode.removeChild(y), k - H === 0 && (D.value = "8px");
|
|
1780
1783
|
};
|
|
1781
1784
|
return Qe(async () => {
|
|
1782
|
-
|
|
1785
|
+
Z.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", G), window.addEventListener("resize", f), await Pt(), I();
|
|
1783
1786
|
}), Ut(() => {
|
|
1784
|
-
window.removeEventListener("resize",
|
|
1785
|
-
}), (
|
|
1786
|
-
const
|
|
1787
|
-
return
|
|
1788
|
-
|
|
1787
|
+
window.removeEventListener("resize", G), window.removeEventListener("resize", f);
|
|
1788
|
+
}), (d, y) => {
|
|
1789
|
+
const k = ve("KCollapse");
|
|
1790
|
+
return b(), w(Oe, null, [
|
|
1791
|
+
q.value && n.mobileOverlay && n.mobileEnabled ? (b(), w("div", {
|
|
1789
1792
|
key: 0,
|
|
1790
1793
|
class: "kong-ui-app-sidebar-overlay",
|
|
1791
|
-
onClick:
|
|
1792
|
-
})) :
|
|
1793
|
-
xe(
|
|
1794
|
+
onClick: te
|
|
1795
|
+
})) : C("", !0),
|
|
1796
|
+
xe(ge(ni), {
|
|
1794
1797
|
ref_key: "focusTrap",
|
|
1795
|
-
ref:
|
|
1798
|
+
ref: m,
|
|
1796
1799
|
active: !1,
|
|
1797
1800
|
"allow-outside-click": "",
|
|
1798
1801
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1799
1802
|
}, {
|
|
1800
|
-
default:
|
|
1801
|
-
|
|
1802
|
-
class:
|
|
1803
|
-
"sidebar-open":
|
|
1803
|
+
default: B(() => [
|
|
1804
|
+
O("aside", {
|
|
1805
|
+
class: oe(["kong-ui-app-sidebar", {
|
|
1806
|
+
"sidebar-open": q.value,
|
|
1804
1807
|
"no-sidebar-header": !u.value,
|
|
1805
1808
|
"mobile-header-hidden": n.mobileEnabled && (!u.value || !n.mobileHeaderVisible),
|
|
1806
1809
|
"mobile-disabled": !n.mobileEnabled,
|
|
1807
|
-
"disable-transitions":
|
|
1810
|
+
"disable-transitions": $.value
|
|
1808
1811
|
}]),
|
|
1809
1812
|
tabindex: "-1"
|
|
1810
1813
|
}, [
|
|
1811
|
-
u.value ? (
|
|
1812
|
-
T(
|
|
1813
|
-
])) :
|
|
1814
|
-
|
|
1815
|
-
o.value ? (
|
|
1816
|
-
T(
|
|
1817
|
-
])) :
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
key:
|
|
1821
|
-
class:
|
|
1822
|
-
"not-collapsible": !
|
|
1823
|
-
ungrouped:
|
|
1814
|
+
u.value ? (b(), w("div", si, [
|
|
1815
|
+
T(d.$slots, "header", {}, void 0, !0)
|
|
1816
|
+
])) : C("", !0),
|
|
1817
|
+
O("div", li, [
|
|
1818
|
+
o.value ? (b(), w("div", ci, [
|
|
1819
|
+
T(d.$slots, "top", {}, void 0, !0)
|
|
1820
|
+
])) : C("", !0),
|
|
1821
|
+
O("nav", ui, [
|
|
1822
|
+
W.value.size > 0 ? (b(!0), w(Oe, { key: 0 }, we(W.value, ([h, H]) => (b(), K(k, {
|
|
1823
|
+
key: h,
|
|
1824
|
+
class: oe(["level-primary-group-collapse", {
|
|
1825
|
+
"not-collapsible": !L(h),
|
|
1826
|
+
ungrouped: h === me
|
|
1824
1827
|
}]),
|
|
1825
|
-
"data-testid":
|
|
1826
|
-
"model-value":
|
|
1828
|
+
"data-testid": h === me ? "level-primary-group-collapse-ungrouped" : `level-primary-group-collapse-${h}`,
|
|
1829
|
+
"model-value": L(h) && se(h) || !1
|
|
1827
1830
|
}, {
|
|
1828
|
-
trigger:
|
|
1829
|
-
(
|
|
1830
|
-
appearance:
|
|
1831
|
+
trigger: B(({ isCollapsed: P, toggle: X }) => [
|
|
1832
|
+
(b(), K($e(L(h) ? ge(In) : "div"), {
|
|
1833
|
+
appearance: L(h) ? "none" : void 0,
|
|
1831
1834
|
class: "level-primary-group-collapse-trigger",
|
|
1832
|
-
onClick: (
|
|
1835
|
+
onClick: (le) => L(h) ? de(h, P, X) : void 0
|
|
1833
1836
|
}, {
|
|
1834
|
-
default:
|
|
1835
|
-
var
|
|
1837
|
+
default: B(() => {
|
|
1838
|
+
var le;
|
|
1836
1839
|
return [
|
|
1837
|
-
|
|
1840
|
+
h !== me ? (b(), w("div", {
|
|
1838
1841
|
key: 0,
|
|
1839
|
-
id: `level-primary-group-${S(
|
|
1842
|
+
id: `level-primary-group-${S(h)}`,
|
|
1840
1843
|
class: "level-primary-group-name",
|
|
1841
1844
|
"data-testid": "level-primary-group-name",
|
|
1842
1845
|
role: "presentation"
|
|
1843
|
-
},
|
|
1844
|
-
|
|
1846
|
+
}, Y(((le = V(h)) == null ? void 0 : le.label) || h), 9, di)) : C("", !0),
|
|
1847
|
+
L(h) ? (b(), K($e(P ? ge(Wt) : ge(Cn)), {
|
|
1845
1848
|
key: 1,
|
|
1846
1849
|
class: "level-primary-group-collapse-icon",
|
|
1847
|
-
color:
|
|
1850
|
+
color: ge(vr),
|
|
1848
1851
|
"data-testid": "level-primary-group-collapse-icon",
|
|
1849
|
-
size:
|
|
1850
|
-
}, null, 8, ["color", "size"])) :
|
|
1852
|
+
size: ge(fr)
|
|
1853
|
+
}, null, 8, ["color", "size"])) : C("", !0)
|
|
1851
1854
|
];
|
|
1852
1855
|
}),
|
|
1853
1856
|
_: 2
|
|
1854
1857
|
}, 1032, ["appearance", "onClick"]))
|
|
1855
1858
|
]),
|
|
1856
|
-
default:
|
|
1857
|
-
|
|
1858
|
-
"aria-labelledby":
|
|
1859
|
+
default: B(() => [
|
|
1860
|
+
O("ul", {
|
|
1861
|
+
"aria-labelledby": h !== me ? `level-primary-group-${S(h)}` : void 0,
|
|
1859
1862
|
class: "level-primary top-items"
|
|
1860
1863
|
}, [
|
|
1861
|
-
(
|
|
1862
|
-
key:
|
|
1863
|
-
item:
|
|
1864
|
-
onClick:
|
|
1864
|
+
(b(!0), w(Oe, null, we(H, (P) => (b(), K(jt, {
|
|
1865
|
+
key: P.name,
|
|
1866
|
+
item: P,
|
|
1867
|
+
onClick: N
|
|
1865
1868
|
}, {
|
|
1866
|
-
[`sidebar-icon-${
|
|
1867
|
-
T(
|
|
1869
|
+
[`sidebar-icon-${P.key}`]: B(() => [
|
|
1870
|
+
T(d.$slots, `sidebar-icon-${P.key}`, {}, void 0, !0)
|
|
1868
1871
|
]),
|
|
1869
1872
|
_: 2
|
|
1870
1873
|
}, 1032, ["item"]))), 128))
|
|
1871
1874
|
], 8, fi)
|
|
1872
1875
|
]),
|
|
1873
1876
|
_: 2
|
|
1874
|
-
}, 1032, ["class", "data-testid", "model-value"]))), 128)) :
|
|
1875
|
-
|
|
1876
|
-
j.value.length ? (
|
|
1877
|
-
(
|
|
1878
|
-
key:
|
|
1879
|
-
item:
|
|
1880
|
-
onClick:
|
|
1877
|
+
}, 1032, ["class", "data-testid", "model-value"]))), 128)) : C("", !0),
|
|
1878
|
+
W.value.size > 0 && j.value.length ? (b(), w("div", vi)) : C("", !0),
|
|
1879
|
+
j.value.length ? (b(), w("ul", bi, [
|
|
1880
|
+
(b(!0), w(Oe, null, we(j.value, (h) => (b(), K(jt, {
|
|
1881
|
+
key: h.name,
|
|
1882
|
+
item: h,
|
|
1883
|
+
onClick: N
|
|
1881
1884
|
}, {
|
|
1882
|
-
[`sidebar-icon-${
|
|
1883
|
-
T(
|
|
1885
|
+
[`sidebar-icon-${h.key}`]: B(() => [
|
|
1886
|
+
T(d.$slots, `sidebar-icon-${h.key}`, {}, void 0, !0)
|
|
1884
1887
|
]),
|
|
1885
1888
|
_: 2
|
|
1886
1889
|
}, 1032, ["item"]))), 128))
|
|
1887
|
-
])) :
|
|
1890
|
+
])) : C("", !0)
|
|
1888
1891
|
])
|
|
1889
1892
|
]),
|
|
1890
|
-
|
|
1891
|
-
T(
|
|
1893
|
+
O("div", pi, [
|
|
1894
|
+
T(d.$slots, "footer", {}, void 0, !0)
|
|
1892
1895
|
])
|
|
1893
1896
|
], 2)
|
|
1894
1897
|
]),
|
|
@@ -1897,7 +1900,7 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
1897
1900
|
], 64);
|
|
1898
1901
|
};
|
|
1899
1902
|
}
|
|
1900
|
-
}), mi = /* @__PURE__ */
|
|
1903
|
+
}), mi = /* @__PURE__ */ ie(hi, [["__scopeId", "data-v-ab36a050"]]), gi = ["aria-label"], yi = /* @__PURE__ */ re({
|
|
1901
1904
|
__name: "SidebarToggle",
|
|
1902
1905
|
props: {
|
|
1903
1906
|
active: {
|
|
@@ -1907,31 +1910,31 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
1907
1910
|
},
|
|
1908
1911
|
emits: ["toggle"],
|
|
1909
1912
|
setup(n, { emit: t }) {
|
|
1910
|
-
const r = t, a = n, s =
|
|
1913
|
+
const r = t, a = n, s = ee(a.active || !1), u = (o) => {
|
|
1911
1914
|
o.preventDefault(), s.value = !s.value, r("toggle", s.value);
|
|
1912
1915
|
};
|
|
1913
1916
|
return Be(() => a.active, (o) => {
|
|
1914
1917
|
s.value = o;
|
|
1915
|
-
}), (o,
|
|
1918
|
+
}), (o, v) => (b(), w("a", {
|
|
1916
1919
|
"aria-haspopup": "true",
|
|
1917
1920
|
"aria-label": s.value ? "Close Main Menu" : "Open Main Menu",
|
|
1918
|
-
class:
|
|
1921
|
+
class: oe(["sidebar-menu-toggle", { active: s.value }]),
|
|
1919
1922
|
href: "#",
|
|
1920
1923
|
role: "button",
|
|
1921
1924
|
onClick: _n(u, ["prevent"])
|
|
1922
|
-
},
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1925
|
+
}, v[0] || (v[0] = [
|
|
1926
|
+
O("span", { class: "line" }, null, -1),
|
|
1927
|
+
O("span", { class: "line" }, null, -1),
|
|
1928
|
+
O("span", { class: "line" }, null, -1)
|
|
1926
1929
|
]), 10, gi));
|
|
1927
1930
|
}
|
|
1928
|
-
}), wi = /* @__PURE__ */
|
|
1931
|
+
}), wi = /* @__PURE__ */ ie(yi, [["__scopeId", "data-v-cbb41bbd"]]), ki = { id: "kong-ui-app-layout-notification" }, _i = { class: "mobile-logo" }, Ti = {
|
|
1929
1932
|
key: 0,
|
|
1930
1933
|
class: "navbar-logo"
|
|
1931
1934
|
}, Si = {
|
|
1932
1935
|
class: "kong-ui-app-layout-main",
|
|
1933
1936
|
"data-testid": "kong-ui-app-layout-main"
|
|
1934
|
-
},
|
|
1937
|
+
}, Ci = { class: "kong-ui-app-layout-content" }, Ii = { class: "kong-ui-app-layout-content-inner" }, Oi = /* @__PURE__ */ re({
|
|
1935
1938
|
__name: "AppLayout",
|
|
1936
1939
|
props: {
|
|
1937
1940
|
hideDefaultSlot: {
|
|
@@ -1970,14 +1973,14 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
1970
1973
|
validator: (n) => ["light", "dark"].includes(n)
|
|
1971
1974
|
}
|
|
1972
1975
|
},
|
|
1973
|
-
emits: ["sidebar-click", "update:topOffset"],
|
|
1976
|
+
emits: ["sidebar-click", "update:topOffset", "toggle-collapse"],
|
|
1974
1977
|
setup(n, { emit: t }) {
|
|
1975
|
-
pt((
|
|
1976
|
-
"
|
|
1977
|
-
"
|
|
1978
|
-
"
|
|
1979
|
-
|
|
1980
|
-
"
|
|
1978
|
+
pt((N) => ({
|
|
1979
|
+
"182e1cec": L.value,
|
|
1980
|
+
"40b2f580": se.value,
|
|
1981
|
+
"27bb1858": V.value,
|
|
1982
|
+
"7516233c": de.value,
|
|
1983
|
+
"2c991da2": q.value
|
|
1981
1984
|
}));
|
|
1982
1985
|
const r = n, a = t, s = Je(), u = Ge({
|
|
1983
1986
|
navbarLeft: _(() => !!s["navbar-left"]),
|
|
@@ -1988,162 +1991,163 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
1988
1991
|
sidebarHeader: _(() => !!s["sidebar-header"]),
|
|
1989
1992
|
sidebarTop: _(() => !!s["sidebar-top"]),
|
|
1990
1993
|
sidebarFooter: _(() => !!s["sidebar-footer"])
|
|
1991
|
-
}), o = _(() => r.hideDefaultSlot),
|
|
1994
|
+
}), o = _(() => r.hideDefaultSlot), v = Ge({
|
|
1992
1995
|
hidden: _(() => r.navbarHidden)
|
|
1993
|
-
}),
|
|
1996
|
+
}), g = Ge({
|
|
1994
1997
|
topItems: _(() => r.sidebarTopItems),
|
|
1995
1998
|
bottomItems: _(() => r.sidebarBottomItems),
|
|
1996
1999
|
open: _(() => r.sidebarOpen),
|
|
1997
2000
|
hidden: _(() => r.sidebarHidden)
|
|
1998
|
-
}),
|
|
1999
|
-
a("sidebar-click",
|
|
2000
|
-
},
|
|
2001
|
-
|
|
2001
|
+
}), E = (N) => {
|
|
2002
|
+
a("sidebar-click", N);
|
|
2003
|
+
}, x = ee(!1), R = (N) => {
|
|
2004
|
+
x.value = N;
|
|
2002
2005
|
};
|
|
2003
2006
|
Tn(() => {
|
|
2004
|
-
|
|
2007
|
+
x.value = Sn(g, "open").value || !1;
|
|
2005
2008
|
});
|
|
2006
|
-
const
|
|
2007
|
-
if (
|
|
2008
|
-
|
|
2009
|
-
const
|
|
2010
|
-
|
|
2009
|
+
const M = ee(0), j = ee(60), S = ee(0), W = _(() => v.hidden ? S.value : j.value + S.value), V = _(() => r.theme === "light" ? lr : cr), L = _(() => r.theme === "light" ? or : sr), se = _(() => r.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), de = _(() => `${W.value}px`), q = _(() => g.hidden || v.hidden ? ur : dr), { debounce: ne } = ea(), te = ne((N = !1) => {
|
|
2010
|
+
if (N || M.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
2011
|
+
M.value = window == null ? void 0 : window.innerWidth;
|
|
2012
|
+
const z = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2013
|
+
z && (S.value = z.offsetHeight);
|
|
2011
2014
|
}
|
|
2012
|
-
}, 200), ae =
|
|
2013
|
-
return Be(S, (
|
|
2014
|
-
a("update:topOffset",
|
|
2015
|
+
}, 200), ae = ee();
|
|
2016
|
+
return Be(S, (N) => {
|
|
2017
|
+
a("update:topOffset", N || 0);
|
|
2015
2018
|
}, { immediate: !0 }), Qe(() => {
|
|
2016
|
-
var
|
|
2017
|
-
(
|
|
2018
|
-
const
|
|
2019
|
-
|
|
2019
|
+
var z, G;
|
|
2020
|
+
(z = document == null ? void 0 : document.body) == null || z.classList.add("kong-ui-app-layout-body"), (G = document == null ? void 0 : document.documentElement) == null || G.classList.add("kong-ui-app-layout-html"), M.value = window == null ? void 0 : window.innerWidth, te(!0);
|
|
2021
|
+
const N = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
2022
|
+
N && (ae.value = new ResizeObserver((Z) => {
|
|
2020
2023
|
window.requestAnimationFrame(() => {
|
|
2021
|
-
if (!(!Array.isArray(
|
|
2022
|
-
for (const
|
|
2023
|
-
const c =
|
|
2024
|
+
if (!(!Array.isArray(Z) || !Z.length))
|
|
2025
|
+
for (const $ of Z) {
|
|
2026
|
+
const c = $.contentRect.height;
|
|
2024
2027
|
S.value !== c && (S.value = c);
|
|
2025
2028
|
}
|
|
2026
2029
|
});
|
|
2027
|
-
}), ae.value.observe(
|
|
2030
|
+
}), ae.value.observe(N)), window.addEventListener("resize", te);
|
|
2028
2031
|
}), Ut(() => {
|
|
2029
|
-
ae.value && ae.value.disconnect(), window.removeEventListener("resize",
|
|
2030
|
-
}), (
|
|
2031
|
-
class:
|
|
2032
|
-
{ "navbar-hidden":
|
|
2033
|
-
{ "sidebar-hidden":
|
|
2032
|
+
ae.value && ae.value.disconnect(), window.removeEventListener("resize", te);
|
|
2033
|
+
}), (N, z) => (b(), w("div", {
|
|
2034
|
+
class: oe(["kong-ui-app-layout", [
|
|
2035
|
+
{ "navbar-hidden": v.hidden },
|
|
2036
|
+
{ "sidebar-hidden": g.hidden }
|
|
2034
2037
|
]])
|
|
2035
2038
|
}, [
|
|
2036
|
-
|
|
2037
|
-
T(
|
|
2039
|
+
O("div", ki, [
|
|
2040
|
+
T(N.$slots, "notification", {}, void 0, !0)
|
|
2038
2041
|
]),
|
|
2039
|
-
|
|
2040
|
-
key: String(
|
|
2041
|
-
"left-offset":
|
|
2042
|
+
v.hidden ? C("", !0) : (b(), K(ir, {
|
|
2043
|
+
key: String(g.hidden),
|
|
2044
|
+
"left-offset": g.hidden ? 0 : void 0,
|
|
2042
2045
|
"top-offset": S.value
|
|
2043
2046
|
}, Ue({
|
|
2044
|
-
"mobile-sidebar-toggle":
|
|
2045
|
-
|
|
2047
|
+
"mobile-sidebar-toggle": B(() => [
|
|
2048
|
+
g.hidden ? C("", !0) : (b(), K(wi, {
|
|
2046
2049
|
key: 0,
|
|
2047
|
-
active:
|
|
2048
|
-
onToggle:
|
|
2050
|
+
active: x.value,
|
|
2051
|
+
onToggle: R
|
|
2049
2052
|
}, null, 8, ["active"]))
|
|
2050
2053
|
]),
|
|
2051
2054
|
_: 2
|
|
2052
2055
|
}, [
|
|
2053
2056
|
u.navbarMobileLogo ? {
|
|
2054
2057
|
name: "mobile-logo",
|
|
2055
|
-
fn:
|
|
2056
|
-
|
|
2057
|
-
T(
|
|
2058
|
+
fn: B(() => [
|
|
2059
|
+
O("div", _i, [
|
|
2060
|
+
T(N.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
2058
2061
|
])
|
|
2059
2062
|
]),
|
|
2060
2063
|
key: "0"
|
|
2061
2064
|
} : void 0,
|
|
2062
2065
|
u.navbarLogo ? {
|
|
2063
2066
|
name: "logo",
|
|
2064
|
-
fn:
|
|
2065
|
-
|
|
2066
|
-
T(
|
|
2067
|
-
])) :
|
|
2067
|
+
fn: B(() => [
|
|
2068
|
+
g.hidden ? (b(), w("div", Ti, [
|
|
2069
|
+
T(N.$slots, "navbar-logo", {}, void 0, !0)
|
|
2070
|
+
])) : C("", !0)
|
|
2068
2071
|
]),
|
|
2069
2072
|
key: "1"
|
|
2070
2073
|
} : void 0,
|
|
2071
2074
|
u.navbarLeft ? {
|
|
2072
2075
|
name: "left",
|
|
2073
|
-
fn:
|
|
2074
|
-
T(
|
|
2076
|
+
fn: B(() => [
|
|
2077
|
+
T(N.$slots, "navbar-left", {}, void 0, !0)
|
|
2075
2078
|
]),
|
|
2076
2079
|
key: "2"
|
|
2077
2080
|
} : void 0,
|
|
2078
2081
|
u.navbarCenter ? {
|
|
2079
2082
|
name: "center",
|
|
2080
|
-
fn:
|
|
2081
|
-
T(
|
|
2083
|
+
fn: B(() => [
|
|
2084
|
+
T(N.$slots, "navbar-center", {}, void 0, !0)
|
|
2082
2085
|
]),
|
|
2083
2086
|
key: "3"
|
|
2084
2087
|
} : void 0,
|
|
2085
2088
|
u.navbarRight ? {
|
|
2086
2089
|
name: "right",
|
|
2087
|
-
fn:
|
|
2088
|
-
T(
|
|
2090
|
+
fn: B(() => [
|
|
2091
|
+
T(N.$slots, "navbar-right", {}, void 0, !0)
|
|
2089
2092
|
]),
|
|
2090
2093
|
key: "4"
|
|
2091
2094
|
} : void 0
|
|
2092
2095
|
]), 1032, ["left-offset", "top-offset"])),
|
|
2093
|
-
|
|
2096
|
+
g.hidden ? C("", !0) : (b(), K(mi, {
|
|
2094
2097
|
key: 1,
|
|
2095
|
-
"bottom-items":
|
|
2098
|
+
"bottom-items": g.bottomItems,
|
|
2096
2099
|
"group-config": n.groupConfig,
|
|
2097
2100
|
"header-height": j.value,
|
|
2098
2101
|
"mobile-enabled": "",
|
|
2099
2102
|
"mobile-header-visible": !1,
|
|
2100
|
-
"mobile-top-offset":
|
|
2101
|
-
open:
|
|
2102
|
-
"top-items":
|
|
2103
|
+
"mobile-top-offset": W.value,
|
|
2104
|
+
open: x.value,
|
|
2105
|
+
"top-items": g.topItems,
|
|
2103
2106
|
"top-offset": S.value,
|
|
2104
|
-
onClick:
|
|
2105
|
-
onToggle:
|
|
2107
|
+
onClick: E,
|
|
2108
|
+
onToggle: R,
|
|
2109
|
+
onToggleCollapse: z[0] || (z[0] = (G, Z) => a("toggle-collapse", G, Z))
|
|
2106
2110
|
}, Ue({ _: 2 }, [
|
|
2107
2111
|
u.sidebarHeader ? {
|
|
2108
2112
|
name: "header",
|
|
2109
|
-
fn:
|
|
2110
|
-
T(
|
|
2113
|
+
fn: B(() => [
|
|
2114
|
+
T(N.$slots, "sidebar-header", {}, void 0, !0)
|
|
2111
2115
|
]),
|
|
2112
2116
|
key: "0"
|
|
2113
2117
|
} : void 0,
|
|
2114
2118
|
u.sidebarTop ? {
|
|
2115
2119
|
name: "top",
|
|
2116
|
-
fn:
|
|
2117
|
-
T(
|
|
2120
|
+
fn: B(() => [
|
|
2121
|
+
T(N.$slots, "sidebar-top", {}, void 0, !0)
|
|
2118
2122
|
]),
|
|
2119
2123
|
key: "1"
|
|
2120
2124
|
} : void 0,
|
|
2121
2125
|
u.sidebarFooter ? {
|
|
2122
2126
|
name: "footer",
|
|
2123
|
-
fn:
|
|
2124
|
-
T(
|
|
2127
|
+
fn: B(() => [
|
|
2128
|
+
T(N.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2125
2129
|
]),
|
|
2126
2130
|
key: "2"
|
|
2127
2131
|
} : void 0,
|
|
2128
|
-
|
|
2129
|
-
name: `sidebar-icon-${
|
|
2130
|
-
fn:
|
|
2131
|
-
T(
|
|
2132
|
+
we([...g.topItems || [], ...g.bottomItems || []], (G) => ({
|
|
2133
|
+
name: `sidebar-icon-${G.key}`,
|
|
2134
|
+
fn: B(() => [
|
|
2135
|
+
T(N.$slots, `sidebar-icon-${G.key}`, {}, void 0, !0)
|
|
2132
2136
|
])
|
|
2133
2137
|
}))
|
|
2134
2138
|
]), 1032, ["bottom-items", "group-config", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
T(
|
|
2140
|
-
o.value ?
|
|
2139
|
+
O("main", Si, [
|
|
2140
|
+
O("div", Ci, [
|
|
2141
|
+
O("div", Ii, [
|
|
2142
|
+
z[1] || (z[1] = O("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2143
|
+
T(N.$slots, "app-error", {}, void 0, !0),
|
|
2144
|
+
o.value ? C("", !0) : T(N.$slots, "default", { key: 0 }, void 0, !0)
|
|
2141
2145
|
])
|
|
2142
2146
|
])
|
|
2143
2147
|
])
|
|
2144
2148
|
], 2));
|
|
2145
2149
|
}
|
|
2146
|
-
}), $i = /* @__PURE__ */
|
|
2150
|
+
}), $i = /* @__PURE__ */ ie(Oi, [["__scopeId", "data-v-81828fa2"]]), Ei = { class: "kong-ui-app-page-header" }, Ai = {
|
|
2147
2151
|
key: 0,
|
|
2148
2152
|
class: "page-header-breadcrumbs",
|
|
2149
2153
|
"data-testid": "page-header-breadcrumbs"
|
|
@@ -2163,7 +2167,7 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
2163
2167
|
key: 1,
|
|
2164
2168
|
class: "page-header-section-below",
|
|
2165
2169
|
"data-testid": "page-header-section-below"
|
|
2166
|
-
}, Mi = /* @__PURE__ */
|
|
2170
|
+
}, Mi = /* @__PURE__ */ re({
|
|
2167
2171
|
__name: "AppPageHeader",
|
|
2168
2172
|
props: {
|
|
2169
2173
|
title: {
|
|
@@ -2182,46 +2186,46 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
2182
2186
|
return !!((u = t.breadcrumbs) != null && u.length);
|
|
2183
2187
|
}), s = _(() => Object.keys(r).filter((u) => u.startsWith("icon-")));
|
|
2184
2188
|
return (u, o) => {
|
|
2185
|
-
const
|
|
2186
|
-
return
|
|
2187
|
-
a.value ? (
|
|
2188
|
-
xe(
|
|
2189
|
+
const v = ve("KBreadcrumbs");
|
|
2190
|
+
return b(), w("div", Ei, [
|
|
2191
|
+
a.value ? (b(), w("div", Ai, [
|
|
2192
|
+
xe(v, {
|
|
2189
2193
|
"item-max-width": "150",
|
|
2190
2194
|
items: n.breadcrumbs
|
|
2191
2195
|
}, Ue({ _: 2 }, [
|
|
2192
|
-
|
|
2193
|
-
name:
|
|
2194
|
-
fn:
|
|
2195
|
-
T(u.$slots,
|
|
2196
|
+
we(s.value, (g) => ({
|
|
2197
|
+
name: g,
|
|
2198
|
+
fn: B(() => [
|
|
2199
|
+
T(u.$slots, g, {}, void 0, !0)
|
|
2196
2200
|
])
|
|
2197
2201
|
}))
|
|
2198
2202
|
]), 1032, ["items"])
|
|
2199
|
-
])) :
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
u.$slots["title-before"] ? (
|
|
2203
|
+
])) : C("", !0),
|
|
2204
|
+
O("div", Fi, [
|
|
2205
|
+
O("div", Ni, [
|
|
2206
|
+
u.$slots["title-before"] ? (b(), w("div", Di, [
|
|
2203
2207
|
T(u.$slots, "title-before", {}, void 0, !0)
|
|
2204
|
-
])) :
|
|
2205
|
-
|
|
2208
|
+
])) : C("", !0),
|
|
2209
|
+
O("h1", {
|
|
2206
2210
|
class: "page-header-title",
|
|
2207
2211
|
"data-testid": "page-header-title",
|
|
2208
2212
|
title: n.title
|
|
2209
|
-
},
|
|
2210
|
-
u.$slots["title-after"] ? (
|
|
2213
|
+
}, Y(n.title), 9, Ri),
|
|
2214
|
+
u.$slots["title-after"] ? (b(), w("div", xi, [
|
|
2211
2215
|
T(u.$slots, "title-after", {}, void 0, !0)
|
|
2212
|
-
])) :
|
|
2216
|
+
])) : C("", !0)
|
|
2213
2217
|
]),
|
|
2214
|
-
u.$slots.actions ? (
|
|
2218
|
+
u.$slots.actions ? (b(), w("div", Bi, [
|
|
2215
2219
|
T(u.$slots, "actions", {}, void 0, !0)
|
|
2216
|
-
])) :
|
|
2220
|
+
])) : C("", !0)
|
|
2217
2221
|
]),
|
|
2218
|
-
u.$slots.below ? (
|
|
2222
|
+
u.$slots.below ? (b(), w("div", Li, [
|
|
2219
2223
|
T(u.$slots, "below", {}, void 0, !0)
|
|
2220
|
-
])) :
|
|
2224
|
+
])) : C("", !0)
|
|
2221
2225
|
]);
|
|
2222
2226
|
};
|
|
2223
2227
|
}
|
|
2224
|
-
}), qi = /* @__PURE__ */
|
|
2228
|
+
}), qi = /* @__PURE__ */ ie(Mi, [["__scopeId", "data-v-204b7f98"]]), Pi = { class: "app-page-info-section-default-header" }, ji = {
|
|
2225
2229
|
key: 1,
|
|
2226
2230
|
class: "app-page-info-section-description",
|
|
2227
2231
|
"data-testid": "app-page-info-section-description"
|
|
@@ -2229,7 +2233,7 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
2229
2233
|
key: 0,
|
|
2230
2234
|
class: "app-page-info-section-content",
|
|
2231
2235
|
"data-testid": "app-page-info-section-content"
|
|
2232
|
-
}, Zi = /* @__PURE__ */
|
|
2236
|
+
}, Zi = /* @__PURE__ */ re({
|
|
2233
2237
|
__name: "AppPageInfoSection",
|
|
2234
2238
|
props: {
|
|
2235
2239
|
collapsible: {
|
|
@@ -2251,47 +2255,47 @@ const oi = /* @__PURE__ */ ri(ii), si = {
|
|
|
2251
2255
|
}
|
|
2252
2256
|
},
|
|
2253
2257
|
setup(n) {
|
|
2254
|
-
return (t, r) => (
|
|
2258
|
+
return (t, r) => (b(), K($e(n.collapsible ? "details" : "div"), {
|
|
2255
2259
|
class: "app-page-info-section",
|
|
2256
2260
|
"data-testid": "app-page-info-section"
|
|
2257
2261
|
}, {
|
|
2258
|
-
default:
|
|
2259
|
-
(
|
|
2262
|
+
default: B(() => [
|
|
2263
|
+
(b(), K($e(n.collapsible ? "summary" : "div"), {
|
|
2260
2264
|
class: "app-page-info-section-header",
|
|
2261
2265
|
"data-testid": "app-page-info-section-header"
|
|
2262
2266
|
}, {
|
|
2263
|
-
default:
|
|
2267
|
+
default: B(() => [
|
|
2264
2268
|
T(t.$slots, "header", {}, () => [
|
|
2265
|
-
|
|
2266
|
-
n.title ? (
|
|
2269
|
+
O("div", Pi, [
|
|
2270
|
+
n.title ? (b(), K($e(n.titleTag), {
|
|
2267
2271
|
key: 0,
|
|
2268
2272
|
class: "app-page-info-section-title",
|
|
2269
2273
|
"data-testid": "app-page-info-section-title"
|
|
2270
2274
|
}, {
|
|
2271
|
-
default:
|
|
2272
|
-
Re(
|
|
2275
|
+
default: B(() => [
|
|
2276
|
+
Re(Y(n.title), 1)
|
|
2273
2277
|
]),
|
|
2274
2278
|
_: 1
|
|
2275
|
-
})) :
|
|
2276
|
-
n.description ? (
|
|
2279
|
+
})) : C("", !0),
|
|
2280
|
+
n.description ? (b(), w("div", ji, Y(n.description), 1)) : C("", !0)
|
|
2277
2281
|
])
|
|
2278
2282
|
]),
|
|
2279
|
-
n.collapsible ? (
|
|
2283
|
+
n.collapsible ? (b(), K(ge(Wt), {
|
|
2280
2284
|
key: 0,
|
|
2281
2285
|
class: "app-page-info-section-chevron-icon",
|
|
2282
2286
|
decorative: ""
|
|
2283
|
-
})) : t.$slots.actions ? T(t.$slots, "actions", { key: 1 }) :
|
|
2287
|
+
})) : t.$slots.actions ? T(t.$slots, "actions", { key: 1 }) : C("", !0)
|
|
2284
2288
|
]),
|
|
2285
2289
|
_: 3
|
|
2286
2290
|
})),
|
|
2287
|
-
t.$slots.default ? (
|
|
2291
|
+
t.$slots.default ? (b(), w("div", Ki, [
|
|
2288
2292
|
T(t.$slots, "default")
|
|
2289
|
-
])) :
|
|
2293
|
+
])) : C("", !0)
|
|
2290
2294
|
]),
|
|
2291
2295
|
_: 3
|
|
2292
2296
|
}));
|
|
2293
2297
|
}
|
|
2294
|
-
}), Xi = /* @__PURE__ */
|
|
2298
|
+
}), Xi = /* @__PURE__ */ ie(Zi, [["__scopeId", "data-v-62f17e32"]]), Yi = {
|
|
2295
2299
|
// Customize Vue plugin options as desired
|
|
2296
2300
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2297
2301
|
install: (n, t = {}) => {
|