@kong-ui-public/app-layout 2.2.4-pr.985.e37a05c6.0 → 2.2.4
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 +211 -221
- package/dist/app-layout.umd.js +4 -4
- package/package.json +5 -5
package/dist/app-layout.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ee, resolveComponent as ce, openBlock as h, createBlock as Q, withCtx as R, renderSlot as O, createElementBlock as m, Fragment as Ce, renderList as Ne, normalizeClass as re, createTextVNode as ct, toDisplayString as J, computed as g, createSlots as Pe, createVNode as
|
|
1
|
+
import { defineComponent as ee, resolveComponent as ce, openBlock as h, createBlock as Q, withCtx as R, renderSlot as O, createElementBlock as m, Fragment as Ce, renderList as Ne, normalizeClass as re, createTextVNode as ct, toDisplayString as J, computed as g, createSlots as Pe, createVNode as _e, createCommentVNode as C, createElementVNode as w, createStaticVNode as pn, pushScopeId as ze, popScopeId as Ge, useCssVars as ut, useSlots as dt, reactive as Me, onMounted as We, resolveDynamicComponent as mn, withKeys as gn, ref as q, watch as Ze, onUnmounted as yn, Comment as wn, cloneVNode as _n, onBeforeUnmount as Ht, unref as Tn, nextTick as kn, withModifiers as Sn, watchEffect as In, toRef as On } from "vue";
|
|
2
2
|
const Cn = /* @__PURE__ */ ee({
|
|
3
3
|
__name: "AccountDropdown",
|
|
4
4
|
props: {
|
|
@@ -48,8 +48,7 @@ const Cn = /* @__PURE__ */ ee({
|
|
|
48
48
|
}, 8, ["trigger-text", "width"]);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
})
|
|
52
|
-
const te = (n, t) => {
|
|
51
|
+
}), te = (n, t) => {
|
|
53
52
|
const a = n.__vccOpts || n;
|
|
54
53
|
for (const [r, l] of t)
|
|
55
54
|
a[r] = l;
|
|
@@ -57,18 +56,18 @@ const te = (n, t) => {
|
|
|
57
56
|
}, Hi = /* @__PURE__ */ te(Cn, [["__scopeId", "data-v-58c79282"]]), $n = {
|
|
58
57
|
class: "about-section-title",
|
|
59
58
|
"data-testid": "about-section-title"
|
|
60
|
-
}, Nn = { class: "about-section-header-end" },
|
|
59
|
+
}, Nn = { class: "about-section-header-end" }, En = {
|
|
61
60
|
key: 0,
|
|
62
61
|
class: "about-section-timestamps-created",
|
|
63
62
|
"data-testid": "about-section-timestamps-created"
|
|
64
|
-
},
|
|
63
|
+
}, An = {
|
|
65
64
|
key: 1,
|
|
66
65
|
class: "about-section-timestamps-arrow"
|
|
67
|
-
},
|
|
66
|
+
}, Fn = {
|
|
68
67
|
key: 2,
|
|
69
68
|
class: "about-section-timestamps-modified",
|
|
70
69
|
"data-testid": "about-section-timestamps-modified"
|
|
71
|
-
},
|
|
70
|
+
}, xn = {
|
|
72
71
|
key: 1,
|
|
73
72
|
class: "about-section-actions",
|
|
74
73
|
"data-testid": "about-section-actions"
|
|
@@ -129,11 +128,11 @@ const te = (n, t) => {
|
|
|
129
128
|
return h(), Q(o, { class: "kong-ui-app-about-section" }, Pe({
|
|
130
129
|
default: R(() => [
|
|
131
130
|
n.isLoading ? (h(), m("div", Dn, [
|
|
132
|
-
|
|
131
|
+
_e(d, {
|
|
133
132
|
height: "2",
|
|
134
133
|
width: "100"
|
|
135
134
|
}),
|
|
136
|
-
|
|
135
|
+
_e(d, {
|
|
137
136
|
height: "2",
|
|
138
137
|
width: "100"
|
|
139
138
|
})
|
|
@@ -153,23 +152,23 @@ const te = (n, t) => {
|
|
|
153
152
|
n.title ? {
|
|
154
153
|
name: "title",
|
|
155
154
|
fn: R(() => [
|
|
156
|
-
|
|
155
|
+
w("span", $n, J(n.title), 1)
|
|
157
156
|
]),
|
|
158
157
|
key: "0"
|
|
159
158
|
} : void 0,
|
|
160
159
|
r.$slots.actions || n.created || n.modified ? {
|
|
161
160
|
name: "actions",
|
|
162
161
|
fn: R(() => [
|
|
163
|
-
|
|
162
|
+
w("div", Nn, [
|
|
164
163
|
n.created || n.modified ? (h(), m("div", {
|
|
165
164
|
key: 0,
|
|
166
165
|
class: re(["about-section-timestamps", { "has-actions": r.$slots.actions }])
|
|
167
166
|
}, [
|
|
168
|
-
n.created ? (h(), m("span",
|
|
169
|
-
n.created && a.value ? (h(), m("span",
|
|
170
|
-
a.value ? (h(), m("span",
|
|
167
|
+
n.created ? (h(), m("span", En, J(n.createdLabel) + ": " + J(n.created), 1)) : C("", !0),
|
|
168
|
+
n.created && a.value ? (h(), m("span", An, "->")) : C("", !0),
|
|
169
|
+
a.value ? (h(), m("span", Fn, J(n.modifiedLabel) + ": " + J(n.modified), 1)) : C("", !0)
|
|
171
170
|
], 2)) : C("", !0),
|
|
172
|
-
r.$slots.actions ? (h(), m("div",
|
|
171
|
+
r.$slots.actions ? (h(), m("div", xn, [
|
|
173
172
|
O(r.$slots, "actions", {}, void 0, !0)
|
|
174
173
|
])) : C("", !0)
|
|
175
174
|
])
|
|
@@ -179,8 +178,7 @@ const te = (n, t) => {
|
|
|
179
178
|
]), 1024);
|
|
180
179
|
};
|
|
181
180
|
}
|
|
182
|
-
})
|
|
183
|
-
const Ui = /* @__PURE__ */ te(Zn, [["__scopeId", "data-v-d4c8058d"]]), Kn = {}, jn = {
|
|
181
|
+
}), Ui = /* @__PURE__ */ te(Zn, [["__scopeId", "data-v-d4c8058d"]]), Kn = {}, jn = {
|
|
184
182
|
fill: "none",
|
|
185
183
|
height: "130",
|
|
186
184
|
width: "130",
|
|
@@ -191,18 +189,18 @@ const Ui = /* @__PURE__ */ te(Zn, [["__scopeId", "data-v-d4c8058d"]]), Kn = {},
|
|
|
191
189
|
function Vn(n, t) {
|
|
192
190
|
return h(), m("svg", jn, Un);
|
|
193
191
|
}
|
|
194
|
-
const zn = /* @__PURE__ */ te(Kn, [["render", Vn]]), Ut = (n) => (ze("data-v-5cbccc66"), n = n(), Ge(), n), Gn = { class: "kong-ui-app-error" }, Wn = { class: "banana-icon" }, qn = { class: "kong-ui-app-error-content" }, Xn = /* @__PURE__ */ Ut(() => /* @__PURE__ */
|
|
192
|
+
const zn = /* @__PURE__ */ te(Kn, [["render", Vn]]), Ut = (n) => (ze("data-v-5cbccc66"), n = n(), Ge(), n), Gn = { class: "kong-ui-app-error" }, Wn = { class: "banana-icon" }, qn = { class: "kong-ui-app-error-content" }, Xn = /* @__PURE__ */ Ut(() => /* @__PURE__ */ w("h2", null, "An unexpected error has occurred", -1)), Yn = /* @__PURE__ */ Ut(() => /* @__PURE__ */ w("p", null, [
|
|
195
193
|
/* @__PURE__ */ ct("Go back to the previous page or "),
|
|
196
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ w("a", { href: "/" }, "return home"),
|
|
197
195
|
/* @__PURE__ */ ct(".")
|
|
198
196
|
], -1)), Jn = /* @__PURE__ */ ee({
|
|
199
197
|
__name: "AppError",
|
|
200
198
|
setup(n) {
|
|
201
199
|
return (t, a) => (h(), m("section", Gn, [
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
w("div", Wn, [
|
|
201
|
+
_e(zn)
|
|
204
202
|
]),
|
|
205
|
-
|
|
203
|
+
w("div", qn, [
|
|
206
204
|
O(t.$slots, "default", {}, () => [
|
|
207
205
|
Xn,
|
|
208
206
|
Yn
|
|
@@ -210,8 +208,7 @@ const zn = /* @__PURE__ */ te(Kn, [["render", Vn]]), Ut = (n) => (ze("data-v-5cb
|
|
|
210
208
|
])
|
|
211
209
|
]));
|
|
212
210
|
}
|
|
213
|
-
})
|
|
214
|
-
const Vi = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-5cbccc66"]]), Qn = { class: "kong-ui-app-navbar" }, er = { class: "header-content" }, tr = { class: "mobile-header-left" }, ar = {
|
|
211
|
+
}), Vi = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-5cbccc66"]]), Qn = { class: "kong-ui-app-navbar" }, er = { class: "header-content" }, tr = { class: "mobile-header-left" }, ar = {
|
|
215
212
|
key: 0,
|
|
216
213
|
class: "app-navbar-logo"
|
|
217
214
|
}, nr = { class: "navbar-content" }, rr = { class: "navbar-content-left" }, ir = { class: "navbar-content-center" }, or = { class: "navbar-content-right" }, sr = /* @__PURE__ */ ee({
|
|
@@ -254,30 +251,29 @@ const Vi = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-5cbccc66"]]), Qn = { cl
|
|
|
254
251
|
zIndex: t.zIndex
|
|
255
252
|
}));
|
|
256
253
|
return (o, v) => (h(), m("header", Qn, [
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
w("div", er, [
|
|
255
|
+
w("div", tr, [
|
|
259
256
|
O(o.$slots, "mobile-sidebar-toggle"),
|
|
260
257
|
O(o.$slots, "mobile-logo")
|
|
261
258
|
]),
|
|
262
259
|
r.value ? (h(), m("div", ar, [
|
|
263
260
|
O(o.$slots, "logo")
|
|
264
261
|
])) : C("", !0),
|
|
265
|
-
|
|
266
|
-
|
|
262
|
+
w("div", nr, [
|
|
263
|
+
w("div", rr, [
|
|
267
264
|
O(o.$slots, "left")
|
|
268
265
|
]),
|
|
269
|
-
|
|
266
|
+
w("div", ir, [
|
|
270
267
|
O(o.$slots, "center")
|
|
271
268
|
]),
|
|
272
|
-
|
|
269
|
+
w("div", or, [
|
|
273
270
|
O(o.$slots, "right")
|
|
274
271
|
])
|
|
275
272
|
])
|
|
276
273
|
])
|
|
277
274
|
]));
|
|
278
275
|
}
|
|
279
|
-
})
|
|
280
|
-
const cr = /* @__PURE__ */ te(sr, [["__scopeId", "data-v-beca6ea9"]]), lr = ["title"], ot = 99, ur = /* @__PURE__ */ ee({
|
|
276
|
+
}), cr = /* @__PURE__ */ te(sr, [["__scopeId", "data-v-beca6ea9"]]), lr = ["title"], ot = 99, ur = /* @__PURE__ */ ee({
|
|
281
277
|
__name: "ItemBadge",
|
|
282
278
|
props: {
|
|
283
279
|
count: {
|
|
@@ -294,8 +290,7 @@ const cr = /* @__PURE__ */ te(sr, [["__scopeId", "data-v-beca6ea9"]]), lr = ["ti
|
|
|
294
290
|
title: (n.count || 0) > ot ? String(n.count) : void 0
|
|
295
291
|
}, J(a.value), 9, lr)) : C("", !0);
|
|
296
292
|
}
|
|
297
|
-
})
|
|
298
|
-
const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["data-testid"], vr = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], br = {
|
|
293
|
+
}), dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["data-testid"], vr = ["aria-controls", "aria-expanded", "href", "target", "onClick", "onKeypress"], br = {
|
|
299
294
|
key: 0,
|
|
300
295
|
class: "sidebar-item-icon"
|
|
301
296
|
}, hr = { class: "sidebar-item-name-container" }, pr = { class: "sidebar-item-name has-tooltip" }, mr = {
|
|
@@ -317,12 +312,12 @@ const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["da
|
|
|
317
312
|
setup(n, { emit: t }) {
|
|
318
313
|
const a = n, r = g(() => typeof a.item.to != "string" ? !1 : !!a.item.newWindow || !!a.item.external || a.item.to.startsWith("http")), l = g(() => !a.item.to || typeof a.item.to != "string" || !a.item.newWindow ? !1 : a.item.newWindow && (a.item.to.startsWith("http") || a.item.to.startsWith("/"))), d = g(() => a.subnavItem && a.item.badgeCount !== void 0), o = (p) => {
|
|
319
314
|
t("click", p);
|
|
320
|
-
}, v = (p,
|
|
321
|
-
o(
|
|
315
|
+
}, v = (p, _, x) => {
|
|
316
|
+
o(_), typeof x == "function" && (p.preventDefault(), x());
|
|
322
317
|
};
|
|
323
|
-
return (p,
|
|
318
|
+
return (p, _) => {
|
|
324
319
|
var I;
|
|
325
|
-
const
|
|
320
|
+
const x = ce("KIcon"), E = ce("KTooltip"), D = ce("SidebarItem", !0);
|
|
326
321
|
return h(), m("li", {
|
|
327
322
|
class: re([n.subnavItem ? "sidebar-item-secondary" : "sidebar-item-primary", { expanded: n.item.expanded }, { active: n.item.active }]),
|
|
328
323
|
"data-testid": n.item.testId ? `sidebar-item-${n.item.testId}` : void 0
|
|
@@ -334,7 +329,7 @@ const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["da
|
|
|
334
329
|
default: R((N) => {
|
|
335
330
|
var G, K;
|
|
336
331
|
return [
|
|
337
|
-
|
|
332
|
+
w("a", {
|
|
338
333
|
"aria-controls": (G = n.item.items) != null && G.length && n.item.expanded ? `subnav-${n.item.key}` : void 0,
|
|
339
334
|
"aria-expanded": (K = n.item.items) != null && K.length && n.item.expanded ? !0 : void 0,
|
|
340
335
|
class: re(["sidebar-item-link", { "sidebar-item-external-link": l.value, "router-link": !r.value }]),
|
|
@@ -343,20 +338,20 @@ const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["da
|
|
|
343
338
|
onClick: (Z) => v(Z, n.item, N == null ? void 0 : N.navigate),
|
|
344
339
|
onKeypress: gn((Z) => v(Z, n.item, N == null ? void 0 : N.navigate), ["enter"])
|
|
345
340
|
}, [
|
|
346
|
-
|
|
341
|
+
w("div", {
|
|
347
342
|
class: re(["sidebar-item-display", { "has-label": !!n.item.label && n.item.expanded, "has-badge": d.value }])
|
|
348
343
|
}, [
|
|
349
344
|
n.item.icon ? (h(), m("div", br, [
|
|
350
|
-
|
|
345
|
+
_e(x, {
|
|
351
346
|
icon: String(n.item.icon),
|
|
352
347
|
size: "20"
|
|
353
348
|
}, null, 8, ["icon"])
|
|
354
349
|
])) : C("", !0),
|
|
355
|
-
|
|
350
|
+
w("div", hr, [
|
|
356
351
|
(n.subnavItem ? n.item.name.length < 25 : n.item.name.length < 18) ? (h(), m("div", {
|
|
357
352
|
key: 0,
|
|
358
353
|
class: re(["sidebar-item-name truncate-text", [n.subnavItem ? "has-badge-max-width truncate-24" : "truncate-17"]])
|
|
359
|
-
}, J(n.item.name), 3)) : (h(), Q(
|
|
354
|
+
}, J(n.item.name), 3)) : (h(), Q(E, {
|
|
360
355
|
key: 1,
|
|
361
356
|
class: "sidebar-item-tooltip",
|
|
362
357
|
label: n.item.name,
|
|
@@ -364,8 +359,8 @@ const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["da
|
|
|
364
359
|
"position-fixed": ""
|
|
365
360
|
}, {
|
|
366
361
|
default: R(() => [
|
|
367
|
-
|
|
368
|
-
|
|
362
|
+
w("div", pr, [
|
|
363
|
+
w("span", {
|
|
369
364
|
class: re(["truncate-text", [n.subnavItem ? "truncate-18" : "truncate-17", { "has-badge-max-width": d.value }]])
|
|
370
365
|
}, J(n.item.name), 3)
|
|
371
366
|
])
|
|
@@ -399,8 +394,7 @@ const dr = /* @__PURE__ */ te(ur, [["__scopeId", "data-v-912b1a1b"]]), fr = ["da
|
|
|
399
394
|
], 10, fr);
|
|
400
395
|
};
|
|
401
396
|
}
|
|
402
|
-
});
|
|
403
|
-
const Bt = /* @__PURE__ */ te(yr, [["__scopeId", "data-v-34211277"]]);
|
|
397
|
+
}), Bt = /* @__PURE__ */ te(yr, [["__scopeId", "data-v-34211277"]]);
|
|
404
398
|
/*!
|
|
405
399
|
* tabbable 6.2.0
|
|
406
400
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
@@ -416,7 +410,7 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
416
410
|
a === void 0 && (a = !0);
|
|
417
411
|
var l = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), d = l === "" || l === "true", o = d || a && t && n(t.parentNode);
|
|
418
412
|
return o;
|
|
419
|
-
},
|
|
413
|
+
}, wr = function(t) {
|
|
420
414
|
var a, r = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
421
415
|
return r === "" || r === "true";
|
|
422
416
|
}, Gt = function(t, a, r) {
|
|
@@ -429,18 +423,18 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
429
423
|
var o = d.shift();
|
|
430
424
|
if (!He(o, !1))
|
|
431
425
|
if (o.tagName === "SLOT") {
|
|
432
|
-
var v = o.assignedElements(), p = v.length ? v : o.children,
|
|
433
|
-
r.flatten ? l.push.apply(l,
|
|
426
|
+
var v = o.assignedElements(), p = v.length ? v : o.children, _ = n(p, !0, r);
|
|
427
|
+
r.flatten ? l.push.apply(l, _) : l.push({
|
|
434
428
|
scopeParent: o,
|
|
435
|
-
candidates:
|
|
429
|
+
candidates: _
|
|
436
430
|
});
|
|
437
431
|
} else {
|
|
438
|
-
var
|
|
439
|
-
|
|
440
|
-
var
|
|
441
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !He(
|
|
442
|
-
if (
|
|
443
|
-
var I = n(
|
|
432
|
+
var x = be.call(o, Ke);
|
|
433
|
+
x && r.filter(o) && (a || !t.includes(o)) && l.push(o);
|
|
434
|
+
var E = o.shadowRoot || // check for an undisclosed shadow
|
|
435
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), D = !He(E, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
436
|
+
if (E && D) {
|
|
437
|
+
var I = n(E === !0 ? o.children : E.children, !0, r);
|
|
444
438
|
r.flatten ? l.push.apply(l, I) : l.push({
|
|
445
439
|
scopeParent: o,
|
|
446
440
|
candidates: I
|
|
@@ -455,8 +449,8 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
455
449
|
}, ve = function(t) {
|
|
456
450
|
if (!t)
|
|
457
451
|
throw new Error("No node provided");
|
|
458
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
459
|
-
},
|
|
452
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || wr(t)) && !qt(t) ? 0 : t.tabIndex;
|
|
453
|
+
}, _r = function(t, a) {
|
|
460
454
|
var r = ve(t);
|
|
461
455
|
return r < 0 && a && !qt(t) ? 0 : r;
|
|
462
456
|
}, Tr = function(t, a) {
|
|
@@ -499,15 +493,15 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
499
493
|
if (r && r !== t) {
|
|
500
494
|
var o, v, p;
|
|
501
495
|
for (d = !!((o = l) !== null && o !== void 0 && (v = o.ownerDocument) !== null && v !== void 0 && v.contains(l) || t != null && (p = t.ownerDocument) !== null && p !== void 0 && p.contains(t)); !d && l; ) {
|
|
502
|
-
var
|
|
503
|
-
r = je(l), l = (
|
|
496
|
+
var _, x, E;
|
|
497
|
+
r = je(l), l = (_ = r) === null || _ === void 0 ? void 0 : _.host, d = !!((x = l) !== null && x !== void 0 && (E = x.ownerDocument) !== null && E !== void 0 && E.contains(l));
|
|
504
498
|
}
|
|
505
499
|
}
|
|
506
500
|
return d;
|
|
507
501
|
}, Lt = function(t) {
|
|
508
502
|
var a = t.getBoundingClientRect(), r = a.width, l = a.height;
|
|
509
503
|
return r === 0 && l === 0;
|
|
510
|
-
},
|
|
504
|
+
}, Er = function(t, a) {
|
|
511
505
|
var r = a.displayCheck, l = a.getShadowRoot;
|
|
512
506
|
if (getComputedStyle(t).visibility === "hidden")
|
|
513
507
|
return !0;
|
|
@@ -517,10 +511,10 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
517
511
|
if (!r || r === "full" || r === "legacy-full") {
|
|
518
512
|
if (typeof l == "function") {
|
|
519
513
|
for (var v = t; t; ) {
|
|
520
|
-
var p = t.parentElement,
|
|
514
|
+
var p = t.parentElement, _ = je(t);
|
|
521
515
|
if (p && !p.shadowRoot && l(p) === !0)
|
|
522
516
|
return Lt(t);
|
|
523
|
-
t.assignedSlot ? t = t.assignedSlot : !p &&
|
|
517
|
+
t.assignedSlot ? t = t.assignedSlot : !p && _ !== t.ownerDocument ? t = _.host : t = p;
|
|
524
518
|
}
|
|
525
519
|
t = v;
|
|
526
520
|
}
|
|
@@ -531,7 +525,7 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
531
525
|
} else if (r === "non-zero-area")
|
|
532
526
|
return Lt(t);
|
|
533
527
|
return !1;
|
|
534
|
-
},
|
|
528
|
+
}, Ar = function(t) {
|
|
535
529
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
536
530
|
for (var a = t.parentElement; a; ) {
|
|
537
531
|
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
@@ -549,23 +543,23 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
549
543
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
550
544
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
551
545
|
// note related to `candidateSelectors`)
|
|
552
|
-
He(a) || kr(a) ||
|
|
553
|
-
Sr(a) ||
|
|
546
|
+
He(a) || kr(a) || Er(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
547
|
+
Sr(a) || Ar(a));
|
|
554
548
|
}, lt = function(t, a) {
|
|
555
549
|
return !($r(a) || ve(a) < 0 || !Ue(t, a));
|
|
556
|
-
},
|
|
550
|
+
}, Fr = function(t) {
|
|
557
551
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
558
552
|
return !!(isNaN(a) || a >= 0);
|
|
559
|
-
},
|
|
553
|
+
}, xr = function n(t) {
|
|
560
554
|
var a = [], r = [];
|
|
561
555
|
return t.forEach(function(l, d) {
|
|
562
|
-
var o = !!l.scopeParent, v = o ? l.scopeParent : l, p =
|
|
563
|
-
p === 0 ? o ? a.push.apply(a,
|
|
556
|
+
var o = !!l.scopeParent, v = o ? l.scopeParent : l, p = _r(v, o), _ = o ? n(l.candidates) : v;
|
|
557
|
+
p === 0 ? o ? a.push.apply(a, _) : a.push(v) : r.push({
|
|
564
558
|
documentOrder: d,
|
|
565
559
|
tabIndex: p,
|
|
566
560
|
item: l,
|
|
567
561
|
isScope: o,
|
|
568
|
-
content:
|
|
562
|
+
content: _
|
|
569
563
|
});
|
|
570
564
|
}), r.sort(Tr).reduce(function(l, d) {
|
|
571
565
|
return d.isScope ? l.push.apply(l, d.content) : l.push(d.content), l;
|
|
@@ -577,8 +571,8 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
577
571
|
filter: lt.bind(null, a),
|
|
578
572
|
flatten: !1,
|
|
579
573
|
getShadowRoot: a.getShadowRoot,
|
|
580
|
-
shadowRootFilter:
|
|
581
|
-
}) : r = Gt(t, a.includeContainer, lt.bind(null, a)),
|
|
574
|
+
shadowRootFilter: Fr
|
|
575
|
+
}) : r = Gt(t, a.includeContainer, lt.bind(null, a)), xr(r);
|
|
582
576
|
}, Rr = function(t, a) {
|
|
583
577
|
a = a || {};
|
|
584
578
|
var r;
|
|
@@ -587,7 +581,7 @@ var Vt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
587
581
|
flatten: !0,
|
|
588
582
|
getShadowRoot: a.getShadowRoot
|
|
589
583
|
}) : r = Gt(t, a.includeContainer, Ue.bind(null, a)), r;
|
|
590
|
-
},
|
|
584
|
+
}, we = function(t, a) {
|
|
591
585
|
if (a = a || {}, !t)
|
|
592
586
|
throw new Error("No node provided");
|
|
593
587
|
return be.call(t, Ke) === !1 ? !1 : lt(a, t);
|
|
@@ -726,19 +720,19 @@ var Zt = {
|
|
|
726
720
|
recentNavEvent: void 0
|
|
727
721
|
}, v, p = function(s, u, f) {
|
|
728
722
|
return s && s[u] !== void 0 ? s[u] : d[f || u];
|
|
729
|
-
},
|
|
723
|
+
}, _ = function(s, u) {
|
|
730
724
|
var f = typeof (u == null ? void 0 : u.composedPath) == "function" ? u.composedPath() : void 0;
|
|
731
725
|
return o.containerGroups.findIndex(function(y) {
|
|
732
|
-
var k = y.container,
|
|
726
|
+
var k = y.container, A = y.tabbableNodes;
|
|
733
727
|
return k.contains(s) || // fall back to explicit tabbable search which will take into consideration any
|
|
734
728
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
735
729
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
736
730
|
// look inside web components even if open)
|
|
737
|
-
(f == null ? void 0 : f.includes(k)) ||
|
|
738
|
-
return
|
|
731
|
+
(f == null ? void 0 : f.includes(k)) || A.find(function(F) {
|
|
732
|
+
return F === s;
|
|
739
733
|
});
|
|
740
734
|
});
|
|
741
|
-
},
|
|
735
|
+
}, x = function(s) {
|
|
742
736
|
var u = d[s];
|
|
743
737
|
if (typeof u == "function") {
|
|
744
738
|
for (var f = arguments.length, y = new Array(f > 1 ? f - 1 : 0), k = 1; k < f; k++)
|
|
@@ -750,30 +744,30 @@ var Zt = {
|
|
|
750
744
|
return u;
|
|
751
745
|
throw new Error("`".concat(s, "` was specified but was not a node, or did not return a node"));
|
|
752
746
|
}
|
|
753
|
-
var
|
|
754
|
-
if (typeof u == "string" && (
|
|
747
|
+
var A = u;
|
|
748
|
+
if (typeof u == "string" && (A = r.querySelector(u), !A))
|
|
755
749
|
throw new Error("`".concat(s, "` as selector refers to no known node"));
|
|
756
|
-
return
|
|
757
|
-
},
|
|
758
|
-
var s =
|
|
750
|
+
return A;
|
|
751
|
+
}, E = function() {
|
|
752
|
+
var s = x("initialFocus");
|
|
759
753
|
if (s === !1)
|
|
760
754
|
return !1;
|
|
761
755
|
if (s === void 0 || !st(s, d.tabbableOptions))
|
|
762
|
-
if (
|
|
756
|
+
if (_(r.activeElement) >= 0)
|
|
763
757
|
s = r.activeElement;
|
|
764
758
|
else {
|
|
765
759
|
var u = o.tabbableGroups[0], f = u && u.firstTabbableNode;
|
|
766
|
-
s = f ||
|
|
760
|
+
s = f || x("fallbackFocus");
|
|
767
761
|
}
|
|
768
762
|
if (!s)
|
|
769
763
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
770
764
|
return s;
|
|
771
765
|
}, D = function() {
|
|
772
766
|
if (o.containerGroups = o.containers.map(function(s) {
|
|
773
|
-
var u = Dr(s, d.tabbableOptions), f = Rr(s, d.tabbableOptions), y = u.length > 0 ? u[0] : void 0, k = u.length > 0 ? u[u.length - 1] : void 0,
|
|
774
|
-
return
|
|
775
|
-
}),
|
|
776
|
-
return
|
|
767
|
+
var u = Dr(s, d.tabbableOptions), f = Rr(s, d.tabbableOptions), y = u.length > 0 ? u[0] : void 0, k = u.length > 0 ? u[u.length - 1] : void 0, A = f.find(function(B) {
|
|
768
|
+
return we(B);
|
|
769
|
+
}), F = f.slice().reverse().find(function(B) {
|
|
770
|
+
return we(B);
|
|
777
771
|
}), P = !!u.find(function(B) {
|
|
778
772
|
return ve(B) > 0;
|
|
779
773
|
});
|
|
@@ -795,9 +789,9 @@ var Zt = {
|
|
|
795
789
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
796
790
|
// be avoided anyway...
|
|
797
791
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
798
|
-
firstDomTabbableNode:
|
|
792
|
+
firstDomTabbableNode: A,
|
|
799
793
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
800
|
-
lastDomTabbableNode:
|
|
794
|
+
lastDomTabbableNode: F,
|
|
801
795
|
/**
|
|
802
796
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
803
797
|
* in this container, if any.
|
|
@@ -809,15 +803,15 @@ var Zt = {
|
|
|
809
803
|
nextTabbableNode: function(T) {
|
|
810
804
|
var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ne = u.indexOf(T);
|
|
811
805
|
return ne < 0 ? le ? f.slice(f.indexOf(T) + 1).find(function(H) {
|
|
812
|
-
return
|
|
806
|
+
return we(H);
|
|
813
807
|
}) : f.slice(0, f.indexOf(T)).reverse().find(function(H) {
|
|
814
|
-
return
|
|
808
|
+
return we(H);
|
|
815
809
|
}) : u[ne + (le ? 1 : -1)];
|
|
816
810
|
}
|
|
817
811
|
};
|
|
818
812
|
}), o.tabbableGroups = o.containerGroups.filter(function(s) {
|
|
819
813
|
return s.tabbableNodes.length > 0;
|
|
820
|
-
}), o.tabbableGroups.length <= 0 && !
|
|
814
|
+
}), o.tabbableGroups.length <= 0 && !x("fallbackFocus"))
|
|
821
815
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
822
816
|
if (o.containerGroups.find(function(s) {
|
|
823
817
|
return s.posTabIndexesFound;
|
|
@@ -826,7 +820,7 @@ var Zt = {
|
|
|
826
820
|
}, I = function S(s) {
|
|
827
821
|
if (s !== !1 && s !== r.activeElement) {
|
|
828
822
|
if (!s || !s.focus) {
|
|
829
|
-
S(
|
|
823
|
+
S(E());
|
|
830
824
|
return;
|
|
831
825
|
}
|
|
832
826
|
s.focus({
|
|
@@ -834,43 +828,43 @@ var Zt = {
|
|
|
834
828
|
}), o.mostRecentlyFocusedNode = s, Zr(s) && s.select();
|
|
835
829
|
}
|
|
836
830
|
}, N = function(s) {
|
|
837
|
-
var u =
|
|
831
|
+
var u = x("setReturnFocus", s);
|
|
838
832
|
return u || (u === !1 ? !1 : s);
|
|
839
833
|
}, G = function(s) {
|
|
840
834
|
var u = s.target, f = s.event, y = s.isBackward, k = y === void 0 ? !1 : y;
|
|
841
835
|
u = u || Be(f), D();
|
|
842
|
-
var
|
|
836
|
+
var A = null;
|
|
843
837
|
if (o.tabbableGroups.length > 0) {
|
|
844
|
-
var
|
|
845
|
-
if (
|
|
846
|
-
k ?
|
|
838
|
+
var F = _(u, f), P = F >= 0 ? o.containerGroups[F] : void 0;
|
|
839
|
+
if (F < 0)
|
|
840
|
+
k ? A = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : A = o.tabbableGroups[0].firstTabbableNode;
|
|
847
841
|
else if (k) {
|
|
848
842
|
var B = jt(o.tabbableGroups, function(he) {
|
|
849
843
|
var ke = he.firstTabbableNode;
|
|
850
844
|
return u === ke;
|
|
851
845
|
});
|
|
852
|
-
if (B < 0 && (P.container === u || st(u, d.tabbableOptions) && !
|
|
846
|
+
if (B < 0 && (P.container === u || st(u, d.tabbableOptions) && !we(u, d.tabbableOptions) && !P.nextTabbableNode(u, !1)) && (B = F), B >= 0) {
|
|
853
847
|
var T = B === 0 ? o.tabbableGroups.length - 1 : B - 1, le = o.tabbableGroups[T];
|
|
854
|
-
|
|
848
|
+
A = ve(u) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
|
|
855
849
|
} else
|
|
856
|
-
$e(f) || (
|
|
850
|
+
$e(f) || (A = P.nextTabbableNode(u, !1));
|
|
857
851
|
} else {
|
|
858
852
|
var ne = jt(o.tabbableGroups, function(he) {
|
|
859
853
|
var ke = he.lastTabbableNode;
|
|
860
854
|
return u === ke;
|
|
861
855
|
});
|
|
862
|
-
if (ne < 0 && (P.container === u || st(u, d.tabbableOptions) && !
|
|
856
|
+
if (ne < 0 && (P.container === u || st(u, d.tabbableOptions) && !we(u, d.tabbableOptions) && !P.nextTabbableNode(u)) && (ne = F), ne >= 0) {
|
|
863
857
|
var H = ne === o.tabbableGroups.length - 1 ? 0 : ne + 1, Te = o.tabbableGroups[H];
|
|
864
|
-
|
|
858
|
+
A = ve(u) >= 0 ? Te.firstTabbableNode : Te.firstDomTabbableNode;
|
|
865
859
|
} else
|
|
866
|
-
$e(f) || (
|
|
860
|
+
$e(f) || (A = P.nextTabbableNode(u));
|
|
867
861
|
}
|
|
868
862
|
} else
|
|
869
|
-
|
|
870
|
-
return
|
|
863
|
+
A = x("fallbackFocus");
|
|
864
|
+
return A;
|
|
871
865
|
}, K = function(s) {
|
|
872
866
|
var u = Be(s);
|
|
873
|
-
if (!(
|
|
867
|
+
if (!(_(u, s) >= 0)) {
|
|
874
868
|
if (Oe(d.clickOutsideDeactivates, s)) {
|
|
875
869
|
v.deactivate({
|
|
876
870
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -886,7 +880,7 @@ var Zt = {
|
|
|
886
880
|
Oe(d.allowOutsideClick, s) || s.preventDefault();
|
|
887
881
|
}
|
|
888
882
|
}, Z = function(s) {
|
|
889
|
-
var u = Be(s), f =
|
|
883
|
+
var u = Be(s), f = _(u, s) >= 0;
|
|
890
884
|
if (f || u instanceof Document)
|
|
891
885
|
f && (o.mostRecentlyFocusedNode = u);
|
|
892
886
|
else {
|
|
@@ -894,12 +888,12 @@ var Zt = {
|
|
|
894
888
|
var y, k = !0;
|
|
895
889
|
if (o.mostRecentlyFocusedNode)
|
|
896
890
|
if (ve(o.mostRecentlyFocusedNode) > 0) {
|
|
897
|
-
var
|
|
898
|
-
if (
|
|
899
|
-
var P =
|
|
891
|
+
var A = _(o.mostRecentlyFocusedNode), F = o.containerGroups[A].tabbableNodes;
|
|
892
|
+
if (F.length > 0) {
|
|
893
|
+
var P = F.findIndex(function(B) {
|
|
900
894
|
return B === o.mostRecentlyFocusedNode;
|
|
901
895
|
});
|
|
902
|
-
P >= 0 && (d.isKeyForward(o.recentNavEvent) ? P + 1 <
|
|
896
|
+
P >= 0 && (d.isKeyForward(o.recentNavEvent) ? P + 1 < F.length && (y = F[P + 1], k = !1) : P - 1 >= 0 && (y = F[P - 1], k = !1));
|
|
903
897
|
}
|
|
904
898
|
} else
|
|
905
899
|
o.containerGroups.some(function(B) {
|
|
@@ -914,7 +908,7 @@ var Zt = {
|
|
|
914
908
|
// outside the trap causing the focus escape we're trying to fix)
|
|
915
909
|
target: o.mostRecentlyFocusedNode,
|
|
916
910
|
isBackward: d.isKeyBackward(o.recentNavEvent)
|
|
917
|
-
})), I(y || o.mostRecentlyFocusedNode ||
|
|
911
|
+
})), I(y || o.mostRecentlyFocusedNode || E());
|
|
918
912
|
}
|
|
919
913
|
o.recentNavEvent = void 0;
|
|
920
914
|
}, oe = function(s) {
|
|
@@ -933,12 +927,12 @@ var Zt = {
|
|
|
933
927
|
(d.isKeyForward(s) || d.isKeyBackward(s)) && oe(s, d.isKeyBackward(s));
|
|
934
928
|
}, X = function(s) {
|
|
935
929
|
var u = Be(s);
|
|
936
|
-
|
|
930
|
+
_(u, s) >= 0 || Oe(d.clickOutsideDeactivates, s) || Oe(d.allowOutsideClick, s) || (s.preventDefault(), s.stopImmediatePropagation());
|
|
937
931
|
}, V = function() {
|
|
938
932
|
if (o.active)
|
|
939
933
|
return Zt.activateTrap(l, v), o.delayInitialFocusTimer = d.delayInitialFocus ? Kt(function() {
|
|
940
|
-
I(
|
|
941
|
-
}) : I(
|
|
934
|
+
I(E());
|
|
935
|
+
}) : I(E()), r.addEventListener("focusin", Z, !0), r.addEventListener("mousedown", K, {
|
|
942
936
|
capture: !0,
|
|
943
937
|
passive: !1
|
|
944
938
|
}), r.addEventListener("touchstart", K, {
|
|
@@ -961,7 +955,7 @@ var Zt = {
|
|
|
961
955
|
return k === o.mostRecentlyFocusedNode;
|
|
962
956
|
});
|
|
963
957
|
});
|
|
964
|
-
u && I(
|
|
958
|
+
u && I(E());
|
|
965
959
|
}, M = typeof window < "u" && "MutationObserver" in window ? new MutationObserver($) : void 0, W = function() {
|
|
966
960
|
M && (M.disconnect(), o.active && !o.paused && o.containers.map(function(s) {
|
|
967
961
|
M.observe(s, {
|
|
@@ -996,14 +990,14 @@ var Zt = {
|
|
|
996
990
|
checkCanReturnFocus: d.checkCanReturnFocus
|
|
997
991
|
}, s);
|
|
998
992
|
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, j(), o.active = !1, o.paused = !1, W(), Zt.deactivateTrap(l, v);
|
|
999
|
-
var f = p(u, "onDeactivate"), y = p(u, "onPostDeactivate"), k = p(u, "checkCanReturnFocus"),
|
|
993
|
+
var f = p(u, "onDeactivate"), y = p(u, "onPostDeactivate"), k = p(u, "checkCanReturnFocus"), A = p(u, "returnFocus", "returnFocusOnDeactivate");
|
|
1000
994
|
f == null || f();
|
|
1001
|
-
var
|
|
995
|
+
var F = function() {
|
|
1002
996
|
Kt(function() {
|
|
1003
|
-
|
|
997
|
+
A && I(N(o.nodeFocusedBeforeActivation)), y == null || y();
|
|
1004
998
|
});
|
|
1005
999
|
};
|
|
1006
|
-
return
|
|
1000
|
+
return A && k ? (k(N(o.nodeFocusedBeforeActivation)).then(F, F), this) : (F(), this);
|
|
1007
1001
|
},
|
|
1008
1002
|
pause: function(s) {
|
|
1009
1003
|
if (o.paused || !o.active)
|
|
@@ -1116,8 +1110,8 @@ const zr = {
|
|
|
1116
1110
|
renderImpl() {
|
|
1117
1111
|
if (!t.default)
|
|
1118
1112
|
return null;
|
|
1119
|
-
const v = t.default().filter((
|
|
1120
|
-
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) :
|
|
1113
|
+
const v = t.default().filter((_) => _.type !== wn);
|
|
1114
|
+
return !v || !v.length || v.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), v) : _n(v[0], { ref: l });
|
|
1121
1115
|
}
|
|
1122
1116
|
};
|
|
1123
1117
|
}
|
|
@@ -1141,8 +1135,8 @@ function Wr(n) {
|
|
|
1141
1135
|
var Ve = { exports: {} };
|
|
1142
1136
|
Ve.exports;
|
|
1143
1137
|
(function(n, t) {
|
|
1144
|
-
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", p = "[object Date]",
|
|
1145
|
-
T[d] = T[o] = T[V] = T[j] = T[v] = T[p] = T[$] = T[M] = T[W] = T[S] = T[s] = T[D] = T[I] = T[N] = T[K] = T[Z] = T[oe] = T[ae] = T[u] = T[f] = T[y] = T[k] = !0, T[
|
|
1138
|
+
var a = 200, r = "__lodash_hash_undefined__", l = 9007199254740991, d = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", p = "[object Date]", _ = "[object Error]", x = "[object Function]", E = "[object GeneratorFunction]", D = "[object Map]", I = "[object Number]", N = "[object Object]", G = "[object Promise]", K = "[object RegExp]", Z = "[object Set]", oe = "[object String]", ae = "[object Symbol]", X = "[object WeakMap]", V = "[object ArrayBuffer]", j = "[object DataView]", $ = "[object Float32Array]", M = "[object Float64Array]", W = "[object Int8Array]", S = "[object Int16Array]", s = "[object Int32Array]", u = "[object Uint8Array]", f = "[object Uint8ClampedArray]", y = "[object Uint16Array]", k = "[object Uint32Array]", A = /[\\^$.*+?()[\]{}|]/g, F = /\w*$/, P = /^\[object .+?Constructor\]$/, B = /^(?:0|[1-9]\d*)$/, T = {};
|
|
1139
|
+
T[d] = T[o] = T[V] = T[j] = T[v] = T[p] = T[$] = T[M] = T[W] = T[S] = T[s] = T[D] = T[I] = T[N] = T[K] = T[Z] = T[oe] = T[ae] = T[u] = T[f] = T[y] = T[k] = !0, T[_] = T[x] = T[X] = !1;
|
|
1146
1140
|
var le = typeof Le == "object" && Le && Le.Object === Object && Le, ne = typeof self == "object" && self && self.Object === Object && self, H = le || ne || Function("return this")(), Te = t && !t.nodeType && t, he = Te && !0 && n && !n.nodeType && n, ke = he && he.exports === Te;
|
|
1147
1141
|
function Jt(e, i) {
|
|
1148
1142
|
return e.set(i[0], i[1]), e;
|
|
@@ -1200,12 +1194,12 @@ Ve.exports;
|
|
|
1200
1194
|
c[++i] = b;
|
|
1201
1195
|
}), c;
|
|
1202
1196
|
}
|
|
1203
|
-
var ra = Array.prototype, ia = Function.prototype,
|
|
1197
|
+
var ra = Array.prototype, ia = Function.prototype, Ee = Object.prototype, Xe = H["__core-js_shared__"], mt = function() {
|
|
1204
1198
|
var e = /[^.]+$/.exec(Xe && Xe.keys && Xe.keys.IE_PROTO || "");
|
|
1205
1199
|
return e ? "Symbol(src)_1." + e : "";
|
|
1206
|
-
}(), gt = ia.toString, se =
|
|
1207
|
-
"^" + gt.call(se).replace(
|
|
1208
|
-
), yt = ke ? H.Buffer : void 0,
|
|
1200
|
+
}(), gt = ia.toString, se = Ee.hasOwnProperty, Ae = Ee.toString, oa = RegExp(
|
|
1201
|
+
"^" + gt.call(se).replace(A, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1202
|
+
), yt = ke ? H.Buffer : void 0, wt = H.Symbol, _t = H.Uint8Array, sa = qe(Object.getPrototypeOf, Object), ca = Object.create, la = Ee.propertyIsEnumerable, ua = ra.splice, Tt = Object.getOwnPropertySymbols, da = yt ? yt.isBuffer : void 0, fa = qe(Object.keys, Object), Ye = ge(H, "DataView"), Se = ge(H, "Map"), Je = ge(H, "Promise"), Qe = ge(H, "Set"), et = ge(H, "WeakMap"), Ie = ge(Object, "create"), va = fe(Ye), ba = fe(Se), ha = fe(Je), pa = fe(Qe), ma = fe(et), kt = wt ? wt.prototype : void 0, St = kt ? kt.valueOf : void 0;
|
|
1209
1203
|
function ue(e) {
|
|
1210
1204
|
var i = -1, c = e ? e.length : 0;
|
|
1211
1205
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1219,7 +1213,7 @@ Ve.exports;
|
|
|
1219
1213
|
function ya(e) {
|
|
1220
1214
|
return this.has(e) && delete this.__data__[e];
|
|
1221
1215
|
}
|
|
1222
|
-
function
|
|
1216
|
+
function wa(e) {
|
|
1223
1217
|
var i = this.__data__;
|
|
1224
1218
|
if (Ie) {
|
|
1225
1219
|
var c = i[e];
|
|
@@ -1227,7 +1221,7 @@ Ve.exports;
|
|
|
1227
1221
|
}
|
|
1228
1222
|
return se.call(i, e) ? i[e] : void 0;
|
|
1229
1223
|
}
|
|
1230
|
-
function
|
|
1224
|
+
function _a(e) {
|
|
1231
1225
|
var i = this.__data__;
|
|
1232
1226
|
return Ie ? i[e] !== void 0 : se.call(i, e);
|
|
1233
1227
|
}
|
|
@@ -1235,7 +1229,7 @@ Ve.exports;
|
|
|
1235
1229
|
var c = this.__data__;
|
|
1236
1230
|
return c[e] = Ie && i === void 0 ? r : i, this;
|
|
1237
1231
|
}
|
|
1238
|
-
ue.prototype.clear = ga, ue.prototype.delete = ya, ue.prototype.get =
|
|
1232
|
+
ue.prototype.clear = ga, ue.prototype.delete = ya, ue.prototype.get = wa, ue.prototype.has = _a, ue.prototype.set = Ta;
|
|
1239
1233
|
function ie(e) {
|
|
1240
1234
|
var i = -1, c = e ? e.length : 0;
|
|
1241
1235
|
for (this.clear(); ++i < c; ) {
|
|
@@ -1247,21 +1241,21 @@ Ve.exports;
|
|
|
1247
1241
|
this.__data__ = [];
|
|
1248
1242
|
}
|
|
1249
1243
|
function Sa(e) {
|
|
1250
|
-
var i = this.__data__, c =
|
|
1244
|
+
var i = this.__data__, c = Fe(i, e);
|
|
1251
1245
|
if (c < 0)
|
|
1252
1246
|
return !1;
|
|
1253
1247
|
var b = i.length - 1;
|
|
1254
1248
|
return c == b ? i.pop() : ua.call(i, c, 1), !0;
|
|
1255
1249
|
}
|
|
1256
1250
|
function Ia(e) {
|
|
1257
|
-
var i = this.__data__, c =
|
|
1251
|
+
var i = this.__data__, c = Fe(i, e);
|
|
1258
1252
|
return c < 0 ? void 0 : i[c][1];
|
|
1259
1253
|
}
|
|
1260
1254
|
function Oa(e) {
|
|
1261
|
-
return
|
|
1255
|
+
return Fe(this.__data__, e) > -1;
|
|
1262
1256
|
}
|
|
1263
1257
|
function Ca(e, i) {
|
|
1264
|
-
var c = this.__data__, b =
|
|
1258
|
+
var c = this.__data__, b = Fe(c, e);
|
|
1265
1259
|
return b < 0 ? c.push([e, i]) : c[b][1] = i, this;
|
|
1266
1260
|
}
|
|
1267
1261
|
ie.prototype.clear = ka, ie.prototype.delete = Sa, ie.prototype.get = Ia, ie.prototype.has = Oa, ie.prototype.set = Ca;
|
|
@@ -1280,22 +1274,22 @@ Ve.exports;
|
|
|
1280
1274
|
};
|
|
1281
1275
|
}
|
|
1282
1276
|
function Na(e) {
|
|
1283
|
-
return
|
|
1284
|
-
}
|
|
1285
|
-
function Aa(e) {
|
|
1286
|
-
return Fe(this, e).get(e);
|
|
1277
|
+
return xe(this, e).delete(e);
|
|
1287
1278
|
}
|
|
1288
1279
|
function Ea(e) {
|
|
1289
|
-
return
|
|
1280
|
+
return xe(this, e).get(e);
|
|
1281
|
+
}
|
|
1282
|
+
function Aa(e) {
|
|
1283
|
+
return xe(this, e).has(e);
|
|
1290
1284
|
}
|
|
1291
|
-
function
|
|
1292
|
-
return
|
|
1285
|
+
function Fa(e, i) {
|
|
1286
|
+
return xe(this, e).set(e, i), this;
|
|
1293
1287
|
}
|
|
1294
|
-
pe.prototype.clear = $a, pe.prototype.delete = Na, pe.prototype.get =
|
|
1288
|
+
pe.prototype.clear = $a, pe.prototype.delete = Na, pe.prototype.get = Ea, pe.prototype.has = Aa, pe.prototype.set = Fa;
|
|
1295
1289
|
function me(e) {
|
|
1296
1290
|
this.__data__ = new ie(e);
|
|
1297
1291
|
}
|
|
1298
|
-
function
|
|
1292
|
+
function xa() {
|
|
1299
1293
|
this.__data__ = new ie();
|
|
1300
1294
|
}
|
|
1301
1295
|
function Da(e) {
|
|
@@ -1317,7 +1311,7 @@ Ve.exports;
|
|
|
1317
1311
|
}
|
|
1318
1312
|
return c.set(e, i), this;
|
|
1319
1313
|
}
|
|
1320
|
-
me.prototype.clear =
|
|
1314
|
+
me.prototype.clear = xa, me.prototype.delete = Da, me.prototype.get = Ra, me.prototype.has = Ba, me.prototype.set = La;
|
|
1321
1315
|
function Ma(e, i) {
|
|
1322
1316
|
var c = nt(e) || ln(e) ? aa(e.length, String) : [], b = c.length, L = !!b;
|
|
1323
1317
|
for (var U in e)
|
|
@@ -1328,7 +1322,7 @@ Ve.exports;
|
|
|
1328
1322
|
var b = e[i];
|
|
1329
1323
|
(!(se.call(e, i) && Nt(b, c)) || c === void 0 && !(i in e)) && (e[i] = c);
|
|
1330
1324
|
}
|
|
1331
|
-
function
|
|
1325
|
+
function Fe(e, i) {
|
|
1332
1326
|
for (var c = e.length; c--; )
|
|
1333
1327
|
if (Nt(e[c][0], i))
|
|
1334
1328
|
return c;
|
|
@@ -1343,18 +1337,18 @@ Ve.exports;
|
|
|
1343
1337
|
return z;
|
|
1344
1338
|
if (!De(e))
|
|
1345
1339
|
return e;
|
|
1346
|
-
var
|
|
1347
|
-
if (
|
|
1340
|
+
var Ft = nt(e);
|
|
1341
|
+
if (Ft) {
|
|
1348
1342
|
if (z = tn(e), !i)
|
|
1349
1343
|
return Ja(e, z);
|
|
1350
1344
|
} else {
|
|
1351
|
-
var ye = de(e),
|
|
1345
|
+
var ye = de(e), xt = ye == x || ye == E;
|
|
1352
1346
|
if (dn(e))
|
|
1353
1347
|
return Va(e, i);
|
|
1354
|
-
if (ye == N || ye == d ||
|
|
1348
|
+
if (ye == N || ye == d || xt && !U) {
|
|
1355
1349
|
if (bt(e))
|
|
1356
1350
|
return U ? e : {};
|
|
1357
|
-
if (z = an(
|
|
1351
|
+
if (z = an(xt ? {} : e), !i)
|
|
1358
1352
|
return Qa(e, Pa(z, e));
|
|
1359
1353
|
} else {
|
|
1360
1354
|
if (!T[ye])
|
|
@@ -1366,7 +1360,7 @@ Ve.exports;
|
|
|
1366
1360
|
var Dt = Y.get(e);
|
|
1367
1361
|
if (Dt)
|
|
1368
1362
|
return Dt;
|
|
1369
|
-
if (Y.set(e, z), !
|
|
1363
|
+
if (Y.set(e, z), !Ft)
|
|
1370
1364
|
var Rt = c ? en(e) : rt(e);
|
|
1371
1365
|
return ea(Rt || e, function(it, Re) {
|
|
1372
1366
|
Rt && (Re = it, it = e[Re]), It(z, Re, tt(it, i, c, b, Re, e, Y));
|
|
@@ -1380,12 +1374,12 @@ Ve.exports;
|
|
|
1380
1374
|
return nt(e) ? b : ta(b, c(e));
|
|
1381
1375
|
}
|
|
1382
1376
|
function ja(e) {
|
|
1383
|
-
return
|
|
1377
|
+
return Ae.call(e);
|
|
1384
1378
|
}
|
|
1385
1379
|
function Ha(e) {
|
|
1386
1380
|
if (!De(e) || sn(e))
|
|
1387
1381
|
return !1;
|
|
1388
|
-
var i =
|
|
1382
|
+
var i = At(e) || bt(e) ? oa : P;
|
|
1389
1383
|
return i.test(fe(e));
|
|
1390
1384
|
}
|
|
1391
1385
|
function Ua(e) {
|
|
@@ -1404,7 +1398,7 @@ Ve.exports;
|
|
|
1404
1398
|
}
|
|
1405
1399
|
function at(e) {
|
|
1406
1400
|
var i = new e.constructor(e.byteLength);
|
|
1407
|
-
return new
|
|
1401
|
+
return new _t(i).set(new _t(e)), i;
|
|
1408
1402
|
}
|
|
1409
1403
|
function za(e, i) {
|
|
1410
1404
|
var c = i ? at(e.buffer) : e.buffer;
|
|
@@ -1415,7 +1409,7 @@ Ve.exports;
|
|
|
1415
1409
|
return vt(b, Jt, new e.constructor());
|
|
1416
1410
|
}
|
|
1417
1411
|
function Wa(e) {
|
|
1418
|
-
var i = new e.constructor(e.source,
|
|
1412
|
+
var i = new e.constructor(e.source, F.exec(e));
|
|
1419
1413
|
return i.lastIndex = e.lastIndex, i;
|
|
1420
1414
|
}
|
|
1421
1415
|
function qa(e, i, c) {
|
|
@@ -1449,7 +1443,7 @@ Ve.exports;
|
|
|
1449
1443
|
function en(e) {
|
|
1450
1444
|
return Ka(e, rt, Ct);
|
|
1451
1445
|
}
|
|
1452
|
-
function
|
|
1446
|
+
function xe(e, i) {
|
|
1453
1447
|
var c = e.__data__;
|
|
1454
1448
|
return on(i) ? c[typeof i == "string" ? "string" : "hash"] : c.map;
|
|
1455
1449
|
}
|
|
@@ -1459,7 +1453,7 @@ Ve.exports;
|
|
|
1459
1453
|
}
|
|
1460
1454
|
var Ct = Tt ? qe(Tt, Object) : bn, de = ja;
|
|
1461
1455
|
(Ye && de(new Ye(new ArrayBuffer(1))) != j || Se && de(new Se()) != D || Je && de(Je.resolve()) != G || Qe && de(new Qe()) != Z || et && de(new et()) != X) && (de = function(e) {
|
|
1462
|
-
var i =
|
|
1456
|
+
var i = Ae.call(e), c = i == N ? e.constructor : void 0, b = c ? fe(c) : void 0;
|
|
1463
1457
|
if (b)
|
|
1464
1458
|
switch (b) {
|
|
1465
1459
|
case va:
|
|
@@ -1526,7 +1520,7 @@ Ve.exports;
|
|
|
1526
1520
|
return !!mt && mt in e;
|
|
1527
1521
|
}
|
|
1528
1522
|
function $t(e) {
|
|
1529
|
-
var i = e && e.constructor, c = typeof i == "function" && i.prototype ||
|
|
1523
|
+
var i = e && e.constructor, c = typeof i == "function" && i.prototype || Ee;
|
|
1530
1524
|
return e === c;
|
|
1531
1525
|
}
|
|
1532
1526
|
function fe(e) {
|
|
@@ -1549,19 +1543,19 @@ Ve.exports;
|
|
|
1549
1543
|
return e === i || e !== e && i !== i;
|
|
1550
1544
|
}
|
|
1551
1545
|
function ln(e) {
|
|
1552
|
-
return un(e) && se.call(e, "callee") && (!la.call(e, "callee") ||
|
|
1546
|
+
return un(e) && se.call(e, "callee") && (!la.call(e, "callee") || Ae.call(e) == d);
|
|
1553
1547
|
}
|
|
1554
1548
|
var nt = Array.isArray;
|
|
1555
|
-
function
|
|
1556
|
-
return e != null && fn(e.length) && !
|
|
1549
|
+
function Et(e) {
|
|
1550
|
+
return e != null && fn(e.length) && !At(e);
|
|
1557
1551
|
}
|
|
1558
1552
|
function un(e) {
|
|
1559
|
-
return vn(e) &&
|
|
1553
|
+
return vn(e) && Et(e);
|
|
1560
1554
|
}
|
|
1561
1555
|
var dn = da || hn;
|
|
1562
|
-
function
|
|
1563
|
-
var i = De(e) ?
|
|
1564
|
-
return i ==
|
|
1556
|
+
function At(e) {
|
|
1557
|
+
var i = De(e) ? Ae.call(e) : "";
|
|
1558
|
+
return i == x || i == E;
|
|
1565
1559
|
}
|
|
1566
1560
|
function fn(e) {
|
|
1567
1561
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
@@ -1574,7 +1568,7 @@ Ve.exports;
|
|
|
1574
1568
|
return !!e && typeof e == "object";
|
|
1575
1569
|
}
|
|
1576
1570
|
function rt(e) {
|
|
1577
|
-
return
|
|
1571
|
+
return Et(e) ? Ma(e) : Ua(e);
|
|
1578
1572
|
}
|
|
1579
1573
|
function bn() {
|
|
1580
1574
|
return [];
|
|
@@ -1670,8 +1664,8 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1670
1664
|
"8a4ad026": p.value.marginTop,
|
|
1671
1665
|
"28946a7f": v.value.display,
|
|
1672
1666
|
"3e6b7496": v.value.minHeight,
|
|
1673
|
-
"92ecef30":
|
|
1674
|
-
"16fef085":
|
|
1667
|
+
"92ecef30": _.value.top,
|
|
1668
|
+
"16fef085": _.value.zIndex
|
|
1675
1669
|
}));
|
|
1676
1670
|
const r = dt(), l = g(() => !!r.header), d = g(() => !!r.top), o = g(() => ({
|
|
1677
1671
|
mobileTop: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : a.topOffset ? `${a.topOffset}px` : "0",
|
|
@@ -1683,18 +1677,18 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1683
1677
|
minHeight: `${a.headerHeight}px`
|
|
1684
1678
|
})), p = g(() => ({
|
|
1685
1679
|
marginTop: l.value ? `${a.headerHeight}px` : "0"
|
|
1686
|
-
})),
|
|
1680
|
+
})), _ = g(() => ({
|
|
1687
1681
|
top: a.mobileTopOffset && a.mobileEnabled ? `${a.mobileTopOffset}px` : "0",
|
|
1688
1682
|
zIndex: a.mobileOverlayZIndex !== null ? a.mobileOverlayZIndex : a.zIndex > 1 ? a.zIndex - 1 : 1
|
|
1689
|
-
})),
|
|
1690
|
-
var y, k,
|
|
1683
|
+
})), x = (s) => Xr(s).map((f) => {
|
|
1684
|
+
var y, k, A;
|
|
1691
1685
|
if (f) {
|
|
1692
1686
|
(!f.key || !((y = f.key) != null && y.trim())) && (f.key = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-")), (!f.testId || !((k = f.testId) != null && k.trim())) && (f.testId = String(f.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1693
|
-
for (const
|
|
1694
|
-
|
|
1687
|
+
for (const F of f.items || [])
|
|
1688
|
+
F.parentKey = f.key, (!F.testId || !((A = F.testId) != null && A.trim())) && (F.testId = String(F.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1695
1689
|
}
|
|
1696
1690
|
return f;
|
|
1697
|
-
}),
|
|
1691
|
+
}), E = g(() => a.topItems.length ? x(a.topItems) : []), D = g(() => a.bottomItems.length ? x(a.bottomItems) : []), I = q(a.open), N = (s) => {
|
|
1698
1692
|
var u, f;
|
|
1699
1693
|
I.value !== s && (I.value = s, t("toggle", s)), s ? (u = document == null ? void 0 : document.body) == null || u.classList.add("kong-ui-app-sidebar-open") : (f = document == null ? void 0 : document.body) == null || f.classList.remove("kong-ui-app-sidebar-open"), K.value = !1;
|
|
1700
1694
|
}, G = () => {
|
|
@@ -1727,7 +1721,7 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1727
1721
|
class: "kong-ui-app-sidebar-overlay",
|
|
1728
1722
|
onClick: G
|
|
1729
1723
|
})) : C("", !0),
|
|
1730
|
-
|
|
1724
|
+
_e(Tn(Gr), {
|
|
1731
1725
|
ref_key: "focusTrap",
|
|
1732
1726
|
ref: M,
|
|
1733
1727
|
active: !1,
|
|
@@ -1735,7 +1729,7 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1735
1729
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
1736
1730
|
}, {
|
|
1737
1731
|
default: R(() => [
|
|
1738
|
-
|
|
1732
|
+
w("aside", {
|
|
1739
1733
|
class: re(["kong-ui-app-sidebar", {
|
|
1740
1734
|
"sidebar-open": I.value,
|
|
1741
1735
|
"no-sidebar-header": !l.value,
|
|
@@ -1748,19 +1742,19 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1748
1742
|
l.value ? (h(), m("div", Yr, [
|
|
1749
1743
|
O(s.$slots, "header", {}, void 0, !0)
|
|
1750
1744
|
])) : C("", !0),
|
|
1751
|
-
|
|
1745
|
+
w("div", Jr, [
|
|
1752
1746
|
d.value ? (h(), m("div", Qr, [
|
|
1753
1747
|
O(s.$slots, "top", {}, void 0, !0)
|
|
1754
1748
|
])) : C("", !0),
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
(h(!0), m(Ce, null, Ne(
|
|
1749
|
+
w("nav", ei, [
|
|
1750
|
+
E.value.length ? (h(), m("ul", ti, [
|
|
1751
|
+
(h(!0), m(Ce, null, Ne(E.value, (f) => (h(), Q(Bt, {
|
|
1758
1752
|
key: f.name,
|
|
1759
1753
|
item: f,
|
|
1760
1754
|
onClick: Z
|
|
1761
1755
|
}, null, 8, ["item"]))), 128))
|
|
1762
1756
|
])) : C("", !0),
|
|
1763
|
-
|
|
1757
|
+
E.value.length && D.value.length ? (h(), m("div", ai)) : C("", !0),
|
|
1764
1758
|
D.value.length ? (h(), m("ul", ni, [
|
|
1765
1759
|
(h(!0), m(Ce, null, Ne(D.value, (f) => (h(), Q(Bt, {
|
|
1766
1760
|
key: f.name,
|
|
@@ -1770,7 +1764,7 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1770
1764
|
])) : C("", !0)
|
|
1771
1765
|
])
|
|
1772
1766
|
]),
|
|
1773
|
-
|
|
1767
|
+
w("div", ri, [
|
|
1774
1768
|
O(s.$slots, "footer", {}, void 0, !0)
|
|
1775
1769
|
])
|
|
1776
1770
|
], 2)
|
|
@@ -1779,8 +1773,7 @@ const Xr = /* @__PURE__ */ Wr(qr), Yr = {
|
|
|
1779
1773
|
}, 512)
|
|
1780
1774
|
], 64));
|
|
1781
1775
|
}
|
|
1782
|
-
})
|
|
1783
|
-
const oi = /* @__PURE__ */ te(ii, [["__scopeId", "data-v-4f0a752f"]]), ft = (n) => (ze("data-v-00a332e0"), n = n(), Ge(), n), si = ["aria-label", "onClick"], ci = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), li = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), ui = /* @__PURE__ */ ft(() => /* @__PURE__ */ _("span", { class: "line" }, null, -1)), di = [
|
|
1776
|
+
}), oi = /* @__PURE__ */ te(ii, [["__scopeId", "data-v-4f0a752f"]]), ft = (n) => (ze("data-v-00a332e0"), n = n(), Ge(), n), si = ["aria-label", "onClick"], ci = /* @__PURE__ */ ft(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), li = /* @__PURE__ */ ft(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), ui = /* @__PURE__ */ ft(() => /* @__PURE__ */ w("span", { class: "line" }, null, -1)), di = [
|
|
1784
1777
|
ci,
|
|
1785
1778
|
li,
|
|
1786
1779
|
ui
|
|
@@ -1808,14 +1801,13 @@ const oi = /* @__PURE__ */ te(ii, [["__scopeId", "data-v-4f0a752f"]]), ft = (n)
|
|
|
1808
1801
|
onClick: Sn(l, ["prevent"])
|
|
1809
1802
|
}, di, 10, si));
|
|
1810
1803
|
}
|
|
1811
|
-
})
|
|
1812
|
-
const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ffffff", hi = "#000933", pi = "#000933", mi = "#ffffff", gi = "0px", yi = "4px", _i = (n) => (ze("data-v-f81adf4e"), n = n(), Ge(), n), wi = { id: "kong-ui-app-layout-notification" }, Ti = { class: "mobile-logo" }, ki = {
|
|
1804
|
+
}), vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ffffff", hi = "#000933", pi = "#000933", mi = "#ffffff", gi = "0px", yi = "4px", wi = (n) => (ze("data-v-f81adf4e"), n = n(), Ge(), n), _i = { id: "kong-ui-app-layout-notification" }, Ti = { class: "mobile-logo" }, ki = {
|
|
1813
1805
|
key: 0,
|
|
1814
1806
|
class: "navbar-logo"
|
|
1815
1807
|
}, Si = {
|
|
1816
1808
|
class: "kong-ui-app-layout-main",
|
|
1817
1809
|
"data-testid": "kong-ui-app-layout-main"
|
|
1818
|
-
}, Ii = { class: "kong-ui-app-layout-content" }, Oi = { class: "kong-ui-app-layout-content-inner" }, Ci = /* @__PURE__ */
|
|
1810
|
+
}, Ii = { class: "kong-ui-app-layout-content" }, Oi = { class: "kong-ui-app-layout-content-inner" }, Ci = /* @__PURE__ */ wi(() => /* @__PURE__ */ w("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)), $i = /* @__PURE__ */ ee({
|
|
1819
1811
|
__name: "AppLayout",
|
|
1820
1812
|
props: {
|
|
1821
1813
|
hideDefaultSlot: {
|
|
@@ -1878,22 +1870,22 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
1878
1870
|
hidden: g(() => a.sidebarHidden)
|
|
1879
1871
|
}), p = ($) => {
|
|
1880
1872
|
t("sidebar-click", $);
|
|
1881
|
-
},
|
|
1882
|
-
|
|
1873
|
+
}, _ = q(!1), x = ($) => {
|
|
1874
|
+
_.value = $;
|
|
1883
1875
|
};
|
|
1884
1876
|
In(() => {
|
|
1885
|
-
|
|
1877
|
+
_.value = On(v, "open").value || !1;
|
|
1886
1878
|
});
|
|
1887
|
-
const
|
|
1888
|
-
if ($ ||
|
|
1889
|
-
|
|
1879
|
+
const E = q(0), D = q(60), I = q(0), N = g(() => o.hidden ? I.value : D.value + I.value), G = g(() => a.theme === "light" ? pi : mi), K = g(() => a.theme === "light" ? bi : hi), Z = g(() => a.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), oe = g(() => `${N.value}px`), ae = g(() => v.hidden || o.hidden ? gi : yi), { debounce: X } = Yt(), V = X(($ = !1) => {
|
|
1880
|
+
if ($ || E.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1881
|
+
E.value = window == null ? void 0 : window.innerWidth;
|
|
1890
1882
|
const M = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1891
1883
|
M && (I.value = M.offsetHeight);
|
|
1892
1884
|
}
|
|
1893
1885
|
}, 200), j = q();
|
|
1894
1886
|
return We(() => {
|
|
1895
1887
|
var M, W;
|
|
1896
|
-
(M = document == null ? void 0 : document.body) == null || M.classList.add("kong-ui-app-layout-body"), (W = document == null ? void 0 : document.documentElement) == null || W.classList.add("kong-ui-app-layout-html"),
|
|
1888
|
+
(M = document == null ? void 0 : document.body) == null || M.classList.add("kong-ui-app-layout-body"), (W = document == null ? void 0 : document.documentElement) == null || W.classList.add("kong-ui-app-layout-html"), E.value = window == null ? void 0 : window.innerWidth, V(!0);
|
|
1897
1889
|
const $ = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1898
1890
|
$ && (j.value = new ResizeObserver((S) => {
|
|
1899
1891
|
window.requestAnimationFrame(() => {
|
|
@@ -1912,7 +1904,7 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
1912
1904
|
{ "sidebar-hidden": v.hidden }
|
|
1913
1905
|
]])
|
|
1914
1906
|
}, [
|
|
1915
|
-
|
|
1907
|
+
w("div", _i, [
|
|
1916
1908
|
O($.$slots, "notification", {}, void 0, !0)
|
|
1917
1909
|
]),
|
|
1918
1910
|
o.hidden ? C("", !0) : (h(), Q(cr, {
|
|
@@ -1923,8 +1915,8 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
1923
1915
|
"mobile-sidebar-toggle": R(() => [
|
|
1924
1916
|
v.hidden ? C("", !0) : (h(), Q(vi, {
|
|
1925
1917
|
key: 0,
|
|
1926
|
-
active:
|
|
1927
|
-
onToggle:
|
|
1918
|
+
active: _.value,
|
|
1919
|
+
onToggle: x
|
|
1928
1920
|
}, null, 8, ["active"]))
|
|
1929
1921
|
]),
|
|
1930
1922
|
_: 2
|
|
@@ -1932,7 +1924,7 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
1932
1924
|
l.navbarMobileLogo ? {
|
|
1933
1925
|
name: "mobile-logo",
|
|
1934
1926
|
fn: R(() => [
|
|
1935
|
-
|
|
1927
|
+
w("div", Ti, [
|
|
1936
1928
|
O($.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1937
1929
|
])
|
|
1938
1930
|
]),
|
|
@@ -1976,11 +1968,11 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
1976
1968
|
"mobile-enabled": "",
|
|
1977
1969
|
"mobile-header-visible": !1,
|
|
1978
1970
|
"mobile-top-offset": N.value,
|
|
1979
|
-
open:
|
|
1971
|
+
open: _.value,
|
|
1980
1972
|
"top-items": v.topItems,
|
|
1981
1973
|
"top-offset": I.value,
|
|
1982
1974
|
onClick: p,
|
|
1983
|
-
onToggle:
|
|
1975
|
+
onToggle: x
|
|
1984
1976
|
}, Pe({ _: 2 }, [
|
|
1985
1977
|
l.sidebarHeader ? {
|
|
1986
1978
|
name: "header",
|
|
@@ -2004,9 +1996,9 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
2004
1996
|
key: "2"
|
|
2005
1997
|
} : void 0
|
|
2006
1998
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
1999
|
+
w("main", Si, [
|
|
2000
|
+
w("div", Ii, [
|
|
2001
|
+
w("div", Oi, [
|
|
2010
2002
|
Ci,
|
|
2011
2003
|
O($.$slots, "app-error", {}, void 0, !0),
|
|
2012
2004
|
d.value ? C("", !0) : O($.$slots, "default", { key: 0 }, void 0, !0)
|
|
@@ -2015,12 +2007,11 @@ const vi = /* @__PURE__ */ te(fi, [["__scopeId", "data-v-00a332e0"]]), bi = "#ff
|
|
|
2015
2007
|
])
|
|
2016
2008
|
], 2));
|
|
2017
2009
|
}
|
|
2018
|
-
})
|
|
2019
|
-
const Ni = /* @__PURE__ */ te($i, [["__scopeId", "data-v-f81adf4e"]]), Ai = (n) => (ze("data-v-d7e33427"), n = n(), Ge(), n), Ei = { class: "kong-ui-app-page-header" }, xi = {
|
|
2010
|
+
}), Ni = /* @__PURE__ */ te($i, [["__scopeId", "data-v-f81adf4e"]]), Ei = (n) => (ze("data-v-d7e33427"), n = n(), Ge(), n), Ai = { class: "kong-ui-app-page-header" }, Fi = {
|
|
2020
2011
|
key: 0,
|
|
2021
2012
|
class: "page-header-breadcrumbs",
|
|
2022
2013
|
"data-testid": "page-header-breadcrumbs"
|
|
2023
|
-
},
|
|
2014
|
+
}, xi = /* @__PURE__ */ Ei(() => /* @__PURE__ */ w("span", { class: "page-header-breadcrumb-divider" }, "/", -1)), Di = { class: "page-header-title-section" }, Ri = { class: "page-header-title-wrapper" }, Bi = {
|
|
2024
2015
|
key: 0,
|
|
2025
2016
|
class: "page-header-title-before",
|
|
2026
2017
|
"data-testid": "page-header-title-before"
|
|
@@ -2055,11 +2046,11 @@ const Ni = /* @__PURE__ */ te($i, [["__scopeId", "data-v-f81adf4e"]]), Ai = (n)
|
|
|
2055
2046
|
}), r = (d, o) => d.key || `breadcrumb-${o}`, l = g(() => t.breadcrumbs.map((d, o) => `icon-${r(d, o)}`) || []);
|
|
2056
2047
|
return (d, o) => {
|
|
2057
2048
|
const v = ce("KBreadcrumbs");
|
|
2058
|
-
return h(), m("div",
|
|
2059
|
-
a.value ? (h(), m("div",
|
|
2060
|
-
|
|
2049
|
+
return h(), m("div", Ai, [
|
|
2050
|
+
a.value ? (h(), m("div", Fi, [
|
|
2051
|
+
_e(v, { items: n.breadcrumbs }, Pe({
|
|
2061
2052
|
divider: R(() => [
|
|
2062
|
-
|
|
2053
|
+
xi
|
|
2063
2054
|
]),
|
|
2064
2055
|
_: 2
|
|
2065
2056
|
}, [
|
|
@@ -2071,12 +2062,12 @@ const Ni = /* @__PURE__ */ te($i, [["__scopeId", "data-v-f81adf4e"]]), Ai = (n)
|
|
|
2071
2062
|
}))
|
|
2072
2063
|
]), 1032, ["items"])
|
|
2073
2064
|
])) : C("", !0),
|
|
2074
|
-
|
|
2075
|
-
|
|
2065
|
+
w("div", Di, [
|
|
2066
|
+
w("div", Ri, [
|
|
2076
2067
|
d.$slots["title-before"] ? (h(), m("div", Bi, [
|
|
2077
2068
|
O(d.$slots, "title-before", {}, void 0, !0)
|
|
2078
2069
|
])) : C("", !0),
|
|
2079
|
-
|
|
2070
|
+
w("h1", {
|
|
2080
2071
|
class: "page-header-title",
|
|
2081
2072
|
"data-testid": "page-header-title",
|
|
2082
2073
|
title: n.title
|
|
@@ -2095,8 +2086,7 @@ const Ni = /* @__PURE__ */ te($i, [["__scopeId", "data-v-f81adf4e"]]), Ai = (n)
|
|
|
2095
2086
|
]);
|
|
2096
2087
|
};
|
|
2097
2088
|
}
|
|
2098
|
-
})
|
|
2099
|
-
const zi = /* @__PURE__ */ te(Ki, [["__scopeId", "data-v-d7e33427"]]), Gi = {
|
|
2089
|
+
}), zi = /* @__PURE__ */ te(Ki, [["__scopeId", "data-v-d7e33427"]]), Gi = {
|
|
2100
2090
|
// Customize Vue plugin options as desired
|
|
2101
2091
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2102
2092
|
install: (n, t = {}) => {
|