@kong-ui-public/page-layout 0.2.13 → 0.2.14-pr.3137.c17e3d1ef.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/package.json +1 -1
- package/dist/page-layout.es.js +0 -301
- package/dist/page-layout.umd.js +0 -1
- package/dist/style.css +0 -1
- package/dist/types/components/PageLayout.vue.d.ts +0 -12
- package/dist/types/components/PageLayout.vue.d.ts.map +0 -1
- package/dist/types/components/PageLayoutTabs.vue.d.ts +0 -5
- package/dist/types/components/PageLayoutTabs.vue.d.ts.map +0 -1
- package/dist/types/composables/index.d.ts +0 -6
- package/dist/types/composables/index.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/symbols.d.ts +0 -2
- package/dist/types/symbols.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -3
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/page-layout-tabs.d.ts +0 -17
- package/dist/types/types/page-layout-tabs.d.ts.map +0 -1
- package/dist/types/types/page-layout.d.ts +0 -28
- package/dist/types/types/page-layout.d.ts.map +0 -1
package/package.json
CHANGED
package/dist/page-layout.es.js
DELETED
|
@@ -1,301 +0,0 @@
|
|
|
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
|
-
import { useRouter as J } from "vue-router";
|
|
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
|
-
more_button: {
|
|
7
|
-
label: "More",
|
|
8
|
-
aria_label: "More tabs"
|
|
9
|
-
}
|
|
10
|
-
}, ct = {
|
|
11
|
-
back_button: lt,
|
|
12
|
-
tabs: ut
|
|
13
|
-
};
|
|
14
|
-
function rt() {
|
|
15
|
-
const t = nt("en-us", ct);
|
|
16
|
-
return {
|
|
17
|
-
i18n: t,
|
|
18
|
-
i18nT: st(t)
|
|
19
|
-
// Translation component <i18n-t>
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const Q = {
|
|
23
|
-
useI18n: rt
|
|
24
|
-
}, dt = "16px", vt = "16px", bt = typeof window < "u" && typeof document < "u";
|
|
25
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
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
|
-
}
|
|
30
|
-
function mt(t, l, n) {
|
|
31
|
-
return F(t, l, {
|
|
32
|
-
...n,
|
|
33
|
-
immediate: !0
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
const pt = bt ? window : void 0;
|
|
37
|
-
function gt(t) {
|
|
38
|
-
var l;
|
|
39
|
-
const n = K(t);
|
|
40
|
-
return (l = n == null ? void 0 : n.$el) !== null && l !== void 0 ? l : n;
|
|
41
|
-
}
|
|
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
|
-
return o.every((a) => typeof a != "string") ? o : void 0;
|
|
46
|
-
});
|
|
47
|
-
return mt(() => {
|
|
48
|
-
var o, a;
|
|
49
|
-
return [
|
|
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
|
-
];
|
|
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
|
-
r(() => {
|
|
59
|
-
p.forEach((u) => u());
|
|
60
|
-
});
|
|
61
|
-
}, { flush: "post" });
|
|
62
|
-
}
|
|
63
|
-
const kt = {
|
|
64
|
-
ref: "page-layout-tabs",
|
|
65
|
-
class: "page-layout-tabs",
|
|
66
|
-
"data-testid": "page-layout-tabs"
|
|
67
|
-
}, Tt = { key: 0 }, wt = ["aria-label"], It = { class: "overflowing-items-count" }, _t = {
|
|
68
|
-
key: 0,
|
|
69
|
-
class: "layout-loader-container"
|
|
70
|
-
}, $t = /* @__PURE__ */ H({
|
|
71
|
-
__name: "PageLayoutTabs",
|
|
72
|
-
props: {
|
|
73
|
-
tabs: { default: () => [] }
|
|
74
|
-
},
|
|
75
|
-
setup(t) {
|
|
76
|
-
Y((f) => ({
|
|
77
|
-
v417a39b5: h(s)
|
|
78
|
-
}));
|
|
79
|
-
const { i18n: { t: l } } = Q.useI18n(), n = J(), o = z("app:navigateTo", null), a = (f) => {
|
|
80
|
-
if (typeof f.to != "string") {
|
|
81
|
-
n.push(f.to);
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
if (typeof o != "function") {
|
|
85
|
-
window.location.href = f.to;
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
o(f.to);
|
|
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
|
-
if (!c.value || !m.value)
|
|
92
|
-
return;
|
|
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
|
-
v.value = !0;
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
const N = 50;
|
|
101
|
-
for (; $ + N > f && r.value > 1; )
|
|
102
|
-
r.value--, await U(), $ = ((e = m.value) == null ? void 0 : e.getBoundingClientRect().width) || 0;
|
|
103
|
-
v.value = !0;
|
|
104
|
-
};
|
|
105
|
-
let b = null;
|
|
106
|
-
const E = () => {
|
|
107
|
-
b && clearTimeout(b), b = setTimeout(() => {
|
|
108
|
-
k();
|
|
109
|
-
}, 150);
|
|
110
|
-
};
|
|
111
|
-
return tt(() => {
|
|
112
|
-
k(), ht(window, "resize", E);
|
|
113
|
-
}), et(() => {
|
|
114
|
-
b && clearTimeout(b);
|
|
115
|
-
}), F(() => t.tabs, () => {
|
|
116
|
-
k();
|
|
117
|
-
}, { deep: !0 }), (f, $) => {
|
|
118
|
-
const N = _("KDropdownItem"), C = _("KDropdown"), L = _("KSkeletonBox");
|
|
119
|
-
return i(), d("nav", kt, [
|
|
120
|
-
g("ul", {
|
|
121
|
-
ref: "page-layout-tabs-list",
|
|
122
|
-
class: B({ "layout-computing": !v.value })
|
|
123
|
-
}, [
|
|
124
|
-
(i(!0), d(x, null, R(p.value, (e) => (i(), d("li", {
|
|
125
|
-
key: `${e.key}-tab`
|
|
126
|
-
}, [
|
|
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
|
-
tabindex: "0",
|
|
133
|
-
to: typeof e.to == "string" ? void 0 : e.to,
|
|
134
|
-
onClick: I((V) => a(e), ["prevent"]),
|
|
135
|
-
onKeydown: [
|
|
136
|
-
D(I((V) => a(e), ["prevent"]), ["enter"]),
|
|
137
|
-
D(I((V) => a(e), ["prevent"]), ["space"])
|
|
138
|
-
]
|
|
139
|
-
}, {
|
|
140
|
-
default: S(() => [
|
|
141
|
-
W(P(e.label), 1)
|
|
142
|
-
]),
|
|
143
|
-
_: 2
|
|
144
|
-
}, 1064, ["aria-current", "class", "data-testid", "href", "to", "onClick", "onKeydown"]))
|
|
145
|
-
]))), 128)),
|
|
146
|
-
t.tabs.length > r.value ? (i(), d("li", Tt, [
|
|
147
|
-
M(C, { "kpop-attributes": {
|
|
148
|
-
placement: "bottom-end",
|
|
149
|
-
popoverElementAttributes: { "data-testid": "tabs-overflow-dropdown-popover" }
|
|
150
|
-
} }, {
|
|
151
|
-
items: S(() => [
|
|
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
|
-
item: {
|
|
157
|
-
label: e.label,
|
|
158
|
-
value: e.key,
|
|
159
|
-
to: e.to
|
|
160
|
-
},
|
|
161
|
-
selected: e.active
|
|
162
|
-
}, null, 8, ["aria-current", "data-testid", "item", "selected"]))), 128))
|
|
163
|
-
]),
|
|
164
|
-
default: S(() => [
|
|
165
|
-
g("button", {
|
|
166
|
-
"aria-label": h(l)("tabs.more_button.aria_label"),
|
|
167
|
-
class: B(["tab-link overflow-dropdown-trigger", { active: u.value.find((e) => e.active) }]),
|
|
168
|
-
"data-testid": "tabs-overflow-dropdown-button"
|
|
169
|
-
}, [
|
|
170
|
-
W(P(h(l)("tabs.more_button.label")) + " ", 1),
|
|
171
|
-
g("span", It, P(t.tabs.length - r.value), 1)
|
|
172
|
-
], 10, wt)
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
})
|
|
176
|
-
])) : y("", !0)
|
|
177
|
-
], 2),
|
|
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
|
-
height: "1",
|
|
182
|
-
width: "5"
|
|
183
|
-
})), 64))
|
|
184
|
-
]))
|
|
185
|
-
], 512);
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
}), X = (t, l) => {
|
|
189
|
-
const n = t.__vccOpts || t;
|
|
190
|
-
for (const [o, a] of l)
|
|
191
|
-
n[o] = a;
|
|
192
|
-
return n;
|
|
193
|
-
}, Ct = /* @__PURE__ */ X($t, [["__scopeId", "data-v-fa2669f0"]]), Z = Symbol("nested-page-layout-detection"), Lt = {
|
|
194
|
-
class: "kong-ui-public-page-layout",
|
|
195
|
-
"data-testid": "kong-ui-public-page-layout"
|
|
196
|
-
}, Kt = {
|
|
197
|
-
key: 0,
|
|
198
|
-
class: "page-layout-header",
|
|
199
|
-
"data-testid": "page-layout-header"
|
|
200
|
-
}, Bt = { class: "page-header-container" }, St = { class: "page-header-start" }, Pt = { class: "title-container" }, At = {
|
|
201
|
-
key: 1,
|
|
202
|
-
class: "page-layout-title",
|
|
203
|
-
"data-testid": "page-layout-title"
|
|
204
|
-
}, Dt = {
|
|
205
|
-
key: 2,
|
|
206
|
-
class: "title-after-container"
|
|
207
|
-
}, Et = {
|
|
208
|
-
key: 0,
|
|
209
|
-
class: "page-header-actions-container"
|
|
210
|
-
}, Nt = /* @__PURE__ */ H({
|
|
211
|
-
__name: "PageLayout",
|
|
212
|
-
props: {
|
|
213
|
-
breadcrumbs: { default: () => [] },
|
|
214
|
-
title: {},
|
|
215
|
-
backTo: {},
|
|
216
|
-
tabs: { default: () => [] }
|
|
217
|
-
},
|
|
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);
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
if (typeof l != "function") {
|
|
226
|
-
window.location.href = t.backTo;
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
await l(t.backTo);
|
|
230
|
-
}
|
|
231
|
-
}, m = A(0), r = w(() => m.value > 0);
|
|
232
|
-
at(Z, () => (m.value++, () => {
|
|
233
|
-
m.value--;
|
|
234
|
-
}));
|
|
235
|
-
const v = z(Z, null), p = A(null);
|
|
236
|
-
return typeof v == "function" && (p.value = v()), ot(() => {
|
|
237
|
-
var u;
|
|
238
|
-
(u = p.value) == null || u.call(p);
|
|
239
|
-
}), (u, k) => {
|
|
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, {
|
|
246
|
-
key: 0,
|
|
247
|
-
class: "header-breadcrumbs",
|
|
248
|
-
"data-testid": "page-layout-breadcrumbs",
|
|
249
|
-
"item-max-width": "25ch",
|
|
250
|
-
items: t.breadcrumbs
|
|
251
|
-
}, null, 8, ["items"])) : y("", !0),
|
|
252
|
-
g("div", Pt, [
|
|
253
|
-
t.backTo ? (i(), T(q(s.value ? "a" : "router-link"), {
|
|
254
|
-
key: 0,
|
|
255
|
-
"aria-label": h(n)("back_button"),
|
|
256
|
-
class: "navigate-back",
|
|
257
|
-
"data-testid": "page-layout-navigate-back",
|
|
258
|
-
href: s.value ? t.backTo : void 0,
|
|
259
|
-
tabindex: "0",
|
|
260
|
-
to: s.value ? void 0 : t.backTo,
|
|
261
|
-
onClick: I(c, ["prevent"]),
|
|
262
|
-
onKeydown: [
|
|
263
|
-
D(I(c, ["prevent"]), ["enter"]),
|
|
264
|
-
D(I(c, ["prevent"]), ["space"])
|
|
265
|
-
]
|
|
266
|
-
}, {
|
|
267
|
-
default: S(() => [
|
|
268
|
-
M(h(it), {
|
|
269
|
-
decorative: "",
|
|
270
|
-
size: h(dt)
|
|
271
|
-
}, null, 8, ["size"])
|
|
272
|
-
]),
|
|
273
|
-
_: 1
|
|
274
|
-
}, 40, ["aria-label", "href", "to", "onKeydown"])) : y("", !0),
|
|
275
|
-
t.title ? (i(), d("h1", At, P(t.title), 1)) : y("", !0),
|
|
276
|
-
u.$slots["title-after"] ? (i(), d("div", Dt, [
|
|
277
|
-
O(u.$slots, "title-after", {}, void 0, !0)
|
|
278
|
-
])) : y("", !0)
|
|
279
|
-
])
|
|
280
|
-
]),
|
|
281
|
-
u.$slots.actions ? (i(), d("div", Et, [
|
|
282
|
-
O(u.$slots, "actions", {}, void 0, !0)
|
|
283
|
-
])) : y("", !0)
|
|
284
|
-
]),
|
|
285
|
-
a.value ? (i(), T(Ct, {
|
|
286
|
-
key: 0,
|
|
287
|
-
tabs: t.tabs
|
|
288
|
-
}, null, 8, ["tabs"])) : y("", !0)
|
|
289
|
-
])),
|
|
290
|
-
g("div", {
|
|
291
|
-
class: B(["page-layout-content", { "has-nested-page-layout": r.value }])
|
|
292
|
-
}, [
|
|
293
|
-
a.value ? (i(), T(E, { key: 0 })) : O(u.$slots, "default", { key: 1 }, void 0, !0)
|
|
294
|
-
], 2)
|
|
295
|
-
]);
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
}), zt = /* @__PURE__ */ X(Nt, [["__scopeId", "data-v-4ca3c7b5"]]);
|
|
299
|
-
export {
|
|
300
|
-
zt as PageLayout
|
|
301
|
-
};
|
package/dist/page-layout.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,12 +0,0 @@
|
|
|
1
|
-
import type { PageLayoutProps, PageLayoutSlots } from '../types';
|
|
2
|
-
type __VLS_Slots = PageLayoutSlots;
|
|
3
|
-
declare const __VLS_base: import("vue").DefineComponent<PageLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
5
|
-
declare const _default: typeof __VLS_export;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
8
|
-
new (): {
|
|
9
|
-
$slots: S;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=PageLayout.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PageLayoutTabsProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<PageLayoutTabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLayoutTabsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
-
declare const _default: typeof __VLS_export;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=PageLayoutTabs.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayoutTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PageLayoutTabs.vue"],"names":[],"mappings":"AAmTA,OAAO,KAAK,EAAE,mBAAmB,EAAiB,MAAM,UAAU,CAAA;AAkUlE,QAAA,MAAM,YAAY,kTAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;;;;AAE/B,wBAEC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
|
|
2
|
-
import english from '../locales/en.json';
|
|
3
|
-
interface UseI18nReturn {
|
|
4
|
-
i18n: ReturnType<typeof createI18n<typeof english>>;
|
|
5
|
-
i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
|
|
6
|
-
}
|
|
7
|
-
export default function useI18n(): UseI18nReturn;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,6BAA6B,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,CAAA;AAErB,cAAc,SAAS,CAAA"}
|
package/dist/types/symbols.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/symbols.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,eAAyC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
-
export interface PageLayoutTab {
|
|
3
|
-
/** The unique kebab-case key of the tab */
|
|
4
|
-
key: string;
|
|
5
|
-
/** The display text of the navbar tab */
|
|
6
|
-
label: string;
|
|
7
|
-
/** The [Vue Router `to` object](https://router.vuejs.org/api/interfaces/RouterLinkProps.html#to) or a URL path (relative or absolute) to navigate to on click */
|
|
8
|
-
to: string | RouteLocationRaw;
|
|
9
|
-
/** Is the navbar tab active */
|
|
10
|
-
active?: boolean;
|
|
11
|
-
/** The data-testid attribute to apply to the navbar tab. Auto-generated if not provided */
|
|
12
|
-
dataTestId?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface PageLayoutTabsProps {
|
|
15
|
-
tabs?: PageLayoutTab[];
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=page-layout-tabs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-layout-tabs.d.ts","sourceRoot":"","sources":["../../../src/types/page-layout-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAA;IACX,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,iKAAiK;IACjK,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAC7B,+BAA+B;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,aAAa,EAAE,CAAA;CACvB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { BreadcrumbItem } from '@kong/kongponents';
|
|
2
|
-
import type { PageLayoutTab } from './';
|
|
3
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
4
|
-
export interface PageLayoutProps {
|
|
5
|
-
/** Breadcrumb items */
|
|
6
|
-
breadcrumbs?: BreadcrumbItem[];
|
|
7
|
-
/** Page title */
|
|
8
|
-
title: string;
|
|
9
|
-
/** The URL to navigate back to when the back button is clicked */
|
|
10
|
-
backTo?: string | RouteLocationRaw;
|
|
11
|
-
/** Tabs */
|
|
12
|
-
tabs?: PageLayoutTab[];
|
|
13
|
-
}
|
|
14
|
-
export interface PageLayoutSlots {
|
|
15
|
-
/**
|
|
16
|
-
* Default slot for page content
|
|
17
|
-
*/
|
|
18
|
-
default?(): any;
|
|
19
|
-
/**
|
|
20
|
-
* Actions slot for page actions
|
|
21
|
-
*/
|
|
22
|
-
actions?(): any;
|
|
23
|
-
/**
|
|
24
|
-
* Title after slot for page title after content
|
|
25
|
-
*/
|
|
26
|
-
'title-after'(): any;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=page-layout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|