@kong-ui-public/app-layout 4.3.2-pr.1888.8a0df80c8.0 → 4.3.2-pr.1888.cb05edcc6.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 +133 -131
- package/dist/app-layout.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/components/{collapsibleSection/CollapsibleSection.vue.d.ts → pageInfoSection/PageInfoSection.vue.d.ts} +1 -1
- package/dist/types/components/pageInfoSection/PageInfoSection.vue.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/components/collapsibleSection/CollapsibleSection.vue.d.ts.map +0 -1
package/dist/app-layout.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, resolveComponent as he, openBlock as h, createBlock as K, withCtx as D, renderSlot as S, createElementBlock as y, Fragment as
|
|
1
|
+
import { defineComponent as J, resolveComponent as he, openBlock as h, createBlock as K, withCtx as D, renderSlot as S, createElementBlock as y, Fragment as Ce, renderList as Te, normalizeClass as ie, createTextVNode as He, toDisplayString as q, computed as k, createSlots as Ue, createVNode as Ne, createCommentVNode as _, createElementVNode as I, createStaticVNode as hn, useCssVars as ft, useSlots as Xe, reactive as Ze, onMounted as Ye, resolveDynamicComponent as Ke, withKeys as pn, ref as G, watch as Ae, onUnmounted as mn, Comment as gn, cloneVNode as yn, nextTick as Bt, onBeforeUnmount as Ut, unref as Wt, withModifiers as wn, watchEffect as kn, toRef as Tn } from "vue";
|
|
2
2
|
import { ChevronRightIcon as Sn } from "@kong/icons";
|
|
3
3
|
import { HeaderTags as _n } from "@kong/kongponents";
|
|
4
4
|
const In = /* @__PURE__ */ J({
|
|
@@ -30,7 +30,7 @@ const In = /* @__PURE__ */ J({
|
|
|
30
30
|
}, {
|
|
31
31
|
items: D(({ handleSelection: u }) => [
|
|
32
32
|
S(t.$slots, "default", {}, () => [
|
|
33
|
-
(h(!0), y(
|
|
33
|
+
(h(!0), y(Ce, null, Te(a.options, (o) => (h(), K(n, {
|
|
34
34
|
key: o.value,
|
|
35
35
|
class: ie({ "has-divider": o.hasDivider }),
|
|
36
36
|
"data-testid": "select-" + o.value,
|
|
@@ -58,7 +58,7 @@ const In = /* @__PURE__ */ J({
|
|
|
58
58
|
}, Rr = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-b33191a2"]]), On = {
|
|
59
59
|
class: "about-section-title",
|
|
60
60
|
"data-testid": "about-section-title"
|
|
61
|
-
},
|
|
61
|
+
}, $n = { class: "about-section-header-end" }, Cn = {
|
|
62
62
|
key: 0,
|
|
63
63
|
class: "about-section-timestamps-created",
|
|
64
64
|
"data-testid": "about-section-timestamps-created"
|
|
@@ -91,7 +91,7 @@ const In = /* @__PURE__ */ J({
|
|
|
91
91
|
key: 3,
|
|
92
92
|
class: "about-divider-section",
|
|
93
93
|
"data-testid": "about-divider-section"
|
|
94
|
-
},
|
|
94
|
+
}, Pn = /* @__PURE__ */ J({
|
|
95
95
|
__name: "AppAboutSection",
|
|
96
96
|
props: {
|
|
97
97
|
title: {
|
|
@@ -164,12 +164,12 @@ const In = /* @__PURE__ */ J({
|
|
|
164
164
|
n.$slots.actions || a.created || a.modified ? {
|
|
165
165
|
name: "actions",
|
|
166
166
|
fn: D(() => [
|
|
167
|
-
I("div",
|
|
167
|
+
I("div", $n, [
|
|
168
168
|
a.created || a.modified ? (h(), y("div", {
|
|
169
169
|
key: 0,
|
|
170
170
|
class: ie(["about-section-timestamps", { "has-actions": n.$slots.actions }])
|
|
171
171
|
}, [
|
|
172
|
-
a.created ? (h(), y("span",
|
|
172
|
+
a.created ? (h(), y("span", Cn, q(a.createdLabel) + ": " + q(a.created), 1)) : _("", !0),
|
|
173
173
|
a.created && i.value ? (h(), y("span", En, "->")) : _("", !0),
|
|
174
174
|
i.value ? (h(), y("span", Nn, q(a.modifiedLabel) + ": " + q(a.modified), 1)) : _("", !0)
|
|
175
175
|
], 2)) : _("", !0),
|
|
@@ -183,7 +183,7 @@ const In = /* @__PURE__ */ J({
|
|
|
183
183
|
]), 1024);
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
}), Br = /* @__PURE__ */ Q(
|
|
186
|
+
}), Br = /* @__PURE__ */ Q(Pn, [["__scopeId", "data-v-521dcc27"]]), Mn = {}, jn = {
|
|
187
187
|
fill: "none",
|
|
188
188
|
height: "130",
|
|
189
189
|
width: "130",
|
|
@@ -194,7 +194,7 @@ function Zn(a, t) {
|
|
|
194
194
|
hn('<path clip-rule="evenodd" d="M19.111 120.198c-.226 0-.409-.164-.409-.368v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.367V66.89c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368V47.64c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.164-.409-.368v-4.812c0-.204.183-.368.409-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.368v-4.813c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.226 0-.409-.165-.409-.369v-4.812c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.226 0-.409-.165-.409-.368V9.138c0-.203.183-.368.409-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368ZM110.889 120.198c-.225 0-.408-.164-.408-.368v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.367V66.89c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368V47.64c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.164-.408-.368v-4.812c0-.204.183-.368.408-.368.226 0 .409.164.409.368v4.812c0 .204-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.368v-4.813c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.625c-.225 0-.408-.165-.408-.369v-4.812c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Zm0-9.626c-.225 0-.408-.165-.408-.368V9.138c0-.203.183-.368.408-.368.226 0 .409.165.409.368v4.813c0 .203-.183.368-.409.368Z" fill="#D6D6D6" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M123.553 107.758a.399.399 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.399.399 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H87.69a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.135 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.068a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408H37.01a.398.398 0 0 1-.387-.408c0-.226.173-.409.387-.409h5.068c.214 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.388.408h-5.067a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.067c.215 0 .388.183.388.409Zm-10.136 0a.398.398 0 0 1-.387.408h-5.068a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409Zm-10.136 0a.398.398 0 0 1-.387.408H6.603a.398.398 0 0 1-.388-.408c0-.226.174-.409.388-.409h5.068c.214 0 .387.183.387.409ZM123.553 21.434a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.399.399 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409H87.69a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.136 0a.398.398 0 0 1-.387.409h-5.068a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Zm-10.135 0a.399.399 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409H37.01a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.388.409h-5.068a.398.398 0 0 1-.387-.409c0-.226.173-.408.387-.408h5.068c.214 0 .388.183.388.408Zm-10.136 0a.398.398 0 0 1-.387.409H6.603a.398.398 0 0 1-.388-.409c0-.226.174-.408.388-.408h5.068c.214 0 .387.183.387.408Z" fill="#D6D6D6" fill-rule="evenodd"></path><circle cx="65" cy="65" opacity=".5" r="64" stroke="#B6B6BD" stroke-dasharray="5.69 5.69" stroke-linecap="round" stroke-width=".854"></circle><g clip-path="url(#a)" stroke="#169FCC" stroke-miterlimit="10" stroke-width="1.42"><path d="m33.523 104.868-5.72-.695a1.214 1.214 0 0 1-.766-.386 1.182 1.182 0 0 1-.312-.788v-7.448c0-.095.038-.186.106-.253a.365.365 0 0 1 .256-.104l5.254-.263M61.471 22.733a1.761 1.761 0 0 1 1.45.235 49.628 49.628 0 0 1 15.613 17.6 48.797 48.797 0 0 1 5.65 22.702 47.236 47.236 0 0 1-.333 5.325 41.34 41.34 0 0 0-12.501-.441 48.503 48.503 0 0 0-1.813-23.734 49.117 49.117 0 0 0-12.91-20.119c1.602-.591 3.223-1.136 4.844-1.568Z"></path><path d="M71.35 68.154a39.493 39.493 0 0 0-10.813 3.757 51.298 51.298 0 0 0 3.251-18.062c0-9.392-4.939-19.179-9.783-27.237-.257-.432 0-1.616 2.642-2.32"></path><path d="M56.236 78.58a13.605 13.605 0 0 0-4.29-9.289 14.017 14.017 0 0 0-9.622-3.786 9.617 9.617 0 0 1-6.456-2.446 9.341 9.341 0 0 1-3.079-6.1l-.286-4.256c3.09 0 9.46 4.105 13.216 4.866 3.757.76 8.21.253 11.862 3.437a13.303 13.303 0 0 1 4.357 6.575"></path><path d="M68.594 75.442c-3.432 6.95-7.914 11.59-14.303 16.033a47.076 47.076 0 0 1-21.702 8.058v-4.696c11.642-4.809 22.208-11.806 27.948-22.88"></path><path d="M76.499 84.815a46.939 46.939 0 0 1-17.392 14.511 50.925 50.925 0 0 1-22.885 5.457c-2.317 0-3.662.47-3.662-.695v-4.555"></path><path d="M83.85 68.595c22.304 16.22 4.044 39.25-19.652 37.663.954-.939 29.95-22.222-3.661-34.3"></path><path d="M84.184 58.47c13.607 0 25.746 26.242 17.383 30.995-1.182-17.508-17.716-20.87-17.716-20.87"></path></g><defs><clipPath id="a"><path d="M0 0h79v85H0z" fill="#fff" transform="translate(26 22)"></path></clipPath></defs>', 5)
|
|
195
195
|
]));
|
|
196
196
|
}
|
|
197
|
-
const Kn = /* @__PURE__ */ Q(
|
|
197
|
+
const Kn = /* @__PURE__ */ Q(Mn, [["render", Zn]]), Hn = { class: "kong-ui-app-error" }, Un = { class: "banana-icon" }, Wn = { class: "kong-ui-app-error-content" }, zn = /* @__PURE__ */ J({
|
|
198
198
|
__name: "AppError",
|
|
199
199
|
setup(a) {
|
|
200
200
|
return (t, i) => (h(), y("section", Hn, [
|
|
@@ -332,10 +332,10 @@ const Kn = /* @__PURE__ */ Q(Pn, [["render", Zn]]), Hn = { class: "kong-ui-app-e
|
|
|
332
332
|
to: !c.value && !u.value ? a.item.to : void 0
|
|
333
333
|
}, {
|
|
334
334
|
default: D((w) => {
|
|
335
|
-
var
|
|
335
|
+
var P, Y;
|
|
336
336
|
return [
|
|
337
337
|
I("a", {
|
|
338
|
-
"aria-controls": (
|
|
338
|
+
"aria-controls": (P = a.item.items) != null && P.length && a.item.expanded ? `subnav-${a.item.key}` : void 0,
|
|
339
339
|
"aria-current": a.item.active ? "page" : void 0,
|
|
340
340
|
"aria-expanded": (Y = a.item.items) != null && Y.length && a.item.expanded ? !0 : void 0,
|
|
341
341
|
class: ie(["sidebar-item-link", { "sidebar-item-external-link": u.value, "router-link": !c.value }]),
|
|
@@ -387,11 +387,11 @@ const Kn = /* @__PURE__ */ Q(Pn, [["render", Zn]]), Hn = { class: "kong-ui-app-e
|
|
|
387
387
|
id: `subnav-${a.item.key}`,
|
|
388
388
|
class: "level-secondary"
|
|
389
389
|
}, [
|
|
390
|
-
(h(!0), y(
|
|
390
|
+
(h(!0), y(Ce, null, Te(a.item.items, (w) => (h(), K(x, {
|
|
391
391
|
key: w.name,
|
|
392
392
|
item: w,
|
|
393
393
|
"subnav-item": !0,
|
|
394
|
-
onClick: (
|
|
394
|
+
onClick: (P) => v(w)
|
|
395
395
|
}, null, 8, ["item", "onClick"]))), 128))
|
|
396
396
|
], 8, fi)) : _("", !0)
|
|
397
397
|
], 10, oi);
|
|
@@ -501,7 +501,7 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
return u;
|
|
504
|
-
},
|
|
504
|
+
}, Pt = function(t) {
|
|
505
505
|
var i = t.getBoundingClientRect(), n = i.width, c = i.height;
|
|
506
506
|
return n === 0 && c === 0;
|
|
507
507
|
}, _i = function(t, i) {
|
|
@@ -516,7 +516,7 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
516
516
|
for (var v = t; t; ) {
|
|
517
517
|
var m = t.parentElement, O = ze(t);
|
|
518
518
|
if (m && !m.shadowRoot && c(m) === !0)
|
|
519
|
-
return
|
|
519
|
+
return Pt(t);
|
|
520
520
|
t.assignedSlot ? t = t.assignedSlot : !m && O !== t.ownerDocument ? t = O.host : t = m;
|
|
521
521
|
}
|
|
522
522
|
t = v;
|
|
@@ -526,7 +526,7 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
526
526
|
if (n !== "legacy-full")
|
|
527
527
|
return !0;
|
|
528
528
|
} else if (n === "non-zero-area")
|
|
529
|
-
return
|
|
529
|
+
return Pt(t);
|
|
530
530
|
return !1;
|
|
531
531
|
}, Ii = function(t) {
|
|
532
532
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
@@ -553,7 +553,7 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
553
553
|
}, Oi = function(t) {
|
|
554
554
|
var i = parseInt(t.getAttribute("tabindex"), 10);
|
|
555
555
|
return !!(isNaN(i) || i >= 0);
|
|
556
|
-
},
|
|
556
|
+
}, $i = function a(t) {
|
|
557
557
|
var i = [], n = [];
|
|
558
558
|
return t.forEach(function(c, u) {
|
|
559
559
|
var o = !!c.scopeParent, v = o ? c.scopeParent : c, m = hi(v, o), O = o ? a(c.candidates) : v;
|
|
@@ -567,7 +567,7 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
567
567
|
}), n.sort(pi).reduce(function(c, u) {
|
|
568
568
|
return u.isScope ? c.push.apply(c, u.content) : c.push(u.content), c;
|
|
569
569
|
}, []).concat(i);
|
|
570
|
-
},
|
|
570
|
+
}, Ci = function(t, i) {
|
|
571
571
|
i = i || {};
|
|
572
572
|
var n;
|
|
573
573
|
return i.getShadowRoot ? n = qt([t], i.includeContainer, {
|
|
@@ -575,7 +575,7 @@ var zt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
575
575
|
flatten: !1,
|
|
576
576
|
getShadowRoot: i.getShadowRoot,
|
|
577
577
|
shadowRootFilter: Oi
|
|
578
|
-
}) : n = Gt(t, i.includeContainer, dt.bind(null, i)),
|
|
578
|
+
}) : n = Gt(t, i.includeContainer, dt.bind(null, i)), $i(n);
|
|
579
579
|
}, Ei = function(t, i) {
|
|
580
580
|
i = i || {};
|
|
581
581
|
var n;
|
|
@@ -605,7 +605,7 @@ function Ai(a, t, i) {
|
|
|
605
605
|
writable: !0
|
|
606
606
|
}) : a[t] = i, a;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Mt(a, t) {
|
|
609
609
|
var i = Object.keys(a);
|
|
610
610
|
if (Object.getOwnPropertySymbols) {
|
|
611
611
|
var n = Object.getOwnPropertySymbols(a);
|
|
@@ -618,9 +618,9 @@ function Pt(a, t) {
|
|
|
618
618
|
function jt(a) {
|
|
619
619
|
for (var t = 1; t < arguments.length; t++) {
|
|
620
620
|
var i = arguments[t] != null ? arguments[t] : {};
|
|
621
|
-
t % 2 ?
|
|
621
|
+
t % 2 ? Mt(Object(i), !0).forEach(function(n) {
|
|
622
622
|
Ai(a, n, i[n]);
|
|
623
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(i)) :
|
|
623
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(i)) : Mt(Object(i)).forEach(function(n) {
|
|
624
624
|
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(i, n));
|
|
625
625
|
});
|
|
626
626
|
}
|
|
@@ -670,14 +670,14 @@ var Zt = {
|
|
|
670
670
|
return t.every(function(c, u) {
|
|
671
671
|
return i(c) ? (n = u, !1) : !0;
|
|
672
672
|
}), n;
|
|
673
|
-
},
|
|
673
|
+
}, $e = function(t) {
|
|
674
674
|
for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), c = 1; c < i; c++)
|
|
675
675
|
n[c - 1] = arguments[c];
|
|
676
676
|
return typeof t == "function" ? t.apply(void 0, n) : t;
|
|
677
|
-
},
|
|
677
|
+
}, Me = function(t) {
|
|
678
678
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
679
|
-
},
|
|
680
|
-
var n = (i == null ? void 0 : i.document) || document, c = (i == null ? void 0 : i.trapStack) ||
|
|
679
|
+
}, Pi = [], Mi = function(t, i) {
|
|
680
|
+
var n = (i == null ? void 0 : i.document) || document, c = (i == null ? void 0 : i.trapStack) || Pi, u = jt({
|
|
681
681
|
returnFocusOnDeactivate: !0,
|
|
682
682
|
escapeDeactivates: !0,
|
|
683
683
|
delayInitialFocus: !0,
|
|
@@ -765,7 +765,7 @@ var Zt = {
|
|
|
765
765
|
return d;
|
|
766
766
|
}, x = function() {
|
|
767
767
|
if (o.containerGroups = o.containers.map(function(d) {
|
|
768
|
-
var s =
|
|
768
|
+
var s = Ci(d, u.tabbableOptions), f = Ei(d, u.tabbableOptions), b = s.length > 0 ? s[0] : void 0, T = s.length > 0 ? s[s.length - 1] : void 0, E = f.find(function(L) {
|
|
769
769
|
return ke(L);
|
|
770
770
|
}), F = f.slice().reverse().find(function(L) {
|
|
771
771
|
return ke(L);
|
|
@@ -832,12 +832,12 @@ var Zt = {
|
|
|
832
832
|
preventScroll: !!u.preventScroll
|
|
833
833
|
}), o.mostRecentlyFocusedNode = d, xi(d) && d.select();
|
|
834
834
|
}
|
|
835
|
-
},
|
|
835
|
+
}, P = function(d) {
|
|
836
836
|
var s = A("setReturnFocus", d);
|
|
837
837
|
return s || (s === !1 ? !1 : d);
|
|
838
838
|
}, Y = function(d) {
|
|
839
839
|
var s = d.target, f = d.event, b = d.isBackward, T = b === void 0 ? !1 : b;
|
|
840
|
-
s = s ||
|
|
840
|
+
s = s || Me(f), x();
|
|
841
841
|
var E = null;
|
|
842
842
|
if (o.tabbableGroups.length > 0) {
|
|
843
843
|
var F = O(s, f), g = F >= 0 ? o.containerGroups[F] : void 0;
|
|
@@ -866,9 +866,9 @@ var Zt = {
|
|
|
866
866
|
E = A("fallbackFocus");
|
|
867
867
|
return E;
|
|
868
868
|
}, B = function(d) {
|
|
869
|
-
var s =
|
|
869
|
+
var s = Me(d);
|
|
870
870
|
if (!(O(s, d) >= 0)) {
|
|
871
|
-
if (
|
|
871
|
+
if ($e(u.clickOutsideDeactivates, d)) {
|
|
872
872
|
v.deactivate({
|
|
873
873
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
874
874
|
// which will result in the outside click setting focus to the node
|
|
@@ -880,10 +880,10 @@ var Zt = {
|
|
|
880
880
|
});
|
|
881
881
|
return;
|
|
882
882
|
}
|
|
883
|
-
|
|
883
|
+
$e(u.allowOutsideClick, d) || d.preventDefault();
|
|
884
884
|
}
|
|
885
885
|
}, ne = function(d) {
|
|
886
|
-
var s =
|
|
886
|
+
var s = Me(d), f = O(s, d) >= 0;
|
|
887
887
|
if (f || s instanceof Document)
|
|
888
888
|
f && (o.mostRecentlyFocusedNode = s);
|
|
889
889
|
else {
|
|
@@ -925,10 +925,10 @@ var Zt = {
|
|
|
925
925
|
}, ee = function(d) {
|
|
926
926
|
(u.isKeyForward(d) || u.isKeyBackward(d)) && ce(d, u.isKeyBackward(d));
|
|
927
927
|
}, te = function(d) {
|
|
928
|
-
Ri(d) &&
|
|
928
|
+
Ri(d) && $e(u.escapeDeactivates, d) !== !1 && (d.preventDefault(), v.deactivate());
|
|
929
929
|
}, Z = function(d) {
|
|
930
|
-
var s =
|
|
931
|
-
O(s, d) >= 0 ||
|
|
930
|
+
var s = Me(d);
|
|
931
|
+
O(s, d) >= 0 || $e(u.clickOutsideDeactivates, d) || $e(u.allowOutsideClick, d) || (d.preventDefault(), d.stopImmediatePropagation());
|
|
932
932
|
}, X = function() {
|
|
933
933
|
if (o.active)
|
|
934
934
|
return Zt.activateTrap(c, v), o.delayInitialFocusTimer = u.delayInitialFocus ? Kt(function() {
|
|
@@ -946,10 +946,10 @@ var Zt = {
|
|
|
946
946
|
capture: !0,
|
|
947
947
|
passive: !1
|
|
948
948
|
}), n.addEventListener("keydown", te), v;
|
|
949
|
-
},
|
|
949
|
+
}, $ = function() {
|
|
950
950
|
if (o.active)
|
|
951
951
|
return n.removeEventListener("focusin", ne, !0), n.removeEventListener("mousedown", B, !0), n.removeEventListener("touchstart", B, !0), n.removeEventListener("click", Z, !0), n.removeEventListener("keydown", ee, !0), n.removeEventListener("keydown", te), v;
|
|
952
|
-
},
|
|
952
|
+
}, M = function(d) {
|
|
953
953
|
var s = d.some(function(f) {
|
|
954
954
|
var b = Array.from(f.removedNodes);
|
|
955
955
|
return b.some(function(T) {
|
|
@@ -957,7 +957,7 @@ var Zt = {
|
|
|
957
957
|
});
|
|
958
958
|
});
|
|
959
959
|
s && w(N());
|
|
960
|
-
}, W = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(
|
|
960
|
+
}, W = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(M) : void 0, H = function() {
|
|
961
961
|
W && (W.disconnect(), o.active && !o.paused && o.containers.map(function(d) {
|
|
962
962
|
W.observe(d, {
|
|
963
963
|
subtree: !0,
|
|
@@ -990,21 +990,21 @@ var Zt = {
|
|
|
990
990
|
onPostDeactivate: u.onPostDeactivate,
|
|
991
991
|
checkCanReturnFocus: u.checkCanReturnFocus
|
|
992
992
|
}, d);
|
|
993
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
993
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, $(), o.active = !1, o.paused = !1, H(), Zt.deactivateTrap(c, v);
|
|
994
994
|
var f = m(s, "onDeactivate"), b = m(s, "onPostDeactivate"), T = m(s, "checkCanReturnFocus"), E = m(s, "returnFocus", "returnFocusOnDeactivate");
|
|
995
995
|
f == null || f();
|
|
996
996
|
var F = function() {
|
|
997
997
|
Kt(function() {
|
|
998
|
-
E && w(
|
|
998
|
+
E && w(P(o.nodeFocusedBeforeActivation)), b == null || b();
|
|
999
999
|
});
|
|
1000
1000
|
};
|
|
1001
|
-
return E && T ? (T(
|
|
1001
|
+
return E && T ? (T(P(o.nodeFocusedBeforeActivation)).then(F, F), this) : (F(), this);
|
|
1002
1002
|
},
|
|
1003
1003
|
pause: function(d) {
|
|
1004
1004
|
if (o.paused || !o.active)
|
|
1005
1005
|
return this;
|
|
1006
1006
|
var s = m(d, "onPause"), f = m(d, "onPostPause");
|
|
1007
|
-
return o.paused = !0, s == null || s(),
|
|
1007
|
+
return o.paused = !0, s == null || s(), $(), H(), f == null || f(), this;
|
|
1008
1008
|
},
|
|
1009
1009
|
unpause: function(d) {
|
|
1010
1010
|
if (!o.paused || !o.active)
|
|
@@ -1076,7 +1076,7 @@ const ji = {
|
|
|
1076
1076
|
return v && (v instanceof HTMLElement ? v : v.$el);
|
|
1077
1077
|
});
|
|
1078
1078
|
function o() {
|
|
1079
|
-
return n || (n =
|
|
1079
|
+
return n || (n = Mi(u.value, {
|
|
1080
1080
|
escapeDeactivates: a.escapeDeactivates,
|
|
1081
1081
|
allowOutsideClick: a.allowOutsideClick,
|
|
1082
1082
|
returnFocusOnDeactivate: a.returnFocusOnDeactivate,
|
|
@@ -1137,8 +1137,8 @@ function Ki(a) {
|
|
|
1137
1137
|
var qe = { exports: {} };
|
|
1138
1138
|
qe.exports;
|
|
1139
1139
|
(function(a, t) {
|
|
1140
|
-
var i = 200, n = "__lodash_hash_undefined__", c = 9007199254740991, u = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", m = "[object Date]", O = "[object Error]", A = "[object Function]", N = "[object GeneratorFunction]", x = "[object Map]", R = "[object Number]", w = "[object Object]",
|
|
1141
|
-
g[u] = g[o] = g[te] = g[Z] = g[v] = g[m] = g[X] = g[
|
|
1140
|
+
var i = 200, n = "__lodash_hash_undefined__", c = 9007199254740991, u = "[object Arguments]", o = "[object Array]", v = "[object Boolean]", m = "[object Date]", O = "[object Error]", A = "[object Function]", N = "[object GeneratorFunction]", x = "[object Map]", R = "[object Number]", w = "[object Object]", P = "[object Promise]", Y = "[object RegExp]", B = "[object Set]", ne = "[object String]", ce = "[object Symbol]", ee = "[object WeakMap]", te = "[object ArrayBuffer]", Z = "[object DataView]", X = "[object Float32Array]", $ = "[object Float64Array]", M = "[object Int8Array]", W = "[object Int16Array]", H = "[object Int32Array]", C = "[object Uint8Array]", d = "[object Uint8ClampedArray]", s = "[object Uint16Array]", f = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, T = /\w*$/, E = /^\[object .+?Constructor\]$/, F = /^(?:0|[1-9]\d*)$/, g = {};
|
|
1141
|
+
g[u] = g[o] = g[te] = g[Z] = g[v] = g[m] = g[X] = g[$] = g[M] = g[W] = g[H] = g[x] = g[R] = g[w] = g[Y] = g[B] = g[ne] = g[ce] = g[C] = g[d] = g[s] = g[f] = !0, g[O] = g[A] = g[ee] = !1;
|
|
1142
1142
|
var L = typeof je == "object" && je && je.Object === Object && je, re = typeof self == "object" && self && self.Object === Object && self, U = L || re || Function("return this")(), ae = t && !t.nodeType && t, le = ae && !0 && a && !a.nodeType && a, Fe = le && le.exports === ae;
|
|
1143
1143
|
function Se(e, r) {
|
|
1144
1144
|
return e.set(r[0], r[1]), e;
|
|
@@ -1267,14 +1267,14 @@ qe.exports;
|
|
|
1267
1267
|
this.set(p[0], p[1]);
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function $a() {
|
|
1271
1271
|
this.__data__ = {
|
|
1272
1272
|
hash: new de(),
|
|
1273
1273
|
map: new (Ie || oe)(),
|
|
1274
1274
|
string: new de()
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Ca(e) {
|
|
1278
1278
|
return Be(this, e).delete(e);
|
|
1279
1279
|
}
|
|
1280
1280
|
function Ea(e) {
|
|
@@ -1286,7 +1286,7 @@ qe.exports;
|
|
|
1286
1286
|
function Aa(e, r) {
|
|
1287
1287
|
return Be(this, e).set(e, r), this;
|
|
1288
1288
|
}
|
|
1289
|
-
me.prototype.clear =
|
|
1289
|
+
me.prototype.clear = $a, me.prototype.delete = Ca, me.prototype.get = Ea, me.prototype.has = Na, me.prototype.set = Aa;
|
|
1290
1290
|
function ge(e) {
|
|
1291
1291
|
this.__data__ = new oe(e);
|
|
1292
1292
|
}
|
|
@@ -1329,7 +1329,7 @@ qe.exports;
|
|
|
1329
1329
|
return l;
|
|
1330
1330
|
return -1;
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function Pa(e, r) {
|
|
1333
1333
|
return e && Ot(r, st(r), e);
|
|
1334
1334
|
}
|
|
1335
1335
|
function it(e, r, l, p, j, z, se) {
|
|
@@ -1350,7 +1350,7 @@ qe.exports;
|
|
|
1350
1350
|
if (bt(e))
|
|
1351
1351
|
return z ? e : {};
|
|
1352
1352
|
if (V = tn(Dt ? {} : e), !r)
|
|
1353
|
-
return Ja(e,
|
|
1353
|
+
return Ja(e, Pa(V, e));
|
|
1354
1354
|
} else {
|
|
1355
1355
|
if (!g[we])
|
|
1356
1356
|
return z ? e : {};
|
|
@@ -1363,11 +1363,11 @@ qe.exports;
|
|
|
1363
1363
|
return xt;
|
|
1364
1364
|
if (se.set(e, V), !Ft)
|
|
1365
1365
|
var Rt = l ? Qa(e) : st(e);
|
|
1366
|
-
return Qt(Rt || e, function(ct,
|
|
1367
|
-
Rt && (
|
|
1366
|
+
return Qt(Rt || e, function(ct, Pe) {
|
|
1367
|
+
Rt && (Pe = ct, ct = e[Pe]), It(V, Pe, it(ct, r, l, p, Pe, e, se));
|
|
1368
1368
|
}), V;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Ma(e) {
|
|
1371
1371
|
return Le(e) ? sa(e) : {};
|
|
1372
1372
|
}
|
|
1373
1373
|
function ja(e, r, l) {
|
|
@@ -1384,7 +1384,7 @@ qe.exports;
|
|
|
1384
1384
|
return r.test(ve(e));
|
|
1385
1385
|
}
|
|
1386
1386
|
function Ha(e) {
|
|
1387
|
-
if (
|
|
1387
|
+
if (!Ct(e))
|
|
1388
1388
|
return da(e);
|
|
1389
1389
|
var r = [];
|
|
1390
1390
|
for (var l in Object(e))
|
|
@@ -1439,10 +1439,10 @@ qe.exports;
|
|
|
1439
1439
|
return l;
|
|
1440
1440
|
}
|
|
1441
1441
|
function Ja(e, r) {
|
|
1442
|
-
return Ot(e,
|
|
1442
|
+
return Ot(e, $t(e), r);
|
|
1443
1443
|
}
|
|
1444
1444
|
function Qa(e) {
|
|
1445
|
-
return ja(e, st,
|
|
1445
|
+
return ja(e, st, $t);
|
|
1446
1446
|
}
|
|
1447
1447
|
function Be(e, r) {
|
|
1448
1448
|
var l = e.__data__;
|
|
@@ -1452,8 +1452,8 @@ qe.exports;
|
|
|
1452
1452
|
var l = aa(e, r);
|
|
1453
1453
|
return Ka(l) ? l : void 0;
|
|
1454
1454
|
}
|
|
1455
|
-
var
|
|
1456
|
-
(et && fe(new et(new ArrayBuffer(1))) != Z || Ie && fe(new Ie()) != x || tt && fe(tt.resolve()) !=
|
|
1455
|
+
var $t = Tt ? Je(Tt, Object) : vn, fe = Za;
|
|
1456
|
+
(et && fe(new et(new ArrayBuffer(1))) != Z || Ie && fe(new Ie()) != x || tt && fe(tt.resolve()) != P || at && fe(new at()) != B || nt && fe(new nt()) != ee) && (fe = function(e) {
|
|
1457
1457
|
var r = xe.call(e), l = r == w ? e.constructor : void 0, p = l ? ve(l) : void 0;
|
|
1458
1458
|
if (p)
|
|
1459
1459
|
switch (p) {
|
|
@@ -1462,7 +1462,7 @@ qe.exports;
|
|
|
1462
1462
|
case va:
|
|
1463
1463
|
return x;
|
|
1464
1464
|
case ba:
|
|
1465
|
-
return
|
|
1465
|
+
return P;
|
|
1466
1466
|
case ha:
|
|
1467
1467
|
return B;
|
|
1468
1468
|
case pa:
|
|
@@ -1475,7 +1475,7 @@ qe.exports;
|
|
|
1475
1475
|
return r && typeof e[0] == "string" && ue.call(e, "index") && (l.index = e.index, l.input = e.input), l;
|
|
1476
1476
|
}
|
|
1477
1477
|
function tn(e) {
|
|
1478
|
-
return typeof e.constructor == "function" &&
|
|
1478
|
+
return typeof e.constructor == "function" && !Ct(e) ? Ma(oa(e)) : {};
|
|
1479
1479
|
}
|
|
1480
1480
|
function an(e, r, l, p) {
|
|
1481
1481
|
var j = e.constructor;
|
|
@@ -1488,11 +1488,11 @@ qe.exports;
|
|
|
1488
1488
|
case Z:
|
|
1489
1489
|
return Wa(e, p);
|
|
1490
1490
|
case X:
|
|
1491
|
-
case
|
|
1492
|
-
case
|
|
1491
|
+
case $:
|
|
1492
|
+
case M:
|
|
1493
1493
|
case W:
|
|
1494
1494
|
case H:
|
|
1495
|
-
case
|
|
1495
|
+
case C:
|
|
1496
1496
|
case d:
|
|
1497
1497
|
case s:
|
|
1498
1498
|
case f:
|
|
@@ -1520,7 +1520,7 @@ qe.exports;
|
|
|
1520
1520
|
function on(e) {
|
|
1521
1521
|
return !!mt && mt in e;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function Ct(e) {
|
|
1524
1524
|
var r = e && e.constructor, l = typeof r == "function" && r.prototype || De;
|
|
1525
1525
|
return e === l;
|
|
1526
1526
|
}
|
|
@@ -1662,7 +1662,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1662
1662
|
"7a10f32f": v.value.height,
|
|
1663
1663
|
"7da84766": v.value.top,
|
|
1664
1664
|
"1e6146be": O.value.marginTop,
|
|
1665
|
-
"5b6aa028":
|
|
1665
|
+
"5b6aa028": C.value,
|
|
1666
1666
|
"178af94b": m.value.display,
|
|
1667
1667
|
"49f98062": m.value.minHeight,
|
|
1668
1668
|
"548fea1c": A.value.top,
|
|
@@ -1689,31 +1689,31 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1689
1689
|
g.parentKey = b.key, (!g.testId || !((F = g.testId) != null && F.trim())) && (g.testId = String(g.name || "").trim().toLowerCase().replace(/[^[a-z]/gi, "-"));
|
|
1690
1690
|
}
|
|
1691
1691
|
return b;
|
|
1692
|
-
}), x = k(() => n.topItems.length ? N(n.topItems) : []), R = k(() => n.bottomItems.length ? N(n.bottomItems) : []), w = G(n.open),
|
|
1692
|
+
}), x = k(() => n.topItems.length ? N(n.topItems) : []), R = k(() => n.bottomItems.length ? N(n.bottomItems) : []), w = G(n.open), P = (s) => {
|
|
1693
1693
|
var f, b;
|
|
1694
1694
|
w.value !== s && (w.value = s, i("toggle", s)), s ? (f = document == null ? void 0 : document.body) == null || f.classList.add("kong-ui-app-sidebar-open") : (b = document == null ? void 0 : document.body) == null || b.classList.remove("kong-ui-app-sidebar-open"), B.value = !1;
|
|
1695
1695
|
}, Y = () => {
|
|
1696
|
-
n.mobileOverlayCloseOnClick &&
|
|
1696
|
+
n.mobileOverlayCloseOnClick && P(!1);
|
|
1697
1697
|
}, B = G(!1), ne = (s) => {
|
|
1698
1698
|
B.value = !0, i("click", s), setTimeout(() => {
|
|
1699
|
-
|
|
1699
|
+
P(!1);
|
|
1700
1700
|
}, n.mobileCloseDelay);
|
|
1701
1701
|
};
|
|
1702
1702
|
Ae(() => n.open, (s) => {
|
|
1703
|
-
|
|
1703
|
+
P(s);
|
|
1704
1704
|
});
|
|
1705
1705
|
const { debounce: ce } = Jt(), ee = ce(() => {
|
|
1706
|
-
w.value && te.value !== (window == null ? void 0 : window.innerWidth) && (te.value = window == null ? void 0 : window.innerWidth,
|
|
1707
|
-
}, 200), te = G(), Z = G(!1), X = G(),
|
|
1706
|
+
w.value && te.value !== (window == null ? void 0 : window.innerWidth) && (te.value = window == null ? void 0 : window.innerWidth, P(!1));
|
|
1707
|
+
}, 200), te = G(), Z = G(!1), X = G(), $ = () => {
|
|
1708
1708
|
Z.value || (Z.value = !0, clearTimeout(X.value), X.value = setTimeout(() => Z.value = !1, 1300));
|
|
1709
|
-
},
|
|
1709
|
+
}, M = G(null), W = k(() => w.value && n.mobileEnabled), H = async (s) => {
|
|
1710
1710
|
var f, b;
|
|
1711
|
-
s ? (await Bt(), await new Promise((T) => setTimeout(T, 300)), (f =
|
|
1711
|
+
s ? (await Bt(), await new Promise((T) => setTimeout(T, 300)), (f = M.value) == null || f.activate()) : (b = M.value) == null || b.deactivate();
|
|
1712
1712
|
};
|
|
1713
1713
|
Ae(W, async (s) => {
|
|
1714
1714
|
s ? await H(!0) : await H(!1);
|
|
1715
1715
|
}, { immediate: !0 });
|
|
1716
|
-
const
|
|
1716
|
+
const C = G("0px"), d = () => {
|
|
1717
1717
|
var g;
|
|
1718
1718
|
if (!(/Mac|iPhone|iPod|iPad/i.test(navigator == null ? void 0 : navigator.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test((g = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : g.platform)))
|
|
1719
1719
|
return;
|
|
@@ -1724,13 +1724,13 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1724
1724
|
const T = document.createElement("div");
|
|
1725
1725
|
T.style.width = "100%", f.appendChild(T);
|
|
1726
1726
|
const E = T.offsetWidth;
|
|
1727
|
-
f.parentNode && f.parentNode.removeChild(f), b - E === 0 && (
|
|
1727
|
+
f.parentNode && f.parentNode.removeChild(f), b - E === 0 && (C.value = "8px");
|
|
1728
1728
|
};
|
|
1729
1729
|
return Ye(async () => {
|
|
1730
|
-
te.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", ee), window.addEventListener("resize",
|
|
1730
|
+
te.value = window == null ? void 0 : window.innerWidth, window.addEventListener("resize", ee), window.addEventListener("resize", $), await Bt(), d();
|
|
1731
1731
|
}), Ut(() => {
|
|
1732
|
-
window.removeEventListener("resize", ee), window.removeEventListener("resize",
|
|
1733
|
-
}), (s, f) => (h(), y(
|
|
1732
|
+
window.removeEventListener("resize", ee), window.removeEventListener("resize", $);
|
|
1733
|
+
}), (s, f) => (h(), y(Ce, null, [
|
|
1734
1734
|
w.value && a.mobileOverlay && a.mobileEnabled ? (h(), y("div", {
|
|
1735
1735
|
key: 0,
|
|
1736
1736
|
class: "kong-ui-app-sidebar-overlay",
|
|
@@ -1738,7 +1738,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1738
1738
|
})) : _("", !0),
|
|
1739
1739
|
Ne(Wt(Zi), {
|
|
1740
1740
|
ref_key: "focusTrap",
|
|
1741
|
-
ref:
|
|
1741
|
+
ref: M,
|
|
1742
1742
|
active: !1,
|
|
1743
1743
|
"allow-outside-click": "",
|
|
1744
1744
|
"fallback-focus": ".kong-ui-app-sidebar"
|
|
@@ -1763,7 +1763,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1763
1763
|
])) : _("", !0),
|
|
1764
1764
|
I("nav", Gi, [
|
|
1765
1765
|
x.value.length ? (h(), y("ul", qi, [
|
|
1766
|
-
(h(!0), y(
|
|
1766
|
+
(h(!0), y(Ce, null, Te(x.value, (b) => (h(), K(Lt, {
|
|
1767
1767
|
key: b.name,
|
|
1768
1768
|
item: b,
|
|
1769
1769
|
onClick: ne
|
|
@@ -1776,7 +1776,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1776
1776
|
])) : _("", !0),
|
|
1777
1777
|
x.value.length && R.value.length ? (h(), y("div", Xi)) : _("", !0),
|
|
1778
1778
|
R.value.length ? (h(), y("ul", Yi, [
|
|
1779
|
-
(h(!0), y(
|
|
1779
|
+
(h(!0), y(Ce, null, Te(R.value, (b) => (h(), K(Lt, {
|
|
1780
1780
|
key: b.name,
|
|
1781
1781
|
item: b,
|
|
1782
1782
|
onClick: ne
|
|
@@ -1869,7 +1869,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1869
1869
|
},
|
|
1870
1870
|
emits: ["sidebar-click", "update:topOffset"],
|
|
1871
1871
|
setup(a, { emit: t }) {
|
|
1872
|
-
ft((
|
|
1872
|
+
ft(($) => ({
|
|
1873
1873
|
"2235c6e4": B.value,
|
|
1874
1874
|
"29d04344": ne.value,
|
|
1875
1875
|
"3d470f48": Y.value,
|
|
@@ -1892,46 +1892,46 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1892
1892
|
bottomItems: k(() => i.sidebarBottomItems),
|
|
1893
1893
|
open: k(() => i.sidebarOpen),
|
|
1894
1894
|
hidden: k(() => i.sidebarHidden)
|
|
1895
|
-
}), O = (
|
|
1896
|
-
n("sidebar-click",
|
|
1897
|
-
}, A = G(!1), N = (
|
|
1898
|
-
A.value =
|
|
1895
|
+
}), O = ($) => {
|
|
1896
|
+
n("sidebar-click", $);
|
|
1897
|
+
}, A = G(!1), N = ($) => {
|
|
1898
|
+
A.value = $;
|
|
1899
1899
|
};
|
|
1900
1900
|
kn(() => {
|
|
1901
1901
|
A.value = Tn(m, "open").value || !1;
|
|
1902
1902
|
});
|
|
1903
|
-
const x = G(0), R = G(60), w = G(0),
|
|
1904
|
-
if (
|
|
1903
|
+
const x = G(0), R = G(60), w = G(0), P = k(() => v.hidden ? w.value : R.value + w.value), Y = k(() => i.theme === "light" ? or : sr), B = k(() => i.theme === "light" ? ir : rr), ne = k(() => i.theme === "light" ? "var(--kong-ui-app-layout-main-box-shadow, -30px 174px 250px #0023db)" : "none"), ce = k(() => `${P.value}px`), ee = k(() => m.hidden || v.hidden ? cr : lr), { debounce: te } = Jt(), Z = te(($ = !1) => {
|
|
1904
|
+
if ($ || x.value !== (window == null ? void 0 : window.innerWidth)) {
|
|
1905
1905
|
x.value = window == null ? void 0 : window.innerWidth;
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1906
|
+
const M = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1907
|
+
M && (w.value = M.offsetHeight);
|
|
1908
1908
|
}
|
|
1909
1909
|
}, 200), X = G();
|
|
1910
|
-
return Ae(w, (
|
|
1911
|
-
n("update:topOffset",
|
|
1910
|
+
return Ae(w, ($) => {
|
|
1911
|
+
n("update:topOffset", $ || 0);
|
|
1912
1912
|
}, { immediate: !0 }), Ye(() => {
|
|
1913
|
-
var
|
|
1914
|
-
(
|
|
1915
|
-
const
|
|
1916
|
-
|
|
1913
|
+
var M, W;
|
|
1914
|
+
(M = document == null ? void 0 : document.body) == null || M.classList.add("kong-ui-app-layout-body"), (W = document == null ? void 0 : document.documentElement) == null || W.classList.add("kong-ui-app-layout-html"), x.value = window == null ? void 0 : window.innerWidth, Z(!0);
|
|
1915
|
+
const $ = document == null ? void 0 : document.querySelector(".kong-ui-app-layout #kong-ui-app-layout-notification");
|
|
1916
|
+
$ && (X.value = new ResizeObserver((H) => {
|
|
1917
1917
|
window.requestAnimationFrame(() => {
|
|
1918
1918
|
if (!(!Array.isArray(H) || !H.length))
|
|
1919
|
-
for (const
|
|
1920
|
-
const d =
|
|
1919
|
+
for (const C of H) {
|
|
1920
|
+
const d = C.contentRect.height;
|
|
1921
1921
|
w.value !== d && (w.value = d);
|
|
1922
1922
|
}
|
|
1923
1923
|
});
|
|
1924
|
-
}), X.value.observe(
|
|
1924
|
+
}), X.value.observe($)), window.addEventListener("resize", Z);
|
|
1925
1925
|
}), Ut(() => {
|
|
1926
1926
|
X.value && X.value.disconnect(), window.removeEventListener("resize", Z);
|
|
1927
|
-
}), (
|
|
1927
|
+
}), ($, M) => (h(), y("div", {
|
|
1928
1928
|
class: ie(["kong-ui-app-layout", [
|
|
1929
1929
|
{ "navbar-hidden": v.hidden },
|
|
1930
1930
|
{ "sidebar-hidden": m.hidden }
|
|
1931
1931
|
]])
|
|
1932
1932
|
}, [
|
|
1933
1933
|
I("div", ur, [
|
|
1934
|
-
S(
|
|
1934
|
+
S($.$slots, "notification", {}, void 0, !0)
|
|
1935
1935
|
]),
|
|
1936
1936
|
v.hidden ? _("", !0) : (h(), K(ai, {
|
|
1937
1937
|
key: String(m.hidden),
|
|
@@ -1951,7 +1951,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1951
1951
|
name: "mobile-logo",
|
|
1952
1952
|
fn: D(() => [
|
|
1953
1953
|
I("div", dr, [
|
|
1954
|
-
S(
|
|
1954
|
+
S($.$slots, "navbar-mobile-logo", {}, void 0, !0)
|
|
1955
1955
|
])
|
|
1956
1956
|
]),
|
|
1957
1957
|
key: "0"
|
|
@@ -1960,7 +1960,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1960
1960
|
name: "logo",
|
|
1961
1961
|
fn: D(() => [
|
|
1962
1962
|
m.hidden ? (h(), y("div", fr, [
|
|
1963
|
-
S(
|
|
1963
|
+
S($.$slots, "navbar-logo", {}, void 0, !0)
|
|
1964
1964
|
])) : _("", !0)
|
|
1965
1965
|
]),
|
|
1966
1966
|
key: "1"
|
|
@@ -1968,21 +1968,21 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1968
1968
|
u.navbarLeft ? {
|
|
1969
1969
|
name: "left",
|
|
1970
1970
|
fn: D(() => [
|
|
1971
|
-
S(
|
|
1971
|
+
S($.$slots, "navbar-left", {}, void 0, !0)
|
|
1972
1972
|
]),
|
|
1973
1973
|
key: "2"
|
|
1974
1974
|
} : void 0,
|
|
1975
1975
|
u.navbarCenter ? {
|
|
1976
1976
|
name: "center",
|
|
1977
1977
|
fn: D(() => [
|
|
1978
|
-
S(
|
|
1978
|
+
S($.$slots, "navbar-center", {}, void 0, !0)
|
|
1979
1979
|
]),
|
|
1980
1980
|
key: "3"
|
|
1981
1981
|
} : void 0,
|
|
1982
1982
|
u.navbarRight ? {
|
|
1983
1983
|
name: "right",
|
|
1984
1984
|
fn: D(() => [
|
|
1985
|
-
S(
|
|
1985
|
+
S($.$slots, "navbar-right", {}, void 0, !0)
|
|
1986
1986
|
]),
|
|
1987
1987
|
key: "4"
|
|
1988
1988
|
} : void 0
|
|
@@ -1993,7 +1993,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
1993
1993
|
"header-height": R.value,
|
|
1994
1994
|
"mobile-enabled": "",
|
|
1995
1995
|
"mobile-header-visible": !1,
|
|
1996
|
-
"mobile-top-offset":
|
|
1996
|
+
"mobile-top-offset": P.value,
|
|
1997
1997
|
open: A.value,
|
|
1998
1998
|
"top-items": m.topItems,
|
|
1999
1999
|
"top-offset": w.value,
|
|
@@ -2003,37 +2003,37 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2003
2003
|
u.sidebarHeader ? {
|
|
2004
2004
|
name: "header",
|
|
2005
2005
|
fn: D(() => [
|
|
2006
|
-
S(
|
|
2006
|
+
S($.$slots, "sidebar-header", {}, void 0, !0)
|
|
2007
2007
|
]),
|
|
2008
2008
|
key: "0"
|
|
2009
2009
|
} : void 0,
|
|
2010
2010
|
u.sidebarTop ? {
|
|
2011
2011
|
name: "top",
|
|
2012
2012
|
fn: D(() => [
|
|
2013
|
-
S(
|
|
2013
|
+
S($.$slots, "sidebar-top", {}, void 0, !0)
|
|
2014
2014
|
]),
|
|
2015
2015
|
key: "1"
|
|
2016
2016
|
} : void 0,
|
|
2017
2017
|
u.sidebarFooter ? {
|
|
2018
2018
|
name: "footer",
|
|
2019
2019
|
fn: D(() => [
|
|
2020
|
-
S(
|
|
2020
|
+
S($.$slots, "sidebar-footer", {}, void 0, !0)
|
|
2021
2021
|
]),
|
|
2022
2022
|
key: "2"
|
|
2023
2023
|
} : void 0,
|
|
2024
2024
|
Te([...m.topItems || [], ...m.bottomItems || []], (W) => ({
|
|
2025
2025
|
name: `sidebar-icon-${W.key}`,
|
|
2026
2026
|
fn: D(() => [
|
|
2027
|
-
S(
|
|
2027
|
+
S($.$slots, `sidebar-icon-${W.key}`, {}, void 0, !0)
|
|
2028
2028
|
])
|
|
2029
2029
|
}))
|
|
2030
2030
|
]), 1032, ["bottom-items", "header-height", "mobile-top-offset", "open", "top-items", "top-offset"])),
|
|
2031
2031
|
I("main", vr, [
|
|
2032
2032
|
I("div", br, [
|
|
2033
2033
|
I("div", hr, [
|
|
2034
|
-
|
|
2035
|
-
S(
|
|
2036
|
-
o.value ? _("", !0) : S(
|
|
2034
|
+
M[0] || (M[0] = I("div", { id: "kong-ui-app-layout-teleport-default-slot" }, null, -1)),
|
|
2035
|
+
S($.$slots, "app-error", {}, void 0, !0),
|
|
2036
|
+
o.value ? _("", !0) : S($.$slots, "default", { key: 0 }, void 0, !0)
|
|
2037
2037
|
])
|
|
2038
2038
|
])
|
|
2039
2039
|
])
|
|
@@ -2059,7 +2059,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2059
2059
|
key: 1,
|
|
2060
2060
|
class: "page-header-section-below",
|
|
2061
2061
|
"data-testid": "page-header-section-below"
|
|
2062
|
-
},
|
|
2062
|
+
}, $r = /* @__PURE__ */ J({
|
|
2063
2063
|
__name: "AppPageHeader",
|
|
2064
2064
|
props: {
|
|
2065
2065
|
title: {
|
|
@@ -2117,15 +2117,16 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2117
2117
|
]);
|
|
2118
2118
|
};
|
|
2119
2119
|
}
|
|
2120
|
-
}),
|
|
2120
|
+
}), Pr = /* @__PURE__ */ Q($r, [["__scopeId", "data-v-204b7f98"]]), Cr = { class: "page-info-section-default-header" }, Er = {
|
|
2121
2121
|
key: 1,
|
|
2122
|
-
class: "
|
|
2122
|
+
class: "page-info-section-description",
|
|
2123
|
+
"data-testid": "page-info-section-description"
|
|
2123
2124
|
}, Nr = {
|
|
2124
2125
|
key: 0,
|
|
2125
|
-
class: "
|
|
2126
|
-
"data-testid": "
|
|
2126
|
+
class: "page-info-section-content",
|
|
2127
|
+
"data-testid": "page-info-section-content"
|
|
2127
2128
|
}, Ar = /* @__PURE__ */ J({
|
|
2128
|
-
__name: "
|
|
2129
|
+
__name: "PageInfoSection",
|
|
2129
2130
|
props: {
|
|
2130
2131
|
collapsible: {
|
|
2131
2132
|
type: Boolean,
|
|
@@ -2147,20 +2148,21 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2147
2148
|
},
|
|
2148
2149
|
setup(a) {
|
|
2149
2150
|
return (t, i) => (h(), K(Ke(a.collapsible ? "details" : "div"), {
|
|
2150
|
-
class: "
|
|
2151
|
-
"data-testid": "
|
|
2151
|
+
class: "page-info-section",
|
|
2152
|
+
"data-testid": "page-info-section"
|
|
2152
2153
|
}, {
|
|
2153
2154
|
default: D(() => [
|
|
2154
2155
|
(h(), K(Ke(a.collapsible ? "summary" : "div"), {
|
|
2155
|
-
class: "
|
|
2156
|
-
"data-testid": "
|
|
2156
|
+
class: "page-info-section-header",
|
|
2157
|
+
"data-testid": "page-info-section-header"
|
|
2157
2158
|
}, {
|
|
2158
2159
|
default: D(() => [
|
|
2159
2160
|
S(t.$slots, "header", {}, () => [
|
|
2160
|
-
I("div",
|
|
2161
|
+
I("div", Cr, [
|
|
2161
2162
|
a.title ? (h(), K(Ke(a.titleTag), {
|
|
2162
2163
|
key: 0,
|
|
2163
|
-
class: "
|
|
2164
|
+
class: "page-info-section-title",
|
|
2165
|
+
"data-testid": "page-info-section-title"
|
|
2164
2166
|
}, {
|
|
2165
2167
|
default: D(() => [
|
|
2166
2168
|
He(q(a.title), 1)
|
|
@@ -2172,9 +2174,9 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2172
2174
|
], !0),
|
|
2173
2175
|
a.collapsible ? (h(), K(Wt(Sn), {
|
|
2174
2176
|
key: 0,
|
|
2175
|
-
class: "
|
|
2177
|
+
class: "page-info-section-chevron-icon",
|
|
2176
2178
|
decorative: ""
|
|
2177
|
-
})) : S(t.$slots, "actions", { key: 1 }, void 0, !0)
|
|
2179
|
+
})) : t.$slots.actions ? S(t.$slots, "actions", { key: 1 }, void 0, !0) : _("", !0)
|
|
2178
2180
|
]),
|
|
2179
2181
|
_: 3
|
|
2180
2182
|
})),
|
|
@@ -2185,7 +2187,7 @@ const Ui = /* @__PURE__ */ Ki(Hi), Wi = {
|
|
|
2185
2187
|
_: 3
|
|
2186
2188
|
}));
|
|
2187
2189
|
}
|
|
2188
|
-
}),
|
|
2190
|
+
}), Mr = /* @__PURE__ */ Q(Ar, [["__scopeId", "data-v-a38c591b"]]), jr = {
|
|
2189
2191
|
// Customize Vue plugin options as desired
|
|
2190
2192
|
// Providing a `name` property allows for customizing the registered name of your component (useful if exporting a single component).
|
|
2191
2193
|
install: (a, t = {}) => {
|
|
@@ -2198,9 +2200,9 @@ export {
|
|
|
2198
2200
|
Lr as AppError,
|
|
2199
2201
|
mr as AppLayout,
|
|
2200
2202
|
ai as AppNavbar,
|
|
2201
|
-
|
|
2203
|
+
Pr as AppPageHeader,
|
|
2202
2204
|
er as AppSidebar,
|
|
2203
|
-
|
|
2205
|
+
Mr as PageInfoSection,
|
|
2204
2206
|
nr as SidebarToggle,
|
|
2205
2207
|
jr as default
|
|
2206
2208
|
};
|