@kong-ui-public/page-layout 0.2.13-pr.3145.696facdb1.0 → 0.2.13
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/page-layout.es.js
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { watch as F, computed as w, toValue as
|
|
1
|
+
import { watch as F, computed as w, toValue as K, unref as h, defineComponent as H, useCssVars as Y, inject as z, useTemplateRef as G, ref as A, onMounted as tt, onBeforeUnmount as et, resolveComponent as _, openBlock as i, createElementBlock as d, createElementVNode as g, normalizeClass as B, Fragment as x, renderList as R, createBlock as T, resolveDynamicComponent as q, withKeys as D, withModifiers as I, withCtx as S, createTextVNode as W, toDisplayString as P, createVNode as M, createCommentVNode as y, nextTick as U, provide as at, onUnmounted as ot, renderSlot as O } from "vue";
|
|
2
2
|
import { useRouter as J } from "vue-router";
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { ArrowTopLeftIcon as
|
|
5
|
-
const
|
|
3
|
+
import { createI18n as nt, i18nTComponent as st } from "@kong-ui-public/i18n";
|
|
4
|
+
import { ArrowTopLeftIcon as it } from "@kong/icons";
|
|
5
|
+
const lt = "Go back", ut = {
|
|
6
6
|
more_button: {
|
|
7
7
|
label: "More",
|
|
8
8
|
aria_label: "More tabs"
|
|
9
9
|
}
|
|
10
|
-
},
|
|
11
|
-
back_button:
|
|
12
|
-
tabs:
|
|
10
|
+
}, ct = {
|
|
11
|
+
back_button: lt,
|
|
12
|
+
tabs: ut
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
const
|
|
14
|
+
function rt() {
|
|
15
|
+
const t = nt("en-us", ct);
|
|
16
16
|
return {
|
|
17
|
-
i18n:
|
|
18
|
-
i18nT:
|
|
17
|
+
i18n: t,
|
|
18
|
+
i18nT: st(t)
|
|
19
19
|
// Translation component <i18n-t>
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
const Q = {
|
|
23
|
-
useI18n:
|
|
24
|
-
},
|
|
23
|
+
useI18n: rt
|
|
24
|
+
}, dt = "16px", vt = "16px", bt = typeof window < "u" && typeof document < "u";
|
|
25
25
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
26
|
-
const
|
|
27
|
-
function
|
|
28
|
-
return Array.isArray(
|
|
26
|
+
const ft = Object.prototype.toString, yt = (t) => ft.call(t) === "[object Object]";
|
|
27
|
+
function j(t) {
|
|
28
|
+
return Array.isArray(t) ? t : [t];
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return F(
|
|
30
|
+
function mt(t, l, n) {
|
|
31
|
+
return F(t, l, {
|
|
32
32
|
...n,
|
|
33
33
|
immediate: !0
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
function
|
|
36
|
+
const pt = bt ? window : void 0;
|
|
37
|
+
function gt(t) {
|
|
38
38
|
var l;
|
|
39
|
-
const n =
|
|
39
|
+
const n = K(t);
|
|
40
40
|
return (l = n == null ? void 0 : n.$el) !== null && l !== void 0 ? l : n;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const l = (o, a,
|
|
44
|
-
const o =
|
|
42
|
+
function ht(...t) {
|
|
43
|
+
const l = (o, a, s, c) => (o.addEventListener(a, s, c), () => o.removeEventListener(a, s, c)), n = w(() => {
|
|
44
|
+
const o = j(K(t[0])).filter((a) => a != null);
|
|
45
45
|
return o.every((a) => typeof a != "string") ? o : void 0;
|
|
46
46
|
});
|
|
47
|
-
return
|
|
47
|
+
return mt(() => {
|
|
48
48
|
var o, a;
|
|
49
49
|
return [
|
|
50
|
-
(o = (a = n.value) === null || a === void 0 ? void 0 : a.map((
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
(o = (a = n.value) === null || a === void 0 ? void 0 : a.map((s) => gt(s))) !== null && o !== void 0 ? o : [pt].filter((s) => s != null),
|
|
51
|
+
j(K(n.value ? t[1] : t[0])),
|
|
52
|
+
j(h(n.value ? t[2] : t[1])),
|
|
53
|
+
K(n.value ? t[3] : t[2])
|
|
54
54
|
];
|
|
55
|
-
}, ([o, a,
|
|
56
|
-
if (!(o != null && o.length) || !(a != null && a.length) || !(
|
|
57
|
-
const v =
|
|
55
|
+
}, ([o, a, s, c], m, r) => {
|
|
56
|
+
if (!(o != null && o.length) || !(a != null && a.length) || !(s != null && s.length)) return;
|
|
57
|
+
const v = yt(c) ? { ...c } : c, p = o.flatMap((u) => a.flatMap((k) => s.map((b) => l(u, k, b, v))));
|
|
58
58
|
r(() => {
|
|
59
59
|
p.forEach((u) => u());
|
|
60
60
|
});
|
|
61
61
|
}, { flush: "post" });
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const kt = {
|
|
64
64
|
ref: "page-layout-tabs",
|
|
65
65
|
class: "page-layout-tabs",
|
|
66
66
|
"data-testid": "page-layout-tabs"
|
|
67
|
-
},
|
|
67
|
+
}, Tt = { key: 0 }, wt = ["aria-label"], It = { class: "overflowing-items-count" }, _t = {
|
|
68
68
|
key: 0,
|
|
69
69
|
class: "layout-loader-container"
|
|
70
|
-
},
|
|
70
|
+
}, $t = /* @__PURE__ */ H({
|
|
71
71
|
__name: "PageLayoutTabs",
|
|
72
72
|
props: {
|
|
73
73
|
tabs: { default: () => [] }
|
|
74
74
|
},
|
|
75
|
-
setup(
|
|
75
|
+
setup(t) {
|
|
76
76
|
Y((f) => ({
|
|
77
|
-
v417a39b5: h(
|
|
77
|
+
v417a39b5: h(s)
|
|
78
78
|
}));
|
|
79
|
-
const { i18n: { t: l } } = Q.useI18n(), n = J(), o =
|
|
79
|
+
const { i18n: { t: l } } = Q.useI18n(), n = J(), o = z("app:navigateTo", null), a = (f) => {
|
|
80
80
|
if (typeof f.to != "string") {
|
|
81
81
|
n.push(f.to);
|
|
82
82
|
return;
|
|
@@ -86,20 +86,20 @@ const ke = {
|
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
88
|
o(f.to);
|
|
89
|
-
},
|
|
90
|
-
var
|
|
89
|
+
}, s = vt, c = G("page-layout-tabs"), m = G("page-layout-tabs-list"), r = A(t.tabs.length), v = A(!1), p = w(() => t.tabs.slice(0, r.value)), u = w(() => t.tabs.slice(r.value)), k = async () => {
|
|
90
|
+
var C, L, e;
|
|
91
91
|
if (!c.value || !m.value)
|
|
92
92
|
return;
|
|
93
|
-
v.value = !1, r.value =
|
|
94
|
-
const f = ((
|
|
95
|
-
let
|
|
96
|
-
if (!f ||
|
|
93
|
+
v.value = !1, r.value = t.tabs.length, await U();
|
|
94
|
+
const f = ((C = c.value) == null ? void 0 : C.getBoundingClientRect().width) - parseInt(s) * 2;
|
|
95
|
+
let $ = (L = m.value) == null ? void 0 : L.getBoundingClientRect().width;
|
|
96
|
+
if (!f || !$) {
|
|
97
97
|
v.value = !0;
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
const N = 50;
|
|
101
|
-
for (;
|
|
102
|
-
r.value--, await U(),
|
|
101
|
+
for (; $ + N > f && r.value > 1; )
|
|
102
|
+
r.value--, await U(), $ = ((e = m.value) == null ? void 0 : e.getBoundingClientRect().width) || 0;
|
|
103
103
|
v.value = !0;
|
|
104
104
|
};
|
|
105
105
|
let b = null;
|
|
@@ -108,76 +108,76 @@ const ke = {
|
|
|
108
108
|
k();
|
|
109
109
|
}, 150);
|
|
110
110
|
};
|
|
111
|
-
return
|
|
112
|
-
k(),
|
|
113
|
-
}),
|
|
111
|
+
return tt(() => {
|
|
112
|
+
k(), ht(window, "resize", E);
|
|
113
|
+
}), et(() => {
|
|
114
114
|
b && clearTimeout(b);
|
|
115
|
-
}), F(() =>
|
|
115
|
+
}), F(() => t.tabs, () => {
|
|
116
116
|
k();
|
|
117
|
-
}, { deep: !0 }), (f,
|
|
118
|
-
const N =
|
|
119
|
-
return
|
|
117
|
+
}, { deep: !0 }), (f, $) => {
|
|
118
|
+
const N = _("KDropdownItem"), C = _("KDropdown"), L = _("KSkeletonBox");
|
|
119
|
+
return i(), d("nav", kt, [
|
|
120
120
|
g("ul", {
|
|
121
121
|
ref: "page-layout-tabs-list",
|
|
122
|
-
class:
|
|
122
|
+
class: B({ "layout-computing": !v.value })
|
|
123
123
|
}, [
|
|
124
|
-
(
|
|
125
|
-
key: `${
|
|
124
|
+
(i(!0), d(x, null, R(p.value, (e) => (i(), d("li", {
|
|
125
|
+
key: `${e.key}-tab`
|
|
126
126
|
}, [
|
|
127
|
-
(
|
|
128
|
-
"aria-current":
|
|
129
|
-
class:
|
|
130
|
-
"data-testid":
|
|
131
|
-
href: typeof
|
|
127
|
+
(i(), T(q(typeof e.to == "string" ? "a" : "router-link"), {
|
|
128
|
+
"aria-current": e.active ? "page" : void 0,
|
|
129
|
+
class: B(["tab-link", { active: e.active }]),
|
|
130
|
+
"data-testid": e.dataTestId ? e.dataTestId : `page-layout-tab-${e.key}`,
|
|
131
|
+
href: typeof e.to == "string" ? e.to : void 0,
|
|
132
132
|
tabindex: "0",
|
|
133
|
-
to: typeof
|
|
134
|
-
onClick: I((
|
|
133
|
+
to: typeof e.to == "string" ? void 0 : e.to,
|
|
134
|
+
onClick: I((V) => a(e), ["prevent"]),
|
|
135
135
|
onKeydown: [
|
|
136
|
-
D(I((
|
|
137
|
-
D(I((
|
|
136
|
+
D(I((V) => a(e), ["prevent"]), ["enter"]),
|
|
137
|
+
D(I((V) => a(e), ["prevent"]), ["space"])
|
|
138
138
|
]
|
|
139
139
|
}, {
|
|
140
140
|
default: S(() => [
|
|
141
|
-
W(P(
|
|
141
|
+
W(P(e.label), 1)
|
|
142
142
|
]),
|
|
143
143
|
_: 2
|
|
144
144
|
}, 1064, ["aria-current", "class", "data-testid", "href", "to", "onClick", "onKeydown"]))
|
|
145
145
|
]))), 128)),
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
t.tabs.length > r.value ? (i(), d("li", Tt, [
|
|
147
|
+
M(C, { "kpop-attributes": {
|
|
148
148
|
placement: "bottom-end",
|
|
149
149
|
popoverElementAttributes: { "data-testid": "tabs-overflow-dropdown-popover" }
|
|
150
150
|
} }, {
|
|
151
151
|
items: S(() => [
|
|
152
|
-
(
|
|
153
|
-
key: `${
|
|
154
|
-
"aria-current":
|
|
155
|
-
"data-testid":
|
|
152
|
+
(i(!0), d(x, null, R(u.value, (e) => (i(), T(N, {
|
|
153
|
+
key: `${e.key}-dropdown-item`,
|
|
154
|
+
"aria-current": e.active ? "page" : void 0,
|
|
155
|
+
"data-testid": e.dataTestId ? e.dataTestId : `page-layout-tab-${e.key}`,
|
|
156
156
|
item: {
|
|
157
|
-
label:
|
|
158
|
-
value:
|
|
159
|
-
to:
|
|
157
|
+
label: e.label,
|
|
158
|
+
value: e.key,
|
|
159
|
+
to: e.to
|
|
160
160
|
},
|
|
161
|
-
selected:
|
|
161
|
+
selected: e.active
|
|
162
162
|
}, null, 8, ["aria-current", "data-testid", "item", "selected"]))), 128))
|
|
163
163
|
]),
|
|
164
164
|
default: S(() => [
|
|
165
165
|
g("button", {
|
|
166
166
|
"aria-label": h(l)("tabs.more_button.aria_label"),
|
|
167
|
-
class:
|
|
167
|
+
class: B(["tab-link overflow-dropdown-trigger", { active: u.value.find((e) => e.active) }]),
|
|
168
168
|
"data-testid": "tabs-overflow-dropdown-button"
|
|
169
169
|
}, [
|
|
170
170
|
W(P(h(l)("tabs.more_button.label")) + " ", 1),
|
|
171
|
-
g("span",
|
|
172
|
-
], 10,
|
|
171
|
+
g("span", It, P(t.tabs.length - r.value), 1)
|
|
172
|
+
], 10, wt)
|
|
173
173
|
]),
|
|
174
174
|
_: 1
|
|
175
175
|
})
|
|
176
176
|
])) : y("", !0)
|
|
177
177
|
], 2),
|
|
178
|
-
v.value ? y("", !0) : (
|
|
179
|
-
(
|
|
180
|
-
key: `layout-loader-${
|
|
178
|
+
v.value ? y("", !0) : (i(), d("div", _t, [
|
|
179
|
+
(i(), d(x, null, R(3, (e) => M(L, {
|
|
180
|
+
key: `layout-loader-${e}`,
|
|
181
181
|
height: "1",
|
|
182
182
|
width: "5"
|
|
183
183
|
})), 64))
|
|
@@ -185,80 +185,79 @@ const ke = {
|
|
|
185
185
|
], 512);
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
}), X = (
|
|
189
|
-
const n =
|
|
188
|
+
}), X = (t, l) => {
|
|
189
|
+
const n = t.__vccOpts || t;
|
|
190
190
|
for (const [o, a] of l)
|
|
191
191
|
n[o] = a;
|
|
192
192
|
return n;
|
|
193
|
-
},
|
|
193
|
+
}, Ct = /* @__PURE__ */ X($t, [["__scopeId", "data-v-fa2669f0"]]), Z = Symbol("nested-page-layout-detection"), Lt = {
|
|
194
194
|
class: "kong-ui-public-page-layout",
|
|
195
195
|
"data-testid": "kong-ui-public-page-layout"
|
|
196
|
-
},
|
|
196
|
+
}, Kt = {
|
|
197
197
|
key: 0,
|
|
198
198
|
class: "page-layout-header",
|
|
199
199
|
"data-testid": "page-layout-header"
|
|
200
|
-
},
|
|
200
|
+
}, Bt = { class: "page-header-container" }, St = { class: "page-header-start" }, Pt = { class: "title-container" }, At = {
|
|
201
201
|
key: 1,
|
|
202
202
|
class: "page-layout-title",
|
|
203
203
|
"data-testid": "page-layout-title"
|
|
204
|
-
},
|
|
204
|
+
}, Dt = {
|
|
205
205
|
key: 2,
|
|
206
206
|
class: "title-after-container"
|
|
207
|
-
},
|
|
207
|
+
}, Et = {
|
|
208
208
|
key: 0,
|
|
209
209
|
class: "page-header-actions-container"
|
|
210
|
-
},
|
|
210
|
+
}, Nt = /* @__PURE__ */ H({
|
|
211
211
|
__name: "PageLayout",
|
|
212
212
|
props: {
|
|
213
213
|
breadcrumbs: { default: () => [] },
|
|
214
214
|
title: {},
|
|
215
215
|
backTo: {},
|
|
216
|
-
tabs: { default: () => [] }
|
|
217
|
-
disableRouterView: { type: Boolean, default: !1 }
|
|
216
|
+
tabs: { default: () => [] }
|
|
218
217
|
},
|
|
219
|
-
setup(
|
|
220
|
-
const l =
|
|
221
|
-
if (
|
|
222
|
-
if (typeof
|
|
223
|
-
o.push(
|
|
218
|
+
setup(t) {
|
|
219
|
+
const l = z("app:navigateTo", null), { i18n: { t: n } } = Q.useI18n(), o = J(), a = w(() => !!(t.tabs && t.tabs.length)), s = w(() => typeof t.backTo == "string"), c = async () => {
|
|
220
|
+
if (t.backTo) {
|
|
221
|
+
if (typeof t.backTo == "object") {
|
|
222
|
+
o.push(t.backTo);
|
|
224
223
|
return;
|
|
225
224
|
}
|
|
226
225
|
if (typeof l != "function") {
|
|
227
|
-
window.location.href =
|
|
226
|
+
window.location.href = t.backTo;
|
|
228
227
|
return;
|
|
229
228
|
}
|
|
230
|
-
await l(
|
|
229
|
+
await l(t.backTo);
|
|
231
230
|
}
|
|
232
231
|
}, m = A(0), r = w(() => m.value > 0);
|
|
233
|
-
|
|
232
|
+
at(Z, () => (m.value++, () => {
|
|
234
233
|
m.value--;
|
|
235
234
|
}));
|
|
236
|
-
const v =
|
|
237
|
-
return typeof v == "function" && (p.value = v()),
|
|
235
|
+
const v = z(Z, null), p = A(null);
|
|
236
|
+
return typeof v == "function" && (p.value = v()), ot(() => {
|
|
238
237
|
var u;
|
|
239
238
|
(u = p.value) == null || u.call(p);
|
|
240
239
|
}), (u, k) => {
|
|
241
|
-
const b =
|
|
242
|
-
return
|
|
243
|
-
r.value ? y("", !0) : (
|
|
244
|
-
g("div",
|
|
245
|
-
g("div",
|
|
246
|
-
|
|
240
|
+
const b = _("KBreadcrumbs"), E = _("router-view");
|
|
241
|
+
return i(), d("div", Lt, [
|
|
242
|
+
r.value ? y("", !0) : (i(), d("div", Kt, [
|
|
243
|
+
g("div", Bt, [
|
|
244
|
+
g("div", St, [
|
|
245
|
+
t.breadcrumbs && t.breadcrumbs.length ? (i(), T(b, {
|
|
247
246
|
key: 0,
|
|
248
247
|
class: "header-breadcrumbs",
|
|
249
248
|
"data-testid": "page-layout-breadcrumbs",
|
|
250
249
|
"item-max-width": "25ch",
|
|
251
|
-
items:
|
|
250
|
+
items: t.breadcrumbs
|
|
252
251
|
}, null, 8, ["items"])) : y("", !0),
|
|
253
|
-
g("div",
|
|
254
|
-
|
|
252
|
+
g("div", Pt, [
|
|
253
|
+
t.backTo ? (i(), T(q(s.value ? "a" : "router-link"), {
|
|
255
254
|
key: 0,
|
|
256
255
|
"aria-label": h(n)("back_button"),
|
|
257
256
|
class: "navigate-back",
|
|
258
257
|
"data-testid": "page-layout-navigate-back",
|
|
259
|
-
href:
|
|
258
|
+
href: s.value ? t.backTo : void 0,
|
|
260
259
|
tabindex: "0",
|
|
261
|
-
to:
|
|
260
|
+
to: s.value ? void 0 : t.backTo,
|
|
262
261
|
onClick: I(c, ["prevent"]),
|
|
263
262
|
onKeydown: [
|
|
264
263
|
D(I(c, ["prevent"]), ["enter"]),
|
|
@@ -266,37 +265,37 @@ const ke = {
|
|
|
266
265
|
]
|
|
267
266
|
}, {
|
|
268
267
|
default: S(() => [
|
|
269
|
-
|
|
268
|
+
M(h(it), {
|
|
270
269
|
decorative: "",
|
|
271
|
-
size: h(
|
|
270
|
+
size: h(dt)
|
|
272
271
|
}, null, 8, ["size"])
|
|
273
272
|
]),
|
|
274
273
|
_: 1
|
|
275
274
|
}, 40, ["aria-label", "href", "to", "onKeydown"])) : y("", !0),
|
|
276
|
-
|
|
277
|
-
u.$slots["title-after"] ? (
|
|
275
|
+
t.title ? (i(), d("h1", At, P(t.title), 1)) : y("", !0),
|
|
276
|
+
u.$slots["title-after"] ? (i(), d("div", Dt, [
|
|
278
277
|
O(u.$slots, "title-after", {}, void 0, !0)
|
|
279
278
|
])) : y("", !0)
|
|
280
279
|
])
|
|
281
280
|
]),
|
|
282
|
-
u.$slots.actions ? (
|
|
281
|
+
u.$slots.actions ? (i(), d("div", Et, [
|
|
283
282
|
O(u.$slots, "actions", {}, void 0, !0)
|
|
284
283
|
])) : y("", !0)
|
|
285
284
|
]),
|
|
286
|
-
a.value ? (
|
|
285
|
+
a.value ? (i(), T(Ct, {
|
|
287
286
|
key: 0,
|
|
288
|
-
tabs:
|
|
287
|
+
tabs: t.tabs
|
|
289
288
|
}, null, 8, ["tabs"])) : y("", !0)
|
|
290
289
|
])),
|
|
291
290
|
g("div", {
|
|
292
|
-
class:
|
|
291
|
+
class: B(["page-layout-content", { "has-nested-page-layout": r.value }])
|
|
293
292
|
}, [
|
|
294
|
-
a.value
|
|
293
|
+
a.value ? (i(), T(E, { key: 0 })) : O(u.$slots, "default", { key: 1 }, void 0, !0)
|
|
295
294
|
], 2)
|
|
296
295
|
]);
|
|
297
296
|
};
|
|
298
297
|
}
|
|
299
|
-
}),
|
|
298
|
+
}), zt = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-4ca3c7b5"]]);
|
|
300
299
|
export {
|
|
301
|
-
|
|
300
|
+
zt as PageLayout
|
|
302
301
|
};
|
package/dist/page-layout.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(u,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","@kong/icons"],t):(u=typeof globalThis<"u"?globalThis:u||self,t(u["kong-ui-public-page-layout"]={},u.Vue,u.VueRouter,u["kong-ui-public-i18n"],u.KongIcons))})(this,function(u,t,
|
|
1
|
+
(function(u,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","@kong/icons"],t):(u=typeof globalThis<"u"?globalThis:u||self,t(u["kong-ui-public-page-layout"]={},u.Vue,u.VueRouter,u["kong-ui-public-i18n"],u.KongIcons))})(this,function(u,t,E,N,S){"use strict";const L={back_button:"Go back",tabs:{more_button:{label:"More",aria_label:"More tabs"}}};function K(){const e=N.createI18n("en-us",L);return{i18n:e,i18nT:N.i18nTComponent(e)}}const V={useI18n:K},x="16px",D="16px",P=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const M=Object.prototype.toString,j=e=>M.call(e)==="[object Object]";function T(e){return Array.isArray(e)?e:[e]}function A(e,c,l){return t.watch(e,c,{...l,immediate:!0})}const R=P?window:void 0;function z(e){var c;const l=t.toValue(e);return(c=l==null?void 0:l.$el)!==null&&c!==void 0?c:l}function O(...e){const c=(a,n,i,r)=>(a.addEventListener(n,i,r),()=>a.removeEventListener(n,i,r)),l=t.computed(()=>{const a=T(t.toValue(e[0])).filter(n=>n!=null);return a.every(n=>typeof n!="string")?a:void 0});return A(()=>{var a,n;return[(a=(n=l.value)===null||n===void 0?void 0:n.map(i=>z(i)))!==null&&a!==void 0?a:[R].filter(i=>i!=null),T(t.toValue(l.value?e[1]:e[0])),T(t.unref(l.value?e[2]:e[1])),t.toValue(l.value?e[3]:e[2])]},([a,n,i,r],k,d)=>{if(!(a!=null&&a.length)||!(n!=null&&n.length)||!(i!=null&&i.length))return;const m=j(r)?{...r}:r,y=a.flatMap(s=>n.flatMap(b=>i.map(p=>c(s,b,p,m))));d(()=>{y.forEach(s=>s())})},{flush:"post"})}const G={ref:"page-layout-tabs",class:"page-layout-tabs","data-testid":"page-layout-tabs"},W={key:0},q=["aria-label"],U={class:"overflowing-items-count"},F={key:0,class:"layout-loader-container"},Z=t.defineComponent({__name:"PageLayoutTabs",props:{tabs:{default:()=>[]}},setup(e){t.useCssVars(f=>({v417a39b5:t.unref(i)}));const{i18n:{t:c}}=V.useI18n(),l=E.useRouter(),a=t.inject("app:navigateTo",null),n=f=>{if(typeof f.to!="string"){l.push(f.to);return}if(typeof a!="function"){window.location.href=f.to;return}a(f.to)},i=D,r=t.useTemplateRef("page-layout-tabs"),k=t.useTemplateRef("page-layout-tabs-list"),d=t.ref(e.tabs.length),m=t.ref(!1),y=t.computed(()=>e.tabs.slice(0,d.value)),s=t.computed(()=>e.tabs.slice(d.value)),b=async()=>{var g,B,o;if(!r.value||!k.value)return;m.value=!1,d.value=e.tabs.length,await t.nextTick();const f=((g=r.value)==null?void 0:g.getBoundingClientRect().width)-parseInt(i)*2;let h=(B=k.value)==null?void 0:B.getBoundingClientRect().width;if(!f||!h){m.value=!0;return}const w=50;for(;h+w>f&&d.value>1;)d.value--,await t.nextTick(),h=((o=k.value)==null?void 0:o.getBoundingClientRect().width)||0;m.value=!0};let p=null;const C=()=>{p&&clearTimeout(p),p=setTimeout(()=>{b()},150)};return t.onMounted(()=>{b(),O(window,"resize",C)}),t.onBeforeUnmount(()=>{p&&clearTimeout(p)}),t.watch(()=>e.tabs,()=>{b()},{deep:!0}),(f,h)=>{const w=t.resolveComponent("KDropdownItem"),g=t.resolveComponent("KDropdown"),B=t.resolveComponent("KSkeletonBox");return t.openBlock(),t.createElementBlock("nav",G,[t.createElementVNode("ul",{ref:"page-layout-tabs-list",class:t.normalizeClass({"layout-computing":!m.value})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,o=>(t.openBlock(),t.createElementBlock("li",{key:`${o.key}-tab`},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(typeof o.to=="string"?"a":"router-link"),{"aria-current":o.active?"page":void 0,class:t.normalizeClass(["tab-link",{active:o.active}]),"data-testid":o.dataTestId?o.dataTestId:`page-layout-tab-${o.key}`,href:typeof o.to=="string"?o.to:void 0,tabindex:"0",to:typeof o.to=="string"?void 0:o.to,onClick:t.withModifiers($=>n(o),["prevent"]),onKeydown:[t.withKeys(t.withModifiers($=>n(o),["prevent"]),["enter"]),t.withKeys(t.withModifiers($=>n(o),["prevent"]),["space"])]},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.label),1)]),_:2},1064,["aria-current","class","data-testid","href","to","onClick","onKeydown"]))]))),128)),e.tabs.length>d.value?(t.openBlock(),t.createElementBlock("li",W,[t.createVNode(g,{"kpop-attributes":{placement:"bottom-end",popoverElementAttributes:{"data-testid":"tabs-overflow-dropdown-popover"}}},{items:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,o=>(t.openBlock(),t.createBlock(w,{key:`${o.key}-dropdown-item`,"aria-current":o.active?"page":void 0,"data-testid":o.dataTestId?o.dataTestId:`page-layout-tab-${o.key}`,item:{label:o.label,value:o.key,to:o.to},selected:o.active},null,8,["aria-current","data-testid","item","selected"]))),128))]),default:t.withCtx(()=>[t.createElementVNode("button",{"aria-label":t.unref(c)("tabs.more_button.aria_label"),class:t.normalizeClass(["tab-link overflow-dropdown-trigger",{active:s.value.find(o=>o.active)}]),"data-testid":"tabs-overflow-dropdown-button"},[t.createTextVNode(t.toDisplayString(t.unref(c)("tabs.more_button.label"))+" ",1),t.createElementVNode("span",U,t.toDisplayString(e.tabs.length-d.value),1)],10,q)]),_:1})])):t.createCommentVNode("",!0)],2),m.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",F,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,o=>t.createVNode(B,{key:`layout-loader-${o}`,height:"1",width:"5"})),64))]))],512)}}}),_=(e,c)=>{const l=e.__vccOpts||e;for(const[a,n]of c)l[a]=n;return l},H=_(Z,[["__scopeId","data-v-fa2669f0"]]),I=Symbol("nested-page-layout-detection"),J={class:"kong-ui-public-page-layout","data-testid":"kong-ui-public-page-layout"},Q={key:0,class:"page-layout-header","data-testid":"page-layout-header"},X={class:"page-header-container"},Y={class:"page-header-start"},v={class:"title-container"},tt={key:1,class:"page-layout-title","data-testid":"page-layout-title"},et={key:2,class:"title-after-container"},ot={key:0,class:"page-header-actions-container"},nt=_(t.defineComponent({__name:"PageLayout",props:{breadcrumbs:{default:()=>[]},title:{},backTo:{},tabs:{default:()=>[]}},setup(e){const c=t.inject("app:navigateTo",null),{i18n:{t:l}}=V.useI18n(),a=E.useRouter(),n=t.computed(()=>!!(e.tabs&&e.tabs.length)),i=t.computed(()=>typeof e.backTo=="string"),r=async()=>{if(e.backTo){if(typeof e.backTo=="object"){a.push(e.backTo);return}if(typeof c!="function"){window.location.href=e.backTo;return}await c(e.backTo)}},k=t.ref(0),d=t.computed(()=>k.value>0);t.provide(I,()=>(k.value++,()=>{k.value--}));const m=t.inject(I,null),y=t.ref(null);return typeof m=="function"&&(y.value=m()),t.onUnmounted(()=>{var s;(s=y.value)==null||s.call(y)}),(s,b)=>{const p=t.resolveComponent("KBreadcrumbs"),C=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",J,[d.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Q,[t.createElementVNode("div",X,[t.createElementVNode("div",Y,[e.breadcrumbs&&e.breadcrumbs.length?(t.openBlock(),t.createBlock(p,{key:0,class:"header-breadcrumbs","data-testid":"page-layout-breadcrumbs","item-max-width":"25ch",items:e.breadcrumbs},null,8,["items"])):t.createCommentVNode("",!0),t.createElementVNode("div",v,[e.backTo?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.value?"a":"router-link"),{key:0,"aria-label":t.unref(l)("back_button"),class:"navigate-back","data-testid":"page-layout-navigate-back",href:i.value?e.backTo:void 0,tabindex:"0",to:i.value?void 0:e.backTo,onClick:t.withModifiers(r,["prevent"]),onKeydown:[t.withKeys(t.withModifiers(r,["prevent"]),["enter"]),t.withKeys(t.withModifiers(r,["prevent"]),["space"])]},{default:t.withCtx(()=>[t.createVNode(t.unref(S.ArrowTopLeftIcon),{decorative:"",size:t.unref(x)},null,8,["size"])]),_:1},40,["aria-label","href","to","onKeydown"])):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("h1",tt,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),s.$slots["title-after"]?(t.openBlock(),t.createElementBlock("div",et,[t.renderSlot(s.$slots,"title-after",{},void 0,!0)])):t.createCommentVNode("",!0)])]),s.$slots.actions?(t.openBlock(),t.createElementBlock("div",ot,[t.renderSlot(s.$slots,"actions",{},void 0,!0)])):t.createCommentVNode("",!0)]),n.value?(t.openBlock(),t.createBlock(H,{key:0,tabs:e.tabs},null,8,["tabs"])):t.createCommentVNode("",!0)])),t.createElementVNode("div",{class:t.normalizeClass(["page-layout-content",{"has-nested-page-layout":d.value}])},[n.value?(t.openBlock(),t.createBlock(C,{key:0})):t.renderSlot(s.$slots,"default",{key:1},void 0,!0)],2)])}}}),[["__scopeId","data-v-4ca3c7b5"]]);u.PageLayout=nt,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.page-layout-tabs[data-v-fa2669f0]{align-items:flex-end;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;height:34px;overflow-x:clip;padding:0px var(--v417a39b5);padding:var(--kui-space-0, 0px) var(--v417a39b5);position:relative;width:100%}.page-layout-tabs a[data-v-fa2669f0],.page-layout-tabs button[data-v-fa2669f0]{background-color:transparent;background-color:var(--kui-color-background-transparent, transparent);border:none;color:inherit;cursor:pointer;outline:none;padding:0;padding:var(--kui-space-0, 0px);text-decoration:none}.page-layout-tabs ul[data-v-fa2669f0]{display:flex;gap:20px;gap:var(--kui-space-70, 20px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);margin-bottom:-1px;margin-bottom:calc(-1 * var(--kui-border-width-10, 1px));max-width:100%;padding:0;padding:var(--kui-space-0, 0px)}.page-layout-tabs ul.layout-computing[data-v-fa2669f0]{height:0;visibility:hidden}.page-layout-tabs ul li[data-v-fa2669f0]{display:flex}.page-layout-tabs ul li .tab-link[data-v-fa2669f0]{align-items:center;border-bottom:2px solid transparent;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-transparent, transparent);border-radius:4px 4px 0 0;border-radius:var(--kui-border-radius-20, 4px) var(--kui-border-radius-20, 4px) var(--kui-border-radius-0, 0px) var(--kui-border-radius-0, 0px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);cursor:pointer;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:6px;gap:var(--kui-space-30, 6px);line-height:20px;line-height:var(--kui-line-height-30, 20px);padding:6px 0;padding:var(--kui-space-30, 6px) var(--kui-space-0, 0px);transition:color .2s ease-in,border-color .2s ease-in,font-weight .2s ease-in;white-space:nowrap}.page-layout-tabs ul li .tab-link[data-v-fa2669f0]:hover{border-bottom:2px solid #afb7c5;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-neutral-weak, #afb7c5);color:#000933;color:var(--kui-color-text, #000933)}.page-layout-tabs ul li .tab-link[data-v-fa2669f0]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.page-layout-tabs ul li .tab-link.active[data-v-fa2669f0]{border-bottom:2px solid #0044f4;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-primary, #0044f4);color:#0044f4!important;color:var(--kui-color-text-primary, #0044f4)!important;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.page-layout-tabs ul li .tab-link.overflow-dropdown-trigger[data-v-fa2669f0]{color:#000933;color:var(--kui-color-text, #000933);font-weight:500!important;font-weight:var(--kui-font-weight-medium, 500)!important}.page-layout-tabs ul li .tab-link.overflow-dropdown-trigger .overflowing-items-count[data-v-fa2669f0]{background-color:#e0e4ea;background-color:var(--kui-color-background-neutral-weaker, #e0e4ea);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:11px;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:12px;padding:2px 6px;padding:var(--kui-space-10, 2px) var(--kui-space-30, 6px)}.page-layout-tabs ul li .tab-link.overflow-dropdown-trigger.active .overflowing-items-count[data-v-fa2669f0]{background-color:#eefaff;background-color:var(--kui-color-background-primary-weakest, #eefaff);color:#0044f4;color:var(--kui-color-text-primary, #0044f4)}.page-layout-tabs .layout-loader-container[data-v-fa2669f0]{align-items:center;display:flex;gap:20px;gap:var(--kui-space-70, 20px);height:34px;top:0;right:0;bottom:0;left:0;left:var(--v417a39b5);position:absolute}.kong-ui-public-page-layout[data-v-
|
|
1
|
+
.page-layout-tabs[data-v-fa2669f0]{align-items:flex-end;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;height:34px;overflow-x:clip;padding:0px var(--v417a39b5);padding:var(--kui-space-0, 0px) var(--v417a39b5);position:relative;width:100%}.page-layout-tabs a[data-v-fa2669f0],.page-layout-tabs button[data-v-fa2669f0]{background-color:transparent;background-color:var(--kui-color-background-transparent, transparent);border:none;color:inherit;cursor:pointer;outline:none;padding:0;padding:var(--kui-space-0, 0px);text-decoration:none}.page-layout-tabs ul[data-v-fa2669f0]{display:flex;gap:20px;gap:var(--kui-space-70, 20px);list-style:none;margin:0;margin:var(--kui-space-0, 0px);margin-bottom:-1px;margin-bottom:calc(-1 * var(--kui-border-width-10, 1px));max-width:100%;padding:0;padding:var(--kui-space-0, 0px)}.page-layout-tabs ul.layout-computing[data-v-fa2669f0]{height:0;visibility:hidden}.page-layout-tabs ul li[data-v-fa2669f0]{display:flex}.page-layout-tabs ul li .tab-link[data-v-fa2669f0]{align-items:center;border-bottom:2px solid transparent;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-transparent, transparent);border-radius:4px 4px 0 0;border-radius:var(--kui-border-radius-20, 4px) var(--kui-border-radius-20, 4px) var(--kui-border-radius-0, 0px) var(--kui-border-radius-0, 0px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);cursor:pointer;display:flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:500;font-weight:var(--kui-font-weight-medium, 500);gap:6px;gap:var(--kui-space-30, 6px);line-height:20px;line-height:var(--kui-line-height-30, 20px);padding:6px 0;padding:var(--kui-space-30, 6px) var(--kui-space-0, 0px);transition:color .2s ease-in,border-color .2s ease-in,font-weight .2s ease-in;white-space:nowrap}.page-layout-tabs ul li .tab-link[data-v-fa2669f0]:hover{border-bottom:2px solid #afb7c5;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-neutral-weak, #afb7c5);color:#000933;color:var(--kui-color-text, #000933)}.page-layout-tabs ul li .tab-link[data-v-fa2669f0]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.page-layout-tabs ul li .tab-link.active[data-v-fa2669f0]{border-bottom:2px solid #0044f4;border-bottom:var(--kui-border-width-20, 2px) solid var(--kui-color-border-primary, #0044f4);color:#0044f4!important;color:var(--kui-color-text-primary, #0044f4)!important;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.page-layout-tabs ul li .tab-link.overflow-dropdown-trigger[data-v-fa2669f0]{color:#000933;color:var(--kui-color-text, #000933);font-weight:500!important;font-weight:var(--kui-font-weight-medium, 500)!important}.page-layout-tabs ul li .tab-link.overflow-dropdown-trigger .overflowing-items-count[data-v-fa2669f0]{background-color:#e0e4ea;background-color:var(--kui-color-background-neutral-weaker, #e0e4ea);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:11px;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:12px;padding:2px 6px;padding:var(--kui-space-10, 2px) var(--kui-space-30, 6px)}.page-layout-tabs ul li .tab-link.overflow-dropdown-trigger.active .overflowing-items-count[data-v-fa2669f0]{background-color:#eefaff;background-color:var(--kui-color-background-primary-weakest, #eefaff);color:#0044f4;color:var(--kui-color-text-primary, #0044f4)}.page-layout-tabs .layout-loader-container[data-v-fa2669f0]{align-items:center;display:flex;gap:20px;gap:var(--kui-space-70, 20px);height:34px;top:0;right:0;bottom:0;left:0;left:var(--v417a39b5);position:absolute}.kong-ui-public-page-layout[data-v-4ca3c7b5]{box-sizing:border-box;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif)}.kong-ui-public-page-layout .page-layout-header[data-v-4ca3c7b5]{display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-public-page-layout .page-layout-header .page-header-container[data-v-4ca3c7b5]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);justify-content:space-between;padding:16px 16px 0;padding:var(--kui-space-60, 16px) var(--kui-space-60, 16px) var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-4ca3c7b5] .breadcrumbs-item-container:first-child .breadcrumbs-item{padding-left:0;padding-left:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .header-breadcrumbs[data-v-4ca3c7b5] .breadcrumbs-item-container .breadcrumbs-item.active .breadcrumbs-text{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container[data-v-4ca3c7b5]{align-items:flex-end;display:flex;gap:4px;gap:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-4ca3c7b5]{background-color:transparent;background-color:var(--kui-color-background-transparent, transparent);border:none;border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer;outline:none;padding:4px;padding:var(--kui-space-20, 4px);transition:background-color .2s ease-in,color .2s ease-in}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-4ca3c7b5]:hover{color:#000933;color:var(--kui-color-text, #000933)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .navigate-back[data-v-4ca3c7b5]:focus-visible{box-shadow:0 0 0 4px #0044f433;box-shadow:var(--kui-shadow-focus, 0px 0px 0px 4px rgba(0, 68, 244, .2))}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .page-layout-title[data-v-4ca3c7b5]{color:#000933;color:var(--kui-color-text, #000933);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-start .title-container .title-after-container[data-v-4ca3c7b5]{align-items:flex-end;display:flex;gap:6px;gap:var(--kui-space-30, 6px);padding-left:4px;padding-left:var(--kui-space-20, 4px)}.kong-ui-public-page-layout .page-layout-header .page-header-container .page-header-actions-container[data-v-4ca3c7b5]{align-items:center;display:flex;gap:6px;gap:var(--kui-space-30, 6px)}.kong-ui-public-page-layout .page-layout-header:not(:has(.page-layout-tabs)) .page-header-container[data-v-4ca3c7b5]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content[data-v-4ca3c7b5]{display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px);padding:16px;padding:var(--kui-space-60, 16px)}.kong-ui-public-page-layout .page-layout-content.has-nested-page-layout[data-v-4ca3c7b5]{padding:0;padding:var(--kui-space-0, 0px)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PageLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayout.vue"],"names":[],"mappings":"AAmRA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAiBhE,KAAK,WAAW,GAAG,eAAe,CAAC;AA6QnC,QAAA,MAAM,UAAU,0SAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -10,11 +10,6 @@ export interface PageLayoutProps {
|
|
|
10
10
|
backTo?: string | RouteLocationRaw;
|
|
11
11
|
/** Tabs */
|
|
12
12
|
tabs?: PageLayoutTab[];
|
|
13
|
-
/**
|
|
14
|
-
* Instead of using a <router-view>, render the default slot when tabs are present.
|
|
15
|
-
* ! This is not recommended and should only be used in rare cases where props must be set directly on the router-view.
|
|
16
|
-
*/
|
|
17
|
-
disableRouterView?: boolean;
|
|
18
13
|
}
|
|
19
14
|
export interface PageLayoutSlots {
|
|
20
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-layout.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAA;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAClC,WAAW;IACX,IAAI,CAAC,EAAE,aAAa,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"page-layout.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAA;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAClC,WAAW;IACX,IAAI,CAAC,EAAE,aAAa,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,CAAC,IAAI,GAAG,CAAA;IACf;;OAEG;IACH,OAAO,CAAC,IAAI,GAAG,CAAA;IACf;;OAEG;IACH,aAAa,IAAI,GAAG,CAAA;CACrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/page-layout",
|
|
3
|
-
"version": "0.2.13
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/page-layout.umd.js",
|
|
6
6
|
"module": "./dist/page-layout.es.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@kong/design-tokens": "1.20.0",
|
|
25
25
|
"@kong/icons": "^1.48.0",
|
|
26
26
|
"@kong/kongponents": "9.52.5",
|
|
27
|
-
"vue": "^3.5.
|
|
27
|
+
"vue": "^3.5.32",
|
|
28
28
|
"vue-router": "^4.6.4",
|
|
29
29
|
"@kong-ui-public/i18n": "^2.4.6"
|
|
30
30
|
},
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@kong/icons": "^1.48.0",
|
|
50
50
|
"@kong/kongponents": "^9.52.5",
|
|
51
|
-
"vue": "^3.5.
|
|
51
|
+
"vue": "^3.5.32",
|
|
52
52
|
"vue-router": "^4.6.4",
|
|
53
53
|
"@kong-ui-public/i18n": "^2.4.6"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@vueuse/core": "^14.2.
|
|
56
|
+
"@vueuse/core": "^14.2.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dev": "cross-env USE_SANDBOX=true vite",
|